joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bb25
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0xe4
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push 0xc
mov eax, 0x503844
call fcn.004d9926
mov eax, dword [ebp + 0xf0]
mov dword [ebp - 0x14], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
push 0xc6
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.004d8c50
add esp, 0xc
xor eax, eax
push 0x530540
lea ecx, [ebp]
mov dword [ebp - 0x18], esi
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], esi
mov word [ebp], ax
call fcn.0040ed85
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x42bba4
lea eax, [ebp + 0xf4]
push 0x64
push eax
lea eax, [ebp + 0x1c]
push 0x64
push eax
call fcn.004d6301
mov eax, dword [ebp]
add esp, 0x10
cmp dword [ebp + 0x14], 8
jae 0x42bbc1
lea eax, [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x20106
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x42bc0f
lea eax, [ebp + 0x1c]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x42bc1b
lea eax, [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x20206
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42bc5d
lea eax, [ebp + 0x1c]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp]
call fcn.00403da4
push esi
push 1
lea ecx, [ebp + 0xf4]
call fcn.00403da4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
call fcn.004d574b
add ebp, 0xe8
leave
ret

Function at 0x42c3cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004d8c50
add esp, 0xc
push 0
push 0x1c
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0040edaa
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004d574b
leave
ret
Function at 0x42c436
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x294
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x294], eax
push 0x1c
mov eax, 0x503735
call fcn.004d9926
xor eax, eax
push 0x206
mov word [ebp + 0x8c], ax
xor edi, edi
lea eax, [ebp + 0x8e]
push edi
push eax
mov ebx, ecx
call fcn.004d8c50
add esp, 0xc
push 0x104
lea eax, [ebp + 0x8c]
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42c60d
lea eax, [ebp + 0x54]
push 0x53072c
push eax
call fcn.00411a98
pop ecx
pop ecx
mov dword [ebp - 4], edi
xor eax, eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x8c]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x30], 7
mov dword [ebp + 0x2c], edi
call fcn.0040ed85
xor ebx, ebx
lea eax, [ebp + 0x70]
push 0x530730
inc ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00411a77
pop ecx
pop ecx
push edi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.00403da4
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x42c503
lea eax, [ebp + 0x70]
push dword [ebp + 0x80]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040ecbf
cmp eax, 0xffffffff
je 0x42c534
push edi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00403da4
push edi
push ebx
lea ecx, [ebp + 0x54]
call fcn.00403da4
mov al, bl
jmp 0x42c60f
push 3
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp - 0x28]
call fcn.0040ec4d
lea ecx, [ebp + 0x38]
push 0x530734
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00411a77
pop ecx
pop ecx
push edi
push ebx
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00403da4
cmp dword [ebp + 0x4c], 8
mov eax, dword [ebp + 0x38]
jae 0x42c572
lea eax, [ebp + 0x38]
push dword [ebp + 0x48]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040ecbf
cmp eax, 0xffffffff
je 0x42c591
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403da4
jmp 0x42c519
push 3
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040ec4d
lea ecx, [ebp]
push str.Program_Files__x86__
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00411a77
pop ecx
pop ecx
push edi
push ebx
mov ecx, esi
call fcn.00403da4
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x42c5cb
lea eax, [ebp]
push dword [ebp + 0x10]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040ecbf
push edi
lea ecx, [ebp]
push ebx
cmp eax, 0xffffffff
je 0x42c5ea
call fcn.00403da4
jmp 0x42c585
call fcn.00403da4
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403da4
push edi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00403da4
push edi
push ebx
lea ecx, [ebp + 0x54]
call fcn.00403da4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x294]
xor ecx, ebp
call fcn.004d574b
add ebp, 0x298
leave
ret
Function at 0x42e8ae
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0x164
mov eax, 0x506760
call fcn.004d998f
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
mov esi, ecx
push SysReAllocString
push esi
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x130], eax
cmp eax, 0xffffffff
je 0x42e9ef
push 0x38
lea eax, [ebp - 0x168]
push edi
push eax
call fcn.004d8c50
add esp, 0xc
push 0x114
lea eax, [ebp - 0x128]
push edi
push eax
mov dword [ebp - 0x16c], 0x3c
mov dword [ebp - 0x168], 0x40
mov dword [ebp - 0x164], edi
call fcn.004d8c50
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42e958
cmp dword [ebp - 0x124], 6
mov dword [ebp - 0x160], str.runas
jae 0x42e962
mov dword [ebp - 0x160], str.open
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, dword [ebp - 0x134]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x12c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x130]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
cmp dword [0x5500d4], edi
je 0x42e9e7
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___RunExe_ret__d_.
call fcn.00427581
add esp, 0xc
mov eax, dword [ebp - 0x12c]
jmp 0x42ea1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5500d4], edi
je 0x42ea18
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___RunExe_failed__err__d_
call fcn.00427581
add esp, 0xc
or eax, 0xffffffff
call fcn.004d9a12
ret

Function at 0x42f1c1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x54b3f0]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42f208
cmp byte [esp], 2
jne 0x42f202
mov eax, dword [esp]
shr eax, 8
cmp al, 2
jne 0x42f202
dec al
jmp 0x42f20a
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004d574b
mov esp, ebp
pop ebp
ret
Function at 0x42f592
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x114], eax
cmp eax, ebx
je 0x42f5e4
cmp dword [ebp + 0xc], ebx
jl 0x42f5e4
cmp byte [esi + 0xc], bl
jne 0x42f5f8
cmp dword [0x5500d4], ebx
je 0x42f5e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___socket__receive_failed__no_connected.
call fcn.00427581
pop ecx
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d574b
leave
ret 8
mov eax, dword [esi + 4]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
mov dword [ebp - 0x11c], 0x1e
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
jne 0x42f664
cmp dword [0x5500d4], ebx
je 0x42f5e4
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__select_err__d_.
mov ecx, dword [0x5500d4]
call fcn.00427581
add esp, 0xc
jmp 0x42f5e4
cmp edi, ebx
jne 0x42f683
cmp dword [0x5500d4], ebx
je 0x42f5e4
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__receive_failed__select_ret_0___err__d_.
jmp 0x42f654
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x114]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jne 0x42f6c9
cmp dword [0x5500d4], ebx
je 0x42f6bd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._WARN___d___socket__receive_failed__size_0_.
call fcn.00427581
pop ecx
pop ecx
call fcn.0042f576
mov eax, edi
jmp 0x42f5e7
cmp edi, 0xffffffff
jne 0x42f6c2
cmp dword [0x5500d4], ebx
je 0x42f5e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__err__d_
jmp 0x42f654
Function at 0x42f75b
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x42f7e5
xor eax, eax
inc eax
cmp dword [ebp + 0x98], eax
jl 0x42f7e5
cmp byte [esi + 0xc], bl
je 0x42f7e5
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 4]
push 0xfc
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x80], 0x1e
mov dword [ebp - 0x7c], ebx
call fcn.004d8c50
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x42f7e5
cmp eax, ebx
je 0x42f7e5
push ebx
push dword [ebp + 0x98]
push edi
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne al
jmp 0x42f7e7
xor al, al
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.004d574b
add ebp, 0x90
leave
ret 4

Function at 0x42f7ff
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x42f828
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42f82c
xor eax, eax
jmp 0x42f843
lea edi, [eax + eax]
mov eax, edi
call fcn.004d9230
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.0042f0e0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x42f859
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x42f859
mov ebx, dword [eax]
mov eax, ebx
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d574b
leave
ret 4
Function at 0x430551
Capabilities:
Terminate thread

Disassembly:
push ebx
mov bl, 1
test esi, esi
je 0x43057e
cmp esi, 0xffffffff
je 0x43057e
push dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43057a
push 0
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, bl
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4313d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp eax, edi
je 0x431434
cmp dword [esi + 0x24], edi
jne 0x431434
mov dword [esi + 0x24], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x431375
push 0x500000
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, edi
je 0x431413
cmp eax, 0xffffffff
je 0x431413
mov al, 1
jmp 0x431436
cmp dword [0x5500d4], edi
je 0x431434
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___create_download_main_thread_failed_
call fcn.00427581
pop ecx
pop ecx
xor al, al
pop edi
leave
ret
Function at 0x432f2b
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x432f55
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x432f59
xor eax, eax
jmp 0x432f70
lea edi, [eax + eax]
mov eax, edi
call fcn.004d9230
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.0042f0e0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x432fb5
mov edi, dword [ebp + 0xc]
call fcn.0043514c
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x432fb5
and dword [ebp - 8], 0
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.00435bec
push eax
push esi
lea esi, [ebp - 0x14]
call fcn.00435712
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x432f92
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx + 8], eax
setne al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d574b
leave
ret 8
Function at 0x433f98
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [esi + 0x54]
push ebx
push edi
xor edi, edi
mov byte [ebp - 1], 0
cmp eax, edi
je 0x4340a0
cmp dword [esi + 0x60], edi
je 0x4340a0
cmp byte [eax + 0x70], 0
je 0x4340a0
cmp dword [esi + 0x5c], edi
je 0x4340a0
lea eax, [ebp - 8]
push eax
push esi
call fcn.00433b20
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x434007
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00403e7d
jmp 0x4340a0
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43408a
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0xfffffffffffffffc
pop eax
push 2
lea edx, [ebp - 0x20]
push edx
or ecx, 0xffffffff
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x43408a
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [esi + 0x5c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43408a
mov ecx, dword [esi + 0x50]
imul ecx, ecx, 0x18
push 0xfffffffffffffffc
pop eax
push 2
sub eax, ecx
cdq
lea ecx, [ebp - 0x28]
push ecx
push edx
push eax
push ebx
call edi
test eax, eax
je 0x43408a
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0x50]
imul eax, eax, 0x18
push eax
push dword [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43408a
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00403e7d
test ebx, ebx
je 0x4340a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret
Function at 0x435d05
Capabilities:
Resolve dns

Disassembly:
push 0x58
mov eax, 0x506514
call fcn.004d998f
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
jne 0x435d27
xor al, al
jmp 0x435e86
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x435d3c
and dword [ebp - 0x54], 0
jmp 0x435d54
lea edi, [eax + eax]
mov eax, edi
call fcn.004d9230
mov esi, esp
push 3
push edi
push ebx
call fcn.0042f0e0
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x435df4
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040edaa
mov ecx, dword [ebp - 0x4c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00437c35
mov edi, eax
call fcn.0043514c
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403da4
mov ebx, dword [esi + 0xc]
cmp dword [ebx], 0
je 0x435df4
and dword [ebp - 0x58], 0
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.0040edaa
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00437c35
mov esi, eax
lea edi, [ebp - 0x5c]
call fcn.00435bec
push eax
push esi
lea esi, [ebp - 0x64]
call fcn.00435712
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403da4
add ebx, 4
cmp dword [ebx], 0
jne 0x435da3
xor edi, edi
cmp dword [0x5500d4], edi
je 0x435e55
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.0040edaa
mov esi, dword [ebp - 0x54]
mov dword [ebp - 4], 2
cmp esi, edi
jne 0x435e1c
mov esi, 0x52c823
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00437c35
push dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___query_host__s___ip_count__d_
call fcn.00427581
or dword [ebp - 4], 0xffffffff
add esp, 0x10
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403da4
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.0040edaa
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 3
call fcn.00437c35
mov esi, dword [eax + 8]
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00403da4
cmp esi, edi
setne al
lea esp, [ebp - 0x74]
call fcn.004d9a12
ret 4
Function at 0x436edd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x5500d4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x436f20
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___download:_start_pos__I64d___will_download__I64d___downloaed__I64d_
call fcn.00427581
add esp, 0x20
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x436f36
mov byte [esi + 0x112], 1
mov al, 1
jmp 0x437007
push dword [ebp + 0x14]
mov dword [esi + 0x88], ebx
push dword [ebp + 0x10]
mov dword [esi + 0x8c], edi
call fcn.0043789e
xor edi, edi
cmp dword [esi + 0x84], edi
jl 0x436f87
jg 0x436f61
cmp dword [esi + 0x80], edi
jbe 0x436f87
mov ebx, dword [esi + 0x80]
mov edi, dword [esi + 0x84]
mov eax, esi
call fcn.004378e2
cmp edx, edi
jl 0x436f85
jg 0x436f7e
cmp eax, ebx
jbe 0x436f85
push edi
push ebx
call fcn.0043789e
xor edi, edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.00437821
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x436d8e
push 0x800000
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
cmp eax, edi
je 0x436fe4
cmp eax, 0xffffffff
je 0x436fe4
cmp dword [0x5500d4], edi
je 0x436f2f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___create_download_thread_success.
call fcn.00427581
pop ecx
pop ecx
jmp 0x436f2f
cmp dword [0x5500d4], edi
je 0x437005
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___create_download_thread_failed_
call fcn.00427581
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x437628
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
cmp dword [ebp + 8], eax
je 0x43769c
cmp dword [ebp + 0xc], eax
jl 0x43769c
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43769c
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0xc], edx
call fcn.0043784e
mov edi, eax
add edi, dword [ebp - 0x10]
mov ebx, edx
adc ebx, dword [ebp - 0xc]
push ebx
push edi
call fcn.00437821
mov eax, dword [esi + 0x68]
test eax, eax
je 0x437696
push dword [esi + 0x6c]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push edi
push dword [esi + 8]
call eax
add esp, 0x18
mov eax, edi
mov edx, ebx
jmp 0x4376a1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43afda
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x43aff0
push 8
pop edi
push 1
call esi
test ax, ax
jns 0x43affc
or edi, 1
push 2
call esi
test ax, ax
jns 0x43b008
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x43b014
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x43b020
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x43efa4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0xac]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x43efd0
cmp ebx, dword [esi + 0x10c]
je 0x43efd0
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x10c]
cmp ebx, eax
je 0x43f0a7
push edi
test eax, eax
je 0x43f02f
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x10c]
mov ecx, esi
call fcn.0043ef04
mov dword [esi + 0x10c], edi
test ebx, ebx
je 0x43f0a6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x43f0a6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
test al, al
je 0x43f0a6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
test al, al
je 0x43f0a6
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x10c], ebx
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor eax, eax
push eax
push eax
push eax
push 0x50ab5c
push dword [esi + 0x10c]
mov ecx, esi
call fcn.0043ef04
pop edi
pop esi
pop ebx
leave
ret 4