joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424c00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48392f
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b0760]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4b0760]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x424c46
xor al, al
jmp 0x424d51
push 1
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x2e
push eax
call fcn.0041dd36
mov edi, eax
cmp edi, 0xffffffff
je 0x424c3f
push esi
lea ecx, [esp + 0x1c]
call fcn.0040a3d9
and dword [esp + 0x70], 0
xor ebx, ebx
inc ebx
lea ecx, [esp + 0x18]
call fcn.00424ba7
test al, al
lea eax, [esp + 0x18]
je 0x424d2c
cmp eax, esi
je 0x424c99
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00404573
push str.A_valid_JSON_document_must_be_either_an_array_or_an_object_value.
lea ecx, [esp + 0x34]
call fcn.00403f58
mov edx, ebx
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x48]
call fcn.004053f1
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7c], 2
call fcn.0040442a
push 0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 1
call fcn.00402e4f
push 0x497b30
call fcn.004032a2
pop ecx
push eax
push 0x497b30
lea ecx, [esp + 0x38]
call fcn.004044d0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x38]
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.0040bb61
push 0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 0
call fcn.00402e4f
inc ebx
cmp ebx, 0x186a0
jl 0x424c74
xor bl, bl
jmp 0x424d42
cmp esi, eax
je 0x424d40
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00404573
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00402e4f
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00460e52
mov esp, ebp
pop ebp
ret

Function at 0x427723
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x483ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b0760]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x4b0760]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
and dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
call fcn.004277a3
and dword [esp + 0x38], 0
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0042741d
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.00402e4f
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00460e52
mov esp, ebp
pop ebp
ret
Function at 0x42f2e3
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 8
mov edi, ecx
call fcn.00432259
mov edx, eax
xor esi, esi
pop ecx
test edx, edx
je 0x42f2fe
mov dword [edx], esi
mov dword [edx + 4], esi
jmp 0x42f300
mov edx, esi
mov eax, dword [edi + 0x98]
push esi
push esi
push edx
push 0x40926c
mov dword [edx], eax
mov eax, dword [edi + 0x20]
push esi
push esi
mov dword [edx + 4], eax
call fcn.00461699
push 8
call fcn.00432259
mov ecx, eax
add esp, 0x1c
test ecx, ecx
je 0x42f334
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x42f336
mov ecx, esi
mov eax, dword [edi + 0x98]
push esi
push esi
push ecx
push 0x409244
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
push esi
push esi
mov dword [ecx + 4], eax
call fcn.00461699
add esp, 0x18
pop edi
pop esi
ret
Function at 0x417a99
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00486b10
sub esp, 4
call fcn.00486830
mov dword [ebp - 0x18], 0
call fcn.00486a20
call fcn.00486a20
call sub.KERNEL32.dll_GetUserDefaultLangID
mov dword [ebp - 0x10], eax
call fcn.00486a40
mov ecx, eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00484db0
sub esp, 0xc
call fcn.00486a40
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00486790
sub esp, 8
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00484f20
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jne 0x417b59
call fcn.00486a20
mov dword [esp], 0xd6dd54
call fcn.00486870
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00486870
sub esp, 4
call fcn.00486a40
mov dword [esp + 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], eax
call fcn.00486790
sub esp, 8
jmp 0x417b5a
nop
call fcn.00486a20
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00486870
sub esp, 4
call fcn.00486ae0
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004869a0
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x43812b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.00486830
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, str.Kernel32
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleW
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, str.GetCurrentProcessId
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateRemoteThread
sub esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4381da
mov dword [ebp - 0xc], 0
jmp 0x43822a
nop
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeThread
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x438e61
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.00486830
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call fcn.004868c0
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.004868c0
sub esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCreateKeyExW
sub esp, 0x24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x438f57
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ADVAPI32.dll_RegSetValueExW
sub esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCloseKey
sub esp, 4
mov dword [ebp - 0x20], eax
jmp 0x438f58
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004869a0
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004869a0
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 0x18
Function at 0x47567e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push edi
xor edi, edi
test eax, eax
je 0x475850
cmp word [eax], di
je 0x475850
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x47584c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x475842
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00491851
mov ebx, eax
test ebx, ebx
je 0x475840
cmp ebp, 0xffffffff
jne 0x4756f0
push 2
pop eax
jmp 0x4756f2
mov eax, ebp
push esi
push eax
push dword [esp + 0x20]
call fcn.00491fd2
mov esi, eax
test esi, esi
je 0x475836
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x475712
mov eax, esi
mov dword [esi + 0x30], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x20]
add eax, 8
mov dword [esi + 0x2c], ebx
push eax
push edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x14], edi
push dword [0xd8fb84]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x47575c
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
mov dword [eax], edi
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp ebp, 0xffffffff
je 0x475768
mov dword [esi + 0x34], 1
push esi
push ebx
call fcn.004892e0
mov edx, dword [esp + 0x28]
mov ebp, 0x4000
pop ecx
pop ecx
mov ecx, edi
mov dword [esp + 0x1c], ecx
lea eax, [ecx + ebp]
cmp eax, edx
jle 0x47578b
mov ebp, edx
sub ebp, ecx
push ebp
push ebx
call fcn.00489300
mov dword [esp + 0x2c], eax
pop ecx
pop ecx
test eax, eax
je 0x475825
push edi
lea ecx, [esp + 0x14]
push ecx
push ebp
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
jne 0x475815
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jne 0x4757de
push ecx
push dword [esp + 0x28]
call fcn.00491939
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
jl 0x4757e8
push 1
jmp 0x4757e9
push edi
push ecx
push ebx
call fcn.00489560
add esp, 0xc
test eax, eax
je 0x475809
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
cmp ecx, edx
jl 0x475780
jmp 0x475833
push ebx
call fcn.00489680
pop ecx
mov dword [esi + 0x18], eax
jmp 0x47582c
mov dword [esi + 0x18], 0x100
mov dword [esi + 0x24], str.file_read_error
jmp 0x475833
mov dword [esi + 0x18], 1
push ebx
push esi
call fcn.004918fb
mov dword [esi + 0x2c], edi
push ebx
call fcn.00489750
pop ecx
mov edi, esi
pop esi
pop ebp
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x475852
xor eax, eax
pop edi
pop ecx
pop ecx
ret 0xc
Function at 0x47589c
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x475937
push edi
push 0xd90380
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0xd90370]
test edi, edi
je 0x47590a
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x475903
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0xd90370
call fcn.00492067
pop ecx
pop ecx
jmp 0x475905
mov edi, dword [edi]
test edi, edi
jne 0x4758d8
pop ebp
mov esi, dword [0xd8e6a0]
push 0x10
push 0xd90370
lea eax, [esi + 1]
mov dword [0xd8e6a0], eax
call fcn.00492038
pop ecx
pop ecx
push 0xd90380
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4760c6
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0xd903bc]
call fcn.0048657c
mov esi, eax
or ebp, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, dword [esp + 0x28]
mov ecx, eax
movzx edx, word [ecx]
test dx, dx
je 0x4761f9
mov eax, dword [esi]
mov esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop edi
movzx eax, si
cmp si, word [esp + 0x18]
jne 0x47612c
push 0x20
pop esi
add ecx, 2
movzx eax, word [ecx]
cmp ax, si
je 0x476121
mov dword [esp + 0x10], 1
cmp ax, di
jne 0x476166
add ecx, 2
mov edi, ecx
movzx eax, word [ecx]
mov esi, eax
test ax, ax
je 0x4761c4
push 0x22
mov edx, eax
pop ebx
movzx esi, dx
cmp dx, bx
je 0x4761c0
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
mov esi, eax
test ax, ax
jne 0x47614d
jmp 0x4761c0
test ax, ax
je 0x4761d4
push 0x22
pop ebx
push 0x20
mov edi, ecx
movzx eax, ax
pop ebp
movzx esi, ax
cmp ax, bp
je 0x4761bc
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
cmp ax, bx
jne 0x4761b1
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
je 0x4761b1
mov esi, eax
movzx edx, si
cmp si, bx
je 0x4761b1
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
mov edx, eax
test ax, ax
jne 0x47619a
movzx eax, dx
movzx esi, dx
test dx, dx
jne 0x476176
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, ecx
test si, si
je 0x4761ce
add ecx, 2
mov eax, dword [esp + 0x10]
jmp 0x4761d8
xor eax, eax
xor edi, edi
cmp dword [esp + 0x1c], ebp
jne 0x4761e2
test ebx, ebx
jne 0x476201
test eax, eax
je 0x4761eb
inc ebp
mov dword [esp + 0x14], ebp
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x476111
test ebx, ebx
jne 0x476215
mov eax, ebp
jmp 0x47621a
test edi, edi
je 0x476215
mov eax, dword [esp + 0x20]
sub edx, edi
sar edx, 1
mov dword [ebx], edx
inc dword [eax]
mov eax, edi
jmp 0x47621a
and dword [ebx], 0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4763f8
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x47644c
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47643a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x476446
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x47640b
jmp 0x47644a
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x477424
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x477377
push 0x10
push 0x2c
call fcn.00488ca5
push 0
push 0
push 8
mov dword [0xd90400], eax
call fcn.004865e7
cmp word [0xd903f8], 0
mov dword [0xd90408], eax
jne 0x4774fd
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0xd903f8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0xd90404], eax
test eax, eax
je 0x4774fd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0xd90404]
mov dword [0xd903e8], eax
call esi
push str.getnameinfo
push dword [0xd90404]
mov dword [0xd903ec], eax
call esi
push str.WSAStringToAddressA
push dword [0xd90404]
mov dword [0xd903f0], eax
call esi
cmp dword [0xd903e8], 0
mov dword [0xd903f4], eax
pop esi
je 0x4774fd
cmp dword [0xd903ec], 0
je 0x4774fd
cmp dword [0xd903f0], 0
je 0x4774fd
test eax, eax
je 0x4774fd
mov dword [0xd903fc], 1
add esp, 0x190
ret

Function at 0x477591
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x477617
push esi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x477616
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0xd8fb84]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x47760e
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x4775ff
push ebx
push edi
push dword [esp + 0x1c]
call fcn.004bab68
mov ebp, eax
push edi
push 0
push dword [0xd8fb84]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8

Function at 0x477bf0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0xd907f8], 0
jne 0x477c9d
push 0xd90418
push 0
mov dword [0xd907f8], 1
mov dword [0xd907fc], 0x40
call fcn.004c8e10
add esp, 8
test eax, eax
jne 0x477c9d
push 0x477aa0
push 0x40
push 0x68
call fcn.00488ca5
mov dword [0xd90410], eax
imul eax, dword [0xd907fc], 0x370
push eax
push 8
push dword [0xd8fb84]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xd90418
mov dword [0xd90800], eax
call fcn.004c9df0
push eax
mov dword [0xd90804], eax
call fcn.004c6a80
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x477b50
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x477c93
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xd90414], 1
mov eax, dword [0xd90410]
pop ecx
ret
Function at 0x478839
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x478871
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.004eac43
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x478962
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x478962
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x478990
test ebp, ebp
jle 0x478990
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x478990
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x478959
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x478903
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x478918
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x478990
cmp dword [edi + 0x10], ebx
je 0x47897c
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x478990
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.004ead4d
cmp dword [esp + 0x10], 0
je 0x4789aa
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x4789c2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
movzx esi, ax
push 2
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x4789e3
or esi, 2
push 4
call edi
bt ax, 0xf
jae 0x4789f1
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4789f7
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x1c]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov ebp, eax
call fcn.004eaafe
push eax
call fcn.0047ee14
push dword [0xd9082c]
mov dword [esp + 0x20], eax
call fcn.00488eef
mov ebx, eax
movsx ecx, si
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x478a6f
or esi, 2
push 0x11
call edi
bt ax, 0xf
jae 0x478a7d
or esi, 4
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
call fcn.004789c2
push 0x4789b2
push ebx
push dword [esp + 0x28]
mov dword [ebx + 8], eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x14], eax
movzx eax, word [esp + 0x3c]
push ebp
push 0x332c
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], eax
call fcn.004e9ef4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret