joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434030
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [0x437668], 0
jne 0x434054
push 0x1019
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x434054
xor eax, eax
jmp 0x43407a
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, 0xfffffffe
je 0x434063
xor eax, eax
jmp 0x43407a
mov eax, section..text
sub eax, 0x51615
mov dword [0x43766c], eax
mov eax, dword [0x43766c]
add eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x4341e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4341f8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x43429c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x434297
mov ecx, dword [ebp - 8]
push ecx
call fcn.00434710
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x434256
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x434256
xor eax, eax
jmp 0x43429c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4341ef
mov esp, ebp
pop ebp
ret
Function at 0x4524e6
Capabilities:
Encode data using xor

Disassembly:
dec ebp
and dword [ecx + 0x3d], 0x39
add ebx, dword [0x94c3ccb2]
and dh, byte [ecx]
sub byte [0xc2ccfd83], bl
and eax, 0xf299fdbb
stosb byte es:[edi], al
push edx
aas
cwde
out dx, al
cmc
sub eax, 0x2fb861c4
push ss
inc edx
xchg esi, eax
mov bl, 0xf5
and ah, al
test byte [ebx], dh
in eax, dx
xor dword [eax], eax
in al, 0xce
stosb byte es:[edi], al
in al, dx
das
scasd eax, dword es:[edi]
sub dword [ecx + 0x36], 0xffffffdb
adc dword [ecx], ecx
pop esi
stc
cmc
invalid

Function at 0x45fc66
Capabilities:
Encode data using xor

Disassembly:
neg dword [edi - 0x70]
leave
invalid
mov dl, 0x8f
xchg ebp, eax
jle 0x45fc15
invalid
adc al, bh
stosb byte es:[edi], al
test al, 0xbc
ja 0x45fc75
rcl dword [0x185222f9], 0x18
and ah, byte [ecx + 0x2e]
popal
loopne 0x45fc46
loopne 0x45fc46
push ebp
jl 0x45fc26
adc edx, dword [ecx]
add ch, al
in eax, dx
adc eax, 0xb82ffc21
invalid
jge 0x45fc55
shl byte [esp + ebx*8 + 0x32fce250], cl
jae 0x45fce2
sub eax, 0xe079c2ad
jns 0x45fc57
mov al, 0xdf
inc eax
xchg ecx, eax
out 0x77, al
sbb eax, 0x4fd20a14
pop sp
unpcklps xmm5, xmmword [ecx]
jno 0x45fce4
lahf
push esi
stosb byte es:[edi], al
lds eax, [0xe2ad1da3]
ljmp 0x616e
jbe 0x45fd34
daa
aas
test al, 0xa1
mov esp, 0xadd0af96
lodsd eax, dword [esi]
out 0xaf, eax
mov edx, 0x310263cd
bound ecx, qword [ebx + 0x52]
inc edx
daa
mov edx, 0xecfe77
push ebp
in al, dx
add byte [esi], dh
push ebp
lodsb al, byte [esi]
push 0xffffffffffffff8c
adc ebx, dword [edi - 0x56]
loop 0x45fd0c
mov ebx, esi
dec esp
cli
das
rol dh, 0x4b
jge 0x45fd86
push ss
push cs
xor dword [edi + 0x60], 0x5df355b6
sar dword [edx + 0x4d], cl
adc byte [ecx], dl
cmp ah, dl
pushfd
and eax, dword [0xbcf526b2]
sbb al, 0x7f
jno 0x45fd42
cli
scasd eax, dword es:[edi]
in al, dx
mov ebp, 0xa9e6dd19
mov eax, 0xd22dc2ee
jl 0x45fcfe
fucom st(6)
test eax, 0x2dc2eeb8
sar byte [eax + eax*8 - 0x70], cl
nop
popal
dec esi
bound edi, qword [ecx + ecx*4 + 0x7bd3622d]
movsd dword es:[edi], dword [esi]
mov esp, 0xd3622d89
jnp 0x45fcee
fsubr qword [ecx + 0x67]
jmp 0x45fd22
Function at 0x404548
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406cdc
test esi, esi
jne 0x404580
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406e18
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x50b050], 0
je 0x405e41
cmp word [0x50b32c], 0xd7b2
jne 0x405e09
cmp dword [0x50b334], 0
jbe 0x405e09
mov eax, 0x50b328
call dword [0x50b344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x405e6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x508030], 0
jne 0x405e5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x508034], 0
je 0x406012
mov edx, esi
mov eax, ebx
call dword [0x508034]
jmp 0x406021
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x50b051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fb4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408b64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408ccb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406cdc
cmp si, word [0x5087dc]
jb 0x408bfe
cmp si, word [0x5089dc]
ja 0x408bfe
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408bfe
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5087dc]
jae 0x408bd8
mov edi, ebx
dec edi
jmp 0x408bf9
cmp si, word [ebx*8 + 0x5087dc]
jbe 0x408be8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408bf9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5087e0]
call fcn.00408a74
jmp 0x408bfe
cmp edi, dword [ebp - 0xc]
jae 0x408bc2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408cad
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408cad
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406edc
push dword [ebp - 0x164]
push 0x408ce8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406edc
push dword [ebp - 0x168]
push 0x408cf8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406edc
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cd2
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406cd4
ret
Function at 0x408e84
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408f89
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50db58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x50db70]
jne 0x408ed0
mov eax, esi
mov edx, 0x50db74
mov ecx, 0x55
call fcn.00406edc
push 0x50db58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f73
push 0x50db58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406cdc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f41
cmp byte [0x50db54], 0
je 0x408f06
mov edx, esi
mov eax, ebx
call fcn.00408d64
jmp 0x408f41
mov edx, esi
mov eax, ebx
call fcn.00408b64
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408f41
cmp dword [esi], 0
je 0x408f2a
mov eax, esi
mov edx, 0x408fa4
call fcn.004070f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408b64
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004070f0
push 0x50db58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x50db70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406d68
push eax
push 0x50db74
call sub.kernel32.dll_lstrcpynW
push 0x50db58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f90
lea eax, [ebp - 4]
call fcn.00406ccc
ret
Function at 0x4091c8
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.00406cc4
xor eax, eax
push ebp
push 0x4093ad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409208
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409222
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406d68
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409397
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4092b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409397
xor eax, eax
push ebp
push 0x409390
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408fcc
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 sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409320
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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 sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e88
jmp 0x40936b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409464
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40936b
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409464
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409397
cmp dword [ebp - 8], 0
je 0x409386
mov eax, dword [ebp - 8]
call fcn.004041f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093b4
lea eax, [ebp - 4]
call fcn.00406ccc
ret
Function at 0x409678
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406cc4
mov eax, dword [ebp - 0x21c]
call fcn.00406cc4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409817
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406cdc
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406d68
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409718
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40972a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409715
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4097e3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409753
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.004091c8
cmp dword [ebp - 0x220], 0
je 0x40978b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040956c
pop ecx
mov ebx, eax
jmp 0x4097e3
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408e84
mov eax, dword [ebp - 0x224]
call fcn.0040956c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4097d6
cmp byte [0x50db54], 0
jne 0x4097d6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408e84
mov eax, dword [ebp - 0x228]
call fcn.0040956c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4097e3
push ebp
call fcn.0040961c
pop ecx
mov ebx, eax
test bl, bl
je 0x4097f9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40981e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406cd4
ret

Function at 0x409f90
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40d48c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x50dc58
push 0xa
push 0x40d520
mov eax, dword [0x50dc3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d4b0
call fcn.00419928
push ebx
mov eax, dword [0x50dc3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d4c7
call fcn.00419928
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d4d9
call fcn.00419928
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x50dc5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x50dc60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x50dc64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x50dc68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x50dc6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x50dc70], edx
pop esi
pop ebx
ret

Function at 0x4120bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412165
test eax, edx
je 0x412168
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4120e5
push edx
mov edx, eax
mov eax, esp
call fcn.00406ef8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4120fb
push eax
lea eax, [esp + 8]
call fcn.00406ef8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41210a
movzx eax, word [eax]
sub eax, ecx
jmp 0x412131
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41214b
add ecx, 4
js 0x412122
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x412148
push eax
mov eax, ecx
mov edx, 2
call fcn.0040608c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41212f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x412131
xor eax, eax
ret
test eax, eax
je 0x412178
test edx, edx
jne 0x4120cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406d68
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413522
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x413543
cmp ebx, 3
je 0x413543
cmp ebx, 0x7b
je 0x413543
mov eax, esi
call fcn.004134c4
test al, al
jne 0x413547
xor eax, eax
jmp 0x413549
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406d68
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x413565
test al, 0x10
jne 0x413569
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x416b1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416b55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406e18
jmp 0x416b5e
mov eax, ebx
mov edx, esi
call fcn.00406cdc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416b68
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416b8a
movzx eax, word [esp]
jmp 0x416b8c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41731c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x417441
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041712c
mov esi, eax
mov eax, dword [0x50abc4]
cmp byte [eax], 0
je 0x4173e9
mov eax, dword [0x50a918]
call fcn.0040467c
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4172f4]
call fcn.00408560
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41745c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417425
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x50a8ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x50dc3c]
call fcn.00408654
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417448
lea eax, [ebp - 4]
mov edx, dword [0x4172f4]
call fcn.0040856c
ret
Function at 0x4185f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4186ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406d30
lea eax, [ebp - 4]
call fcn.00407780
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406d68
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4186b8
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4186b1
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 - 4]
call fcn.00406d68
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41869b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4186e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41869b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4186b8
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4186d5
lea eax, [ebp - 4]
call fcn.00406ccc
ret

Function at 0x4197d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004063ec
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41977a
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x41977c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4197b5
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41979f
mov eax, esp
cmp esi, eax
je 0x4197c2
mov eax, esi
call fcn.004041f0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4197fc
cmp bl, 0
je 0x4197f8
cmp bl, 0x41
jl 0x4197f3
cmp bl, 0x5a
jg 0x4197f3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4197d7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41973c