joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7e6dd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xf4
mov eax, dword [0x9726c0]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push ebp
push esi
push edi
push 0xd4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x30001c
push eax
push 0
mov dword [esp + 0x20], 0x580110
mov dword [esp + 0x24], 0x1c0020
mov dword [esp + 0x28], 0x200010
mov dword [esp + 0x2c], 0x680008
mov dword [esp + 0x30], 0xb40080
mov dword [esp + 0x34], 0x380110
mov dword [esp + 0x38], 0x80084
mov dword [esp + 0x3c], 0xdc0084
mov dword [esp + 0x40], 0x100068
mov dword [esp + 0x44], 0x280170
mov dword [esp + 0x48], 0xb80020
mov dword [esp + 0x4c], 0x2e80040
mov dword [esp + 0x50], 0x80008
mov dword [esp + 0x54], 0x1400008
mov dword [esp + 0x58], 0x680018
mov dword [esp + 0x5c], 0x600024
mov dword [esp + 0x60], 0x3d80034
mov dword [esp + 0x64], 0x80010
mov dword [esp + 0x68], 0x8000c
mov dword [esp + 0x6c], 0x10003c
mov dword [esp + 0x70], 0xa00008
mov dword [esp + 0x74], 0xc003c
mov dword [esp + 0x78], 0x1c8001c
mov dword [esp + 0x7c], 0x34004c
mov dword [esp + 0x80], 0x380014
mov dword [esp + 0x84], 0x540018
mov dword [esp + 0x88], 0x260006
mov dword [esp + 0x8c], 0x5c0010
mov dword [esp + 0x90], 0x1c004c
mov dword [esp + 0x94], 0x1880098
mov dword [esp + 0x98], 0x4c0008
mov dword [esp + 0x9c], 0x380068
mov dword [esp + 0xa0], 0x300048
mov dword [esp + 0xa4], 0x480008
mov dword [esp + 0xa8], 0x340060
mov dword [esp + 0xac], 0x1c80010
mov dword [esp + 0xb0], 0x100018
mov dword [esp + 0xb4], 0x14001c
mov dword [esp + 0xb8], 0x2c0170
mov dword [esp + 0xbc], 0x3800a8
mov dword [esp + 0xc0], 0x8003c
mov dword [esp + 0xc4], 0x480038
mov dword [esp + 0xc8], 0x3c0034
mov dword [esp + 0xcc], 0x44001c
mov dword [esp + 0xd0], 0x100044
mov dword [esp + 0xd4], 0x700008
mov dword [esp + 0xd8], 0x80008
mov dword [esp + 0xdc], 0x140070
mov dword [esp + 0xe0], 0x3200030
mov dword [esp + 0xe4], 0x300118
mov dword [esp + 0xe8], 0x4400f8
mov dword [esp + 0xec], 0x800a8
call fcn.00792830
mov ecx, dword [esp + 0x10c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0086aede
add esp, 0xf4
ret
Function at 0x7fccf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
cmp byte [eax + 0x19], 2
jne 0x7fcd14
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x14]
push eax
push dword [esp + 0x14]
call fcn.007fd0e0
add esp, 0x14
ret
mov dword [esp + 8], eax
jmp fcn.007fcd20
Function at 0x800750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0x18]
mov ecx, dword [eax + 0x14]
push edi
mov dword [esp + 0x10], ecx
mov edi, dword [ebp + 0x40]
mov ebx, dword [ecx + 0x78]
cmp edi, 0xffffffff
jne 0x800775
mov esi, dword [ebx + 4]
jmp 0x8007c4
mov eax, dword [ebx]
test eax, eax
je 0x80078d
push eax
push ecx
call fcn.007670d0
add esp, 8
test eax, eax
jne 0x8007b3
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + 8]
test esi, esi
je 0x80079f
cmp edi, dword [esi + 8]
je 0x80079f
mov esi, dword [esi]
test esi, esi
jne 0x800794
mov eax, dword [ebx]
test eax, eax
je 0x8007c0
push eax
push ecx
call fcn.00767730
add esp, 8
test eax, eax
je 0x8007c0
pop edi
pop esi
pop ebp
mov eax, 0xffff8702
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x10]
test esi, esi
je 0x80082c
cmp dword [ebp + 0x9c], 0
jne 0x8007d5
xor eax, eax
jmp 0x800806
mov edx, dword [ebx + 0x18]
mov eax, dword [edx]
test byte [eax + 0x9c], 0x40
je 0x8007eb
mov eax, dword [ebp + 0xa0]
jmp 0x8007f4
mov eax, dword [edx + 0x14]
add eax, dword [ebp + 0xa0]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x9c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x800836
mov edx, dword [esi + 0xc]
test edx, edx
je 0x80082c
mov esi, dword [esp + 0x38]
push eax
push dword [esp + 0x40]
push esi
push dword [ecx]
call edx
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x800854
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
mov edx, dword [esi + 0x10]
test edx, edx
je 0x80082c
mov esi, dword [esp + 0x38]
push eax
push dword [esp + 0x40]
push esi
push dword [ecx]
call edx
mov edi, eax
add esp, 0x10
test edi, edi
je 0x80082c
mov ecx, 0x950074
test ebx, ebx
mov eax, 0x95006c
push esi
cmove eax, ecx
push eax
push dword [esp + 0x3c]
call fcn.0077a0c0
add esp, 4
push eax
push 0x95007c
push dword [esp + 0x20]
call fcn.0075bb00
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x804000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
mov eax, dword [0x9726c0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
push esi
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x80]
mov dword [esp + 0x14], eax
add eax, 0xf0
push 1
push eax
push ebp
call fcn.008087a0
lea eax, [esp + 0x30]
push eax
call fcn.007b8430
mov eax, dword [esp + 0x84]
mov byte [esp + 0x68], al
lea eax, [esp + 0x68]
push 1
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.007b7ef0
add esp, 0x1c
test edi, edi
jne 0x804077
xor eax, eax
jmp 0x80407a
mov eax, dword [edi + 4]
push eax
call dword [0x8a1420]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
push 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.007b7ef0
add esp, 0xc
test ebx, ebx
jne 0x8040a1
xor esi, esi
jmp 0x8040a4
mov esi, dword [ebx + 4]
push esi
call dword [0x8a1420]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.007b7ef0
add esp, 0xc
cmp dword [edi + 4], 0
jbe 0x8040d7
lea eax, [esp + 0x24]
push edi
push eax
call fcn.007b7f10
add esp, 8
test esi, esi
je 0x8040e9
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.007b7f10
add esp, 8
mov eax, dword [esp + 0x14]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x64], 0
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
cmp dword [eax + 0xb4], ecx
jbe 0x8041b3
xor ebx, ebx
mov eax, dword [ebp + 0x80]
mov ecx, dword [eax + 0xb0]
add ecx, ebx
cmp dword [ecx + 0x3c], 2
jne 0x804197
mov eax, dword [ecx + 0x30]
cmp dword [eax + 0x1c], 7
jne 0x804197
test ecx, ecx
je 0x804197
mov ecx, dword [esp + 0x74]
mov esi, eax
mov eax, dword [esi + 0x14]
cmp ecx, dword [eax*4 + 0x950320]
ja 0x804197
push 0
lea eax, [esp + 0x28]
push eax
push esi
push ebp
call fcn.008041e0
add esp, 0x10
test eax, eax
jne 0x804182
mov eax, dword [esi + 8]
mov esi, dword [esp + 0x10]
inc dword [esp + 0x18]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x14]
lea edx, [esi + 1]
mov eax, dword [eax + 0xb0]
cmp dword [eax + ecx*8 + 0x18], 0
cmovbe edx, esi
mov dword [esp + 0x10], edx
jmp 0x80419b
cmp eax, 0xffff8701
jne 0x8041c1
push esi
push ebp
call fcn.00803290
add esp, 8
test eax, eax
jne 0x8041c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edi
add ebx, 0x48
cmp edi, dword [eax + 0xb4]
jb 0x804111
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dword [eax], edx
xor eax, eax
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0086aede
add esp, 0x5c
ret
Function at 0x8072d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [0x9726c0]
xor eax, esp
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x80]
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov ebx, dword [eax + 0x5c]
mov dword [esp + 0x10], ebx
xor ebx, ebx
cmp dword [esi + 0x14], 2
mov esi, dword [eax + 0xe0]
setne bl
mov dword [esp + 0x14], eax
lea edi, [esi + 1]
lea ebx, [ebx*4 + 6]
mov al, byte [esi]
inc esi
test al, al
jne 0x807328
lea eax, [esp + 0x1c]
sub esi, edi
push eax
mov eax, ecx
xor ecx, ecx
test edx, edx
cmove eax, ecx
inc eax
add eax, esi
add eax, ebx
push eax
push ebp
call fcn.00767980
add esp, 0xc
test eax, eax
jne 0x807430
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x4c], edi
cmp dword [edx + 0x14], 2
movzx eax, word [ecx + 0xe4]
push edi
jne 0x807391
mov word [esp + 0x2c], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.0083a0c0
jmp 0x8073bc
mov word [esp + 0x6c], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x70], eax
xor eax, eax
cmp dword [ecx + 0xdc], 0xffffffff
sete al
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
push ebp
call fcn.00839f70
mov ecx, dword [esp + 0x20]
add esp, 0xc
add edi, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], edi
mov edx, edi
mov ecx, dword [ecx + 0xe0]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x8073d5
mov eax, dword [esp + 0x20]
inc esi
add esi, edi
test eax, eax
je 0x8073ff
mov edi, dword [esp + 0x24]
push edi
push eax
push esi
call fcn.0086cdf0
add esp, 0xc
add esi, edi
sub esi, dword [esp + 0x30]
lea eax, [esp + 0x30]
push 0
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x3c], esi
push eax
push 2
push dword [esp + 0x28]
push ebp
call fcn.00804500
push dword [esp + 0x34]
mov esi, eax
push ebp
call fcn.00767960
add esp, 0x20
mov eax, esi
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0086aede
add esp, 0x68
ret
Function at 0x82c7e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push esi
call fcn.007c7bc0
lea eax, [esi + 0x48]
add esp, 4
mov ch, byte [eax]
mov esi, 0x20
mov bl, byte [eax + 1]
mov dl, byte [eax + 2]
mov cl, byte [eax + 3]
mov byte [eax], cl
mov cl, byte [eax + 7]
mov byte [eax + 1], dl
mov dl, byte [eax + 6]
mov byte [eax + 2], bl
mov bl, byte [eax + 5]
mov byte [eax + 3], ch
mov ch, byte [eax + 4]
mov byte [eax + 4], cl
mov cl, byte [eax + 0xb]
mov byte [eax + 5], dl
mov dl, byte [eax + 0xa]
mov byte [eax + 6], bl
mov bl, byte [eax + 9]
mov byte [eax + 7], ch
mov ch, byte [eax + 8]
mov byte [eax + 8], cl
mov cl, byte [eax + 0xf]
mov byte [eax + 9], dl
mov dl, byte [eax + 0xe]
mov byte [eax + 0xa], bl
mov bl, byte [eax + 0xd]
mov byte [eax + 0xb], ch
mov ch, byte [eax + 0xc]
mov byte [eax + 0xc], cl
mov cl, byte [eax + 0x13]
mov byte [eax + 0xd], dl
mov dl, byte [eax + 0x12]
mov byte [eax + 0xe], bl
mov bl, byte [eax + 0x11]
mov byte [eax + 0xf], ch
mov ch, byte [eax + 0x10]
mov byte [eax + 0x10], cl
mov cl, byte [eax + 0x17]
mov byte [eax + 0x11], dl
mov dl, byte [eax + 0x16]
mov byte [eax + 0x12], bl
mov bl, byte [eax + 0x15]
mov byte [eax + 0x13], ch
mov ch, byte [eax + 0x14]
mov byte [eax + 0x14], cl
mov byte [eax + 0x15], dl
mov byte [eax + 0x16], bl
mov byte [eax + 0x17], ch
add eax, 0x18
mov ch, byte [eax]
mov bl, byte [eax + 1]
mov dl, byte [eax + 2]
mov cl, byte [eax + 3]
mov byte [eax], cl
mov byte [eax + 1], dl
mov byte [eax + 2], bl
mov byte [eax + 3], ch
add eax, 4
sub esi, 1
jne 0x82c888
mov bl, byte [eax + 0xed]
add eax, 0xec
pop esi
mov ch, byte [eax]
mov dl, byte [eax + 2]
mov cl, byte [eax + 3]
mov byte [eax + 2], bl
mov byte [eax], cl
mov byte [eax + 1], dl
mov byte [eax + 3], ch
xor eax, eax
pop ebx
ret
Function at 0x834970
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
ret
Function at 0x85d051
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x85d074
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x85d062
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x89b7d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x89b7fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x89b7fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431008]
jne 0x40100a
repz ret
jmp fcn.00401dd8

Function at 0x405eea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403abe
and dword [ebp - 4], 0
cmp dword [0x43325c], 0
mov ebx, eax
jne 0x405f9b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40604c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40604c
push eax
call fcn.00403a4c
mov dword [esp], 0x42e9ac
push edi
mov dword [0x43325c], eax
call esi
push eax
call fcn.00403a4c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433260], eax
call esi
push eax
call fcn.00403a4c
mov dword [esp], 0x42e97c
push edi
mov dword [0x433264], eax
call esi
push eax
call fcn.00403a4c
pop ecx
mov dword [0x43326c], eax
test eax, eax
je 0x405f9b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403a4c
pop ecx
mov dword [0x433268], eax
mov eax, dword [0x433268]
cmp eax, ebx
je 0x405ff3
cmp dword [0x43326c], ebx
je 0x405ff3
push eax
call fcn.00403ac7
push dword [0x43326c]
mov esi, eax
call fcn.00403ac7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405ff3
test edi, edi
je 0x405ff3
call esi
test eax, eax
je 0x405fea
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405fea
test byte [ebp - 0xc], 1
jne 0x405ff3
or dword [ebp + 0x10], 0x200000
jmp 0x40602c
mov eax, dword [0x433260]
cmp eax, ebx
je 0x40602c
push eax
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40602c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40602c
mov eax, dword [0x433264]
cmp eax, ebx
je 0x40602c
push eax
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40602c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43325c]
call fcn.00403ac7
pop ecx
test eax, eax
je 0x40604c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40604e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42cb00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00408f60
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100c], eax
cmp ebx, 0x182
jne 0x42cb39
lea ecx, [ebp - 0x102c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x42cb49
cmp ebx, 0x19f
jne 0x42cb49
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
xor edi, edi
test ebx, ebx
jle 0x42cbcf
push esi
jmp 0x42cb60
lea esi, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
call fcn.0042caf0
mov dl, byte [ebp - 0x1008]
mov eax, dword [ebp - 0x100c]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x42cbc9
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.yodawelizukipa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc edi
cmp edi, ebx
jl 0x42cb60
pop esi
pop edi
cmp ebx, 0x2d
jne 0x42cbe9
mov dword [0x528f40], 0xa62e7790
mov dword [0x528f44], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x42cc00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x528e0c]
push ebx
push esi
mov esi, dword [0x528c54]
mov ebx, eax
cmp eax, 0x5dd
jne 0x42cc26
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x432000]
call fcn.0042cac0
cmp dword [0x528e0c], 0x2f
jne 0x42cc41
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.0042cb00
add esp, 4
cmp dword [0x528e0c], 0x568
pop esi
pop ebx
jne 0x42cc70
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov eax, dword [ebp - 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
mov esp, ebp
pop ebp
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e55
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c98
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c98
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e3f
inc ebx
jmp 0x402e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e5c
lea eax, [ebp - 8]
call fcn.00404464
ret

Function at 0x402e64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404464
test esi, esi
jne 0x402e9b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404554
jmp 0x402ebc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402ebc
cmp dword [ebx], 0
je 0x402ebc
dec esi
jmp 0x402ea3
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403564
Capabilities:
Query or enumerate registry value

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

Function at 0x4042e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456044], 0
je 0x404341
cmp word [0x456218], 0xd7b2
jne 0x404309
cmp dword [0x456220], 0
jbe 0x404309
mov eax, 0x456214
call dword [0x456230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x454070
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 0x404368
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x454034], 0
jne 0x40435d
push 0
push 0x454068
push 0x454070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406124
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 0x40618a
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.004046d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403128
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406174
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406191
lea eax, [ebp - 0x10]
call fcn.00404464
ret

Function at 0x40b0c4
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 0x40b0fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404554
jmp 0x40b106
mov eax, ebx
mov edx, esi
call fcn.004044b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b110
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 0x40b131
mov al, byte [esp]
jmp 0x40b133
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b7c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b630
mov eax, dword [0x454f8c]
cmp byte [eax], 0
je 0x40b844
mov eax, dword [0x454dcc]
call fcn.00402f78
call fcn.00402bc4
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.004088b4
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 0x40b88c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b87a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x454d80]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x456660]
call fcn.00405590
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
Function at 0x41a9b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x456880
cmp dword [esi], 0
jne 0x41aa56
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x45687c]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4543ec
mov ecx, 2
call fcn.00402c58
mov edx, 0x41a988
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a9a8
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041a9a8
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41aa1d
mov eax, dword [ebp - 8]
mov dword [0x45687c], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41bc2c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bc32
ret

Function at 0x41e0a4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e0f5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e0dc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e0cc
jmp 0x41e0f5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e0dd
pop ebx
mov esp, ebp
pop ebp
ret