joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ca60
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, 0x503d83
call fcn.004d9fb6
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.004d92e0
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 0x42cc37
lea eax, [ebp + 0x54]
push 0x53071c
push eax
call fcn.00412446
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.00404501
xor ebx, ebx
lea eax, [ebp + 0x70]
push 0x530720
inc ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00412425
pop ecx
pop ecx
push edi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.0040482f
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x42cb2d
lea eax, [ebp + 0x70]
push dword [ebp + 0x80]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040f74a
cmp eax, 0xffffffff
je 0x42cb5e
push edi
push ebx
lea ecx, [ebp + 0x70]
call fcn.0040482f
push edi
push ebx
lea ecx, [ebp + 0x54]
call fcn.0040482f
mov al, bl
jmp 0x42cc39
push 3
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp - 0x28]
call fcn.0040f71c
lea ecx, [ebp + 0x38]
push 0x530724
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00412425
pop ecx
pop ecx
push edi
push ebx
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0040482f
cmp dword [ebp + 0x4c], 8
mov eax, dword [ebp + 0x38]
jae 0x42cb9c
lea eax, [ebp + 0x38]
push dword [ebp + 0x48]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040f74a
cmp eax, 0xffffffff
je 0x42cbbb
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.0040482f
jmp 0x42cb43
push 3
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040f71c
lea ecx, [ebp]
push str.Program_Files__x86__
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00412425
pop ecx
pop ecx
push edi
push ebx
mov ecx, esi
call fcn.0040482f
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x42cbf5
lea eax, [ebp]
push dword [ebp + 0x10]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040f74a
push edi
lea ecx, [ebp]
push ebx
cmp eax, 0xffffffff
je 0x42cc14
call fcn.0040482f
jmp 0x42cbaf
call fcn.0040482f
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.0040482f
push edi
push ebx
lea ecx, [ebp + 0x70]
call fcn.0040482f
push edi
push ebx
lea ecx, [ebp + 0x54]
call fcn.0040482f
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.004d5ddb
add ebp, 0x298
leave
ret
Function at 0x42eed9
Capabilities:
Check os version
Create process on windows

Disassembly:
push 0x164
mov eax, 0x506317
call fcn.004da01f
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
mov esi, ecx
push 0x80000000
push esi
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x130], eax
cmp eax, 0xffffffff
je 0x42f01a
push 0x38
lea eax, [ebp - 0x168]
push edi
push eax
call fcn.004d92e0
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.004d92e0
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 0x42ef83
cmp dword [ebp - 0x124], 6
mov dword [ebp - 0x160], str.runas
jae 0x42ef8d
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 [0x550334], edi
je 0x42f012
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___RunExe_ret__d_.
call fcn.00427e2f
add esp, 0xc
mov eax, dword [ebp - 0x12c]
jmp 0x42f046
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x550334], edi
je 0x42f043
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___RunExe_failed__err__d_
call fcn.00427e2f
add esp, 0xc
or eax, 0xffffffff
call fcn.004da0a2
ret

Function at 0x42f7ec
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 0x42f833
cmp byte [esp], 2
jne 0x42f82d
mov eax, dword [esp]
shr eax, 8
cmp al, 2
jne 0x42f82d
dec al
jmp 0x42f835
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004d5ddb
mov esp, ebp
pop ebp
ret
Function at 0x42fbbd
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 0x42fc0f
cmp dword [ebp + 0xc], ebx
jl 0x42fc0f
cmp byte [esi + 0xc], bl
jne 0x42fc23
cmp dword [0x550334], ebx
je 0x42fc0f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___socket__receive_failed__no_connected.
call fcn.00427e2f
pop ecx
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5ddb
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 0x42fc8f
cmp dword [0x550334], ebx
je 0x42fc0f
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._ERROR___d___socket__receive_failed__select_err__d_.
mov ecx, dword [0x550334]
call fcn.00427e2f
add esp, 0xc
jmp 0x42fc0f
cmp edi, ebx
jne 0x42fcae
cmp dword [0x550334], ebx
je 0x42fc0f
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._WARN___d___socket__receive_failed__select_ret_0___err__d_.
jmp 0x42fc7f
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 0x42fcf4
cmp dword [0x550334], ebx
je 0x42fce8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._WARN___d___socket__receive_failed__size_0_.
call fcn.00427e2f
pop ecx
pop ecx
call fcn.0042fba1
mov eax, edi
jmp 0x42fc12
cmp edi, 0xffffffff
jne 0x42fced
cmp dword [0x550334], ebx
je 0x42fc0f
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 0x42fc7f
Function at 0x42fd86
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 0x42fe10
xor eax, eax
inc eax
cmp dword [ebp + 0x98], eax
jl 0x42fe10
cmp byte [esi + 0xc], bl
je 0x42fe10
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.004d92e0
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 0x42fe10
cmp eax, ebx
je 0x42fe10
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 0x42fe12
xor al, al
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.004d5ddb
add ebp, 0x90
leave
ret 4

Function at 0x42fe2a
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 0x42fe53
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42fe57
xor eax, eax
jmp 0x42fe6e
lea edi, [eax + eax]
mov eax, edi
call fcn.004d98c0
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.0042f70b
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x42fe84
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x42fe84
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.004d5ddb
leave
ret 4
Function at 0x430b7c
Capabilities:
Terminate thread

Disassembly:
push ebx
mov bl, 1
test esi, esi
je 0x430ba9
cmp esi, 0xffffffff
je 0x430ba9
push dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x430ba5
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 0x431a01
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp eax, edi
je 0x431a5f
cmp dword [esi + 0x24], edi
jne 0x431a5f
mov dword [esi + 0x24], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4319a0
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 0x431a3e
cmp eax, 0xffffffff
je 0x431a3e
mov al, 1
jmp 0x431a61
cmp dword [0x550334], edi
je 0x431a5f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___create_download_main_thread_failed_
call fcn.00427e2f
pop ecx
pop ecx
xor al, al
pop edi
leave
ret
Function at 0x433556
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 0x433580
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x433584
xor eax, eax
jmp 0x43359b
lea edi, [eax + eax]
mov eax, edi
call fcn.004d98c0
mov esi, esp
push 3
push edi
push dword [ebp + 8]
call fcn.0042f70b
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4335e0
mov edi, dword [ebp + 0xc]
call fcn.00401b2c
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x4335e0
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.00436298
push eax
push esi
lea esi, [ebp - 0x14]
call fcn.00435dbe
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4335bd
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.004d5ddb
leave
ret 8
Function at 0x43459a
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 0x4346a2
cmp dword [esi + 0x60], edi
je 0x4346a2
cmp byte [eax + 0x70], 0
je 0x4346a2
cmp dword [esi + 0x5c], edi
je 0x4346a2
lea eax, [ebp - 8]
push eax
push esi
call fcn.00434122
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 0x434609
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040442d
jmp 0x4346a2
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43468c
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 0x43468c
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 0x43468c
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 0x43468c
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 0x43468c
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040442d
test ebx, ebx
je 0x4346a2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret
Function at 0x4363b1
Capabilities:
Resolve dns

Disassembly:
push 0x58
mov eax, 0x5060c1
call fcn.004da01f
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
jne 0x4363d3
xor al, al
jmp 0x436532
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4363e8
and dword [ebp - 0x54], 0
jmp 0x436400
lea edi, [eax + eax]
mov eax, edi
call fcn.004d98c0
mov esi, esp
push 3
push edi
push ebx
call fcn.0042f70b
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4364a0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404526
mov ecx, dword [ebp - 0x4c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004382e4
mov edi, eax
call fcn.00401b2c
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040482f
mov ebx, dword [esi + 0xc]
cmp dword [ebx], 0
je 0x4364a0
and dword [ebp - 0x58], 0
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.00404526
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.004382e4
mov esi, eax
lea edi, [ebp - 0x5c]
call fcn.00436298
push eax
push esi
lea esi, [ebp - 0x64]
call fcn.00435dbe
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040482f
add ebx, 4
cmp dword [ebx], 0
jne 0x43644f
xor edi, edi
cmp dword [0x550334], edi
je 0x436501
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.00404526
mov esi, dword [ebp - 0x54]
mov dword [ebp - 4], 2
cmp esi, edi
jne 0x4364c8
mov esi, 0x52c813
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call fcn.004382e4
push dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___query_host__s___ip_count__d_
call fcn.00427e2f
or dword [ebp - 4], 0xffffffff
add esp, 0x10
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040482f
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.00404526
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 3
call fcn.004382e4
mov esi, dword [eax + 8]
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040482f
cmp esi, edi
setne al
lea esp, [ebp - 0x74]
call fcn.004da0a2
ret 4
Function at 0x437589
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x550334], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x4375cc
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 [0x550334]
push eax
push str._INFO___d___download:_start_pos__I64d___will_download__I64d___downloaed__I64d_
call fcn.00427e2f
add esp, 0x20
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x4375e2
mov byte [esi + 0x112], 1
mov al, 1
jmp 0x4376b3
push dword [ebp + 0x14]
mov dword [esi + 0x88], ebx
push dword [ebp + 0x10]
mov dword [esi + 0x8c], edi
call fcn.00437f4d
xor edi, edi
cmp dword [esi + 0x84], edi
jl 0x437633
jg 0x43760d
cmp dword [esi + 0x80], edi
jbe 0x437633
mov ebx, dword [esi + 0x80]
mov edi, dword [esi + 0x84]
mov eax, esi
call fcn.00437f91
cmp edx, edi
jl 0x437631
jg 0x43762a
cmp eax, ebx
jbe 0x437631
push edi
push ebx
call fcn.00437f4d
xor edi, edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.00437ed0
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x43743a
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 0x437690
cmp eax, 0xffffffff
je 0x437690
cmp dword [0x550334], edi
je 0x4375db
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___create_download_thread_success.
call fcn.00427e2f
pop ecx
pop ecx
jmp 0x4375db
cmp dword [0x550334], edi
je 0x4376b1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___create_download_thread_failed_
call fcn.00427e2f
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x437cd4
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 0x437d48
cmp dword [ebp + 0xc], eax
jl 0x437d48
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 0x437d48
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0xc], edx
call fcn.00437efd
mov edi, eax
add edi, dword [ebp - 0x10]
mov ebx, edx
adc ebx, dword [ebp - 0xc]
push ebx
push edi
call fcn.00437ed0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x437d42
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 0x437d4d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43b67f
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 0x43b695
push 8
pop edi
push 1
call esi
test ax, ax
jns 0x43b6a1
or edi, 1
push 2
call esi
test ax, ax
jns 0x43b6ad
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x43b6b9
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x43b6c5
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x43f61f
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 0x43f64b
cmp ebx, dword [esi + 0x10c]
je 0x43f64b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x10c]
cmp ebx, eax
je 0x43f722
push edi
test eax, eax
je 0x43f6aa
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.0043f57f
mov dword [esi + 0x10c], edi
test ebx, ebx
je 0x43f721
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x43f721
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
test al, al
je 0x43f721
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
test al, al
je 0x43f721
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.0043f57f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43f8cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x4ac]
xor ebx, ebx
call fcn.004d4c8c
test eax, eax
jle 0x43f921
push ebx
lea ecx, [esi + 0x4ac]
mov byte [ebp - 1], 0
call fcn.0043ab0b
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x43f985
lea ecx, [esi + 0x4ac]
inc ebx
call fcn.004d4c8c
cmp ebx, eax
jl 0x43f8e8
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x43f9ea
sub eax, 4
je 0x43f989
dec eax
dec eax
jne 0x43f9e1
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.004da490
pop ecx
mov ecx, dword [esi + 0x108]
push 0x80000012
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x43d0b5
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x43f9e1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x128]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x43f9e3
cmp dword [esi + 0x10c], 0
je 0x43f9e1
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x124]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0043b67f
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x43f9e1
cmp dword [esi + 0x10c], 0
je 0x43fa99
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x43fa4c
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x43fa4c
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push 0x50ab2c
call dword [eax + 0xc]
push eax
call fcn.004d6b9d
pop ecx
pop ecx
test eax, eax
je 0x43fa4c
mov ecx, dword [esi + 0x10c]
call fcn.0046e6db
test al, al
jne 0x43f9e1
cmp dword [esi + 0x10c], 0
je 0x43fa99
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x43fa99
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x43fa99
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push str.WkeWebkitUI
call dword [eax + 0xc]
push eax
call fcn.004d6b9d
pop ecx
pop ecx
test eax, eax
jne 0x43f9e1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0043f7ec
jmp 0x43f985