joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406937
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40b138
call fcn.00406c3c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x40dbfc
push 0
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4066d6
cmp eax, esi
jne 0x4066c9
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4066d9
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4066b0
xor esi, esi
inc esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x4066ec
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x40671b
mov eax, dword [0x40dbf8]
test eax, eax
jne 0x406715
mov dword [0x40dbf8], esi
push 0x4072cc
push 0x4072c4
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40671b
jmp 0x406843
mov dword [0x40c2cc], esi
mov eax, dword [0x40dbf8]
cmp eax, esi
jne 0x40673f
push 0x4072c0
push 0x4072b8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x40dbf8], 2
test ebx, ebx
jne 0x40674b
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40dc08], 0
je 0x40676f
push 0x40dc08
call fcn.00406bc2
pop ecx
test eax, eax
je 0x40676f
push 0
push 2
push 0
call dword [0x40dc08]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4067cb
test al, al
je 0x406789
cmp dword [ebp - 0x1c], 0
jne 0x4067cb
mov al, byte [esi]
test al, al
je 0x406799
cmp al, 0x20
ja 0x406799
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406789
test byte [ebp - 0x3c], 1
je 0x4067a5
movzx eax, word [ebp - 0x38]
jmp 0x4067a8
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x40c2c8], eax
cmp dword [0x40c2bc], 0
jne 0x40681f
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x4067da
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x4067ed
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x406776
cmp dword [0x40c2cc], 0
jne 0x40682e
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2c8]
jmp 0x40684f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00406c81
ret
call fcn.0040610d
jmp 0x406676

Function at 0x103aed14
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103aed1e
pushal
call 0x103aed24
pop ebp
sub ebp, 0x10
sub ebp, 0x3aed14
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103aed48
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103aed51
mov eax, 0x3aed14
add eax, ebp
add eax, 0x63
mov ecx, 0x5f2
mov edx, 0x30b8f2c5
xor byte [eax], dl
inc eax
dec ecx
jne 0x103aed68
jmp 0x103aed7b
dec esi
or byte [esi + 0x4c], cl
stc
invalid
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x437d7854
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x508d5614
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x404648
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.00407428
test esi, esi
jne 0x404680
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.00407564
jmp 0x40469e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040452c
mov edi, eax
test esi, esi
je 0x40469e
cmp dword [ebx], 0
je 0x40469e
dec esi
jmp 0x404687
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406448
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x534054], 0
je 0x4064a9
cmp word [0x534330], 0xd7b2
jne 0x406471
cmp dword [0x534338], 0
jbe 0x406471
mov eax, 0x53432c
call dword [0x534348]
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 0x4064d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52f030], 0
jne 0x4064c5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406654
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 [0x52f038], 0
je 0x40667a
mov edx, esi
mov eax, ebx
call dword [0x52f038]
jmp 0x406689
mov eax, 8
call fcn.00404274
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x534055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40661c
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 0x409298
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 0x4093ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407428
cmp si, word [0x52f7e0]
jb 0x409332
cmp si, word [0x52f9e0]
ja 0x409332
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x409332
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x52f7e0]
jae 0x40930c
mov edi, ebx
dec edi
jmp 0x40932d
cmp si, word [ebx*8 + 0x52f7e0]
jbe 0x40931c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40932d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x52f7e4]
call fcn.004091a8
jmp 0x409332
cmp edi, dword [ebp - 0xc]
jae 0x4092f6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4093e1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4093e1
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.00407620
push dword [ebp - 0x164]
push 0x40941c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407620
push dword [ebp - 0x168]
push 0x40942c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407620
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004079d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409406
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407420
ret
Function at 0x4095b8
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 0x4096bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x536b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x536b74]
jne 0x409604
mov eax, esi
mov edx, 0x536b78
mov ecx, 0x55
call fcn.00407620
push 0x536b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4096a7
push 0x536b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407428
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409675
cmp byte [0x536b58], 0
je 0x40963a
mov edx, esi
mov eax, ebx
call fcn.00409498
jmp 0x409675
mov edx, esi
mov eax, ebx
call fcn.00409298
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409675
cmp dword [esi], 0
je 0x40965e
mov eax, esi
mov edx, 0x4096d8
call fcn.00407834
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409298
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407834
push 0x536b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x536b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.004074b4
push eax
push 0x536b78
call sub.kernel32.dll_lstrcpynW
push 0x536b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4096c4
lea eax, [ebp - 4]
call fcn.00407418
ret
Function at 0x4098fc
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.00407410
xor eax, eax
push ebp
push 0x409ae1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40993c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409956
push 0x105
mov eax, dword [ebp - 4]
call fcn.004074b4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409acb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409af0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4099e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409af0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4099e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4099e5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409b58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409acb
xor eax, eax
push ebp
push 0x409ac4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409700
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 0x409a54
mov eax, dword [ebp - 0x10]
call fcn.00404274
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.004075e4
jmp 0x409a9f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409b98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409a9f
mov eax, dword [ebp - 0x10]
call fcn.00404274
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409b98
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004075e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409acb
cmp dword [ebp - 8], 0
je 0x409aba
mov eax, dword [ebp - 8]
call fcn.00404290
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 0x409ae8
lea eax, [ebp - 4]
call fcn.00407418
ret
Function at 0x409dac
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.00407410
mov eax, dword [ebp - 0x21c]
call fcn.00407410
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409f4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407428
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004074b4
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 0x409e4c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409e5e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409e49
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409f17
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 0x409e87
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.004098fc
cmp dword [ebp - 0x220], 0
je 0x409ebf
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409ca0
pop ecx
mov ebx, eax
jmp 0x409f17
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004095b8
mov eax, dword [ebp - 0x224]
call fcn.00409ca0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409f0a
cmp byte [0x536b58], 0
jne 0x409f0a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004095b8
mov eax, dword [ebp - 0x228]
call fcn.00409ca0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409f17
push ebp
call fcn.00409d50
pop ecx
mov ebx, eax
test bl, bl
je 0x409f2d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407620
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f52
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407420
ret

Function at 0x40a6ac
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 0x40d3d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x536c58
push 0xa
push 0x40d464
mov eax, dword [0x536c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d3f4
call fcn.00418eac
push ebx
mov eax, dword [0x536c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d40b
call fcn.00418eac
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d41d
call fcn.00418eac
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x536c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x536c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x536c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x536c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x536c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x536c70], edx
pop esi
pop ebx
ret

Function at 0x410f04
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410fad
test eax, edx
je 0x410fb0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410f2d
push edx
mov edx, eax
mov eax, esp
call fcn.0040763c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410f43
push eax
lea eax, [esp + 8]
call fcn.0040763c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410f52
movzx eax, word [eax]
sub eax, ecx
jmp 0x410f79
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 0x410f93
add ecx, 4
js 0x410f6a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410f90
push eax
mov eax, ecx
mov edx, 2
call fcn.004066f4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410f77
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410f79
xor eax, eax
ret
test eax, eax
je 0x410fc0
test edx, edx
jne 0x410f14
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004074b4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41229e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4122bf
cmp ebx, 3
je 0x4122bf
cmp ebx, 0x7b
je 0x4122bf
mov eax, esi
call fcn.00412240
test al, al
jne 0x4122c3
xor eax, eax
jmp 0x4122c5
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004074b4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4122e1
test al, 0x10
jne 0x4122e5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x416338
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 0x416371
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407564
jmp 0x41637a
mov eax, ebx
mov edx, esi
call fcn.00407428
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416384
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 0x4163a6
movzx eax, word [esp]
jmp 0x4163a8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x416b38
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 0x416c5d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416948
mov esi, eax
mov eax, dword [0x533748]
cmp byte [eax], 0
je 0x416c05
mov eax, dword [0x5332f4]
call fcn.00404aa4
call fcn.004043dc
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 [0x416b10]
call fcn.00408c94
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 0x416c78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416c41
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x533258]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x536c40]
call fcn.00408d88
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 0x416c64
lea eax, [ebp - 4]
mov edx, dword [0x416b10]
call fcn.00408ca0
ret
Function at 0x417a80
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 0x417b56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040747c
lea eax, [ebp - 4]
call fcn.00407e7c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004074b4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417b40
mov eax, ebx
call fcn.00404274
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x417b39
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.004074b4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x417b23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x417b68
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x417b23
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 0x417b40
mov eax, dword [ebp - 0x10]
call fcn.00404290
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417b5d
lea eax, [ebp - 4]
call fcn.00407418
ret

Function at 0x418d54
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.00406a34
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 0x418cfe
mov eax, edi
add eax, eax
call fcn.00404274
mov esi, eax
jmp 0x418d00
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 0x418d39
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 0x418d23
mov eax, esp
cmp esi, eax
je 0x418d46
mov eax, esi
call fcn.00404290
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 0x418d80
cmp bl, 0
je 0x418d7c
cmp bl, 0x41
jl 0x418d77
cmp bl, 0x5a
jg 0x418d77
or bl, 0x20
xor al, bl
inc esi
jmp 0x418d5b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418cc0