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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x51c5eb
jmp 0x51c5f8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x51c600
jmp 0x51c608
jmp 0x51c6ba
xor eax, eax
push 0x51c697
push ebp
push 0x415370
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, 0
call fcn.0040d680
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x51c679
jmp 0x51c68c
cmp dword [ebp - 8], 0
jne 0x51c681
jmp 0x51c68c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x51c6ba
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x55e2b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
xor eax, eax
push fcn.0055e290
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x5f0950]
lea eax, [ebp - 0x10]
call fcn.0040a510
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a920
cmp dword [ebp - 0xc], 0
jg 0x55e30a
jmp 0x55e32c
mov eax, dword [ebp - 0xc]
lea eax, [eax + 1]
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x55e31d
mov eax, 0x5fe2f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
lea esi, [esi]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a920
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
call fcn.0040b280
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x55e355
mov edx, dword [edx - 4]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x55e361
mov eax, 0x5fe2f0
call fcn.00433460
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0055e290
mov esp, ebp
pop ebp
ret
Function at 0x55fb60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov edx, 0x5f1048
call fcn.0040ee90
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0055fb50
push ebp
push 0x414ff0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x34]
mov edx, 0
call fcn.00408a60
mov eax, dword [ebp - 0xc]
mov edx, fcn.004ec700
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov dx, 0
call fcn.004093c0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea eax, [eax + 0x30]
call fcn.00408a60
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.0055d880
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00560200
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
je 0x55fc65
jmp 0x55fc84
mov eax, dword [ebp - 4]
call fcn.0050fde0
test al, al
je 0x55fc73
jmp 0x55fc84
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0055fb50
mov esp, ebp
pop ebp
ret
Function at 0x57df20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
jne 0x57df48
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea esi, [esi]
cmp dword [ebp - 0xc], 0
je 0x57e016
mov esi, esi
xor eax, eax
push 0x57dff7
push ebp
push 0x415370
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040d680
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov edx, 1
mov eax, 0x5bf75c
mov ecx, 0x5bf75c
call dword [ecx + 0x9c]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, 0x57e200
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x2c], 0x14
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x30], 1
mov eax, dword [ebp - 0xc]
xor dl, dl
call fcn.0057e230
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x57dfec
cmp dword [ebp - 8], 0
je 0x57dfec
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
lea esi, [esi]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
jmp 0x57e016
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xfe1100
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0xfe5042], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0xfe5228
push 0xfe5290
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0xfe114b
xor eax, eax
jmp 0xfe1166
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10001b53
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 0x5a4d
push edi
mov edi, ecx
cmp word [edi], ax
jne 0x10001c71
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x10001c71
mov ecx, dword [eax + edi + 0x80]
test ecx, ecx
je 0x10001c71
mov eax, dword [eax + edi + 0x84]
test eax, eax
je 0x10001c71
push esi
lea esi, [ecx + edi]
add eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
cmp esi, eax
jae 0x10001c70
push ebx
cmp dword [esi + 0xc], 0
je 0x10001c6f
mov ebx, dword [esi + 0x10]
mov eax, dword [esi]
add ebx, edi
add eax, edi
mov dword [ebp - 4], eax
cmp dword [ebx], 0
je 0x10001c60
mov esi, 0x10004040
mov dword [ebp - 0x14], 8
mov ecx, dword [esi]
test ecx, ecx
je 0x10001be4
cmp ecx, dword [ebx]
jne 0x10001c42
jmp 0x10001bff
mov ecx, dword [eax]
test ecx, ecx
js 0x10001c42
push dword [esi - 4]
lea eax, [edi + 2]
add eax, ecx
push eax
call dword [sym.imp.ntdll.dll_strcmp]
pop ecx
pop ecx
test eax, eax
jne 0x10001c3f
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ebx
push eax
push 0x40
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov eax, dword [ebp - 4]
add esi, 0x18
sub dword [ebp - 0x14], 1
jne 0x10001bd8
add ebx, 4
add eax, 4
mov dword [ebp - 4], eax
cmp dword [ebx], 0
jne 0x10001bcc
mov esi, dword [ebp - 0x18]
add esi, 0x14
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x1c]
jb 0x10001bad
pop ebx
pop esi
pop edi
leave
ret

Function at 0x10002617
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov esi, dword [ebx + edi*4]
mov eax, esi
shr eax, 7
and eax, 0x1010101
imul edx, eax, 0x1b
mov eax, esi
and eax, 0xff7f7f7f
add eax, eax
xor edx, eax
mov eax, esi
mov ecx, edx
rol eax, 0x10
xor ecx, esi
rol esi, 8
ror ecx, 8
xor ecx, eax
xor ecx, esi
xor ecx, edx
mov dword [ebx + edi*4], ecx
inc edi
cmp edi, 4
jl 0x1000261e
pop edi
pop esi
pop ebx
ret
Function at 0x1000265b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
mov dword [ebp - 8], ecx
push esi
mov dword [ebp - 4], eax
mov edx, 0x1010101
push edi
mov edi, dword [ecx + eax*4]
mov eax, edi
shr eax, 7
and eax, edx
imul ebx, eax, 0x1b
mov eax, edi
and eax, 0xff7f7f7f
add eax, eax
xor ebx, eax
mov eax, ebx
shr eax, 7
and eax, edx
imul ecx, eax, 0x1b
mov eax, ebx
and eax, 0xff7f7f7f
add eax, eax
xor ecx, eax
mov eax, ecx
shr eax, 7
and eax, edx
imul esi, eax, 0x1b
mov eax, ecx
and eax, 0xff7f7f7f
add eax, eax
xor esi, eax
mov edx, esi
xor esi, ecx
xor edx, edi
mov eax, esi
mov ecx, edx
xor eax, edi
xor ecx, ebx
rol eax, 0x10
ror ecx, 8
xor ecx, eax
rol edx, 8
mov eax, dword [ebp - 4]
xor ecx, edx
mov edx, dword [ebp - 8]
xor ecx, esi
xor ecx, ebx
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 4], eax
mov ecx, edx
mov edx, 0x1010101
cmp eax, 4
jl 0x10002670
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002747
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, 0x10001288
push edi
mov edx, esi
call fcn.10002581
mov ebx, 0x90
xor edi, edi
mov ecx, esi
call fcn.100025dd
mov ecx, edi
movzx eax, byte [ecx + esi]
mov al, byte [eax + 0x10001298]
mov byte [ecx + esi], al
inc ecx
cmp ecx, 0x10
jl 0x10002768
lea ecx, [ebx + 0x100011e8]
mov edx, esi
call fcn.10002581
mov ecx, esi
call fcn.1000265b
sub ebx, 0x10
test ebx, ebx
jg 0x1000275f
mov ecx, esi
call fcn.100025dd
movzx eax, byte [edi + esi]
mov al, byte [eax + 0x10001298]
mov byte [edi + esi], al
inc edi
cmp edi, 0x10
jl 0x1000279d
pop edi
mov edx, esi
mov ecx, 0x100011e8
pop esi
pop ebx
jmp fcn.10002581

Function at 0x100028c2
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, edx
call fcn.10002581
mov edx, esi
mov ecx, 0x10001128
call fcn.10002581
push 0xa
mov edi, 0x10001138
pop ebx
mov ecx, esi
call fcn.10002596
call fcn.100025ac
mov ecx, esi
call fcn.10002617
mov edx, esi
mov ecx, edi
call fcn.10002581
add edi, 0x10
sub ebx, 1
jne 0x100028e0
mov ecx, esi
call fcn.10002596
call fcn.100025ac
pop edi
mov edx, esi
mov ecx, 0x100011d8
pop esi
pop ebx
jmp fcn.10002581
Function at 0x10002e69
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov eax, edx
lea edx, [ebp - 0xe4]
push esi
push edi
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.10002dc3
lea edx, [ebp - 0xe4]
lea ecx, [ebp - 0x214]
call fcn.10002d87
mov esi, eax
lea edi, [ebp - 0x34]
xor eax, eax
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
lea ecx, [ebp - 0x214]
mov ebx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp esi, 0x10
jl 0x10002ee9
shr esi, 4
mov eax, esi
shl eax, 4
sub ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, ecx
lea edx, [ebp - 0x34]
mov ecx, ebx
call fcn.100028c2
add ebx, 0x10
sub esi, 1
jne 0x10002ecb
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
test ebx, ebx
jle 0x10002efb
push ebx
push ecx
lea eax, [ebp - 0x24]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x34]
mov byte [ebp + ebx - 0x24], 0x80
lea ecx, [ebp - 0x24]
call fcn.100028c2
mov ebx, dword [sym.imp.ntdll.dll_memcpy]
lea eax, [ebp - 0x34]
push 0x10
push eax
lea eax, [ebp - 0x214]
add eax, esi
push eax
call ebx
mov eax, dword fs:[0x18]
lea ecx, [esi + 0x10]
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [esi], ecx
mov eax, dword [eax + 0x30]
push ecx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [esi]
mov edi, eax
lea eax, [ebp - 0x214]
push eax
push edi
call ebx
add esp, 0xc
push 0xec
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call ebx
add esp, 0xc
lea eax, [ebp - 0xe4]
push 0xac
push eax
push dword [ebp + 0x10]
call ebx
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10002f80
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
mov esi, edx
mov dword [ebp - 0xc], ecx
push edi
push 0x10
mov dword [ebp - 0x14], esi
mov eax, dword [esi]
lea ecx, [esi + 4]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x10], ecx
pop edi
cmp eax, 0x50000
jne 0x10002fc2
mov ebx, dword [sym.imp.ntdll.dll_memcpy]
lea eax, [ebp - 0x188]
push edi
push ecx
push eax
call ebx
add esp, 0xc
jmp 0x10002ff8
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
mov ebx, dword [sym.imp.ntdll.dll_memcpy]
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x188]
mov dword [ebp - 0x18], edi
push eax
call ebx
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
lea eax, [ebp - 0x188]
push eax
call fcn.10002d54
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi]
add eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.10002d54
lea eax, [esi + 0x14]
lea edx, [ebp - 0x23c]
mov dword [ebp - 0xc], eax
mov ecx, eax
call fcn.10002dc3
lea edx, [ebp - 0x23c]
lea ecx, [ebp - 0x178]
call fcn.10002d87
lea esi, [ebp - 0x178]
mov edx, edi
add esi, eax
mov ecx, esi
call fcn.10002cb0
lea eax, [esi + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.1000291f
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.10002581
mov eax, dword [ebp - 0x14]
add esi, 0x30
mov eax, dword [eax]
cmp eax, 0x60000
jne 0x100030d2
mov eax, dword [0x10004020]
mov ecx, dword [0x10004024]
push edi
push dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esi, 8
push esi
call ebx
add esp, 0xc
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x1a4]
add esi, edi
call fcn.10002a64
lea eax, [ebp - 0x5c]
mov edx, esi
push eax
lea eax, [ebp - 0x188]
push eax
sub edx, eax
lea ecx, [ebp - 0x3c]
call fcn.10002abf
push edi
lea eax, [ebp - 0x4c]
push eax
push esi
call ebx
add esp, 0xc
lea eax, [ebp - 0x2c]
add esi, edi
push edi
push eax
lea eax, [ebp - 0x188]
push eax
call ebx
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x178]
sub esi, ecx
mov dword [ebp - 8], esi
cmp eax, 0x50000
je 0x100030ff
cmp eax, 0x60000
jne 0x10003115
push ecx
lea eax, [ebp - 8]
mov edx, ecx
push eax
lea ecx, [ebp - 0x188]
call fcn.100027bf
jmp 0x10003115
push ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x178]
lea ecx, [ebp - 0x188]
call fcn.10002335
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 8]
add ecx, 0x14
push ecx
push 0
mov dword [esi], ecx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [esi]
mov edi, eax
lea eax, [ebp - 0x18c]
push eax
push edi
call ebx
add esp, 0xc
push 0xec
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call ebx
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0xac
push eax
push dword [ebp + 0x10]
call ebx
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402a44
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.00404060
test esi, esi
jne 0x402a7a
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.00404150
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402958
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403178
Capabilities:
Query or enumerate registry value

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

Function at 0x403ec4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48604c], 0
je 0x403f25
cmp word [0x486220], 0xd7b2
jne 0x403eed
cmp dword [0x486228], 0
jbe 0x403eed
mov eax, 0x48621c
call dword [0x486238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x484070
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 0x403f4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x484034], 0
jne 0x403f41
push 0
push 0x484068
push 0x484070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40621e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042e0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d3c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406208
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406225
lea eax, [ebp - 0x10]
call fcn.00404060
ret

Function at 0x40b618
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_1
test eax, eax
jle 0x40b651
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404150
jmp 0x40b65a
mov eax, ebx
mov edx, esi
call fcn.004040b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b664
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_1
test eax, eax
jle 0x40b685
mov al, byte [esp]
jmp 0x40b687
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd0c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb84
mov eax, dword [0x4857a8]
cmp byte [eax], 0
je 0x40bd88
mov eax, dword [0x4855a4]
call fcn.00402b5c
call fcn.00402884
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d74
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bdd0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdbe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x485544]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x486668]
call fcn.004056b0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret