joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423620
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4324ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov ebx, 1
mov dword [esp + 0x1c], edi
mov dword [esi + 0x40], ebx
mov word [esi + 0x138], di
mov word [esi + 0xbe], di
mov word [esi + 0x44], di
mov dword [esi + 0x248], edi
mov dword [esi + 0x244], edi
mov dword [esi + 0x23c], edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
push 0x24
mov byte [esp + 0x20], bl
mov dword [esi], 0x433a7c
mov dword [esi + 0x18], ecx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
call fcn.0042829e
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x1c], 2
je 0x4236cc
push edi
push 0x1f
push ebp
mov ecx, eax
call fcn.00404630
jmp 0x4236ce
xor eax, eax
mov dword [esi + 0x30], eax
lea eax, [esi + 0x34]
xor ecx, ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x24c], edi
mov dword [eax], ecx
mov byte [esp + 0x1c], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x28], edi
je 0x4237e0
sub eax, edi
je 0x423795
dec eax
je 0x423753
dec eax
jne 0x4237ce
push 0x244
call fcn.0042829e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x1c], 5
je 0x423748
mov edx, dword [esi + 0x2c]
mov ecx, eax
push edx
push esi
push esi
push 2
push 0x1fc
push ebp
call fcn.00413140
mov byte [esp + 0x1c], bl
mov dword [esi + 0x3c], eax
jmp 0x4237ce
xor eax, eax
mov byte [esp + 0x1c], bl
mov dword [esi + 0x3c], eax
jmp 0x4237ce
push 0x4b0
call fcn.0042829e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x1c], 4
je 0x42378a
mov ecx, dword [esi + 0x2c]
push ecx
push esi
push esi
push ebx
push 0x1fb
push ebp
mov ecx, eax
call fcn.00411d30
mov byte [esp + 0x1c], bl
mov dword [esi + 0x38], eax
jmp 0x4237ce
xor eax, eax
mov byte [esp + 0x1c], bl
mov dword [esi + 0x38], eax
jmp 0x4237ce
push 0x248
call fcn.0042829e
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
mov byte [esp + 0x1c], 3
je 0x4237c5
mov edx, dword [esi + 0x2c]
mov ecx, eax
push edx
push esi
push esi
push edi
push 0x1fd
push ebp
call fcn.00414030
jmp 0x4237c7
xor eax, eax
mov byte [esp + 0x1c], bl
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 3
mov dword [esp + 0x24], eax
jb 0x4236f1
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x42f485
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43f518
cmp edx, dword [eax]
je 0x42f4a7
add eax, 8
inc ecx
cmp eax, 0x43f5a8
jl 0x42f498
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43f518]
jne 0x42f5d5
mov eax, dword [0x444588]
cmp eax, 1
je 0x42f5af
test eax, eax
jne 0x42f4d8
cmp dword [0x43cea4], 1
je 0x42f5af
cmp edx, 0xfc
je 0x42f5d5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42f50f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042c910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042ca00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42f552
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042ca00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x433ec8
push edi
call fcn.00431050
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042c910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042c920
lea eax, [ebp - 0xa0]
push 0x433ea8
push eax
call fcn.0042c920
push dword [esi + 0x43f51c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042c920
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00430fbc
add esp, 0x2c
pop edi
jmp 0x42f5d5
lea eax, [ebp + 8]
lea esi, [esi + 0x43f51c]
push 0
push eax
push dword [esi]
call fcn.0042ca00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
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.004069e0
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.00406b1c
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 0x405dc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b1050], 0
je 0x405e29
cmp word [0x4b132c], 0xd7b2
jne 0x405df1
cmp dword [0x4b1334], 0
jbe 0x405df1
mov eax, 0x4b1328
call dword [0x4b1344]
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 0x405e54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ae030], 0
jne 0x405e45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fb4
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 [0x4ae034], 0
je 0x405fda
mov edx, esi
mov eax, ebx
call dword [0x4ae034]
jmp 0x405fe9
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4b1051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f7c
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 0x4087a8
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 0x40890f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004069e0
cmp si, word [0x4ae7dc]
jb 0x408842
cmp si, word [0x4ae9dc]
ja 0x408842
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408842
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ae7dc]
jae 0x40881c
mov edi, ebx
dec edi
jmp 0x40883d
cmp si, word [ebx*8 + 0x4ae7dc]
jbe 0x40882c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x40883d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ae7e0]
call fcn.004086b8
jmp 0x408842
cmp edi, dword [ebp - 0xc]
jae 0x408806
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4088f1
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4088f1
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.00406bc8
push dword [ebp - 0x164]
push 0x40892c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406bc8
push dword [ebp - 0x168]
push 0x40893c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406bc8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408916
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004069d8
ret
Function at 0x408ac8
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 0x408bcd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b3b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b3b70]
jne 0x408b14
mov eax, esi
mov edx, 0x4b3b74
mov ecx, 0x55
call fcn.00406bc8
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408bb7
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.004069e0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b85
cmp byte [0x4b3b54], 0
je 0x408b4a
mov edx, esi
mov eax, ebx
call fcn.004089a8
jmp 0x408b85
mov edx, esi
mov eax, ebx
call fcn.004087a8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408b85
cmp dword [esi], 0
je 0x408b6e
mov eax, esi
mov edx, 0x408be8
call fcn.00406ddc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004087a8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406ddc
push 0x4b3b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b3b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406a6c
push eax
push 0x4b3b74
call sub.kernel32.dll_lstrcpynW
push 0x4b3b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bd4
lea eax, [ebp - 4]
call fcn.004069d0
ret
Function at 0x408e0c
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.004069c8
xor eax, eax
push ebp
push 0x408ff1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408e4c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408e66
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406a6c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408fdb
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409000
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ef5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409000
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ef5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409034
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ef5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409068
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408fdb
xor eax, eax
push ebp
push 0x408fd4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408c10
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 0x408f64
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.00406b8c
jmp 0x408faf
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4090a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408faf
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 0x4090a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406b8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fdb
cmp dword [ebp - 8], 0
je 0x408fca
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 0x408ff8
lea eax, [ebp - 4]
call fcn.004069d0
ret
Function at 0x4092bc
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.004069c8
mov eax, dword [ebp - 0x21c]
call fcn.004069c8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40945b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004069e0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406a6c
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 0x40935c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40936e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409359
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409427
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 0x409397
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.00408e0c
cmp dword [ebp - 0x220], 0
je 0x4093cf
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004091b0
pop ecx
mov ebx, eax
jmp 0x409427
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408ac8
mov eax, dword [ebp - 0x224]
call fcn.004091b0
pop ecx
mov ebx, eax
test bl, bl
jne 0x40941a
cmp byte [0x4b3b54], 0
jne 0x40941a
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408ac8
mov eax, dword [ebp - 0x228]
call fcn.004091b0
pop ecx
mov ebx, eax
test bl, bl
jne 0x409427
push ebp
call fcn.00409260
pop ecx
mov ebx, eax
test bl, bl
je 0x40943d
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406bc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409462
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004069d8
ret

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

Disassembly:
push ebx
push esi
mov esi, 0x4b3c4c
push 0xa
push 0x40cb34
mov eax, dword [0x4b3c3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cac4
call fcn.004177e4
push ebx
mov eax, dword [0x4b3c3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cadb
call fcn.004177e4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40caed
call fcn.004177e4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4b3c50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4b3c54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4b3c58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4b3c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4b3c60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4b3c64], edx
pop esi
pop ebx
ret

Function at 0x4103e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41048d
test eax, edx
je 0x410490
push 0
push 0
cmp word [eax - 0xa], 2
je 0x41040d
push edx
mov edx, eax
mov eax, esp
call fcn.00406be4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410423
push eax
lea eax, [esp + 8]
call fcn.00406be4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410432
movzx eax, word [eax]
sub eax, ecx
jmp 0x410459
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 0x410473
add ecx, 4
js 0x41044a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410470
push eax
mov eax, ecx
mov edx, 2
call fcn.00406054
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410457
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410459
xor eax, eax
ret
test eax, eax
je 0x4104a0
test edx, edx
jne 0x4103f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406a6c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41157e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41159f
cmp ebx, 3
je 0x41159f
cmp ebx, 0x7b
je 0x41159f
mov eax, esi
call fcn.00411520
test al, al
jne 0x4115a3
xor eax, eax
jmp 0x4115a5
mov al, 1
pop esi
pop ebx
ret

Function at 0x414ad4
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 0x414b0d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b1c
jmp 0x414b16
mov eax, ebx
mov edx, esi
call fcn.004069e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414b20
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 0x414b42
movzx eax, word [esp]
jmp 0x414b44
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4152d4
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 0x4153f9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004150e4
mov esi, eax
mov eax, dword [0x4b01c8]
cmp byte [eax], 0
je 0x4153a1
mov eax, dword [0x4aff8c]
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 [0x4152ac]
call fcn.004081a4
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 0x415414
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4153dd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4aff28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b3c3c]
call fcn.00408298
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 0x415400
lea eax, [ebp - 4]
mov edx, dword [0x4152ac]
call fcn.004081b0
ret
Function at 0x4165b0
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 0x416686
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406a34
lea eax, [ebp - 4]
call fcn.004073cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406a6c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x416670
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x416669
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.00406a6c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x416653
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x416698
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x416653
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 0x416670
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41668d
lea eax, [ebp - 4]
call fcn.004069d0
ret

Function at 0x41768c
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.00406388
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 0x417636
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x417638
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 0x417671
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 0x41765b
mov eax, esp
cmp esi, eax
je 0x41767e
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 0x4176b8
cmp bl, 0
je 0x4176b4
cmp bl, 0x41
jl 0x4176af
cmp bl, 0x5a
jg 0x4176af
or bl, 0x20
xor al, bl
inc esi
jmp 0x417693
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4175f8