joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461c60
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7f03e4]
sub esp, 0xa8c
push ebx
push ebp
push esi
mov esi, dword [0x471434]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x461e76
mov dword [esp + 0x30], 0x9e3779b9
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jmp 0x461ca6
mov esi, dword [esp + 0x24]
xor edi, edi
cmp dword [0x7f03e4], 0x1c
jne 0x461cbd
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x4682d0]
mov ebx, dword [0x4682d8]
mov ebp, dword [0x4682dc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4682d4]
mov dword [esp + 0x1c], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], 0x20
jmp 0x461d06
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x20], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x7f0354], edi
mov eax, dword [esp + 0x20]
add dword [0x7f0354], eax
mov eax, dword [0x7f0354]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x38]
add dword [esp + 0x10], eax
cmp dword [0x7f03e4], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x461d9d
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0x7f03e4], 0x979
mov dword [0x7f0358], 0xff6b3619
mov dword [0x7f035c], 0xffffffff
mov dword [esp + 0x20], eax
jne 0x461de7
push 0
lea ecx, [esp + 0x29c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], eax
sub esi, dword [esp + 0x18]
dec dword [esp + 0x2c]
jne 0x461d00
cmp dword [0x7f03e4], 0x8d4
jne 0x461e2b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0x7f03e4], 0x17
jne 0x461e65
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x48]
push edx
push 0x403f40
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x24], esi
jne 0x461ca0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8c
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

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

Disassembly:
pushal
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4045d8
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.0040725c
test esi, esi
jne 0x404610
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.00407398
jmp 0x40462e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044bc
mov edi, eax
test esi, esi
je 0x40462e
cmp dword [ebx], 0
je 0x40462e
dec esi
jmp 0x404617
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4065ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ca050], 0
je 0x40664d
cmp word [0x4ca32c], 0xd7b2
jne 0x406615
cmp dword [0x4ca334], 0
jbe 0x406615
mov eax, 0x4ca328
call dword [0x4ca344]
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 0x406678
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c7030], 0
jne 0x406669
push 0
push 0x4c77a0
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4067f8
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 [0x4c7038], 0
je 0x40681e
mov edx, esi
mov eax, ebx
call dword [0x4c7038]
jmp 0x40682d
mov eax, 8
call fcn.00404204
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4ca051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4067c0
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 0x4093b0
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 0x409517
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040725c
cmp si, word [0x4c77e8]
jb 0x40944a
cmp si, word [0x4c79e8]
ja 0x40944a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40944a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4c77e8]
jae 0x409424
mov edi, ebx
dec edi
jmp 0x409445
cmp si, word [ebx*8 + 0x4c77e8]
jbe 0x409434
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x409445
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4c77ec]
call fcn.004092c0
jmp 0x40944a
cmp edi, dword [ebp - 0xc]
jae 0x40940e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4094f9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4094f9
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.00407444
push dword [ebp - 0x164]
push 0x409534
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407444
push dword [ebp - 0x168]
push 0x409544
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407444
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004077fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40951e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407254
ret
Function at 0x4096d0
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 0x4097d5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ccb58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ccb70]
jne 0x40971c
mov eax, esi
mov edx, 0x4ccb74
mov ecx, 0x55
call fcn.00407444
push 0x4ccb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4097bf
push 0x4ccb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.0040725c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40978d
cmp byte [0x4ccb54], 0
je 0x409752
mov edx, esi
mov eax, ebx
call fcn.004095b0
jmp 0x40978d
mov edx, esi
mov eax, ebx
call fcn.004093b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40978d
cmp dword [esi], 0
je 0x409776
mov eax, esi
mov edx, 0x4097f0
call fcn.00407658
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004093b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407658
push 0x4ccb58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ccb70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072e8
push eax
push 0x4ccb74
call sub.kernel32.dll_lstrcpynW
push 0x4ccb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097dc
lea eax, [ebp - 4]
call fcn.0040724c
ret
Function at 0x409a14
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.00407244
xor eax, eax
push ebp
push 0x409bf9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409a54
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409a6e
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072e8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409be3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c3c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409afd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409be3
xor eax, eax
push ebp
push 0x409bdc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409818
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 0x409b6c
mov eax, dword [ebp - 0x10]
call fcn.00404204
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.00407408
jmp 0x409bb7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409cb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409bb7
mov eax, dword [ebp - 0x10]
call fcn.00404204
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409cb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409be3
cmp dword [ebp - 8], 0
je 0x409bd2
mov eax, dword [ebp - 8]
call fcn.00404220
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 0x409c00
lea eax, [ebp - 4]
call fcn.0040724c
ret
Function at 0x409ec4
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.00407244
mov eax, dword [ebp - 0x21c]
call fcn.00407244
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a063
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0040725c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004072e8
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 0x409f64
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x409f76
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409f61
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a02f
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 0x409f9f
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.00409a14
cmp dword [ebp - 0x220], 0
je 0x409fd7
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409db8
pop ecx
mov ebx, eax
jmp 0x40a02f
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004096d0
mov eax, dword [ebp - 0x224]
call fcn.00409db8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a022
cmp byte [0x4ccb54], 0
jne 0x40a022
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004096d0
mov eax, dword [ebp - 0x228]
call fcn.00409db8
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a02f
push ebp
call fcn.00409e68
pop ecx
mov ebx, eax
test bl, bl
je 0x40a045
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a06a
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407254
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4ccc4c
push 0xa
push 0x40d2fc
mov eax, dword [0x4ccc3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40d28c
call fcn.00418118
push ebx
mov eax, dword [0x4ccc3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40d2a3
call fcn.00418118
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d2b5
call fcn.00418118
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4ccc50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4ccc54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4ccc58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4ccc5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4ccc60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4ccc64], edx
pop esi
pop ebx
ret

Function at 0x410dc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410e71
test eax, edx
je 0x410e74
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410df1
push edx
mov edx, eax
mov eax, esp
call fcn.00407460
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410e07
push eax
lea eax, [esp + 8]
call fcn.00407460
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410e16
movzx eax, word [eax]
sub eax, ecx
jmp 0x410e3d
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 0x410e57
add ecx, 4
js 0x410e2e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410e54
push eax
mov eax, ecx
mov edx, 2
call fcn.00406898
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410e3b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410e3d
xor eax, eax
ret
test eax, eax
je 0x410e84
test edx, edx
jne 0x410dd8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004072e8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41211a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41213b
cmp ebx, 3
je 0x41213b
cmp ebx, 0x7b
je 0x41213b
mov eax, esi
call fcn.004120bc
test al, al
jne 0x41213f
xor eax, eax
jmp 0x412141
mov al, 1
pop esi
pop ebx
ret

Function at 0x4155e8
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 0x415621
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407398
jmp 0x41562a
mov eax, ebx
mov edx, esi
call fcn.0040725c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415634
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 0x415656
movzx eax, word [esp]
jmp 0x415658
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x415de8
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 0x415f0d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00415bf8
mov esi, eax
mov eax, dword [0x4c99b8]
cmp byte [eax], 0
je 0x415eb5
mov eax, dword [0x4c976c]
call fcn.00404a70
call fcn.0040436c
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 [0x415dc0]
call fcn.00408dac
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 0x415f28
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415ef1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4c9704]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ccc3c]
call fcn.00408ea0
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 0x415f14
lea eax, [ebp - 4]
mov edx, dword [0x415dc0]
call fcn.00408db8
ret
Function at 0x4170c4
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 0x41719a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004072b0
lea eax, [ebp - 4]
call fcn.00407ce8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004072e8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417184
mov eax, ebx
call fcn.00404204
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41717d
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.004072e8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x417167
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4171ac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x417167
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 0x417184
mov eax, dword [ebp - 0x10]
call fcn.00404220
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4171a1
lea eax, [ebp - 4]
call fcn.0040724c
ret

Function at 0x417fc0
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.00406bcc
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 0x417f6a
mov eax, edi
add eax, eax
call fcn.00404204
mov esi, eax
jmp 0x417f6c
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 0x417fa5
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 0x417f8f
mov eax, esp
cmp esi, eax
je 0x417fb2
mov eax, esi
call fcn.00404220
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 0x417fec
cmp bl, 0
je 0x417fe8
cmp bl, 0x41
jl 0x417fe3
cmp bl, 0x5a
jg 0x417fe3
or bl, 0x20
xor al, bl
inc esi
jmp 0x417fc7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x417f2c