joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443550
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x484ca8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x443589
inc eax
mov dword [esi + 0x10], eax
jmp 0x44369c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44359d
mov eax, 0xffffffc7
jmp 0x44369e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4435ae
cmp dword [esi + 8], eax
jne 0x44359d
cmp dword [esi + 8], eax
jne 0x4435c7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4435c7
mov eax, 0xffffffc7
jmp 0x44369e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4435db
push eax
mov ecx, ebx
call fcn.00442d80
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00413480
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44360c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004134a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004424f0
test eax, eax
mov dword [esp + 0x38], eax
je 0x44363f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x552e08
call fcn.00413680
mov eax, dword [esp + 0x38]
jmp 0x44369e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004433b0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x443683
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004433d0
mov esi, eax
test esi, esi
jne 0x4436b3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004433b0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x443655
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x552e08
call fcn.00413680
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x552e08
call fcn.00413680
mov eax, esi
jmp 0x44369e

Function at 0x4467d0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x446830
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x446830
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x446830
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x446830
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x446870
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x44c790
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4852d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047c0a6
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044c130
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047bfd4
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004787c3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004787c3
push 1
push 0
push 0
mov ecx, esi
call fcn.0047876b
push 1
push 0
push 1
mov ecx, esi
call fcn.0047876b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047c118
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44c910
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4852f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047c0a6
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044c130
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047bfd4
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x44c9d4
cmp dword [esp + 0x40], 1
jne 0x44c9d2
cmp ecx, eax
jge 0x44c9d4
mov eax, ecx
cmp eax, 0xc8
jge 0x44c9e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044c790
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047c118
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44d160
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x485363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00476bdc
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047c34e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047d8a6
test eax, eax
je 0x44d27c
mov ecx, dword [esp + 0x3c]
call fcn.0047c37b
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44d240
push edi
mov ecx, esi
call fcn.00479945
mov ecx, esi
call fcn.0044d3e0
cmp dword [esp + 0x38], 1
jne 0x44d275
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00479aaf
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44fcb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44fce3
push esi
call fcn.00452dc0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44fcdc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44fd69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44fd52
mov eax, dword [esi + 8]
test eax, eax
je 0x44fd07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44fd4e
cmp eax, 2
je 0x44fd52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44fcfa
cmp eax, 3
je 0x44fd2d
cmp eax, 1
jne 0x44fcfa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44fcfa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44fcfa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044fd90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44fd78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044fd90
add esp, 4
pop esi
ret

Function at 0x4779d1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x477a09
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00475a5e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00475a36
jmp 0x477a15
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4790cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47910d
call fcn.0047edad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47910d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479104
xor eax, eax
jmp 0x479115
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047911b
pop edi
pop esi
pop ebx
ret 4

Function at 0x47f2dd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47f30b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f329
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047f243
jmp 0x47f329
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f329
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047f243
test edi, edi
mov eax, edi
jne 0x47f313
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x46709c85
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46709cb3
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x46709cba
cmp ebx, dword [eax + 4]
jae 0x46709cba
xor eax, eax
jmp 0x46709eaa
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x46709ccb
xor eax, eax
inc eax
jmp 0x46709ea9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x46709ce1
cmp ecx, edx
jae 0x46709e26
cmp dword [eax + 4], 0
je 0x46709cea
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46709cd2
cmp dword [ebp + 8], 0
je 0x46709d0c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x46709e26
cmp eax, esi
jae 0x46709e26
mov eax, dword [0x4673bed0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46709d31
cmp dword [esi*4 + 0x4673bed8], edi
je 0x46709e2a
inc esi
cmp esi, eax
jl 0x46709d1f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4672212c]
test eax, eax
je 0x46709ea6
cmp dword [ebp - 8], 0x1000000
jne 0x46709ea6
test byte [ebp - 0xc], 0xcc
je 0x46709daf
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x46709ea6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46709ea6
cmp word [eax + 0x18], 0x10b
jne 0x46709ea6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x46709ea6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x46709daf
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x46709daf
test byte [ecx + 0x27], 0x80
jne 0x46709e26
push 1
push 0x4673bf18
call dword [0x46722288]
test eax, eax
jne 0x46709cc3
mov ecx, dword [0x4673bed0]
test ecx, ecx
mov edx, ecx
jle 0x46709de3
lea eax, [ecx*4 + 0x4673bed4]
cmp dword [eax], edi
je 0x46709de3
dec edx
sub eax, 4
test edx, edx
jg 0x46709dd7
test edx, edx
jne 0x46709e14
push 0xf
pop ebx
cmp ecx, ebx
jg 0x46709df0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x46709e08
lea eax, [edx*4 + 0x4673bed8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x46709df6
cmp ecx, 0x10
jge 0x46709e14
inc ecx
mov dword [0x4673bed0], ecx
push 0
push 0x4673bf18
call dword [0x46722288]
jmp 0x46709cc3
xor eax, eax
jmp 0x46709ea9
test esi, esi
jle 0x46709cc3
mov ebx, dword [0x46722288]
push 1
push 0x4673bf18
call ebx
test eax, eax
jne 0x46709cc3
cmp dword [esi*4 + 0x4673bed8], edi
je 0x46709e80
mov eax, dword [0x4673bed0]
lea esi, [eax - 1]
test esi, esi
jl 0x46709e6e
cmp dword [esi*4 + 0x4673bed8], edi
je 0x46709e6a
dec esi
jns 0x46709e5e
test esi, esi
jge 0x46709e7e
cmp eax, 0x10
jge 0x46709e79
inc eax
mov dword [0x4673bed0], eax
lea esi, [eax - 1]
jmp 0x46709e80
je 0x46709e98
xor ecx, ecx
test esi, esi
jl 0x46709e98
lea eax, [ecx*4 + 0x4673bed8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x46709e86
push 0
push 0x4673bf18
call ebx
jmp 0x46709cc3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x467144c1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x46720e1e
call fcn.467075b0
sub esp, 0x11c
mov eax, dword [0x46736624]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x128], esi
call fcn.467159d7
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.466c2310
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x46714552
mov edi, 0x114
push edi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.46707550
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], edi
call dword [0x46722278]
cmp dword [ebp - 0x114], 2
jne 0x4671454b
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x46714552
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.467055d5
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x46714567
call fcn.4671423e
push dword [ebp + 0x20]
push ebx
push eax
call fcn.46707550
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x304], ebx
lea ecx, [esi + 0x7c]
mov word [ecx], bx
lea edi, [esi + 0xfc]
mov word [edi], bx
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x467145e6
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.4671e816
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x46714872
je 0x46714612
push 0x104
push dword [ebp + 0x10]
push edi
call dword [0x46722234]
cmp dword [ebp + 0x18], ebx
je 0x4671464b
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.466c4290
push ebx
mov ecx, edi
call fcn.466c2350
jmp 0x46714634
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.46705e0a
cmp eax, ebx
pop ecx
pop ecx
jne 0x4671462e
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.4670569d
leave
ret 0x1c

Function at 0x467a80de
Capabilities:
Encode data using xor

Disassembly:
add esi, 4
cmp ah, 0xed
add edi, 4
mov byte [esp], ah
pushal
pushal
lea esp, [esp + 0x44]
jmp 0x467a7e03
Function at 0x402ad4
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.0040427c
test esi, esi
jne 0x402b0a
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.0040436c
jmp 0x402b28
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e8
mov edi, eax
test esi, esi
je 0x402b28
cmp dword [ebx], 0
je 0x402b28
dec esi
jmp 0x402b11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4032d8
Capabilities:
Query or enumerate registry value

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

Function at 0x40407c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e304c], 0
je 0x4040dd
cmp word [0x4e3220], 0xd7b2
jne 0x4040a5
cmp dword [0x4e3228], 0
jbe 0x4040a5
mov eax, 0x4e321c
call dword [0x4e3238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4df070
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 0x404104
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4df034], 0
jne 0x4040f9
push 0
push 0x4df068
push 0x4df070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404230
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040275c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041f8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405b98
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 0x405dc8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c1b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dc8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c1b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405de4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ca4
xor eax, eax
push ebp
push 0x405c9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059e0
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 0x405c82
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e04
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c82
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 0x405ca4
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 0x405dbe
cmp byte [ebp - 0xd], 0
jne 0x405ceb
cmp byte [ebp - 0x12], 0
je 0x405dbe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d04
dec ebx
cmp byte [ebx], 0x2e
je 0x405d13
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d03
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405dbe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d50
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 0x405dbe
cmp byte [ebp - 0xd], 0
je 0x405dbe
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 0x405dbe
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