joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45606c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414420]
call fcn.00404830
xor eax, eax
push ebp
push 0x4561b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45ed6c], 0
jne 0x4560bf
mov ecx, dword [0x45ee98]
mov dl, 1
mov eax, dword [0x40705c]
call fcn.0040b6e4
call fcn.00403900
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402b88
mov eax, ebx
call fcn.00404700
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4561c0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004057b4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404710
test eax, eax
jle 0x456157
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x456150
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040414c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404134
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407e68
test eax, eax
jne 0x456150
mov ebx, 0x15
jmp 0x45615c
mov ebx, 0x10
jmp 0x45615c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x45ed6c]
call fcn.00455fc4
mov eax, dword [ebp - 8]
call fcn.00455fc4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004057cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4561b7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403ee8
lea eax, [ebp - 0x10]
mov edx, dword [0x414420]
call fcn.00404900
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 0x441f4b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x441fdc
lea eax, [ebp - 0x104]
push eax
call fcn.0044212c
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x4420a5
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4420e5
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 0x4420e5
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 0x44208a
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 0x4420e5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4420da
push 0x3e8
call eax
test eax, eax
je 0x4420da
call 0x4420ca
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 0x404630
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.00407238
test esi, esi
jne 0x404668
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.00407374
jmp 0x404686
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404574
mov edi, eax
test esi, esi
je 0x404686
cmp dword [ebx], 0
je 0x404686
dec esi
jmp 0x40466f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4063b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x526054], 0
je 0x406411
cmp word [0x526330], 0xd7b2
jne 0x4063d9
cmp dword [0x526338], 0
jbe 0x4063d9
mov eax, 0x52632c
call dword [0x526348]
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 0x40643c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x522030], 0
jne 0x40642d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40659c
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 [0x522038], 0
je 0x4065c2
mov edx, esi
mov eax, ebx
call dword [0x522038]
jmp 0x4065d1
mov eax, 8
call fcn.004042b0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x526055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406564
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 0x40945c
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 0x4095c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407238
cmp si, word [0x522800]
jb 0x4094f6
cmp si, word [0x522a00]
ja 0x4094f6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4094f6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x522800]
jae 0x4094d0
mov edi, ebx
dec edi
jmp 0x4094f1
cmp si, word [ebx*8 + 0x522800]
jbe 0x4094e0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4094f1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x522804]
call fcn.0040936c
jmp 0x4094f6
cmp edi, dword [ebp - 0xc]
jae 0x4094ba
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4095a5
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4095a5
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.00407420
push dword [ebp - 0x164]
push 0x4095e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407420
push dword [ebp - 0x168]
push 0x4095f0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407420
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004077d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095ca
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407230
ret
Function at 0x40977c
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 0x409881
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x528b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x528b74]
jne 0x4097c8
mov eax, esi
mov edx, 0x528b78
mov ecx, 0x55
call fcn.00407420
push 0x528b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40986b
push 0x528b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00407238
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409839
cmp byte [0x528b58], 0
je 0x4097fe
mov edx, esi
mov eax, ebx
call fcn.0040965c
jmp 0x409839
mov edx, esi
mov eax, ebx
call fcn.0040945c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409839
cmp dword [esi], 0
je 0x409822
mov eax, esi
mov edx, 0x40989c
call fcn.00407634
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040945c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407634
push 0x528b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x528b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072c4
push eax
push 0x528b78
call sub.kernel32.dll_lstrcpynW
push 0x528b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409888
lea eax, [ebp - 4]
call fcn.00407228
ret
Function at 0x409ac0
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.00407220
xor eax, eax
push ebp
push 0x409ca5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409b00
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409b1a
push 0x105
mov eax, dword [ebp - 4]
call fcn.004072c4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409c8f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ba9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ba9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409ce8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409ba9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409c8f
xor eax, eax
push ebp
push 0x409c88
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004098c4
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 0x409c18
mov eax, dword [ebp - 0x10]
call fcn.004042b0
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.004073e4
jmp 0x409c63
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409d5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409c63
mov eax, dword [ebp - 0x10]
call fcn.004042b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409d5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004073e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c8f
cmp dword [ebp - 8], 0
je 0x409c7e
mov eax, dword [ebp - 8]
call fcn.004042cc
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 0x409cac
lea eax, [ebp - 4]
call fcn.00407228
ret
Function at 0x409f70
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.00407220
mov eax, dword [ebp - 0x21c]
call fcn.00407220
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40a10f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00407238
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004072c4
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 0x40a010
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40a022
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x40a00d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40a0db
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 0x40a04b
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.00409ac0
cmp dword [ebp - 0x220], 0
je 0x40a083
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00409e64
pop ecx
mov ebx, eax
jmp 0x40a0db
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040977c
mov eax, dword [ebp - 0x224]
call fcn.00409e64
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a0ce
cmp byte [0x528b58], 0
jne 0x40a0ce
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040977c
mov eax, dword [ebp - 0x228]
call fcn.00409e64
pop ecx
mov ebx, eax
test bl, bl
jne 0x40a0db
push ebp
call fcn.00409f14
pop ecx
mov ebx, eax
test bl, bl
je 0x40a0f1
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a116
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00407230
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x528c5c
push 0xa
push 0x40ebd0
mov eax, dword [0x528c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40eb60
call fcn.0041b8e4
push ebx
mov eax, dword [0x528c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40eb77
call fcn.0041b8e4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40eb89
call fcn.0041b8e4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x528c60], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x528c64], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x528c68], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x528c6c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x528c70], ecx
add edx, dword [eax + 0x14]
mov dword [0x528c74], edx
pop esi
pop ebx
ret

Function at 0x413d44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x413ded
test eax, edx
je 0x413df0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x413d6d
push edx
mov edx, eax
mov eax, esp
call fcn.0040743c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x413d83
push eax
lea eax, [esp + 8]
call fcn.0040743c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x413d92
movzx eax, word [eax]
sub eax, ecx
jmp 0x413db9
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 0x413dd3
add ecx, 4
js 0x413daa
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x413dd0
push eax
mov eax, ecx
mov edx, 2
call fcn.0040663c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x413db7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x413db9
xor eax, eax
ret
test eax, eax
je 0x413e00
test edx, edx
jne 0x413d54
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004072c4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41506e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41508f
cmp ebx, 3
je 0x41508f
cmp ebx, 0x7b
je 0x41508f
mov eax, esi
call fcn.00415010
test al, al
jne 0x415093
xor eax, eax
jmp 0x415095
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004072c4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4150b1
test al, 0x10
jne 0x4150b5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x41893c
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 0x418975
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407374
jmp 0x41897e
mov eax, ebx
mov edx, esi
call fcn.00407238
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x41913c
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 0x419261
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418f4c
mov esi, eax
mov eax, dword [0x525738]
cmp byte [eax], 0
je 0x419209
mov eax, dword [0x525474]
call fcn.00404a24
call fcn.00404418
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 [0x419114]
call fcn.00408e58
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 0x41927c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x419245
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x525408]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x528c40]
call fcn.00408f4c
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 0x419268
lea eax, [ebp - 4]
mov edx, dword [0x419114]
call fcn.00408e64
ret
Function at 0x41a424
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 0x41a4fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040728c
lea eax, [ebp - 4]
call fcn.00407c24
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004072c4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41a4e4
mov eax, ebx
call fcn.004042b0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41a4dd
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.004072c4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41a4c7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41a50c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41a4c7
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 0x41a4e4
mov eax, dword [ebp - 0x10]
call fcn.004042cc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a501
lea eax, [ebp - 4]
call fcn.00407228
ret

Function at 0x41b78c
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.00406970
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 0x41b736
mov eax, edi
add eax, eax
call fcn.004042b0
mov esi, eax
jmp 0x41b738
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 0x41b771
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 0x41b75b
mov eax, esp
cmp esi, eax
je 0x41b77e
mov eax, esi
call fcn.004042cc
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 0x41b7b8
cmp bl, 0
je 0x41b7b4
cmp bl, 0x41
jl 0x41b7af
cmp bl, 0x5a
jg 0x41b7af
or bl, 0x20
xor al, bl
inc esi
jmp 0x41b793
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41b6f8