joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1c3
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040ee3a
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42a4c8
call fcn.0040f560
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41c0e0
push edi
call fcn.0040abda
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e271
push eax
call fcn.0040c0ab
cmp byte [0x421a11], bl
je 0x40e263
push 0x4139f0
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e258
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e24f
push esi
push eax
push edi
call fcn.0040ac07
push edi
push 0x413ac0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e271
push dword [ebp - 8]
push 0x413ac0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push 0x413ab0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x415e74], edi
mov dword [0x415e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41b8d8], eax
call fcn.00412992
push esi
mov ecx, 0x415e88
call fcn.0040a22e
lea ecx, [ebp - 0x5c]
call fcn.00406a41
lea ecx, [ebp - 0x34]
call fcn.00406a41
push 0x64
call fcn.0040b71f
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040b71f
push ebx
push 0x40d9a3
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41b0d4], eax
push 0x413a9c
lea eax, [ebp - 0x34]
push edi
mov dword [0x41b0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.00406a63
lea ecx, [ebp - 0x5c]
call fcn.00406a63
lea ecx, [ebp - 0xc]
call fcn.004129ec
cmp byte [0x421a08], bl
je 0x40e350
call fcn.0040c2e5
push 0x100
push ebx
push 0x4218f0
call fcn.0040abda
cmp dword [0x422b24], ebx
jbe 0x40e373
push dword [0x422b18]
call fcn.0040ab56
push dword [0x41b8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e38d
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e3ac
cmp byte [0x4219f2], bl
je 0x40e3ac
push 0xff
mov ecx, 0x415e7c
call fcn.0040341b
mov eax, dword [0x422b30]
mov byte [0x4219f2], 1
cmp eax, ebx
je 0x40e3c2
push eax
call fcn.0040c2a6
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x422b2c]
cmp eax, ebx
ja 0x40e3d6
mov eax, dword [0x415e7c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e73b
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412837
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x413b5c
push 1
xor ebx, ebx
push ebx
push 0x413c0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x412908
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413bfc
push eax
call dword [ecx]
test eax, eax
jl 0x4128ff
cmp byte [ebp + 8], bl
je 0x41288a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x4128a7
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4128b9
push 0x413704
jmp 0x4128bc
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x4128d1
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4128e2
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4128f6
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x412922
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x411210
Capabilities:
Encode data using xor

Disassembly:
xor byte [eax - 6], cl
dec eax
inc ebp
add al, byte [ecx + 4]
and al, byte [ecx]
and al, byte [ecx + 0x4e211d24]
xchg dword [eax], eax
sbb byte [edx + 0x1e], al
inc ecx
add al, 0x22
add dword [edx], esp
and dword [ebx + 0x874e21], 0x411e4218
nop
add byte [eax + 0x5109c750], 0x50
xor eax, 0x78093a1f
add eax, 0x2410104
mov ebp, dword [ebp + 0x6f1e0e3e]
loope 0x41119b
sal byte [ecx], cl
sbb al, 0x5a
ljmp 0xddcb
dec ebp
std
inc ebx
add cl, dl
inc ebp
mov edi, 0x5577a9fb
mov bh, 0x9c
idiv byte [ebx + 0x10418c4]
add al, 1
add al, 1
xchg dword [edx], edi
jge 0x4111a2
add al, 0x65
or edi, dword [esi - 0x18]
pop ds
push edi
dec ebx
cmp dh, byte [ebx + 0xc633fec]
mov word [ebx - 0x7ce6fdc9], gs
pop esi
sub eax, eax
lodsb al, byte [esi]
or dword [eax + 0x433854ca], esp
les eax, [eax + 0x866d98a]
cdq
jl 0x41129e
in al, 0x72
sbb dword [ecx + 0x35e9e550], esi
add dword [ebx + 6], eax
mov bl, 0x36
pushal
enter 0x5998, 0xc
push esp
or al, 0xaa
stosb byte es:[edi], al
push edi
std
loopne 0x411253
sbb al, 0xf3
push ebp
and byte [ebp + 0x5e], dh
ror ah, 0x71
std
sbb eax, 0x8218ce01
shr byte [edx - 0x1fd0c535], 1
nop
cmp ch, byte [edi]
loopne 0x4111ff
or edx, dword [edi - 0x5e714ace]
ljmp 0xdd33
add dword [eax - 0x1bde7fc2], eax
loop 0x41126b
cmp ch, byte [esi - 0x7d830af4]
xchg dword [edi], edi
cmp esi, dword [edi - 5]
xchg esi, eax
shr dword [esi], cl
mov ebp, 0x297539a0
shl bh, 0x90
inc esi
push ebp
add byte [edx], al
sub al, 0x9c
add ebx, eax
dec esp
imul esi, dword [ecx + 0x79], 0xffffffe5
mov dword [0xf75d17f3], eax
pop esi
xchg esp, eax
xchg dword [ebp - 0x75e119f6], esp
pop ds
cmc
invalid
Function at 0x4010d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43481c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dl, 1
lea ebx, [ebx]
movzx eax, dl
mov cl, dl
and cl, 0x80
mov byte [ebp + eax - 0x104], bl
mov byte [ebp + ebx - 0x204], dl
inc ebx
neg cl
sbb cl, cl
mov al, dl
and cl, 0x1b
add al, al
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x4010f0
mov cl, 1
mov edx, 0x470520
movzx eax, cl
shl eax, 0x18
mov dword [edx], eax
mov al, cl
and al, 0x80
add edx, 4
neg al
sbb al, al
and al, 0x1b
add cl, cl
xor cl, al
cmp edx, 0x470548
jl 0x401125
mov dword [0x470d60], 0x63
mov dword [0x46deac], 0
mov edx, 1
nop
movzx eax, byte [ebp + edx - 0x104]
lea ecx, [ebp - 0x105]
sub ecx, eax
mov al, byte [ecx]
mov cl, al
rol cl, 1
xor al, cl
rol cl, 1
xor al, cl
rol cl, 1
xor al, cl
rol cl, 1
xor cl, al
xor cl, 0x63
movzx eax, cl
mov dword [edx*4 + 0x470d60], eax
mov dword [eax*4 + 0x46dd20], edx
inc edx
cmp edx, 0x100
jl 0x401160
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 0x20c], ebx
mov edi, edi
mov dl, byte [esi + 0x470d60]
mov cl, dl
mov al, dl
and cl, 0x80
neg cl
sbb cl, cl
add al, al
and cl, 0x1b
xor cl, al
movzx eax, cl
movzx ecx, dl
mov edx, eax
shl edx, 8
xor edx, ecx
shl edx, 8
xor edx, ecx
shl edx, 8
xor edx, eax
mov al, byte [esi + 0x46dd20]
xor edx, ecx
mov dword [esi + 0x46e120], edx
ror edx, 8
mov dword [esi + 0x46e520], edx
ror edx, 8
mov dword [esi + 0x46e920], edx
ror edx, 8
mov dword [esi + 0x46ed20], edx
test al, al
je 0x401278
movzx eax, al
movzx ecx, byte [ebp + eax - 0x104]
movzx eax, byte [ebp - 0xf9]
add eax, ecx
cdq
idiv ebx
movzx eax, byte [ebp - 0xf7]
add eax, ecx
movzx edi, byte [ebp + edx - 0x204]
cdq
idiv ebx
movzx eax, byte [ebp - 0xfb]
add eax, ecx
movzx ebx, byte [ebp + edx - 0x204]
cdq
idiv dword [ebp - 0x20c]
movzx eax, byte [ebp + edx - 0x204]
mov dword [ebp - 0x208], eax
movzx eax, byte [ebp - 0xf6]
add eax, ecx
cdq
mov ecx, 0xff
idiv ecx
movzx eax, byte [ebp + edx - 0x204]
jmp 0x401284
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x208], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 0x208]
add esi, 4
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, edi
mov dword [esi + 0x46f11c], eax
ror eax, 8
mov dword [esi + 0x46f51c], eax
mov ebx, 0xff
ror eax, 8
mov dword [esi + 0x47055c], eax
ror eax, 8
mov dword [esi + 0x47095c], eax
cmp esi, 0x400
jl 0x4011b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411784
mov esp, ebp
pop ebp
ret
Function at 0x40df40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429867
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x430e7c
mov dword [edi + 0x60], 0x430ec0
mov dword [ebp - 4], 0
mov eax, dword [edi]
lea esi, [edi + 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [edi + eax], 0x430ecc
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
push esi
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0040f630
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], 0x430e70
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0040f6e0
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], 0x430e34
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x46c85c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4102a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429db8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43481c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, 0x46b190
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040a580
mov edx, 0x46b16c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040a580
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov ecx, 0x6a
mov byte [ebp - 4], 3
call fcn.00407260
test eax, eax
je 0x410327
push 0x6a
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406d30
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x4103e5
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
je 0x4103e5
cmp dword [esi - 0xc], 0
je 0x4103e5
xor ebx, ebx
lea ecx, [ecx]
xor ecx, ecx
test ebx, ebx
setne cl
sub esp, 8
mov dword [ebp - 0x28], 0
push 2
sub esp, 8
mov dword [ebp - 0x24], 0
push eax
add ecx, 0x80000001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
call fcn.00410220
test eax, eax
jne 0x4103bb
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410390
mov edi, dword [ebp - 0x28]
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4103be
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x4103d0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
inc ebx
mov dword [ebp - 0x24], 0
cmp ebx, 2
jge 0x4103e5
mov eax, dword [ebp - 0x18]
jmp 0x410350
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x410405
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410425
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x410443
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421c88
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43481c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00416524
mov dword [ebp - 0x14], eax
cmp dword [0x46c798], edi
jne 0x421d79
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x421d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x421e59
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x421e59
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421e59
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46c798], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46c79c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46c7a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46c7a8], eax
test eax, eax
je 0x421d76
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46c7a4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x421d9e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x421d91
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x421db3
push 4
pop eax
jmp 0x421e5b
cmp dword [ebp - 0x14], edi
je 0x421db3
push dword [0x46c798]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x421d98
mov eax, dword [0x46c7a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x421e11
cmp dword [0x46c7a8], esi
je 0x421e11
push eax
call ebx
push dword [0x46c7a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x421e11
test eax, eax
je 0x421e11
call ecx
test eax, eax
je 0x421e06
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x421e06
test byte [ebp - 8], 1
jne 0x421e11
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x421e41
mov eax, dword [0x46c79c]
cmp eax, esi
je 0x421e3e
push eax
call ebx
test eax, eax
je 0x421e3e
call eax
mov edi, eax
test edi, edi
je 0x421e3e
mov eax, dword [0x46c7a0]
cmp eax, esi
je 0x421e3e
push eax
call ebx
test eax, eax
je 0x421e3e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46c798]
call ebx
test eax, eax
je 0x421e59
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x421e5b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411784
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
add esp, 0x104
pop ebx
ret
Function at 0x40601a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42e75c], 0
jne 0x406058
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40602e
mov dword [ecx*4 + 0x42e758], eax
inc ecx
cmp ecx, 0x100
jl 0x406029
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406085
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42e758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406066
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x17365504
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x423669ff
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4029cf
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
call fcn.00432e70
mov ebx, dword [eax + 4]
mov ecx, esi
call fcn.0042e898
xor edi, edi
cmp dword [esi + 0xd4], edi
mov dword [ebp - 4], eax
jne 0x402b1f
push 0x2c
pop ebx
push ebx
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00414930
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 0x30], ebx
call fcn.00421d81
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsZoomed]
mov ecx, esi
mov dword [esi + 0x274], eax
call fcn.004261c3
and eax, 8
mov ecx, esi
mov dword [esi + 0x278], eax
call fcn.004261a9
and eax, 0x40000
mov dword [esi + 0x27c], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x402a5c
push edi
mov ecx, esi
call fcn.00426290
push edi
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetMenu]
cmp dword [esi + 0xf4], edi
je 0x402a7e
push edi
push edi
lea eax, [esi + 0xd8]
push eax
mov ecx, esi
call fcn.0042f3f1
cmp dword [esi + 0x1fc], edi
je 0x402a96
push edi
push edi
lea eax, [esi + 0x1e0]
push eax
mov ecx, esi
call fcn.0042f3f1
mov eax, dword [esi]
xor ebx, ebx
inc ebx
push ebx
mov ecx, esi
call dword [eax + 0x144]
push edi
push 8
push 0x100
mov ecx, esi
call fcn.00426207
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x402ad4
push edi
push edi
push 0x200
call fcn.00426207
mov ecx, dword [ebp - 4]
push 0x20
push edi
add ecx, 0x54
call fcn.00401ec8
push edi
push 0x80000000
push 0x1cc0000
mov ecx, esi
call fcn.004261dd
push ebx
mov ecx, esi
call fcn.00402112
push 0x27
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00426333
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00421d98
mov dword [esi + 0xd4], ebx
jmp 0x402c0d
cmp dword [ebx + 0xbc], edi
mov ecx, esi
push edi
je 0x402b36
push 0xc80000
push 0x80000000
jmp 0x402b3c
push 0x80480000
push edi
call fcn.004261dd
cmp dword [esi + 0x27c], edi
je 0x402b57
push edi
push 0x40000
push edi
mov ecx, esi
call fcn.004261dd
cmp dword [esi + 0x278], edi
jne 0x402b67
push edi
mov ecx, esi
call fcn.00402112
mov ebx, dword [ebp - 4]
cmp ebx, edi
je 0x402b87
push edi
push 0x200
push edi
mov ecx, ebx
call fcn.00426207
push edi
push 0x20
lea ecx, [ebx + 0x54]
call fcn.00401ec8
push edi
push 0x100
push edi
mov ecx, esi
call fcn.00426207
xor ebx, ebx
inc ebx
cmp dword [esi + 0x1fc], edi
je 0x402bb0
push edi
push ebx
lea eax, [esi + 0x1e0]
push eax
mov ecx, esi
call fcn.0042f3f1
cmp dword [esi + 0xf4], edi
je 0x402bc8
push edi
push ebx
lea eax, [esi + 0xd8]
push eax
mov ecx, esi
call fcn.0042f3f1
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x144]
cmp dword [esi + 0x274], edi
mov ecx, esi
je 0x402bef
push 0x27
push edi
push edi
push edi
push edi
push edi
call fcn.00426333
push 3
mov ecx, esi
jmp 0x402bf1
push 9
call fcn.00426290
mov eax, dword [esi + 0x58]
cmp eax, edi
je 0x402c07
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SetMenu]
mov dword [esi + 0xd4], edi
pop edi
pop esi
pop ebx
leave
ret