joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d0
Capabilities:
Create pipe
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.0040b060
mov eax, dword [0x45ab6c]
mov ecx, dword [0x45a5f8]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x401503
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x45ab6c], 0x959
jne 0x4014ec
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
lea eax, [ebp - 0xc08]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push str.pihonalurexotorohematabezizo
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0x1808]
push ecx
push 0
call edi
mov edx, dword [ebp - 4]
push edx
call fcn.00401140
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x40140e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f2f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b418]
jne 0x403f39
repz ret
jmp fcn.00408d6c

Function at 0x40a85b
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.0040672c
and dword [ebp - 4], 0
cmp dword [0x451b78], 0
mov ebx, eax
jne 0x40a90c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a9bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a9bd
push eax
call fcn.004066ba
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451b78], eax
call esi
push eax
call fcn.004066ba
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451b7c], eax
call esi
push eax
call fcn.004066ba
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451b80], eax
call esi
push eax
call fcn.004066ba
pop ecx
mov dword [0x451b88], eax
test eax, eax
je 0x40a90c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004066ba
pop ecx
mov dword [0x451b84], eax
mov eax, dword [0x451b84]
cmp eax, ebx
je 0x40a964
cmp dword [0x451b88], ebx
je 0x40a964
push eax
call fcn.00406735
push dword [0x451b88]
mov esi, eax
call fcn.00406735
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a964
test edi, edi
je 0x40a964
call esi
test eax, eax
je 0x40a95b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a95b
test byte [ebp - 0xc], 1
jne 0x40a964
or dword [ebp + 0x10], 0x200000
jmp 0x40a99d
mov eax, dword [0x451b7c]
cmp eax, ebx
je 0x40a99d
push eax
call fcn.00406735
pop ecx
test eax, eax
je 0x40a99d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a99d
mov eax, dword [0x451b80]
cmp eax, ebx
je 0x40a99d
push eax
call fcn.00406735
pop ecx
test eax, eax
je 0x40a99d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451b78]
call fcn.00406735
pop ecx
test eax, eax
je 0x40a9bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a9bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x41ca456c
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x2e27297e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403d9b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x403dbc
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403ace
xchg ebx, eax
out dx, eax
push esi
lahf
lea eax, [ebp - 0x40]
push eax
call fcn.00403ade
push eax
push esi
push dword [ebp + 8]
call fcn.00403a93
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.00403ace
cmp eax, 0x8d8422dc
inc ebp
call 0x51289bc4
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00403ade
push eax
push esi
push dword [ebp + 8]
invalid
push cs
cld

Function at 0x403f1d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
loopne 0x403f69
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
in al, 0x2b

Function at 0x403f2d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
in al, 0x2b
call fcn.00403ade
push eax
push esi
push dword [ebp + 8]
call fcn.00403a93
invalid
invalid

Function at 0x404740
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.00403ade
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403a93
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00403ace
arpl word [eax - 0x15], ax
jbe 0x4047e9
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
inc dword [ecx]
cmp dword [ebp - 0x398], 0
je 0x4047c2
cmp dword [ebp - 0x398], 0
je 0x40498c
cmp dword [ebp + 0xc], 1
je 0x40498c
cmp dword [ebp + 0xc], 8
jne 0x404954
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
invalid
test dword [edx - 7], ecx
invalid
invalid
Function at 0x405c78
Capabilities:
Access peb ldr_data

Disassembly:
call ecx
das
push ebp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x405c92
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403ace
movsb byte es:[edi], byte [esi]
xchg esi, eax
add al, 0x86
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi

Function at 0x406bd0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406c1b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406d6b
test al, al
jne 0x406c15
sub edx, 2
cmp edx, edi
jne 0x406bfb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406c3d
lea eax, [edi + 2]
cmp edx, eax
je 0x406c3d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406b1c
add esp, 0x10
jmp 0x406d37
push esi
lea ecx, [ebp - 0x255]
call fcn.00406d6b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406c80
push dword [ebp - 0x25c]
jmp 0x406c2d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406cbd
cmp word [ebp - 0x226], 0
je 0x406cde
cmp word [ebp - 0x226], ax
jne 0x406cbd
cmp word [ebp - 0x224], 0
je 0x406cde
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406b1c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406d2a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406c97
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x406d12
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406d37
push 0x40694c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409870
add esp, 0x10
jmp 0x406d07
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040126a
leave
ret

Function at 0x4087e8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4101f4
push 0x4101ec
push str.FlsAlloc
push 0x1f
call fcn.00408723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40881c
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e150]
call esi
jmp 0x408822
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x403a62
Capabilities:
Allocate or change rwx memory
Read .ini file

Disassembly:
mov eax, 0x4479eb
call fcn.004478f8
sub esp, 0xf4
push ebx
push esi
mov eax, 0xb2d3b
add dword [0x487314], eax
xor ebx, ebx
cmp dword [0x487314], 0x20a
jne 0x403af2
push edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x402c08
push ebx
push 0x402c2c
push 0x402c54
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call fcn.00403040
lea eax, [ebp - 0x38]
call fcn.00403d1c
push ebx
mov dword [ebp - 4], ebx
call fcn.00404bb1
push ebx
push ebx
push ebx
call fcn.004051ad
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea edi, [ebp - 0x38]
call fcn.00403d41
pop edi
xor eax, eax
cmp eax, 0xf027935
jg 0x403b03
inc eax
cmp eax, 0x736251e2
jl 0x403af4
push 0x45ab08
mov byte [0x45ab0d], 0x6c
mov byte [0x45ab0f], 0x32
mov byte [0x45ab10], 0x2e
mov byte [0x45ab0b], 0x6e
mov byte [0x45ab0c], 0x65
mov byte [0x45ab11], 0x64
mov byte [0x45ab0e], 0x33
mov byte [0x45ab12], 0x6c
mov byte [0x45ab13], 0x6c
mov byte [0x45ab14], bl
mov byte [0x45ab08], 0x6b
mov byte [0x45ab09], 0x65
mov byte [0x45ab0a], 0x72
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x487314]
mov dword [0x487284], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push dword [0x487314]
mov dword [0x487280], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x45503c]
xor esi, esi
mov dword [0x4873ec], eax
cmp dword [0x487314], ebx
jbe 0x403bf5
mov eax, dword [0x4873ec]
mov dword [ebp - 0x14], eax
mov eax, 0xb2d3b
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax + esi]
mov ecx, dword [0x487280]
mov byte [ecx + esi], al
cmp dword [0x487314], 0x44
jne 0x403bec
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalShrink]
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
inc esi
cmp esi, dword [0x487314]
jb 0x403ba6
call fcn.004039c4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
cmp esi, 0x770e
jne 0x403c19
call fcn.00403a3c
inc esi
cmp esi, 0x286c535
jl 0x403bfc
push 0x7b
pop esi
cmp dword [0x487314], 0xd
jne 0x403c5a
push 0x30
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
call fcn.00405d50
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDefaultCommConfigA]
push 0x402c98
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec esi
jne 0x403c25
call fcn.00403a56
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40598b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454168]
jne 0x405995
repz ret
jmp fcn.0040c73c
Function at 0x43a525
Capabilities:
Encode data using xor

Disassembly:
push ebx
fisubr word [esi]
fnsave dword [edx + ecx*4]
and byte [eax - 0x14], cl
mov ebp, 0x8505a806
jbe 0x43a59c
cld
mov dword [0x804c5fdb], eax
daa
mov eax, dword [0x4a00860c]
ret
jl 0x43a5a1
xchg ecx, eax
loope 0x43a60d
adc dh, ch
mov dh, 0x7f
int1
jl 0x43a5c6
sub bl, cl
dec ebx
xor esp, dword [esi - 0x4998113e]
fist dword [ebp - 0x6dc2bdf8]
test dh, ch
or al, 0xde
out 0x82, al
mov byte [esi - 0x6d], bh
cwde
or al, 0xae
pop ebx
dec edx
dec edi
mov esp, dword [esp + edi*4 - 0x5cb479fe]
add eax, 0x53df431c
lcall 0x3f64, 0xe77babd
jbe 0x43a657
xchg edx, eax
mov dl, 0xa3
adc ebx, esi
sal byte [ebx + eax*2 + 0x3419e45b], 0xe1
push ebp
aam 0xff
stc
pop es
cld
les eax, [esi + 0x34]
pop esp
dec eax
mov word [eax], es
jl 0x43a63f
invalid
or eax, 0x91ad9d65
push 0x31
invalid
ja 0x43a6b8
fldl2e
cmp eax, 0xaecb6d70
add eax, 0x5e262f41
movsd dword es:[edi], dword [esi]
sub al, 0xca
xor eax, 0xd863f865
or dword [esi], ebp
pop ss
dec ebp
hlt
ficom dword [esp + 0x31]
out 0x5a, eax
cmp eax, 0xc5b5fc33
mov al, byte [0x2cacecec]
call 0xa62f96ee
fisttp dword [ebp - 0x54e5c5ef]
in al, 0x97
mov ebp, 0x41a93ccf
cmp edi, 0x17ec882d
and eax, 0x2a495d5
sbb byte [edi - 0x22b0f1df], dl
sbb eax, 0xb89981bb
dec edi
fstp qword [0xb89981bb]
jg 0x43a6e9
or dword [eax - 5], eax
add al, 0x49
add eax, 0x5b5d3b1d
jg 0x43a707
mov esp, 0xc171364
fadd qword [esi + 9]
movsd dword es:[edi], dword [esi]
adc dword [edi + 0x2934761a], ebp
or ecx, edi
in eax, 0x45
xchg ebp, eax
pushfd
lodsd eax, dword [esi]
cmpsb byte [esi], byte es:[edi]
pcmpgtw mm2, qword [esi]
mov dword [0xa26f0f08], eax
adc ch, byte [eax + 0x588a0e2b]
in eax, 0x45
rdtsc
sub ebp, eax
pop ss
test al, 0x14
call 0xb978a0bb
pop esp
mov dh, 0x16
mov ch, 0x9a
or byte [esi + 0xfac5cad], ch
adc eax, 0xc0798dfc
cmp edi, dword [esi + edi*4 + 0x30]
xor dh, 0xa1
push ds
xchg edx, eax
xchg ebp, eax
pop ebp
in eax, dx
imul ebp, dword [ebp + 0x18], 0xffffff8b
in al, 0x38
mov dh, ah
sub esp, dword [ebx + 0x39cbe4bd]
rcr byte [esi - 0x5ad67b93], 0x8f
mov al, byte [0x6b69f6dd]
push ecx
adc byte [ebp + 0x50], bh
mov eax, dword [0x56d42681]
loop 0x43a73c
and eax, 0xbd5033
daa
mov cl, 0x73
std
sbb dword [eax + 0x28d42477], edi
invalid
Function at 0x4030d0
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 0x40310c
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 0x40312c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004055fc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033c4
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.0040538c
test esi, esi
jne 0x4033fa
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.0040547c
jmp 0x403418
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403268
mov edi, eax
test esi, esi
je 0x403418
cmp dword [ebx], 0
je 0x403418
dec esi
jmp 0x403401
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404294
Capabilities:
Query or enumerate registry value

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

Function at 0x405154
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65304c], 0
je 0x4051b5
cmp word [0x653220], 0xd7b2
jne 0x40517d
cmp dword [0x653228], 0
jbe 0x40517d
mov eax, 0x65321c
call dword [0x653238]
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 0x4051dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48b030], 0
jne 0x4051d1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40532c
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 [0x48b038], 0
je 0x405352
mov edx, esi
mov eax, ebx
call dword [0x48b038]
jmp 0x405361
mov eax, 8
call fcn.00402ec8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x65304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4052f4
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 0x406b90
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 0x406dc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c13
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406dc0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c13
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406ddc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406c9c
xor eax, eax
push ebp
push 0x406c95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004069cc
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 0x406c7a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406dfc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406c7a
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 0x406c9c
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 0x406db6
cmp byte [ebp - 0xd], 0
jne 0x406ce3
cmp byte [ebp - 0x12], 0
je 0x406db6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406cfc
dec ebx
cmp byte [ebx], 0x2e
je 0x406d0b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406cfb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406db6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406d48
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 0x406db6
cmp byte [ebp - 0xd], 0
je 0x406db6
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 0x406db6
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