joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d8f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x48d8f8
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48daad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x48dac4
call fcn.00404d2c
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
movzx ecx, byte [ebx + 0x30]
xor edx, edx
mov eax, dword [ebx + 0x1c]
call fcn.0048b1fc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x48dad0
call fcn.00464d70
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x48d973
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x48d9b4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
movzx ecx, byte [ebx + 0x30]
xor edx, edx
mov eax, dword [ebx + 0xc]
call fcn.0048b1fc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x48db08
call fcn.00464d70
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.00404ce0
mov eax, esi
mov edx, 0x48db20
call fcn.00404ce0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x48d9cc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x48da3a
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x48db2c
call fcn.00464d70
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.00404ce0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x48da03
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x48da2e
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x48db48
call fcn.00464d70
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.00404ce0
mov eax, esi
mov edx, 0x48db20
call fcn.00404ce0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x48da46
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x48da71
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x48db60
call fcn.00464d70
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.00404ce0
mov eax, esi
mov edx, 0x48db20
call fcn.00404ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dab4
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00404a38
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404a38
lea eax, [ebp - 4]
call fcn.00404a14
ret
Function at 0x4903b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x490412
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004903ac
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0048ea98
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0048e5d0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490419
lea eax, [ebp - 4]
call fcn.00404a14
ret

Function at 0x4941b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, dword [0x4932b4]
call fcn.00403c9c
test al, al
je 0x4942d1
mov edx, dword [ebx + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebx + 0x54]
mov eax, dword [esi + 0x54]
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [esi + 8]
mov edx, dword [ebx + 8]
call fcn.00404a68
lea eax, [esi + 0x10]
mov edx, dword [ebx + 0x10]
call fcn.00404a68
lea eax, [esi + 0x14]
mov edx, dword [ebx + 0x14]
call fcn.00404a68
lea eax, [esi + 0x18]
mov edx, dword [ebx + 0x18]
call fcn.00404a68
lea eax, [esi + 0x1c]
mov edx, dword [ebx + 0x1c]
call fcn.00404a68
lea eax, [esi + 0x20]
mov edx, dword [ebx + 0x20]
call fcn.00404a68
lea eax, [esi + 0x4c]
mov edx, dword [ebx + 0x4c]
call fcn.00404a68
lea eax, [esi + 0x50]
mov edx, dword [ebx + 0x50]
call fcn.00404a68
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x44], eax
lea eax, [esi + 0x48]
mov edx, dword [ebx + 0x48]
call fcn.00404a68
mov eax, dword [ebx + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x68]
mov edx, dword [ebx + 0x68]
call fcn.00404a68
mov eax, dword [ebx + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [ebx + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [ebx + 0x74]
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov edx, dword [ebx + 0x78]
call fcn.00404a68
movzx eax, byte [ebx + 0x7c]
mov byte [esi + 0x7c], al
lea eax, [esi + 0x80]
mov edx, dword [ebx + 0x80]
call fcn.00404a68
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
call fcn.0041994c
pop esi
pop ebx
ret
Function at 0x4af768
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x4af7a1
cmp dword [0x4b8678], 0
jne 0x4af794
push 0
mov eax, dword [0x4bc7f8]
push eax
mov eax, 0x4af71c
push eax
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b8678], eax
cmp dword [0x4b8678], 0
jne 0x4af7b3
xor eax, eax
jmp 0x4af7b8
mov eax, dword [0x4b8678]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x4b8678], eax
mov eax, 1
pop ebp
ret 4

Function at 0x4afe38
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc08
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x3f8], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aff49
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4171e8]
call fcn.00403ae0
mov dl, 1
mov eax, dword [0x42376c]
call fcn.0042383c
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.004238dc
lea eax, [ebp - 8]
push eax
push 0x4aff58
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x4afea3
mov esi, 0xfffffffe
jmp 0x4aff28
xor esi, esi
push 0x3e9
lea eax, [ebp - 0x3f1]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyA
lea edx, [ebp - 4]
lea eax, [ebp - 0x3f1]
call fcn.00409b8c
push 0x4aff80
push dword [ebp - 4]
push 0x4affac
lea eax, [ebp - 0x3f8]
mov edx, 3
call fcn.00404da8
mov edx, dword [ebp - 0x3f8]
mov eax, ebx
call fcn.00423940
test al, al
je 0x4aff23
mov edx, 0x4affbc
mov eax, ebx
call fcn.00423dd4
test al, al
je 0x4aff17
mov edx, 0x4affbc
mov eax, ebx
call fcn.00423d30
mov esi, eax
jmp 0x4aff1a
or esi, 0xffffffff
mov eax, ebx
call fcn.004238ac
jmp 0x4aff28
mov esi, 0xfffffffe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aff50
lea eax, [ebp - 0x3f8]
call fcn.00404a14
lea eax, [ebp - 4]
call fcn.00404a14
ret
Function at 0x4affcc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc08
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3f8], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b00f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x42376c]
call fcn.0042383c
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.004238dc
mov eax, esi
call fcn.00404a14
lea eax, [ebp - 8]
push eax
push 0x4b0100
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x4b003c
mov eax, esi
mov edx, 0x4b0128
call fcn.00404a68
jmp 0x4b00d1
xor edi, edi
push 0x3e9
lea eax, [ebp - 0x3f1]
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyA
lea edx, [ebp - 4]
lea eax, [ebp - 0x3f1]
call fcn.00409b8c
push 0x4b013c
push dword [ebp - 4]
push 0x4b0168
lea eax, [ebp - 0x3f8]
mov edx, 3
call fcn.00404da8
mov edx, dword [ebp - 0x3f8]
mov eax, ebx
call fcn.00423940
test al, al
je 0x4b00c5
mov edx, 0x4b0180
mov eax, ebx
call fcn.00423dd4
test al, al
je 0x4b00b0
mov ecx, esi
mov edx, 0x4b0180
mov eax, ebx
call fcn.00423cb8
jmp 0x4b00bc
mov eax, esi
mov edx, 0x4b0198
call fcn.00404a68
mov eax, ebx
call fcn.004238ac
jmp 0x4b00d1
mov eax, esi
mov edx, 0x4b0128
call fcn.00404a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b00f9
lea eax, [ebp - 0x3f8]
call fcn.00404a14
lea eax, [ebp - 4]
call fcn.00404a14
ret

Function at 0x4b0254
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd68
push ebx
xor edx, edx
mov dword [ebp - 0x298], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b0302
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x4b0299
mov eax, ebx
mov edx, 0x4b0318
call fcn.00404a68
jmp 0x4b02e4
push pe_nt_image_headers32
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x298]
call fcn.00404c0c
mov ecx, dword [ebp - 0x298]
mov eax, ebx
xor edx, edx
call fcn.00404d2c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0309
lea eax, [ebp - 0x298]
call fcn.00404a14
ret

Function at 0x4b0584
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebx
add esp, 0xfffffe30
mov ebx, eax
mov eax, ebx
call fcn.00404a14
lea eax, [esp + 0x40]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0x40
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov eax, ebx
mov edx, esp
mov ecx, 0x40
call fcn.00404c84
call sub.wsock32.dll_WSACleanup
add esp, 0x1d0
pop ebx
ret
Function at 0x4b05cc
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x4b05d4
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b07d9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x50]
mov eax, 0x4b07f0
call fcn.004ae7ec
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x18]
call fcn.00414ff4
push 0
push 0
push 0x4b0814
push 0x4b0828
push 0x4b082c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00410ae0
add esp, 0x1c
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x28]
call fcn.004150dc
push 0x20
push 0x4b084c
push 0x4b0858
push 0x4b0874
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00410ae0
add esp, 0x18
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x38]
call fcn.004150dc
push 0x4b0884
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00410ae0
add esp, 0xc
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x74]
call fcn.00414bb8
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 4]
mov ecx, 0x4b0890
call fcn.004065ec
mov eax, ebx
call fcn.00404a14
jmp 0x4b0730
push dword [ebx]
push 0x4b08a0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00410ae0
add esp, 0xc
lea edx, [ebp - 0x98]
lea eax, [ebp - 0x88]
call fcn.00413ecc
push dword [ebp - 0x88]
push 0x4b08b0
push 0x4b08b4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00410ae0
add esp, 0xc
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x9c]
call fcn.00413ecc
push dword [ebp - 0x9c]
push 0x4b08b0
mov eax, ebx
mov edx, 5
call fcn.00404da8
lea eax, [ebp - 0xbc]
call fcn.004159f0
lea edx, [ebp - 0xbc]
lea eax, [ebp - 0x48]
call fcn.004150dc
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4b06a1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b07e3
lea eax, [ebp - 0xbc]
mov edx, dword [0x4010e4]
mov ecx, 2
call fcn.00405594
lea eax, [ebp - 0x9c]
call fcn.00404a14
lea eax, [ebp - 0x98]
call fcn.00410ad8
lea eax, [ebp - 0x88]
call fcn.00404a14
lea eax, [ebp - 0x84]
call fcn.00410ad8
lea eax, [ebp - 0x74]
call fcn.004065a8
lea eax, [ebp - 0x70]
mov edx, dword [0x4010e4]
mov ecx, 2
call fcn.00405594
lea eax, [ebp - 0x50]
call fcn.004065a8
lea eax, [ebp - 0x48]
mov edx, dword [0x4010f4]
mov ecx, 4
call fcn.00405594
lea eax, [ebp - 4]
call fcn.004065a8
ret
Function at 0x4b0fc0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404e94
xor eax, eax
push ebp
push 0x4b10ab
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
push 0x2000000
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4b1000
call fcn.0040e984
xor eax, eax
push ebp
push 0x4b108e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404ea4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b1033
call fcn.0040e984
xor eax, eax
push ebp
push 0x4b1070
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x4b1059
call fcn.0040e984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1077
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x4b10b8
Capabilities:
Query service status

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, edx
xor esi, esi
push 0x2000000
push 0
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4b10ff
push 4
push edi
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x4b10f9
push esp
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b10f3
mov esi, dword [esp + 4]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41ff02
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x41ff11
pop dword [ebp - 0x50]
mov eax, 0x41ff11
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x9c6436d4
add dword [ebp - 0x60], 0xb1ee0e77
mov dword [ebp - 0x5c], 0x5c0a80f5
add dword [ebp - 0x5c], 0xd628cb50
mov dword [ebp - 0x58], 0xb4f91562
add dword [ebp - 0x58], 0x97532ecc
mov dword [ebp - 0x54], 0x18dc05af
sub dword [ebp - 0x54], 0x18dc05af
lea eax, [ebp - 0x60]
push eax
mov eax, 0x2202c2e9
add eax, 0xde3f6d8b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x536d4091
sub dword [ebp - 0x60], 0xdefad73b
mov dword [ebp - 0x5c], 0xa1d716cc
sub dword [ebp - 0x5c], 0x606ab557
mov dword [ebp - 0x58], 0x6337f205
add dword [ebp - 0x58], 0x377a67
mov dword [ebp - 0x54], 0x7e388cc0
sub dword [ebp - 0x54], 0x7e388cc0
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x3a77e345
add eax, 0xc5ca4ddf
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3c85f
push 0
call eax
mov ecx, 0xb6db6b7b
sub ecx, 0xb6db283b
xor ebx, ebx
add ebx, eax
mov edi, 0xe7ae2908
add edi, 0x18951af8
add edi, dword [ebp - 0x50]
mov edx, 0xeb4d6dfa
add edx, 0xf58683f1
xor dword [ebp - 0x3c], 0x984cc917
mov esi, dword [edi]
add dword [ebp - 0x44], 0x88b11a05
xor esi, edx
xor dword [ebp - 8], 0xf53bd110
mov dword [ebx], esi
sub dword [ebp - 8], 0x75bcda61
add ebx, 0x5a12c35f
sub ebx, 0x5a12c35b
add edi, 0xb33af13c
sub edi, 0xb33af138
loop 0x420030
add eax, 0xb839e10c
add eax, 0x47c71ec7
mov ebx, eax
add eax, 0x75576ae7
add eax, 0x8aa8951e
mov ecx, 0xa5cb4fbd
add ecx, 0x5a74b043
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0xefd738
Capabilities:
Encode data using xor

Disassembly:
jmp 0xefd742
pushal
call 0xefd748
pop ebp
sub ebp, 0x10
sub ebp, 0xafd738
jmp 0xefd75e
mov eax, 0xafd738
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bd
mov edx, 0x1104a786
xor byte [eax], dl
inc eax
dec ecx
jne 0xefd775
jmp 0xefd788
or eax, 0xba0f0d4b
xchg byte [esi + 0x7e470786], al
xchg byte [esi + 0x3e4b8586], al
add byte [esi - 0x51c3797a], 0x86
xchg byte [esi + 0x4e856471], al
or eax, 0x86868a07
xchg byte [ebp - 0x5d1df4bd], al
jp 0xefd7c2
and byte [edx + 0x7aa2e20b], 0xf
and byte [edx - 0x58f8b112], 0x86
out dx, al
jmp 0x8875e09a
Function at 0xc700b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c70200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc700d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc700c2
add dl, dl
jne 0xc700e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc70134
xor eax, eax
add dl, dl
jne 0xc700ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc701d5
add dl, dl
jne 0xc700fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc70108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc70113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc7011e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc7012a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc700cd
mov eax, 1
add dl, dl
jne 0xc70142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc7014d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc70139
sub eax, ebx
mov ebx, 1
jne 0xc70180
mov ecx, 1
add dl, dl
jne 0xc70166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc70171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc7015d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc700cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc70197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc701a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc7018e
cmp eax, 0x7d00
jae 0xc701c5
cmp eax, 0x500
jb 0xc701c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc700cd
cmp eax, 0x7f
ja 0xc701c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc700cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc701f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc700cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a94
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404510
test esi, esi
jne 0x402aca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404600
jmp 0x402ae8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402948
mov edi, eax
test esi, esi
je 0x402ae8
cmp dword [ebx], 0
je 0x402ae8
dec esi
jmp 0x402ad1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40307c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x472008], 0x8088405
inc edx
mov dword [ebx + 0x472008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x472024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036a8
xor eax, eax
push ebp
push 0x4036a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x472024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x472024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404394
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47404c], 0
je 0x4043f5
cmp word [0x474220], 0xd7b2
jne 0x4043bd
cmp dword [0x474228], 0
jbe 0x4043bd
mov eax, 0x47421c
call dword [0x474238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x472074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40441c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472034], 0
jne 0x404411
push 0
push 0x47206c
push 0x472074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret