joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49dd5c
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 0x49ddb6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0049dd4c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0048d304
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0048cf04
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 0x49ddbd
lea eax, [ebp - 4]
call fcn.004048d4
ret

Function at 0x4acc14
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4acc42
mov eax, ebx
call fcn.004ad6c8
cmp dword [ebx + 0x40], 0
je 0x4acc3b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4accb3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4acca5
cmp dword [ebx + 8], 0
je 0x4acc64
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4acc76
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4acca5
cmp dword [ebx + 8], 0
je 0x4acc57
cmp eax, 3
je 0x4acc89
dec eax
jne 0x4acc57
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4acc57
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4acc57
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4accd1
cmp dword [ebx + 0x14], 0xcc
je 0x4accd1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004accdc
pop ebx
ret

Function at 0x4bdac0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00407bb8
ret

Function at 0x4bfd48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4bfd80]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bfd5e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bfd6d
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4bfd7c
or bl, 2
mov eax, ebx
pop ebx
ret
Function at 0x4c9434
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
mov eax, dword [ebp - 8]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4c94ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, dword [ebp - 8]
call fcn.00404d94
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x4c950c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404d94
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x4b
push ebx
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
push ebx
call sub.wininet.dll_InternetSetOptionA
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9506
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048f8
ret

Function at 0x4c9514
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
mov eax, dword [ebp - 8]
call fcn.00404d84
mov eax, dword [ebp - 0xc]
call fcn.00404d84
mov eax, dword [ebp + 0xc]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4c9626
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x14
mov dword [ebp - 0x20], 0x14
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x38], 2
mov eax, dword [ebp - 8]
call fcn.00404d94
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 3
mov eax, 0x4c9638
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404d94
push eax
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00404d94
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404d94
push eax
mov ax, word [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d94
push eax
push ebx
call sub.wininet.dll_InternetConnectA
push esi
lea eax, [ebp - 0x20]
push eax
push 0x4b
push ebx
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
push ebx
call sub.wininet.dll_InternetSetOptionA
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c962d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048f8
lea eax, [ebp + 0xc]
call fcn.004048d4
ret
Function at 0x4cb204
Capabilities:
Create http request

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov esi, 0x14
mov dword [esp], 0x14
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], 3
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 3
mov dword [esp + 0x20], 2
mov eax, 0x4cb298
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 3
mov eax, 0x4cb29c
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], eax
push 0
push 0
push 0
push 1
push 0x4cb298
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push esi
lea eax, [esp + 4]
push eax
push 0x4b
push ebx
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
push ebx
call sub.wininet.dll_InternetSetOptionA
push ebx
call sub.wininet.dll_InternetCloseHandle
add esp, 0x38
pop esi
pop ebx
ret

Function at 0x4cb3ec
Capabilities:
Get geographical location

Disassembly:
add esp, 0xfffffff4
mov eax, esp
xor ecx, ecx
mov edx, 0xa
call fcn.00403238
push 0xa
lea eax, [esp + 4]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp byte [esp], 0x31
jne 0x4cb41a
mov al, 1
jmp 0x4cb41c
xor eax, eax
add esp, 0xc
ret
Function at 0x4d332c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4d345d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004c2e78
mov ebx, eax
test ebx, ebx
je 0x4d3437
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.004c2e98
jmp 0x4d3423
lea edx, [ebp - 0x138]
mov eax, dword [0x4e5f4c]
mov eax, dword [eax]
call fcn.004808e8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409a88
push dword [ebp - 0x134]
push 0x4d3474
lea eax, [ebp - 0x13c]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404b44
push dword [ebp - 0x13c]
lea eax, [ebp - 0x130]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.00404ce0
jne 0x4d3416
mov eax, dword [ebp - 0x124]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.004c2eb8
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d3391
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3464
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.004048f8
lea eax, [ebp - 4]
call fcn.004048d4
ret
Function at 0x4d3478
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4d3480
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x4d36a4
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402b4c
test eax, eax
jle 0x4d3501
lea edx, [ebp - 0xc]
mov eax, 1
call fcn.00402bac
mov eax, dword [ebp - 0xc]
call fcn.004099e0
test al, al
je 0x4d3501
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.00402bac
mov eax, dword [ebp - 0x10]
call fcn.004d332c
push 0x30
push 0x4d36b4
push 0x4d36bc
push 0
call sub.user32.dll_MessageBoxA_1
push 0xbb8
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402bac
mov eax, dword [ebp - 0x14]
call fcn.004099f0
lea edx, [ebp - 0x1c]
mov eax, dword [0x4e5f4c]
mov eax, dword [eax]
call fcn.004808e8
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409a88
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4d36e0
call fcn.00404be0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x438ea0]
call fcn.00438f50
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, 0x4d36fc
mov edx, 0x4d370c
mov eax, ebx
mov esi, dword [eax]
call dword [esi]
mov eax, ebx
call fcn.00403ac0
lea edx, [ebp - 0x28]
mov eax, dword [0x4e5f4c]
mov eax, dword [eax]
call fcn.004808e8
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00409a88
push dword [ebp - 0x24]
push 0x4d3720
push dword [ebp - 8]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x20]
call fcn.004099e0
test al, al
je 0x4d3689
lea edx, [ebp - 0x34]
mov eax, dword [0x4e5f4c]
mov eax, dword [eax]
call fcn.004808e8
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00409a88
push dword [ebp - 0x30]
push 0x4d3720
push dword [ebp - 8]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x4e5f4c]
mov eax, dword [eax]
call fcn.004808e8
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00404ce0
je 0x4d3689
push 1
push 0
push 0x4d372c
lea edx, [ebp - 0x40]
mov eax, dword [0x4e5f4c]
mov eax, dword [eax]
call fcn.004808e8
push dword [ebp - 0x40]
push 0x4d372c
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x3c]
call fcn.00404d94
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [0x4e5f4c]
mov eax, dword [eax]
call fcn.004808e8
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00409a88
push dword [ebp - 0x48]
push 0x4d3720
push dword [ebp - 8]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404c54
mov eax, dword [ebp - 0x44]
call fcn.00404d94
push eax
push 0x4d3730
mov eax, dword [0x4e8104]
call fcn.00466bc4
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [ebp - 4]
call fcn.004099f0
mov eax, dword [0x4e5f4c]
mov eax, dword [eax]
call fcn.004803c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d36ab
lea eax, [ebp - 0x4c]
mov edx, 0x13
call fcn.004048f8
ret
Function at 0x4d8824
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4d888c
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x1505
mov eax, dword [ebp - 4]
call fcn.00404b94
test eax, eax
jle 0x4d8870
mov edx, 1
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx - 1]
mov esi, ebx
shl esi, 5
add ebx, esi
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4d8859
and ebx, 0x7fffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8893
lea eax, [ebp - 4]
call fcn.004048d4
ret

Function at 0x4e1b74
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4e1cc6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x4e1c9e
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00409ca4
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4e1c87
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4e1c81
mov ebx, dword [edx]
test ebx, ebx
je 0x4e1c7b
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x4e1ce0
call fcn.0040a2e8
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404928
mov byte [ebp - 5], 1
jmp 0x4e1c8b
mov byte [ebp - 5], 0
jmp 0x4e1c8b
mov byte [ebp - 5], 0
jmp 0x4e1c8b
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1ca5
call sub.wsock32.dll_WSACleanup
ret
Function at 0x4e1cec
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4e1cf5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
mov eax, dword [ebp - 8]
call fcn.00404d84
mov eax, dword [ebp - 0xc]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4e1eac
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x1c]
mov edx, 0x4e1ec8
call fcn.0040496c
lea eax, [ebp - 0x14]
mov edx, 0x4e1ee4
call fcn.0040496c
lea eax, [ebp - 0x24]
mov edx, 0x4e1efc
call fcn.0040496c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004e1b74
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.004e1b74
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.004e1b74
cmp dword [ebp - 4], 0
je 0x4e1d95
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00404ce0
je 0x4e1d95
mov byte [ebp - 0xd], 0
cmp dword [ebp - 8], 0
je 0x4e1dac
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00404ce0
je 0x4e1dac
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0xc], 0
je 0x4e1dc3
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.00404ce0
je 0x4e1dc3
mov byte [ebp - 0xd], 0
cmp byte [ebp + 8], 0
je 0x4e1e84
mov eax, 0xff
call fcn.00402818
mov ebx, eax
mov edx, 0xff
mov eax, ebx
call fcn.00407bb8
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00409df8
mov eax, ebx
call fcn.00402838
xor eax, eax
push ebp
push 0x4e1e7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x418344]
call fcn.00403a90
mov ebx, eax
mov edx, 0x4e1f14
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x4e1f30
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x30]
mov ecx, 0x4e1f54
mov edx, dword [ebp - 0x2c]
call fcn.00404be0
push 0x20
mov eax, dword [ebp - 0x30]
call fcn.00404d94
mov esi, eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov edx, dword [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403ac0
push 0x20
push esi
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e1e84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1eb3
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.004048f8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048f8
ret
Function at 0x403190
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4031cc
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4031ec
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004056ac
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4034c0
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.0040543c
test esi, esi
jne 0x4034f6
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.0040552c
jmp 0x403514
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033c4
mov edi, eax
test esi, esi
je 0x403514
cmp dword [ebx], 0
je 0x403514
dec esi
jmp 0x4034fd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404354
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c7024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4043ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043cc
xor eax, eax
push ebp
push 0x4043c5
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 0x404408
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 0x4043cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4c7024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c7024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405208
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55304c], 0
je 0x405269
cmp word [0x553220], 0xd7b2
jne 0x405231
cmp dword [0x553228], 0
jbe 0x405231
mov eax, 0x55321c
call dword [0x553238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x405290
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c7030], 0
jne 0x405285
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c7038], 0
je 0x4053e6
mov edx, esi
mov eax, ebx
call dword [0x4c7038]
jmp 0x4053f5
mov eax, 8
call fcn.00402f88
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405388
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406bf4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c77
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e40
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406d00
xor eax, eax
push ebp
push 0x406cf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406a30
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406cde
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406e60
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406cde
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d00
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406e1a
cmp byte [ebp - 0xd], 0
jne 0x406d47
cmp byte [ebp - 0x12], 0
je 0x406e1a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406d60
dec ebx
cmp byte [ebx], 0x2e
je 0x406d6f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406d5f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406e1a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406dac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406e1a
cmp byte [ebp - 0xd], 0
je 0x406e1a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406e1a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret