joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fdad
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x42fe71
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x42fe19
push 0x2152
push 0x57e2
push 1
push 0x41d6
push 0x5bfd
call fcn.0042ff0c
add esp, 0x14
jmp 0x42fe6c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0x433a
push 0x49d3
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.0044572a
add esp, 0x28
jmp 0x42ff08
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x42fee7
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x42fec5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetParent]
jmp 0x42fee5
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x42fee5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x42ff08
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
push 0
push 0x38a6
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call fcn.004304a1
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4300c1
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x430157
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x430137
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x43012a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x430135
push 0x1178
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
jmp 0x430155
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x28]
push 1
push 1
push dword [ebp - 0x2c]
call fcn.0042eef1
add esp, 0x10
jmp 0x430179
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
push 0x4325
push 0
push 0x6e6c
push dword [ebp - 0x30]
push 0x56e
call fcn.0042dc5e
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x48f909
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4a4a4c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b76c4]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0048b68f
mov dword [ebp - 0x14], eax
cmp dword [0xac366c], esi
jne 0x4a4b3f
push 0x800
push esi
push 0xaab10c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a4acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a4c1f
push esi
push esi
push 0xaab10c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a4c1f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a4c1f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xac366c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xac3670], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xac3674], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac367c], eax
test eax, eax
je 0x4a4b3c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac3678], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a4b64
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a4b57
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a4b79
push 4
pop eax
jmp 0x4a4c21
cmp dword [ebp - 0x14], esi
je 0x4a4b79
push dword [0xac366c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a4b5e
mov eax, dword [0xac3678]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a4bd7
cmp dword [0xac367c], edi
je 0x4a4bd7
push eax
call ebx
push dword [0xac367c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a4bd7
test eax, eax
je 0x4a4bd7
call ecx
test eax, eax
je 0x4a4bcc
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 0x4a4bcc
test byte [ebp - 8], 1
jne 0x4a4bd7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a4c07
mov eax, dword [0xac3670]
cmp eax, edi
je 0x4a4c04
push eax
call ebx
test eax, eax
je 0x4a4c04
call eax
mov esi, eax
test esi, esi
je 0x4a4c04
mov eax, dword [0xac3674]
cmp eax, edi
je 0x4a4c04
push eax
call ebx
test eax, eax
je 0x4a4c04
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xac366c]
call ebx
test eax, eax
je 0x4a4c1f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a4c21
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048a79b
mov esp, ebp
pop ebp
ret
Function at 0x417c13
Capabilities:
Query or enumerate registry value

Disassembly:
jl 0x417c11
adc al, 3
clc
in al, dx
or al, 0xa1
mov eax, dword [0x4c6b4c]
push ebx
push eax

Function at 0x417c1b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4c6b4c]
push ebx
push eax
call sub.WINSPOOL.DRV_StartPagePrinter
lea ecx, [esp + 8]
mov ebx, 1
push ecx
push ebx
push 0
push str.CLSID4be8a061_c73b_4f23_8114_317aae3e8698InProcServer32
push 0x80000000
mov dword [esp + 0x1c], 0
add byte [eax], al
add bh, bh
adc eax, sym.imp.ADVAPI32.dll_RegOpenKeyExW
invalid
mov edx, dword [0x4c6b4c]
mov dword [0x4c7f7c], eax
jl 0x417ccc
dec esp
invalid
push edx
call dword [sym.imp.GDI32.dll_GetBkMode]
mov dword [esp + 4], eax
mov eax, dword [0x4c7f7c]
jl 0x417cdc
dec esp
invalid
test eax, eax
jne 0x417cd0
push 0x4c6c5c
mov dword [esp + 8], 0
or byte [eax], al
add byte [eax], al
invalid
mov dword [esp + 0x10], 0x208
call fcn.004b971a
add esp, 4
test eax, eax
invalid

Function at 0x417c4b
Capabilities:
Query or enumerate registry value

Disassembly:
add byte [ebx + 0x4c6b4c15], cl
add byte [ebx + 0x4c7f7c], ah
jl 0x417ccc
dec esp
invalid

Function at 0x417c7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4c6b4c]
push ebx
push eax
call sub.WINSPOOL.DRV_StartPagePrinter
lea ecx, [esp + 8]
mov ebx, 1
push ecx
push ebx
push 0
push str.CLSID4be8a061_c73b_4f23_8114_317aae3e8698InProcServer32
push 0x80000000
mov dword [esp + 0x1c], 0
add byte [eax], al
add bh, bh
adc eax, sym.imp.ADVAPI32.dll_RegOpenKeyExW
invalid
mov edx, dword [0x4c6b4c]
mov dword [0x4c7f7c], eax
jl 0x417ccc
dec esp
invalid
push edx
call dword [sym.imp.GDI32.dll_GetBkMode]
mov dword [esp + 4], eax
mov eax, dword [0x4c7f7c]
jl 0x417cdc
dec esp
invalid
test eax, eax
jne 0x417cd0
push 0x4c6c5c
mov dword [esp + 8], 0
or byte [eax], al
add byte [eax], al
invalid
mov dword [esp + 0x10], 0x208
call fcn.004b971a
add esp, 4
test eax, eax
invalid

Function at 0x417c93
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
lea ecx, [esp + 8]
push 0x4c6c5c
dec esp
add byte [ecx + 0x6a], dl
add byte [edx], ch
push edx

Function at 0x417c9b
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
lea ecx, [esp + 8]
push 0x4c6c5c
dec esp
add byte [ecx + 0x6a], dl
add byte [edx], ch
push edx
Function at 0x41fb33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0041ce2b
xor eax, eax
push ebp
push 0x40c945
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x41fb73
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call fcn.00417c0b
jmp 0x41fb8d
push 0x105
mov eax, dword [ebp - 4]
call fcn.0041d923
push eax
lea eax, [ebp - 0x21a]
push eax
call fcn.00417cf3
cmp word [ebp - 0x21a], 0
je 0x41fd42
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c954
push 0x80000001
call fcn.00417ca3
test eax, eax
je 0x41fc5c
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c954
push 0x80000002
call fcn.00417ca3
test eax, eax
je 0x41fc5c
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c990
push 0x80000001
call fcn.00417ca3
test eax, eax
je 0x41fc5c
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c990
push 0x80000002
call fcn.00417ca3
test eax, eax
je 0x41fc5c
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c9c4
push 0x80000001
call fcn.00417ca3
test eax, eax
je 0x41fc5c
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c9f8
push 0x80000001
call fcn.00417ca3
test eax, eax
jne 0x41fd42
xor eax, eax
push ebp
push 0x40c928
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0041f93f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00417cab
test eax, eax
jne 0x41fccb
mov eax, dword [ebp - 0x10]
call fcn.00419873
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.00417cab
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0041d98b
jmp 0x41fd16
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ca38
mov eax, dword [ebp - 0xc]
push eax
call fcn.00417cab
test eax, eax
jne 0x41fd16
mov eax, dword [ebp - 0x10]
call fcn.00419873
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ca38
mov eax, dword [ebp - 0xc]
push eax
call fcn.00417cab
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0041d98b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c92f
cmp dword [ebp - 8], 0
je 0x41fd31
mov eax, dword [ebp - 8]
call fcn.0041988f
mov eax, dword [ebp - 0xc]
push eax
call fcn.00417c9b
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c94c
lea eax, [ebp - 4]
call fcn.0041cd47
ret

Function at 0x4459c3
Capabilities:
Encode data using xor

Disassembly:
or byte [edi], dh
fmul dword [eax + 0x22e7fbe]
jb 0x445980
out dx, eax
xor dword [ecx + 0x72081a28], eax
jae 0x4459b4
invalid
mov eax, 0x5689816e

Function at 0x4a242b
Capabilities:
Encode data using xor

Disassembly:
inc ebx
push esi
and byte [eax], ah
adc esp, dword [ebx + ebx*2 - 0x8b509e1]
invalid
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x5d5d5c02
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x4b963a6a
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x25911283
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2751741a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40294c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402989
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029a9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404844
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b10
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.004045dc
test esi, esi
jne 0x402b46
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.004046cc
jmp 0x402b64
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a24
mov edi, eax
test esi, esi
je 0x402b64
cmp dword [ebx], 0
je 0x402b64
dec esi
jmp 0x402b4d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036b4
Capabilities:
Query or enumerate registry value

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

Function at 0x404440
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47104c], 0
je 0x4044a1
cmp word [0x471220], 0xd7b2
jne 0x404469
cmp dword [0x471228], 0
jbe 0x404469
mov eax, 0x47121c
call dword [0x471238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46f054
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 0x4044c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46f01c], 0
jne 0x4044bd
push 0
push 0x46f074
push 0x46f054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40606c
Capabilities:
Get geographical location

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 0x406190
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fe3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406190
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405fe3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4061ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40606c
xor eax, eax
push ebp
push 0x406065
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405da8
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 0x40604a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4061cc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40604a
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 0x40606c
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 0x406186
cmp byte [ebp - 0xd], 0
jne 0x4060b3
cmp byte [ebp - 0x12], 0
je 0x406186
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4060cc
dec ebx
cmp byte [ebx], 0x2e
je 0x4060db
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4060cb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406186
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406118
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 0x406186
cmp byte [ebp - 0xd], 0
je 0x406186
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 0x406186
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