joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4283f8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004039c4
mov eax, dword [ebp - 8]
call fcn.004039c4
xor eax, eax
push ebp
push 0x428482
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x428465
mov eax, dword [ebp - 8]
call fcn.004039d4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x428467
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428489
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403618
ret

Function at 0x42876c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409b64
test eax, eax
je 0x4287fc
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x4287fc
jmp 0x4287f6
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x4287b2
push ebp
call fcn.00428690
pop ecx
jmp 0x4287fc
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4287f3
mov ebx, dword [ebp - 4]
add ebx, eax
jmp 0x4287ee
cmp edi, dword [ebx]
jne 0x4287eb
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4287eb
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x4287c0
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x4287a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ab48
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x42abce
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.004284d4
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.00407e78
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x42abe4
call fcn.0040385c
mov eax, dword [ebp - 0x24]
call fcn.004039d4
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateMutexA
mov ebx, eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42abd5
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403618
ret

Function at 0x42e894
Capabilities:
Create thread

Disassembly:
cmp dword [0x44f408], 0
jne 0x42e912
xor eax, eax
call fcn.00409414
mov dword [0x44f408], eax
cmp dword [0x44f408], 0
je 0x42e912
mov eax, 0x42e728
xor ecx, ecx
xor edx, edx
call fcn.00409864
mov dword [0x44f40c], eax
push 0x44f400
push 0
push 0
push 0x42e768
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x44f404], eax
cmp dword [0x44f404], 0
je 0x42e912
push 0
push 0
push 0
mov ecx, 0x42e91c
mov edx, dword [0x44f404]
mov eax, dword [0x44f400]
call fcn.00428894
push 2
mov eax, dword [0x44f404]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x42e920
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x44f408], 0
je 0x42e99d
cmp dword [0x44f418], 0
je 0x42e944
mov eax, dword [0x44f418]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x44f418], eax
mov dword [0x44f414], 0xffffffff
mov eax, 0x42e728
xor ecx, ecx
xor edx, edx
call fcn.00409a68
push 0
mov eax, dword [0x44f404]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x44f404]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x44f400]
call fcn.00428894
xor eax, eax
mov dword [0x44f404], eax
xor eax, eax
mov dword [0x44f400], eax
xor eax, eax
mov dword [0x44f408], eax
ret
Function at 0x435f44
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039c4
xor eax, eax
push ebp
push 0x435fa1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004039d4
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x435f8b
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x435f8b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435fa8
lea eax, [ebp - 4]
call fcn.004035f4
ret
Function at 0x43667c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004039c4
xor eax, eax
push ebp
push 0x436701
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x4366db
mov eax, dword [ebp - 4]
call fcn.00403810
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x4366c1
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
call fcn.004039e0
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x4366eb
add esi, ebx
mov eax, dword [ebp - 4]
call fcn.00403810
cmp esi, eax
jl 0x4366a8
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436708
lea eax, [ebp - 4]
call fcn.004035f4
ret

Function at 0x436714
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039c4
xor eax, eax
push ebp
push 0x436781
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x436769
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x43676b
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436788
lea eax, [ebp - 4]
call fcn.004035f4
ret

Function at 0x436970
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404960
mov eax, dword [ebp - 8]
call fcn.004039c4
xor eax, eax
push ebp
push 0x436a4b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 8], 0
je 0x436a2d
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x436a2d
mov eax, dword [ebp - 8]
call fcn.004039d4
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x4369eb
mov eax, dword [ebp - 8]
call fcn.004039d4
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4369eb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x436a2d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov word [ebp - 0x18], 2
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x10]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x16], ax
mov dword [ebp - 0x14], edi
push 0x10
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi]
push eax
call sub.wsock32.dll_connect
inc eax
je 0x436a2d
mov bl, 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436a52
lea eax, [ebp - 8]
call fcn.004035f4
lea eax, [ebp - 4]
call fcn.00404900
ret
Function at 0x436ca4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffad8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x528], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004039c4
xor eax, eax
push ebp
push 0x436eee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.004035f4
mov bl, 1
mov dword [ebp - 0x524], 1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x20], 7
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea eax, [ebp - 0x524]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x436eb4
push 0
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_recv
mov edi, eax
lea edx, [ebp - 0x420]
lea eax, [ebp - 0x18]
mov ecx, edi
call fcn.004036d8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00403818
mov eax, dword [ebp - 0x14]
call fcn.00403810
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00403810
cmp esi, eax
setg byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x436eb8
mov eax, dword [ebp - 8]
call fcn.00403810
mov esi, eax
test esi, esi
jle 0x436da7
mov edi, 1
mov eax, dword [ebp - 0x14]
mov al, byte [eax + edi - 1]
mov edx, dword [ebp - 8]
cmp al, byte [edx + edi - 1]
je 0x436da3
mov byte [ebp - 0xd], 0
jmp 0x436da7
inc edi
dec esi
jne 0x436d8d
cmp byte [ebp - 0xd], 0
je 0x436eb8
mov eax, dword [ebp - 0x14]
call fcn.00403810
mov esi, eax
test esi, esi
jle 0x436ddf
mov edi, 1
mov eax, dword [ebp - 0x14]
cmp byte [eax + edi - 1], 0x3d
jne 0x436ddb
lea eax, [ebp - 0x14]
call fcn.004039e0
mov byte [eax + edi - 1], 0x20
inc edi
dec esi
jne 0x436dc4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 3], 0x2d
setne bl
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0x14]
mov eax, 0x436f08
call fcn.00407448
mov edi, eax
test edi, edi
jne 0x436e0b
mov edi, 0x7ffffffe
cmp dword [ebp - 0xc], 0
je 0x436e8d
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x436e8d
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 0x14]
call fcn.00403a14
mov edx, dword [ebp - 0x18]
mov eax, 0x436f14
call fcn.004077b4
test al, al
je 0x436e8d
push 0x7fffffff
lea eax, [ebp - 0x528]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0x18]
call fcn.00403a14
lea eax, [ebp - 0x528]
mov edx, 0x436f24
call fcn.00403818
mov edx, dword [ebp - 0x528]
mov ecx, 1
mov eax, 0x436f30
call fcn.0040749c
test eax, eax
jle 0x436e8d
mov eax, dword [ebp - 0xc]
mov byte [eax], 1
lea ecx, [edi + 1]
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.00403a54
test bl, bl
jne 0x436eb8
mov eax, dword [ebp - 0x14]
call fcn.00403810
cmp eax, 4
jge 0x436ddf
jmp 0x436eb8
mov byte [ebp - 0xd], 0
test bl, bl
je 0x436ce5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436ef5
lea eax, [ebp - 0x528]
call fcn.004035f4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403618
lea eax, [ebp - 8]
call fcn.004035f4
ret
Function at 0x436fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004039c4
mov eax, dword [ebp - 0xc]
call fcn.004039c4
mov eax, dword [ebp + 8]
call fcn.004039c4
xor eax, eax
push ebp
push 0x4371e9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x4371b6
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jbe 0x4371b0
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x19], 1
test ebx, ebx
jbe 0x4371a5
cmp ebx, 0x39
jbe 0x43707d
mov esi, 0x39
jmp 0x43707f
mov esi, ebx
push 0
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x59]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x437099
cmp esi, dword [ebp - 0x14]
je 0x4370b5
cmp byte [ebp - 0x19], 0
jne 0x4370ac
mov edx, 0x437204
mov eax, dword [ebp - 4]
call fcn.0043667c
mov byte [ebp - 0xd], 0
jmp 0x4371a5
lea ecx, [ebp - 0x60]
mov edx, 4
mov eax, dword [ebp - 8]
call fcn.004072a8
mov eax, dword [ebp - 0x60]
mov edx, 0x437210
call fcn.004073f4
test al, al
je 0x4370e5
lea eax, [ebp - 0x20]
mov edx, 0x437220
call fcn.0040368c
jmp 0x4370f2
lea eax, [ebp - 0x20]
mov edx, 0x437234
call fcn.0040368c
cmp byte [ebp - 0x19], 0
je 0x437155
push 0x437258
push dword [ebp - 0x20]
push 0x437294
push 0x4372a0
push dword [ebp - 0xc]
push 0x4372b0
push 0x437204
push 0x4372bc
push 0x437204
push 0x4372e8
push 0x437314
push dword [ebp - 0xc]
push 0x4372b0
push 0x437204
push 0x437204
lea eax, [ebp - 0x60]
mov edx, 0xf
call fcn.004038d0
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.0043667c
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x59]
mov edx, esi
call fcn.004159e0
lea eax, [ebp - 0x60]
mov edx, 0x437204
call fcn.00403818
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.0043667c
sub ebx, esi
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x18]
sub eax, ebx
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test ebx, ebx
ja 0x437071
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4371f0
lea eax, [ebp - 0x60]
call fcn.004035f4
lea eax, [ebp - 0x20]
call fcn.004035f4
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403618
lea eax, [ebp + 8]
call fcn.004035f4
ret
Function at 0x437ae4
Capabilities:
Create process on windows
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffae8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1518], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x437c8f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x1514], 1
mov dword [ebp - 0x1510], esi
mov eax, dword [0x44ec6c]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x1514]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x437c6e
push 0
push 0x1400
lea eax, [ebp - 0x140d]
push eax
push esi
call sub.wsock32.dll_recv
mov ecx, eax
lea edx, [ebp - 0x140d]
lea eax, [ebp - 4]
call fcn.004036d8
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040826c
mov eax, dword [ebp - 0x1518]
mov edx, 0x437ca8
call fcn.00403920
jne 0x437bad
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.00437ae4
pop ecx
mov ebx, eax
jmp 0x437c6e
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040826c
mov eax, dword [ebp - 0x1518]
mov edx, 0x437cb4
call fcn.00403920
jne 0x437c45
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x437cc0
call fcn.0040749c
mov esi, eax
test esi, esi
jle 0x437c6e
push 0x7fffffff
lea ecx, [esi + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x437cd4
call fcn.00407448
test eax, eax
jle 0x437c6e
lea edx, [ebp - 4]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.00403a54
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00403a54
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
jmp 0x437c6e
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040826c
mov eax, dword [ebp - 0x1518]
mov edx, 0x437ce0
call fcn.00403920
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437c96
lea eax, [ebp - 0x1518]
call fcn.004035f4
lea eax, [ebp - 4]
call fcn.004035f4
ret
Function at 0x437ce4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004039c4
mov eax, dword [ebp - 0xc]
call fcn.004039c4
mov eax, dword [ebp + 8]
call fcn.004039c4
xor eax, eax
push ebp
push 0x437e6f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
setne bl
test bl, bl
je 0x437e3f
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
test edi, edi
jbe 0x437e36
mov dword [ebp - 0x18], edi
push 0x437e8c
push dword [ebp + 8]
push 0x437ee4
push dword [ebp - 0xc]
push 0x437efc
push 0x437f08
push 0x437f14
push 0x437f08
push 0x437f08
lea eax, [ebp - 0x20]
mov edx, 9
call fcn.004038d0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0043667c
lea eax, [ebp - 0x1c]
mov edx, 0x400
call fcn.00403b40
jmp 0x437e23
cmp edi, 0x400
jbe 0x437dca
mov esi, 0x400
jmp 0x437dcc
mov esi, edi
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.00403b40
push 0
lea eax, [ebp - 0x14]
push eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x437df3
cmp esi, dword [ebp - 0x14]
je 0x437df7
xor ebx, ebx
jmp 0x437e2b
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0043667c
mov ebx, eax
sub edi, esi
mov eax, dword [ebp - 0x18]
sub eax, edi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x18]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test bl, bl
je 0x437e2b
test edi, edi
ja 0x437dbb
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437e76
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403618
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403618
lea eax, [ebp + 8]
call fcn.004035f4
ret
Function at 0x438ba4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004039c4
xor eax, eax
push ebp
push 0x438c6b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00427e9c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.0040368c
cmp dword [ebp - 4], 0
je 0x438c4e
mov eax, dword [ebp - 4]
call fcn.00403810
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x438c0e
mov eax, dword [ebp - 4]
call fcn.00403810
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00403a54
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x438c4a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00438ba4
pop ecx
test al, al
je 0x438c46
push 0
mov eax, dword [ebp - 4]
call fcn.004039d4
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x438c4a
xor ebx, ebx
jmp 0x438c50
mov bl, 1
jmp 0x438c50
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438c72
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403618
ret
Function at 0x43a584
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
xor eax, eax
push ebp
push 0x43a6a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
mov edx, 0x44
call fcn.00405b9c
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call sub.kernel32.dll_GetCommandLineA_1
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x43a67c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.004284d4
lea eax, [ebp - 0x7c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x6c]
call fcn.00407e78
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x43a6bc
call fcn.0040385c
mov eax, dword [ebp - 0x78]
call fcn.004039d4
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x43a673
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebx], eax
push 2
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x74]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x44ecf0
mov ecx, 0x50
call fcn.004026e8
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_ResumeThread
push 2
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a6ab
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00403618
ret
Function at 0x440bc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov ebx, eax
lea esi, [ebp - 0x1c]
test bl, bl
setne al
push eax
cmp bl, 2
sete al
push eax
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov eax, dword [0x43a750]
mov dl, 1
call fcn.0043f2f0
mov edi, eax
jmp 0x440cab
cmp dword [esi + 4], 0x100
jne 0x440c20
cmp dword [esi + 8], 0x1b
jne 0x440c20
mov eax, dword [edi + 0x2c]
mov dword [esi], eax
mov dword [esi + 4], 0x10
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x440c8a
cmp dword [esi + 4], 0x100
jne 0x440c8a
mov eax, dword [esi + 8]
cmp eax, dword [0x44ec70]
jne 0x440c8a
push 0x10
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x440c8a
push 0x11
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x440c8a
push 0x12
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x440c8a
mov eax, ebx
test al, al
je 0x440c71
sub al, 2
jne 0x440c8a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
jne 0x440c8a
mov eax, edi
call fcn.0043b23c
mov eax, dword [esi]
cmp eax, dword [edi + 0x34]
je 0x440c9f
push esi
mov eax, dword [edi + 0x2c]
push eax
call sub.user32.dll_IsDialogMessageA
test eax, eax
jne 0x440cab
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
mov eax, dword [edi + 0x2c]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x440cce
push 0
push 0
push 0
push esi
call sub.user32.dll_GetMessageA
inc eax
cmp eax, 1
ja 0x440bf9
test bl, bl
je 0x440cd7
sub bl, 2
jne 0x440cdd
cmp byte [edi + 0x5d], 0
jne 0x440ce1
xor eax, eax
jmp 0x440ce3
mov al, 1
mov ebx, eax
mov eax, edi
call fcn.00402a84
test bl, bl
je 0x440d35
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebp + 8]
push eax
xor edx, edx
xor eax, eax
call fcn.00440bc4
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret