joyce8/EMBER2024-capa huggingface dataset:
Function at 0x502210
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x565300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
mov ecx, dword [edi + 0x148]
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x154]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x150]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x158]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x14c]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x15c]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x160]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x170]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x174]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x178]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x17c]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x184]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x180]
xor ebx, ebx
test esi, esi
sete bl
mov eax, dword [ecx]
push ebx
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x188]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xd0]
mov ecx, dword [edi + 0x18c]
push esi
mov eax, dword [ecx]
call dword [eax + 0xd0]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [edi + 0x38]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
test esi, esi
je 0x502350
push 0x311
call fcn.0040bc40
mov ecx, eax
call fcn.0040c2d0
mov ecx, dword [ebp - 0xc]
push dword [edi + 0x38]
sub ecx, eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
jmp 0x502376
push 0xbe
call fcn.0040bc40
mov ecx, eax
call fcn.0040c2d0
mov ecx, dword [ebp - 0xc]
push dword [edi + 0x38]
sub ecx, eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 1
push 0x2430
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push str.MSG_MODE_CHG_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
push 0x28
mov dword [ebp - 0x24], eax
call fcn.0040bc40
mov ecx, eax
call fcn.0040c2d0
mov esi, dword [ebp - 8]
sub esi, eax
push 0x28
mov dword [ebp - 0x20], esi
call fcn.0040bc40
mov ecx, eax
call fcn.0040c2d0
add eax, esi
sub esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, esp
movups xmm0, xmmword [ebp - 0x24]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x24]
push eax
call fcn.00505df0
add esp, 0x14
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
mov eax, dword [eax + 8]
push 1
push ecx
sub eax, esi
push eax
push edx
push esi
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret 4
Function at 0x5063b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x565300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5652c4]
cmp eax, 0xffffffff
jne 0x5065b0
push esi
push 0x110
lea eax, [ebp - 0x114]
mov dword [0x5652c4], 0xfffffc18
push 0
push eax
mov dword [ebp - 0x118], 0x114
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5065aa
cmp dword [ebp - 0x108], 2
jne 0x5065aa
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x506512
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x506450
mov eax, 1
mov dword [0x5652c4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x5064f0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea eax, [ebp - 0x104]
push 0x7f
push eax
push str.Service_Pack_1
call esi
add esp, 0xc
test eax, eax
jne 0x50648f
mov eax, 3
mov dword [0x5652c4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
test eax, eax
jne 0x5064bf
mov eax, 4
mov dword [0x5652c4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call esi
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov dword [0x5652c4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x5065aa
mov eax, 6
mov dword [0x5652c4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x50658c
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x506587
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
lea eax, [ebp - 0x104]
push 0x7f
push eax
push str.Service_Pack_1
call esi
add esp, 0xc
test eax, eax
je 0x50656e
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
test eax, eax
je 0x50656e
mov eax, 7
mov dword [0x5652c4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
mov eax, 8
mov dword [0x5652c4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
cmp eax, 1
jmp 0x50658f
cmp eax, 7
jne 0x5065aa
mov eax, 9
mov dword [0x5652c4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5652c4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret

Function at 0x506c10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x506c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ecx, 1
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
Function at 0x506e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x506e80
sub esi, ecx
push edi
push esi
push edi
call fcn.00507b60
push dword [ebp + 0xc]
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 0x10
xor esi, esi
test ebx, ebx
jle 0x506ec8
nop dword [eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov cl, byte [edi + esi]
add al, 0x11
xor cl, al
xor cl, 2
mov byte [edi + esi], cl
inc esi
cmp esi, ebx
jl 0x506eb0
mov byte [ebx + edi], 0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5070b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x5070c1
sub esi, ecx
mov dword [ebp - 0xc], esi
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
jne 0x5070ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
test esi, esi
jle 0x50711e
sub ebx, dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov cl, byte [edi + ebx]
lea edi, [edi + 1]
add al, 0x11
xor cl, al
xor cl, 2
mov byte [edi - 1], cl
sub esi, 1
jne 0x507100
mov esi, dword [ebp - 0xc]
lea eax, [esi*2 + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x507146
push edi
push esi
push dword [ebp - 4]
call fcn.00507bc0
add esp, 0xc
mov byte [edi + esi*2], 0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x507720
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x565300]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20c
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
push 0x105
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x529268
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x5077c0
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x5077c5
mov eax, 0x7c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ea5d
mov esp, ebp
pop ebp
ret
Function at 0x50f9d1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x50fa10
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x50fa10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x50fa10
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x50fa10
cmp dword [ecx + 0x74], 0xe
jbe 0x50fa10
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4c73d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4054a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x4c
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x402ca0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.004c75f0
movsx eax, ax
test eax, eax
je 0x4c7566
mov dword [ebp - 4], 4
call fcn.00414f10
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea ecx, [ebp - 0x3c]
push ecx
push 0x28
mov edx, dword [ebp - 0x50]
push edx
call fcn.00414ec4
mov dword [ebp - 0x54], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor eax, eax
cmp dword [ebp - 0x54], 0
sete al
neg eax
movsx ecx, ax
test ecx, ecx
je 0x4c7490
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00414fa0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 7
lea eax, [ebp - 0x34]
push eax
push 0x41c0b0
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x414ab8
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.00415338
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor eax, eax
cmp dword [ebp - 0x50], 0
sete al
neg eax
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
movsx eax, word [ebp - 0x58]
test eax, eax
je 0x4c7509
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00414fa0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x2c], 2
mov dword [ebp - 4], 0xc
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004153d8
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x50], 0
jne 0x4c7566
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00414fa0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0xffffffffffffffff
push 1
call fcn.00414d6c
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0x11
push 0
mov edx, dword [ebp - 0x44]
push edx
call fcn.00414f5c
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
push 0x4c75d5
jmp 0x4c75d4
ret
Function at 0x405ed6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232fc], 0
push esi
jne 0x405f0d
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ee7
mov dword [ecx*4 + 0x4232f8], eax
inc ecx
cmp ecx, 0x100
jl 0x405ee2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f3e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232f8]
xor eax, esi
inc ecx
dec edx
jne 0x405f20
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4cb723a0
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x63ca3d7a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4033c8
Capabilities:
Query or enumerate registry value

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

Function at 0x404244
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a204c], 0
je 0x4042a5
cmp word [0x4a2220], 0xd7b2
jne 0x40426d
cmp dword [0x4a2228], 0
jbe 0x40426d
mov eax, 0x4a221c
call dword [0x4a2238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49c06c
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 0x4042cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49c030], 0
jne 0x4042c1
push 0
push 0x49c064
push 0x49c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404400
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.00402ad4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043c8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406708
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 0x40676e
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.004046bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f80
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406758
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406775
lea eax, [ebp - 0x10]
call fcn.0040444c
ret

Function at 0x40be90
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 0x40bec9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040453c
jmp 0x40bed2
mov eax, ebx
mov edx, esi
call fcn.004044a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bedc
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 0x40befd
mov al, byte [esp]
jmp 0x40beff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c594
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c3fc
mov eax, dword [0x4a16dc]
cmp byte [eax], 0
je 0x40c610
mov eax, dword [0x4a1338]
call fcn.00402dec
call fcn.00402c60
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409564
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c658
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c646
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a12a4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a2668]
call fcn.00405b58
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cf08
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cfde
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044e4
lea eax, [ebp - 8]
call fcn.0040495c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040490c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cfc8
mov eax, ebx
call fcn.00402ad4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cfc1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040490c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cfab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cff0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cfab
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfc8
mov eax, dword [ebp - 0x10]
call fcn.00402b04
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfe5
lea eax, [ebp - 8]
call fcn.0040444c
ret

Function at 0x40d5c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d624
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004046bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409000
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d62b
lea eax, [ebp - 0xc]
call fcn.0040444c
ret

Function at 0x42069c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004204f4
dec esi
jne 0x4206be
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a288c
cmp dword [edi], 0
jne 0x42187c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a2888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49c4a4
mov ecx, 2
call fcn.00402cf4
mov edx, 0x4217d8
lea eax, [esi + 5]
call fcn.004217f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004217f8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x421851
mov dword [0x4a2888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x422ea8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x422eae
ret

Function at 0x425468
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4254b9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4254a0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425490
jmp 0x4254b9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4254a1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e578
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004048fc
xor eax, eax
push ebp
push 0x42e6a6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42e679
xor eax, eax
push ebp
push 0x42e672
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040470c
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42e647
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42e636
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040470c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.0040490c
mov edx, ebx
pop ecx
call fcn.00402cf4
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e63d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4a11d8]
mov dl, 1
mov eax, dword [0x407b2c]
call fcn.0040c724
call fcn.00403dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e6ad
lea eax, [ebp - 4]
call fcn.0040444c
ret