joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453748
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f78
xor eax, eax
push ebp
push 0x4537e0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408d68
mov eax, dword [ebp - 8]
call fcn.00403f88
mov esi, eax
push 2
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403f88
push eax
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push ebx
call sub.advapi32.dll_CreateServiceA
push eax
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4537e7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b68
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x204], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453d23
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x453ced
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x200]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00403b44
push 0x65
lea eax, [ebp - 0x6d]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x6d]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x453caf
pop dword fs:[0]
add esp, 8
jmp 0x453d02
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x453cd7
push dword [edi]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x204]
call fcn.00409094
mov edx, dword [ebp - 0x204]
lea eax, [ebp - 8]
call fcn.00403dcc
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x453cb6
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x453cf7
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453d2a
lea eax, [ebp - 0x204]
call fcn.00403b44
lea eax, [ebp - 8]
call fcn.00403b44
ret

Function at 0x454cd8
Capabilities:
Terminate process

Disassembly:
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
test eax, eax
je 0x454cee
push 0
push eax
call sub.kernel32.dll_TerminateProcess
ret
Function at 0x4550a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4551d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40d398]
call fcn.00402e08
mov esi, eax
mov dl, 1
mov eax, dword [0x455c30]
call fcn.00402e08
mov edi, eax
lea edx, [ebp - 0xc]
mov eax, dword [0x4589e4]
mov eax, dword [eax]
call fcn.0044649c
mov ebx, 0x44
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00403cec
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 0x4551f0
call fcn.00403e10
mov eax, dword [ebp - 4]
call fcn.00403f88
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4551a6
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x40]
lea eax, [ebp - 8]
mov ecx, 0x4551fc
mov edx, dword [ebp - 4]
call fcn.00403e10
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.00455d90
lea eax, [ebp - 0x10]
call fcn.00453e64
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00455c8c
mov edx, 0x455210
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, 0x455224
call fcn.00403e10
mov edx, dword [ebp - 0x18]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0x1c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0045617c
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00408c74
inc ebx
cmp ebx, 0x46
jne 0x4550f5
mov eax, esi
call fcn.00402e38
mov eax, edi
call fcn.00402e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4551e0
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00403b68
ret
Function at 0x455e14
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f78
xor eax, eax
push ebp
push 0x455f8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4496d8]
call fcn.00402e08
mov ebx, eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403bdc
lea eax, [ebp - 0x14c]
push eax
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0044972c
mov eax, dword [ebp - 0x14c]
mov edx, 0x455fa4
call fcn.00403ed4
je 0x455ebe
push dword [ebp - 4]
push 0x455fa4
push 0x455fb0
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403e84
lea eax, [ebp - 8]
mov ecx, 0x455fa4
mov edx, dword [ebp - 4]
call fcn.00403e10
jmp 0x455ecb
lea eax, [ebp - 4]
mov edx, 0x455fb0
call fcn.00403dcc
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
call fcn.00403f88
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x455f63
mov eax, dword [ebp - 0x148]
add eax, 0xfffffff0
sub eax, 8
jb 0x455efd
add eax, 0xffffffe8
sub eax, 8
jae 0x455f4c
lea eax, [ebp - 0x11c]
cmp eax, 0x2e
je 0x455f4c
lea eax, [ebp - 0x11c]
cmp eax, 0x455fb4
je 0x455f4c
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403d74
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x150]
mov edx, dword [ebp - 8]
call fcn.00403e10
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x455ee7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f95
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00403b68
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b68
ret

Function at 0x455fb8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x45602e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x43
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403cec
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x456044
call fcn.00403e10
mov eax, dword [ebp - 4]
call fcn.00403f88
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x45600d
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00455e14
inc ebx
cmp ebx, 0x57
jne 0x455fd6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456035
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b68
ret
Function at 0x456320
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x456328
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4564f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40d398]
call fcn.00402e08
mov esi, eax
mov dword [ebp - 0x10], 1
mov ebx, 0x43
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00403cec
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x456510
call fcn.00403e10
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00403cec
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 0x45651c
call fcn.00403e10
mov eax, dword [ebp - 4]
call fcn.00403f88
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4564c5
mov eax, dword [0x45891c]
mov eax, dword [eax]
mov edx, 0x456528
call fcn.00403ed4
jne 0x456446
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x40]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00455e14
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4564c5
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4564c5
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00408aa8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x456534
call fcn.00403e10
mov edx, dword [ebp - 0x24]
pop eax
call fcn.0045670c
inc dword [ebp - 0x10]
mov eax, dword [0x4589e4]
mov eax, dword [eax]
call fcn.00445e28
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x4563f8
jmp 0x4564c5
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x40]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00455e14
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4564c5
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4564c5
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.00408aa8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x456534
call fcn.00403e10
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00456570
inc dword [ebp - 0x10]
mov eax, dword [0x4589e4]
mov eax, dword [eax]
call fcn.00445e28
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x456479
inc ebx
cmp ebx, 0x57
jne 0x45635b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4564fe
lea eax, [ebp - 0x34]
mov edx, 8
call fcn.00403b68
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b68
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41ce90
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cec1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cea9
add dl, dl
jne 0x41cecc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf1d
xor eax, eax
add dl, dl
jne 0x41ced9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfba
add dl, dl
jne 0x41cee8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cef3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cefe
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf09
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf13
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41ceb8
mov eax, 1
add dl, dl
jne 0x41cf2b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf36
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf22
sub eax, ebx
mov ebx, 1
jne 0x41cf69
mov ecx, 1
add dl, dl
jne 0x41cf4f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf5a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf46
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41ceb8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf8b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf77
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41ceb8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cfdb
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 0x41ceb8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e554
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add edx, edx
inc edx
test edx, edx
js 0x41e570
mov ecx, dword [eax + edx*4]
dec edx
push ecx
jns 0x41e569
mov dword [ebp + 0x10], esp
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea ebx, [ecx + 1]
mov eax, ebx
cdq
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ebx, ebx
jle 0x41e5aa
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp ebx, 1
jle 0x41e5d1
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp ebx, 2
jle 0x41e5f8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp ebx, 3
jle 0x41e61f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24], eax
sub dword [ebp - 0x30], 1
sbb dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [esi + 0x20]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
xor eax, eax
mov dword [ebp - 8], eax
mov word [ebp - 2], 0
mov word [ebp - 2], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call fcn.0041e65f

Function at 0x41e6f4
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 8], 0
je 0x41e765
cmp dword [ebp + 0x10], 0
jne 0x41e70a
cmp dword [ebp + 0xc], 0
je 0x41e765
cmp dword [ebp + 0x14], 0
je 0x41e765
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x33
call fcn.0041e725
pop ecx
pop ecx
pop ebp
ret

Function at 0x41e76c
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor ecx, ecx
cmp dword [ebp + 8], 0
je 0x41e7f0
cmp dword [ebp + 0x10], 0
jne 0x41e784
cmp dword [ebp + 0xc], 0
je 0x41e7f0
cmp dword [ebp + 0x14], 0
je 0x41e7f0
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0x33
call fcn.0041e7a3
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x41e7f8
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x33
call fcn.0041e813
Function at 0x41efdc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x8394ca
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f02b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f04a
mov ecx, edx
add ecx, ebx
jmp 0x41f04a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f04a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f0bc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f0a5
test esi, esi
jbe 0x41f0bc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f097
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f0bc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f074
jmp 0x41f0bc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f0bc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8394d1
ret
Function at 0x4201e8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x83a803
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420223
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42023c
lea eax, [ebp - 0x10]
mov edx, dword [0x85630c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42024f
lea eax, [ebp - 0x10]
mov edx, dword [0x85630c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42025b
adc edx, 0
mov edx, dword [edx*4 + 0x855154]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4203d5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4203c8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4203c8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420366
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420366
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420366
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420366
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4203c8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4203c8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4203ed
inc ebx
cmp ebx, 0x19
jne 0x420215
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x83a80a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40515c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40519e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4051a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4051c9
mov al, byte [esp]
jmp 0x4051cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406850
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406898
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004067ec
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40689f
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406aa0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406b2e
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406aeb
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406b18
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406aff
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406b0e
lea edx, [ebp - 4]
call fcn.00406964
test ebx, ebx
je 0x406b0e
dec ebx
jmp 0x406af0
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b35
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406b3c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d30
add esp, 0x104
pop ebx
ret