joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472d61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0045ac66
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x472d8e
xor eax, eax
jmp 0x472e34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x472d87
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x472d87
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a286
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x472de5
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x472dd4
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00471aa8
push edi
mov ebx, eax
call fcn.0045a2b5
pop ecx
test ebx, ebx
je 0x472e27
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00472176
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0047222a
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x476320
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x476344
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x476352
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x47633e
xor eax, eax
inc eax
pop esi
ret

Function at 0x47c10d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4a197e
call fcn.004879db
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0041b0c0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x47c16f
call fcn.0045a4ff
cmp eax, 1
jne 0x47c16f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0046cf2b
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00410d30
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401c80
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401c80
mov eax, esi
call fcn.00487ab3
ret 0x10
Function at 0x47c198
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4a197e
call fcn.004879db
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0041b0c0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x47c1fa
call fcn.0045a4ff
cmp eax, 1
jne 0x47c1fa
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0046cf2b
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00410d30
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401c80
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401c80
mov eax, esi
call fcn.00487ab3
ret 0x14

Function at 0x484f29
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cd57c]
jne 0x484f33
repz ret
jmp fcn.0048c1dc

Function at 0x498833
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.0048bbc3
and dword [ebp - 4], 0
cmp dword [0x4d169c], 0
mov ebx, eax
jne 0x4988e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x498995
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4bbad8
push edi
call esi
test eax, eax
je 0x498995
push eax
call fcn.0048bb51
mov dword [esp], 0x4bbac8
push edi
mov dword [0x4d169c], eax
call esi
push eax
call fcn.0048bb51
mov dword [esp], 0x4bbab4
push edi
mov dword [0x4d16a0], eax
call esi
push eax
call fcn.0048bb51
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d16a4], eax
call esi
push eax
call fcn.0048bb51
pop ecx
mov dword [0x4d16ac], eax
test eax, eax
je 0x4988e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048bb51
pop ecx
mov dword [0x4d16a8], eax
mov eax, dword [0x4d16a8]
cmp eax, ebx
je 0x49893c
cmp dword [0x4d16ac], ebx
je 0x49893c
push eax
call fcn.0048bbcc
push dword [0x4d16ac]
mov esi, eax
call fcn.0048bbcc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49893c
test edi, edi
je 0x49893c
call esi
test eax, eax
je 0x498933
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x498933
test byte [ebp - 0xc], 1
jne 0x49893c
or dword [ebp + 0x10], 0x200000
jmp 0x498975
mov eax, dword [0x4d16a0]
cmp eax, ebx
je 0x498975
push eax
call fcn.0048bbcc
pop ecx
test eax, eax
je 0x498975
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x498975
mov eax, dword [0x4d16a4]
cmp eax, ebx
je 0x498975
push eax
call fcn.0048bbcc
pop ecx
test eax, eax
je 0x498975
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d169c]
call fcn.0048bbcc
pop ecx
test eax, eax
je 0x498995
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x498997
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
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.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401078
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5c8]
sub esp, 0x648
mov eax, dword [0x417030]
xor eax, ebp
mov dword [ebp + 0x5c4], eax
mov eax, dword [ebp + 0x5d0]
push ebx
push esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x5d8]
push edi
mov dword [ebp - 0x64], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x3bc], ax
xor ebx, ebx
lea eax, [ebp + 0x3be]
push ebx
push eax
call fcn.00407180
add esp, 0xc
lea eax, [ebp + 0x3bc]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40111e
xor eax, eax
push esi
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
call fcn.00407180
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.12au_x
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00405c73
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0x3bc]
push edi
push eax
call fcn.00405d0e
add esp, 0x1c
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
call fcn.0040165a
cmp eax, ebx
je 0x401206
lea ecx, [ebp - 0x60]
push ecx
mov esi, eax
mov dword [ebp - 0x60], ebx
call fcn.0040185e
pop ecx
cmp eax, ebx
je 0x40115a
lea ecx, [ebp + 0x3bc]
push ecx
push dword [ebp - 0x60]
mov ecx, eax
call fcn.004033ff
pop ecx
pop ecx
cmp dword [ebp - 0x58], ebx
je 0x401168
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x204
lea eax, [ebp + 0x1b8]
push ebx
push eax
mov dword [ebp + 0x1b4], 0x30
call fcn.00407180
push 0xffffffffffffffff
lea eax, [ebp + 0x3bc]
push eax
lea eax, [ebp + 0x1b4]
push edi
push eax
call fcn.00405ba0
push 0x412ce0
lea eax, [ebp + 0x1b4]
push edi
push eax
call fcn.00405d0e
push 0x412ce4
lea eax, [ebp + 0x1b4]
push edi
push eax
call fcn.00405d0e
add esp, 0x34
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x401206
push str.InstallerModuleEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4011f8
push dword [ebp - 0x64]
lea ecx, [ebp + 0x3bc]
push ecx
push dword [ebp - 0x5c]
call eax
add esp, 0xc
jmp 0x4011fd
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40120b
call fcn.00401000
lea eax, [ebp + 0x3bc]
push eax
lea esi, [ebp - 0x80]
call fcn.00401245
mov eax, esi
call fcn.004019f9
push ebx
push 1
call fcn.004012e9
mov ecx, dword [ebp + 0x5c4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00405b91
add ebp, 0x5c8
leave
ret 0x10
Function at 0x4019f9
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, eax
push esi
call fcn.00401a20
cmp dword [esi + 0x18], 8
pop ecx
jb 0x401a0e
mov esi, dword [esi + 4]
jmp 0x401a11
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop esi
ret

Function at 0x401a20
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410db5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x417030]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x417030]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
call fcn.00401eaa
and dword [esp + 0x78], 0
lea eax, [esp + 0x1c]
push eax
call fcn.00401eaa
push ebx
lea edi, [esp + 0x38]
mov byte [esp + 0x7c], 1
call fcn.00401ca6
pop ecx
push ebx
lea edi, [esp + 0x20]
call fcn.00401d15
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x44]
pop ecx
cdq
push 0x1c
pop ecx
idiv ecx
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
cdq
idiv ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], edi
jbe 0x401b0d
push ebx
lea esi, [esp + 0x50]
call fcn.00401d87
push edi
lea esi, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.00401f0f
lea ecx, [esp + 0x4c]
push ecx
call fcn.00401948
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
pop ecx
jae 0x401aea
lea eax, [esp + 0x50]
push eax
call fcn.00406506
pop ecx
push 0
push 1
lea esi, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.004012e9
inc edi
cmp edi, dword [esp + 0x14]
jb 0x401ab7
xor edi, edi
cmp dword [esp + 0x18], edi
jbe 0x401b76
push ebx
lea esi, [esp + 0x50]
call fcn.00401d87
push edi
lea esi, [esp + 0x20]
mov byte [esp + 0x7c], 3
call fcn.00401f0f
lea ecx, [esp + 0x4c]
push ecx
call fcn.00401948
pop ecx
lea eax, [esp + 0x4c]
push eax
call fcn.00401a20
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
pop ecx
jae 0x401b53
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea esi, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.004012e9
inc edi
cmp edi, dword [esp + 0x18]
jb 0x401b15
lea esi, [esp + 0x1c]
call fcn.00401ee2
lea esi, [esp + 0x34]
call fcn.00401ee2
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00405b91
mov esp, ebp
pop ebp
ret
Function at 0x401ba8
Capabilities:
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x410cf4
call fcn.00407916
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x268], ecx
jb 0x401bcb
mov eax, dword [eax + 4]
jmp 0x401bce
add eax, 4
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
mov edi, eax
inc ebx
cmp edi, 0xffffffff
je 0x401c97
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x412d38
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x401c81
push 0x412d3c
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x401c81
cmp byte [ebp + 0xc], 0
je 0x401c49
test byte [ebp - 0x264], 0x10
je 0x401c81
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x284]
call fcn.00401245
and dword [ebp - 4], 0
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
call fcn.00401f35
jmp 0x401c75
test byte [ebp - 0x264], 0x10
jne 0x401c81
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x2a0]
call fcn.00401245
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], ebx
call fcn.00401f35
or dword [ebp - 4], 0xffffffff
push 0
push ebx
call fcn.004012e9
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x401bea
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
call fcn.00407999
ret

Function at 0x403301
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x417030]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x4033f1
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x4033f1
push edi
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.00407180
movzx eax, byte [ebp - 0x25d]
push eax
movzx eax, byte [ebp - 0x25e]
push eax
movzx eax, byte [ebp - 0x25f]
push eax
movzx eax, byte [ebp - 0x260]
push eax
movzx eax, byte [ebp - 0x261]
push eax
movzx eax, byte [ebp - 0x262]
push eax
movzx eax, byte [ebp - 0x263]
push eax
movzx eax, byte [ebp - 0x264]
push eax
movzx eax, word [ebp - 0x266]
push eax
movzx eax, word [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
lea edi, [ebp - 0x54]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x28
pop ecx
call fcn.00403268
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00407180
add esp, 0x48
lea eax, [ebp - 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, edi
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
inc eax
pop edi
jmp 0x4033f3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b91
leave
ret
Function at 0x4054c8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, eax
test edx, edx
jne 0x4054d3
xor eax, eax
pop edi
ret
or eax, 0xffffffff
push esi
mov ecx, 0xff
cmp edi, 8
jb 0x405586
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e8]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e8]
inc edx
sub edi, 8
dec esi
jne 0x4054eb
pop ebx
test edi, edi
je 0x40559f
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4142e8]
inc edx
dec edi
jne 0x40558a
pop esi
not eax
pop edi
ret

Function at 0x405b91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417030]
jne 0x405b9b
repz ret
jmp fcn.004079b7
Function at 0x40f7a5
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.00408e6f
and dword [ebp - 4], 0
cmp dword [0x418efc], 0
mov ebx, eax
jne 0x40f856
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f907
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f907
push eax
call fcn.00408dfd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418efc], eax
call esi
push eax
call fcn.00408dfd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418f00], eax
call esi
push eax
call fcn.00408dfd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418f04], eax
call esi
push eax
call fcn.00408dfd
pop ecx
mov dword [0x418f0c], eax
test eax, eax
je 0x40f856
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408dfd
pop ecx
mov dword [0x418f08], eax
mov eax, dword [0x418f08]
cmp eax, ebx
je 0x40f8ae
cmp dword [0x418f0c], ebx
je 0x40f8ae
push eax
call fcn.00408e78
push dword [0x418f0c]
mov esi, eax
call fcn.00408e78
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f8ae
test edi, edi
je 0x40f8ae
call esi
test eax, eax
je 0x40f8a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f8a5
test byte [ebp - 0xc], 1
jne 0x40f8ae
or dword [ebp + 0x10], 0x200000
jmp 0x40f8e7
mov eax, dword [0x418f00]
cmp eax, ebx
je 0x40f8e7
push eax
call fcn.00408e78
pop ecx
test eax, eax
je 0x40f8e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f8e7
mov eax, dword [0x418f04]
cmp eax, ebx
je 0x40f8e7
push eax
call fcn.00408e78
pop ecx
test eax, eax
je 0x40f8e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418efc]
call fcn.00408e78
pop ecx
test eax, eax
je 0x40f907
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f909
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push esp
pop ebp
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
push edx
pop ebx
push eax
pop esi
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
push eax
pop ecx
lea edx, [esp + 4]
push ebx
pop eax
call fcn.00404554
jmp 0x402ebc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
push ebx
pop edx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
or 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
sub ebx, ebx
imul edx, dword [ebx + 0x450008], 0x8088405
inc edx
mov dword [ebx + 0x450008], edx
mul edx
push edx
pop eax
pop ebx
ret

Function at 0x403564
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffff4
movzx eax, word [0x450024]
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
sub 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
sub 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 [0x450024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x450024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x452044], 0
je 0x404341
cmp word [0x452218], 0xd7b2
jne 0x404309
cmp dword [0x452220], 0
jbe 0x404309
mov eax, 0x452214
call dword [0x452230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x450070
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 [0x450034], 0
jne 0x40435d
push 0
push 0x450068
push 0x450070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret