joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b8b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49b90e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0049b8a4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0048ae5c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0048aa5c
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b915
lea eax, [ebp - 4]
call fcn.004048d4
ret

Function at 0x4aa76c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4aa79a
mov eax, ebx
call fcn.004ab220
cmp dword [ebx + 0x40], 0
je 0x4aa793
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4aa80b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4aa7fd
cmp dword [ebx + 8], 0
je 0x4aa7bc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4aa7ce
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4aa7fd
cmp dword [ebx + 8], 0
je 0x4aa7af
cmp eax, 3
je 0x4aa7e1
dec eax
jne 0x4aa7af
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4aa7af
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4aa7af
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4aa829
cmp dword [ebx + 0x14], 0xcc
je 0x4aa829
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004aa834
pop ebx
ret

Function at 0x4bb618
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407bb8
ret

Function at 0x4bd8a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4bd8d8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bd8b6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bd8c5
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bd8d4
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x4c6f8c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
mov eax, dword [ebp - 8]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4c7057
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, dword [ebp - 8]
call fcn.00404d94
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x4c7064
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404d94
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x4b
push ebx
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
push ebx
call sub.wininet.dll_InternetSetOptionA
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c705e
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f8
ret

Function at 0x4c706c
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
mov eax, dword [ebp - 8]
call fcn.00404d84
mov eax, dword [ebp - 0xc]
call fcn.00404d84
mov eax, dword [ebp + 0xc]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4c717e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x14
mov dword [ebp - 0x20], 0x14
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x38], 2
mov eax, dword [ebp - 8]
call fcn.00404d94
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 3
mov eax, 0x4c7190
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404d94
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00404d94
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404d94
push eax
mov ax, word [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d94
push eax
push ebx
call sub.wininet.dll_InternetConnectA
push esi
lea eax, [ebp - 0x20]
push eax
push 0x4b
push ebx
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
push ebx
call sub.wininet.dll_InternetSetOptionA
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7185
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048f8
lea eax, [ebp + 0xc]
call fcn.004048d4
ret
Function at 0x4c8d5c
Capabilities:
Create http request

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov esi, 0x14
mov dword [esp], 0x14
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 3
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 3
mov dword [esp + 0x20], 2
mov eax, 0x4c8df0
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 3
mov eax, 0x4c8df4
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], eax
push 0
push 0
push 0
push 1
push 0x4c8df0
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push esi
lea eax, [esp + 4]
push eax
push 0x4b
push ebx
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
push ebx
call sub.wininet.dll_InternetSetOptionA
push ebx
call sub.wininet.dll_InternetCloseHandle
add esp, 0x38
pop esi
pop ebx
ret

Function at 0x4c8f44
Capabilities:
Get geographical location

Disassembly:
add esp, 0xfffffff4
mov eax, esp
xor ecx, ecx
mov edx, 0xa
call fcn.00403214
push 0xa
lea eax, [esp + 4]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp byte [esp], 0x31
jne 0x4c8f72
mov al, 1
jmp 0x4c8f74
xor eax, eax
add esp, 0xc
ret
Function at 0x4d3f58
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4d3fc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x1505
mov eax, dword [ebp - 4]
call fcn.00404b94
test eax, eax
jle 0x4d3fa4
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
mov esi, ebx
shl esi, 5
add ebx, esi
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4d3f8d
and ebx, 0x7fffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3fc7
lea eax, [ebp - 4]
call fcn.004048d4
ret
Function at 0x4e07a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4e08f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x4e08ca
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00409ca4
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4e08b3
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4e08ad
mov ebx, dword [edx]
test ebx, ebx
je 0x4e08a7
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x4e090c
call fcn.0040a2e8
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404928
mov byte [ebp - 5], 1
jmp 0x4e08b7
mov byte [ebp - 5], 0
jmp 0x4e08b7
mov byte [ebp - 5], 0
jmp 0x4e08b7
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e08d1
call sub.wsock32.dll_WSACleanup
ret
Function at 0x4e0918
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4e0921
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
mov eax, dword [ebp - 8]
call fcn.00404d84
mov eax, dword [ebp - 0xc]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4e0ad8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x1c]
mov edx, 0x4e0af4
call fcn.0040496c
lea eax, [ebp - 0x14]
mov edx, 0x4e0b10
call fcn.0040496c
lea eax, [ebp - 0x24]
mov edx, 0x4e0b28
call fcn.0040496c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004e07a0
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.004e07a0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.004e07a0
cmp dword [ebp - 4], 0
je 0x4e09c1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404ce0
je 0x4e09c1
mov byte [ebp - 0xd], 0
cmp dword [ebp - 8], 0
je 0x4e09d8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00404ce0
je 0x4e09d8
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0xc], 0
je 0x4e09ef
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00404ce0
je 0x4e09ef
mov byte [ebp - 0xd], 0
cmp byte [ebp + 8], 0
je 0x4e0ab0
mov eax, 0xff
call fcn.00402818
mov ebx, eax
mov edx, 0xff
mov eax, ebx
call fcn.00407bb8
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00409df8
mov eax, ebx
call fcn.00402838
xor eax, eax
push ebp
push 0x4e0aa6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41820c]
call fcn.00403a90
mov ebx, eax
mov edx, 0x4e0b40
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4e0b5c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x30]
mov ecx, 0x4e0b80
mov edx, dword [ebp - 0x2c]
call fcn.00404be0
push 0x20
mov eax, dword [ebp - 0x30]
call fcn.00404d94
mov esi, eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov edx, dword [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403ac0
push 0x20
push esi
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e0ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0adf
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.004048f8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048f8
ret
Function at 0x4e5364
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4e5495
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004c09d0
mov ebx, eax
test ebx, ebx
je 0x4e546f
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.004c09f0
jmp 0x4e545b
lea edx, [ebp - 0x138]
mov eax, dword [0x4e9efc]
mov eax, dword [eax]
call fcn.0047e440
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409a88
push dword [ebp - 0x134]
push 0x4e54ac
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404b44
push dword [ebp - 0x13c]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.00404ce0
jne 0x4e544e
mov eax, dword [ebp - 0x124]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.004c0a10
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e53c9
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e549c
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.004048f8
lea eax, [ebp - 4]
call fcn.004048d4
ret
Function at 0x4e54b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4e54b8
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x4e56dc
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402b4c
test eax, eax
jle 0x4e5539
lea edx, [ebp - 0xc]
mov eax, 1
call fcn.00402bac
mov eax, dword [ebp - 0xc]
call fcn.004099e0
test al, al
je 0x4e5539
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.00402bac
mov eax, dword [ebp - 0x10]
call fcn.004e5364
push 0x30
push 0x4e56ec
push 0x4e56f4
push 0
call sub.user32.dll_MessageBoxA_1
push 0xbb8
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402bac
mov eax, dword [ebp - 0x14]
call fcn.004099f0
lea edx, [ebp - 0x1c]
mov eax, dword [0x4e9efc]
mov eax, dword [eax]
call fcn.0047e440
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409a88
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4e5718
call fcn.00404be0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x438c7c]
call fcn.00438d2c
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x4e5734
mov edx, 0x4e5744
mov eax, ebx
mov esi, dword [eax]
call dword [esi]
mov eax, ebx
call fcn.00403ac0
lea edx, [ebp - 0x28]
mov eax, dword [0x4e9efc]
mov eax, dword [eax]
call fcn.0047e440
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00409a88
push dword [ebp - 0x24]
push 0x4e5758
push dword [ebp - 8]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x20]
call fcn.004099e0
test al, al
je 0x4e56c1
lea edx, [ebp - 0x34]
mov eax, dword [0x4e9efc]
mov eax, dword [eax]
call fcn.0047e440
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00409a88
push dword [ebp - 0x30]
push 0x4e5758
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x4e9efc]
mov eax, dword [eax]
call fcn.0047e440
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404ce0
je 0x4e56c1
push 1
push 0
push 0x4e5764
lea edx, [ebp - 0x40]
mov eax, dword [0x4e9efc]
mov eax, dword [eax]
call fcn.0047e440
push dword [ebp - 0x40]
push 0x4e5764
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x3c]
call fcn.00404d94
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [0x4e9efc]
mov eax, dword [eax]
call fcn.0047e440
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00409a88
push dword [ebp - 0x48]
push 0x4e5758
push dword [ebp - 8]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x44]
call fcn.00404d94
push eax
push 0x4e5768
mov eax, dword [0x4ec128]
call fcn.004646f0
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [ebp - 4]
call fcn.004099f0
mov eax, dword [0x4e9efc]
mov eax, dword [eax]
call fcn.0047df1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e56e3
lea eax, [ebp - 0x4c]
mov edx, 0x13
call fcn.004048f8
ret
Function at 0x4020d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402125
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40211e
test esi, esi
je 0x40211e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402100
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402340
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402378
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40236e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40237a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402360
xor eax, eax
pop ebx
pop esi
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401640
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x28
lea eax, [esp + 8]
mov dword [esp + 8], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ecx
fild qword [esp]
add esp, 0x28
ret

Function at 0x4039c8
Capabilities:
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x425e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push str.http:__www.fengyunzhibo.com_channel_list
lea ecx, [esp + 0xc]
call fcn.0041e1cb
push str.c:__FYTV_channel_item.txt
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call fcn.0041e1cb
push 0x44cf78
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.0041e1cb
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push eax
push ecx
push 0
mov byte [esp + 0x2c], 2
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x403a2c
mov ecx, 0x44d048
call fcn.004011c0
jmp 0x403a3c
push 0
push 0
push 0x44af10
mov ecx, esi
call fcn.0041c5e9
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.0041e15d
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call fcn.0041e15d
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041e15d
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x411a61
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44c570
cmp edx, dword [eax]
je 0x411a83
add eax, 8
inc ecx
cmp eax, 0x44c600
jl 0x411a74
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44c570]
jne 0x411bb1
mov eax, dword [0x44f14c]
cmp eax, 1
je 0x411b8b
test eax, eax
jne 0x411ab4
cmp dword [0x44bdf4], 1
je 0x411b8b
cmp edx, 0xfc
je 0x411bb1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411aeb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00412600
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411e60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411b2e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411e60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x441ff0
push edi
call fcn.00413fc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00412600
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00412610
lea eax, [ebp - 0xa0]
push 0x441fd0
push eax
call fcn.00412610
push dword [esi + 0x44c574]
lea eax, [ebp - 0xa0]
push eax
call fcn.00412610
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413f2a
add esp, 0x2c
pop edi
jmp 0x411bb1
lea eax, [ebp + 8]
lea esi, [esi + 0x44c574]
push 0
push eax
push dword [esi]
call fcn.00411e60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4187d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040bc60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41889b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41889b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41884e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418859
or bh, 8
and edi, 0x8000000
je 0x418874
mov eax, dword [0x4508dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41889b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret