joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x11524e7c
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7ce66531
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x6a789520
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6ae83040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6a789580

Function at 0x6a789580
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6ae84378]
test esi, esi
jle 0x6a78966d
mov edi, dword [0x6ae8437c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6a7895b4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6a789666
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6a7895a0
mov dword [esp], eax
mov esi, eax
call fcn.6a789d20
test eax, eax
mov edi, eax
je 0x6a7896aa
mov esi, dword [0x6ae8437c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.6a789e30
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6ae8437c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6a78968a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x6a78965f
sub eax, 0x40
and eax, 0xffffffbf
je 0x6a78965f
mov eax, dword [esp + 0x20]
add ebx, dword [0x6ae8437c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6a789674
add dword [0x6ae84378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x6a7895be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6a789520
mov eax, dword [0x6ae8437c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6a789520
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6a789520
lea esi, [esi]
Function at 0x6a789990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6ae84388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6ae84380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6a7899e5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6a7899de
test esi, esi
je 0x6a7899de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6a7899c0
mov dword [esp], 0x6ae84388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
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
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x41f327
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [ebp - 0xc]
call fcn.00420966
call fcn.00429334
pushfd
pushfd
jmp 0x42b73c
setg dh
lea edx, [esi*2 - 0x2cf15e2d]
pushal
xchg dword [esp + 0x1c], eax
rdtsc
xchg edx, eax
pop eax
jmp 0x41a1f6
push 0x10fb788
mov byte [esp], bl
pushal
lea esp, [esp + 0x24]
call fcn.00403f08
cwde
bswap ax
push ecx
mov eax, dword [ebp - 8]
pushal
lea esp, [esp + 0x24]
call fcn.00406cac
rol bx, 1
jmp 0x42df7e
pushfd
pushal
call fcn.0043173b
lea esp, [esp + 0x20]
mov dword fs:[eax], esp
not dh
not si
rdtsc
movzx dx, dl
mov esi, 0x24438835
jl 0x4220ed
cdq
cwde
mov edi, 0x24438835
jmp 0x431616
xchg di, dx
mov edi, 0x24438835
movsx dx, dl
rdtsc
lea eax, [ecx - 0x118567aa]
mov dword [ebp - 4], 0x7adfd1
movzx ax, al
rdtsc
lea eax, [ebp - 8]
seta dh
jp 0x41cc16
push eax
pushfd
setg dl
cwde
lea edx, [ebp - 0xc]
lahf
bswap eax
mov ah, 0x16
mov eax, ebx
pushal
mov dword [esp + 0xc], 0x517b8863
pushfd
push 0xe06fa976
lea esp, [esp + 0x2c]
call fcn.00406b70
btc ax, sp
bts ax, si
not al
daa
mov eax, dword [ebp - 0xc]
shl ch, cl
cmp al, bl
mov ecx, 9
cmc
clc
bt di, di
xor edx, edx
jmp 0x41cf01
lea eax, [esp - 0x7f66d771]
movzx ax, cl
mov eax, dword [ebp + 0x20]
call fcn.0041b109
nop
bswap cx
mov ecx, dword [esp + 0x20]
mov byte [esp], dh
mov byte [esp], 0xfa
pushal
mov word [esp], sp
xchg dword [esp + 0x44], ecx
push 0x7a10b2e
push dword [esp]
xchg dword [esp + 0x48], ecx
movsx cx, cl
call fcn.00436d78
jmp 0x435c53
call fcn.0041b350
mov dword [ebp - 0x38], eax
bswap eax
jmp 0x4222b0
not bl
mov ebx, eax
push ecx
mov byte [esp], bh
pushfd
clc
cmp ebx, esi
lea esp, [esp + 8]
jl 0x41d974
jne 0x4245f3
push edx
pushfd
mov ebx, 0x48871451
pushfd
pushfd
mov byte [esp + 8], 0x67
lea esp, [esp + 0x10]
jmp fcn.00447212
mov dword [ebp - 4], 0x7adfd1
mov ah, 0x74
xchg dx, ax
lea eax, [ebp - 8]
not dx
not dh
lea edx, [edi - 0x5e21db2c]
push eax
not dl
call fcn.00420be6
mov byte [esp + 0xc], 0x84
lea esp, [esp + 0x24]
call fcn.00407e3c

Function at 0x42117c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [ebp - 0x9cd4]
pop dword [esp]
lea eax, [ebx + 0x16abc321]
pushfd
mov dword [esp], 0x4135c8
rdtsc
lea edx, [esi*8 + 0x5e8c78da]
push dword [ebp - 0x10]
movsx dx, cl
lahf
cwde
xchg al, dl
lea eax, [ebp - 0x24]
movsx edx, dl
movzx dx, cl
mov edx, 0x24
pushal
pushfd
pushal
jmp 0x42a689
lea esp, [esp + 0x44]
call fcn.00403d68
lea ecx, [ebx*2 + 0x1ca51485]
movzx cx, bl
mov eax, dword [0x414574]
push 0x1d7f8ef5
movsx cx, bl
mov byte [eax], 0x2e
pushal
mov dword [esp + 0x20], 1
movzx cx, bl
mov dword [esp + 0x1c], 1
cdq
sets cl
jmp 0x41b9a3
Function at 0x421b81
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x41c93c
push 0xb0520150
pushfd
pushfd
lea esp, [esp + 0xc]
je 0x445ded
and al, 0x41
cwde
stc
lea ecx, [ebp - 0x9ce0]
clc
shrd ax, bx, 0xe
push 0x4d6e4a92
sub edx, edx
movzx bx, dl
movsx ax, al
mov eax, dword [ebp - 0x20]
movzx ebx, cl
mov ebx, dword [eax]
mov byte [esp], bl
lea esp, [esp + 4]
jns 0x42b687
push 0x437dc4
jmp 0x429aeb
push 0x413598
lea edx, [ebx + 0x28a7ef2]
pushfd
rdtsc
cdq
lea edx, [ebp - 0x9ccc]
lea eax, [esp + 0x6d129d70]
mov eax, dword [ebp + 0x80]
push dword [esp]
lea esp, [esp + 8]
call fcn.00406b70
bswap edx
push dword [ebp - 0x9ccc]
cdq
pushfd
movsx ax, al
mov dword [esp], 0x4135a8
rdtsc
bswap ax
lea edx, [ebp - 0x9cd0]
push edx
movzx ax, al
mov ax, cx
mov eax, dword [ebp + 0x84]
jmp 0x421ade
mov byte [esp], 0xe0
lea esp, [esp + 4]
js 0x4450cc
call fcn.00406b70
lea edx, [eax*4 + 0x188b419c]
call fcn.00433b5d
call fcn.0043185e
test al, al
jge 0x41bd9d
pushal
pushfd
mov byte [esp], 0x3b
lea esp, [esp + 0x24]
je 0x445ded
adc al, 0x82
lea ecx, [ebp - 0x9ce0]
pushfd
bswap ax
xor edx, edx
movsx bx, bl
pushfd
not al
mov eax, dword [ebp - 0x20]
lea ebx, [esi*2 - 0x2d13fccf]
push ecx
mov ebx, dword [eax]
mov dword [esp], 0xf1d12a1
push 0x85c7df42
push dword [esp]
mov dword [esp + 0x10], 0x431694
mov byte [esp], 0x5e
jmp 0x430d20
lea esp, [esp + 0xc]
call fcn.00407ddc
cmc
rol ah, cl
sets al
push dword [ebp - 0x9cc4]
sar ah, 4
push 0x413588
rol ah, cl
shld eax, ebx, cl
fld qword [ebp + 0x78]
jmp 0x437692
call fcn.004317b1
jp 0x429b49
in eax, 0x60
sets bl
mov ebx, dword [ebp + 0x24]
push dword [esp + 4]
mov byte [esp], bh
mov byte [esp], dl
lea esp, [esp + 0x24]
jmp fcn.00428a8e
mov ch, 0x40
arpl di, di
jmp dword [esi + 0xf]
call fcn.00433175
jmp 0x432a8e
mov byte [esp], 0xe5
lea esp, [esp + 0x44]
call fcn.00407ddc
cwde
push dword [ebp - 0x9cc8]
mov dh, cl
jmp 0x420cc9
mov dword [esp], 0x609764b5
push 0x4156acd4
push dword [ebx + 0xc]
pop dword [esp + 0x10]
push edx
push dword [esp + 0x14]
ret 0x18
pushfd
pushfd
lea esp, [esp + 0xc]
call fcn.00403a30
pushfd
pushfd
push dword [esp]
pushfd
push dword [esp + 0x10]
ret 0x14
add esp, 0xfffffff4
cwde
setg al
setbe al
pushal
fstp xword [esp + 0x20]
movsx eax, dl
pushal
not ah
setne al
wait
movsx eax, cl
setne ah
push ebp
lea eax, [ebp - 0x9cc8]
jmp 0x430b90
shl dh, cl
rcl dx, 0xd
xor eax, eax
call fcn.004481b8
Function at 0x424b29
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [ebp - 0x9cd0]
push 0x38de5f6e
mov eax, dword [ebp + 0x84]
pushal
lea esp, [esp + 0x2c]
call fcn.00406b70
pushal
rdtsc
push dword [ebp - 0x9cd0]
pop dword [esp + 0x1c]
pop eax
mov ax, 0xbf0b
cwde
mov dword [esp + 0x14], 0x4135b8
bswap eax
lea eax, [ebp - 0x7f773dc8]
lea edx, [ebp - 0x9cd4]
pop eax
bswap ax
cwde
not al
mov eax, dword [ebp + 0x88]
mov byte [esp], 0xb7
mov word [esp], 0x71f0
pushal
lea esp, [esp + 0x30]
call fcn.00406b70
lahf
bswap edx
sete al
push dword [ebp - 0x9cd4]
bswap eax
cdq
bswap dx
push 0x4135c8
movzx dx, dl
push dword [ebp - 0x10]
rdtsc
cwde
lea eax, [ebp - 0x24]
lea edx, [esi - 0xc3a0975]
mov edx, 0x24
jmp 0x447535
mov dword [esp + 0xc], 1
mov word [esp], 0xcbed
push dword [esp + 8]
pushfd
lea esp, [esp + 0x14]
jmp 0x443f22
lea esp, [esp + 0x28]
call fcn.0042894a
call fcn.004287ed
lea edx, [edi*8 - 0x4b73f120]
movsx ax, bl
xchg cx, dx
push 1
lea eax, [ecx - 0x3c243b8c]
cdq
setne ch
lea eax, [ebp - 0x9cd8]
mov cl, bl
push eax
movsx dx, al
push 0xd58d08be
xchg ecx, edx
mov ecx, 0x4135d4
not dh
movsx ax, al
pushal
cdq
mov edx, 0x4135f8
lahf
pushfd
lahf
mov eax, dword [ebp - 0x24]
jmp 0x43175a
pushal
push edi
mov byte [esp], 0xae
lea esp, [esp + 0x24]
call fcn.00403d68
push 0xe3f8370d
mov eax, dword [0x414574]
push dword [esp]
pushfd
pushfd
mov byte [eax], 0x2e
jmp 0x4314f0

Function at 0x429d30
Capabilities:
Packed with generic packer

Disassembly:
call fcn.00427d37
mov eax, 0x56db88c7
and al, 0xd4
mov dword [0x88098db4], eax
and al, 0xe4
invalid

Function at 0x4317d5
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop eax
pushal
mov eax, dword [ebp - 0x9ce0]
pushal
lea esp, [esp + 0x40]
call fcn.00407e3c
movzx dx, bl
setne bh
mov eax, dword [ebp - 0x38]
not dh
movzx cx, dl
not dl
bswap cx
fstp qword [eax]
cwde
not edx
rdtsc
lea eax, [esp - 0x60d3eaf6]
wait
rdtsc
rdtsc
seto ch
xchg dl, al
lea ecx, [ebp - 0x9ce4]
xchg bl, dl
cwde
movsx bx, dl
mov edx, 1
xchg bx, ax
mov eax, dword [ebp - 0x20]
pushfd
not bx
call fcn.004303d6

Function at 0x433955
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x24]
call fcn.00406b70
movzx ax, al
lea esp, [esp + 0x20]
call fcn.00429b72
setbe dh
lea edx, [ebp - 0x9c9c]
pushal
pushfd
lea esp, [esp + 0x24]
call fcn.00406b70
push eax
push dword [ebp - 0x9c9c]
pop dword [esp]
rdtsc
lahf
push 0x4134e8
bswap ax
bswap ax
lea eax, [esp - 0x90be372]
rdtsc
lea edx, [ebp - 0x9ca0]
pushal
push esp
cwde
mov eax, dword [ebp + 0x34]
jmp 0x4334c5
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0xef4a34
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef4a3e
pushal
call 0xef4a44
pop ebp
sub ebp, 0x10
sub ebp, 0xaf4a34
jmp 0xef4a5a
mov eax, 0xaf4a34
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bb
mov edx, 0xa70c000d
xor byte [eax], dl
inc eax
dec ecx
jne 0xef4a71
jmp 0xef4a84
xchg al, al
xchg byte [ecx + esi - 0x73f2f2f3], al
int3
Function at 0x402e58
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a30
test esi, esi
jne 0x402e8f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404b20
jmp 0x402eb0
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cf4
mov dword [esp], eax
test esi, esi
je 0x402eb0
cmp dword [ebx], 0
je 0x402eb0
dec esi
jmp 0x402e97
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403b10
Capabilities:
Query or enumerate registry value

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

Function at 0x4048ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x482048], 0
je 0x40490d
cmp word [0x48221c], 0xd7b2
jne 0x4048d5
cmp dword [0x482224], 0
jbe 0x4048d5
mov eax, 0x482218
call dword [0x482234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x480094
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 0x404934
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x480034], 0
jne 0x404929
push 0
push 0x48008c
push 0x480094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4069a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406a0e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404ca0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4069f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a15
lea eax, [ebp - 0x10]
call fcn.00404a30
ret

Function at 0x409564
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ef0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40957d
test al, 0x10
jne 0x409581
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409670
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404ef0
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409692
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c374
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c3ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b20
jmp 0x40c3b6
mov eax, ebx
mov edx, esi
call fcn.00404a84
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c3c0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c3e1
mov al, byte [esp]
jmp 0x40c3e3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret