joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c340
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a01a0
push 0x47aa74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.00478e20
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46c4f0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x46c531
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x46c59e
cmp dword [esp + 0x1c], 2
jne 0x46c59e
cmp dword [esp + 0x10], 5
jne 0x46c59e
cmp dword [esp + 0x14], 1
jne 0x46c59e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46c588
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46c579
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x46c581
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x46c59e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x46d140
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.00479700
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.0047a86e
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x46d2ed
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x46d2ed
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.0046d300
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.0046d300
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.0046d300
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.0046d300
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x46d2ed
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret
Function at 0x4751f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x475293
test eax, eax
jbe 0x475293
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x475293
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47523e
xor esi, esi
jmp 0x475244
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47526f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0041be10
add esi, eax
push esi
mov ebx, esi
call fcn.0041be10
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x475250
pop ebp
test edi, edi
pop edi
jne 0x475293
test ebx, ebx
je 0x475293
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00479820
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4753d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4754ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4754ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048a3a5
mov esi, eax
test esi, esi
je 0x4754ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4754ed
mov ecx, esi
call fcn.00475340
cmp edi, eax
jge 0x4754ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x475473
mov dword [esp + 0x34], 1
jmp 0x4754ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4754ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004748d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48ad48
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48ad80
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00488dd5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488dad
jmp 0x48ad8c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48c43d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48c47f
call fcn.00491ef2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48c47f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48c476
xor eax, eax
jmp 0x48c487
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048c48d
pop edi
pop esi
pop ebx
ret 4

Function at 0x492422
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x492450
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49246e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00492388
jmp 0x49246e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49246e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00492388
test edi, edi
mov eax, edi
jne 0x492458
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x56288d
Capabilities:
Encode data using xor

Disassembly:
adc ch, byte [edx]
sar byte [esi - 0x5f], 0xb9
dec ecx
test eax, 0x909c6b81
insd dword es:[edi], dx
invalid

Function at 0x5b0c1d
Capabilities:
Encode data using xor

Disassembly:
adc bl, byte [edx]
lahf
jb 0x5b0bbc
cdq
int1
sub byte [eax], bh
into
or al, cl
hlt
mov dh, 0x3c
loope 0x5b0c2d
salc
les eax, [esi]
enter 0xffffffffffffd83b, 0x2c
mov ah, 0xc3
je 0x5b0bb2
mov byte [esi - 0x60959468], dh
jl 0x5b0c7a
mov dh, 0x98
imul ebp, dword [edx - 0x61], 0x7c
inc esi
adc al, 0x1a
adc al, 0x6a
and al, 0x1a
add al, 0x5a
push 0x24
sbb al, byte [edx + ebx*2]
leave
xor byte [edi], dl
daa
jp 0x5b0c37
hlt
xchg esi, eax
invalid
sbb dword [ebx + edi], 0xffffffd8
mov ah, 0x6d
lcall 0xce98, 0x7e5646e1
in al, 6
je 0x5b0ce0
les edi, [eax + 0x16112653]
cmp cl, cl
or dl, bh
add byte [ebx - 0x1c], dh
salc
clc
mov byte [esi + esi*2], 0x91
out dx, al
movsb byte es:[edi], byte [esi]
lcall 0x263c, 0xf3704fb8
push 0x1264156
outsb dx, byte [esi]
push esp
push 0x77
sar ah, 1
sbb eax, dword [esi + esi - 0x29d0d52c]
mov eax, dword [0xd836c486]
sub eax, 0x86f4c3a6
inc eax
mov edx, 0x9631665a
js 0x5b0c42
dec eax
dec edx
push esp
xor eax, 0xc6f81ae9
xchg esp, eax
push esp
call 0xc4ad40df
cmpsb byte [esi], byte es:[edi]
aam 0xa1
fcomp dword [ebx - 0x45]
inc esi
leave
jbe 0x5b0c63
in al, dx
pop edx
or byte [edx + 0x6a197604], al
les edx, [esi]
jnp 0x5b0ce5
aaa
shr dh, cl
test eax, 0x7c03f496
invalid
Function at 0x5f8e6d
Capabilities:
Encode data using xor

Disassembly:
xchg dl, dl
cmp al, 0xd
cmp byte [esi - 0x36], dh
daa
cwde
int1
arpl word [edi], dx
inc edx
xchg ecx, eax
std
das
aaa
inc eax
jmp 0x2f3446cd
cmc
mov eax, 0x30ce55f6
invalid
not byte [ebp - 0x32]
xor al, dh
sal dword [ebx + 0x47], 1
cmp eax, 0x1ef1c153
outsb dx, byte [esi]
mov bh, 0
lodsd eax, dword [esi]
imul edi, dword [edx + ecx*8 + 0x40], 0xbba9b401
jl 0x5f8e39
inc eax
add dword [ecx + ebp*4 + 0x409dadbb], esi
jl 0x5f8e39
inc eax
add dword [ecx + ebp*4 + 0x409dadbb], esi
fadd qword [ebp + ecx*8 + 0x69]
je 0x5f8e5b
cli
sbb al, 4
dec esp
dec ebx
and esp, dword [edi + 0x7419430a]
push es
jecxz 0x5f8efe
or esi, ecx
dec byte [0x733b8da5]
or bh, bl
cmc
loopne 0x5f8e2f
popal
push ecx
mov ebp, ebx
push ss
xchg ecx, eax
xor eax, 0x6c7aeb02
lodsd eax, dword [esi]
or ecx, esi
pop ecx
xchg edx, eax
nop
std
sbb byte [esi - 0x5cfa431d], bh
nop
nop
daa
loop 0x5f8ea7
fadd qword [edi - 0x381fdff]
test byte [edi - 0x71], al
mov al, byte [0xb9ff243c]
loop 0x5f8eb3
insd dword es:[edi], dx
loop 0x5f8e59
sti
mov esi, 0x85100c75
adc esi, eax
sbb bl, byte [ebp - 0x6efdc037]
loope 0x5f8f0a
jb 0x5f8f2a
adc byte [ebx + eax*4], bl
stosb byte es:[edi], al
nop
and bl, byte ds:[0x6fb1de40]
mov cl, 0x6f
mov cl, 0xd8
pop ebp
arpl sp, bp
fisttp word [edx + 0x65]
aam 0xa5
in al, dx
xchg bp, ax
insb byte es:[edi], dx
int3
inc ecx
sti
dec edi
cmp al, 0x18
push esp
push edi
dec esp
cmp ebx, esi
mov ch, 0x87
loop 0x5f8f5f
test dword [edx], ebx
sub al, 0x70
test dword [edx], ebx
or byte [edx], al
xchg esp, eax
loope 0x5f8ee8
xor dword [ebx + ecx], 0x21c86dda
cwde
jmp 0x819c3b05
pop ecx
mov bh, 0xb1
push edi
jl 0x5f8f78
ljmp 0xb151:0xa381c70
add esi, dword [ecx]
cmp al, 0xb1
fisub word [esi + 0x1c]
xor dword [ebx + edx*2 - 0x37ce6a1], edi
sub dword [eax], edx
imul esi, dword [eax + 0x22c80a61], 0x513e2122
push ecx
or eax, 0x2722ffe0
psubsb mm2, qword [ecx - 0x5c]
mov cl, 0x31
mov ah, 0x5d
lds ebp, [edi + 0x79e3498b]
neg byte [esi]
loopne 0x5f8f9f
cmp byte [ecx - 0x3de5fe1c], ah
inc ebp
xchg esp, eax
clc
popfd
pop eax
fsubr st(0), st(0)
mov word [eax - 0x74], ss
lodsb al, byte [esi]
pop ds
xor dword [eax + 0x7bb47da0], ebx
mov word [edi + ebx + 0x7da09831], gs
mov ah, 0x7b
mov eax, dword [0x5326fa29]
sub al, 0xb8
adc al, 0x61
mov ebp, 0xa702be9c
ror byte [ecx + ecx*8 + 0x72139e06], 0xdc
add eax, 0xa3fcfae8
adc edi, ebp
push esp
cmc
insb byte es:[edi], dx
outsb dx, byte [esi]
retf
Function at 0x64f0e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x650550
push 0x64f0d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
cld
add bh, bh
adc eax, sym.imp.MSVCRT.dll___set_app_type
pop ecx
or dword [0xa541c4], 0xffffffff
or dword [0xa541c8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0xa541c0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0xa541bc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0xa541cc], eax
call fcn.0064f25f
cmp dword [0x653460], ebx
jne 0x64f163
push 0x64f25c
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0064f24a
push 0x65300c
push 0x653008
call sub.MSVCRT.dll__initterm
mov eax, dword [0xa541b8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0xa541b4]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x653004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x64f1f6
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64f1ca
cmp al, 0x22
jne 0x64f1bc
cmp byte [esi], 0x22
jne 0x64f1d3
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x64f1dd
cmp al, 0x20
jbe 0x64f1cf
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x64f201
movzx eax, word [ebp - 0x2c]
jmp 0x64f204
cmp byte [esi], 0x20
jbe 0x64f1d3
inc esi
mov dword [ebp - 0x74], esi
jmp 0x64f1f6
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x402f84
Capabilities:
Query or enumerate registry value

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

Function at 0x403ce0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x472048], 0
je 0x403d41
cmp word [0x47221c], 0xd7b2
jne 0x403d09
cmp dword [0x472224], 0
jbe 0x403d09
mov eax, 0x472218
call dword [0x472234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47006c
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 0x403d68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470030], 0
jne 0x403d5d
push 0
push 0x470064
push 0x47006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059e4
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 0x405a4a
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.004040cc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b48
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a34
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a51
lea eax, [ebp - 0x10]
call fcn.00403e5c
ret

Function at 0x40aba8
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 0x40abe1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f4c
jmp 0x40abea
mov eax, ebx
mov edx, esi
call fcn.00403eb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b29c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b114
mov eax, dword [0x471a28]
cmp byte [eax], 0
je 0x40b318
mov eax, dword [0x471830]
call fcn.004029b4
call fcn.00402834
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.00408348
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 0x40b360
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b34e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4717e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x472664]
call fcn.00404ef8
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 0x40bbb4
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 0x40bc8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ef4
lea eax, [ebp - 8]
call fcn.0040436c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040431c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bc74
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bc6d
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.0040431c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bc57
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bc9c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bc57
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 0x40bc74
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc91
lea eax, [ebp - 8]
call fcn.00403e5c
ret

Function at 0x40c194
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 0x40c1f8
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.004040cc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e90
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1ff
lea eax, [ebp - 0xc]
call fcn.00403e5c
ret

Function at 0x41a608
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x472884
cmp dword [edi], 0
jne 0x41a684
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x472880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4703ec
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a5e0
lea eax, [esi + 5]
call fcn.0041a600
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a600
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 0x41a659
mov dword [0x472880], 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 0x41bc10
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 0x41bc16
ret