joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407213
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x40722d
xor esi, esi
jmp 0x40725b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040d630
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x407296
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40728f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40732b
xor esi, esi
jmp 0x40732b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4072b9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x4072cc
xor esi, esi
jmp 0x407322
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x4072de
jmp 0x4072a9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x407322
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x407314
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.0040d630
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.0040cce0
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.00407392
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x407da1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4154fc
call fcn.0040ca3c
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00407d63
mov edi, eax
cmp edi, esi
je 0x407deb
cmp dword [ebp - 0x10], esi
je 0x407de4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x407e88
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x407e5c
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00407da1
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x407e49
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x407e0e
cmp dword [ebp - 0x10], esi
je 0x407e57
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x407e88
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x407e6f
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x407e86
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x407e99
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0040d630
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.004074eb
xor edi, edi
cmp eax, edi
jl 0x408051
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.0040805e
pop ecx
test eax, eax
pop ecx
jne 0x407ee4
mov eax, 0x80020009
jmp 0x408051
mov ecx, esi
call fcn.004074c3
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.004074eb
cmp eax, edi
jl 0x408051
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x408019
sub eax, 9
je 0x407f7e
dec eax
dec eax
jne 0x408040
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x407f29
xor ebx, ebx
jmp 0x407f5e
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040d630
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x408031
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x407fba
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040d630
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.0040ca70
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x407fc4
mov eax, 0x80004005
jmp 0x408051
cmp dword [ebp - 8], 0
jle 0x407ffe
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.004080e5
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x407fca
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x408040
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.004074eb
cmp eax, edi
jl 0x408051
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409545
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.0040ca70
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x67
push dword [ebp + 8]
call fcn.004096e2
push dword [ebp + 0x14]
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
push 0x6a
push dword [ebp + 8]
call fcn.004096e2
push dword [ebp + 0x14]
lea eax, [ebp - 0x108]
push esi
push eax
push 0x6b
push dword [ebp + 8]
call fcn.004096e2
add esp, 0x48
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x4096da
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
mov edi, eax
push ebx
push 3
push edi
call esi
mov dword [ebp + 8], eax
inc eax
push eax
call fcn.0040ca5b
pop ecx
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push eax
push 3
push edi
call esi
cmp dword [ebp + 0x10], ebx
je 0x4096d1
push dword [ebp + 0x10]
call fcn.0040cad0
test eax, eax
pop ecx
je 0x4096d1
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00409745
push dword [ebp + 0x10]
mov byte [ebp + 0xb], al
call fcn.0040c306
add esp, 0x18
cmp byte [ebp + 0xb], bl
jne 0x4096da
push ebx
and edi, 0x3ff
push ebx
push 3
push edi
mov dword [ebp - 4], edi
call esi
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0040ca5b
pop ecx
mov dword [ebp + 0x10], eax
push edi
push eax
push 3
push dword [ebp - 4]
call esi
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x4096a2
push esi
call fcn.0040cad0
test eax, eax
pop ecx
je 0x4096a2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push esi
call fcn.00409745
add esp, 0x14
mov byte [ebp + 0xb], al
push esi
call fcn.0040c306
cmp byte [ebp + 0xb], bl
pop ecx
jne 0x4096da
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0x41a818
call fcn.00409745
add esp, 0x14
jmp 0x4096da
push dword [ebp + 0x10]
call fcn.0040c306
pop ecx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409745
Capabilities:
Copy file
Get common file path

Disassembly:
mov eax, 0x4155f8
call fcn.0040ca3c
sub esp, 0x428
push ebx
push esi
push edi
xor ebx, ebx
push 3
lea eax, [ebp - 0x10]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.0040ca70
mov esi, 0x100
lea eax, [ebp - 0x234]
push esi
push ebx
push eax
call fcn.0040ca70
push esi
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.0040ca70
push esi
lea eax, [ebp - 0x334]
push ebx
push eax
call fcn.0040ca70
lea eax, [ebp - 0x334]
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.0040db22
add esp, 0x44
lea eax, [ebp - 0x134]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call fcn.004056e6
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x30], al
call fcn.004056e6
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.0040cad0
test eax, eax
pop ecx
mov esi, 0x41a3e4
jbe 0x40982b
lea eax, [ebp - 0x234]
push eax
call fcn.0040cad0
test eax, eax
pop ecx
jbe 0x40982b
push edi
call fcn.0040cad0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.004058f3
jmp 0x40986a
lea eax, [ebp - 0x134]
push eax
call fcn.0040cad0
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x30]
call fcn.004058f3
push esi
call fcn.0040cad0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.004055c1
push edi
call fcn.0040cad0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.004055c1
lea eax, [ebp - 0x134]
push eax
call fcn.0040cad0
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x20]
call fcn.004058f3
push esi
call fcn.0040cad0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.004055c1
push dword [ebp + 0x14]
call fcn.0040cad0
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 0x14]
call fcn.004055c1
push dword [ebp + 8]
call fcn.0040cad0
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call fcn.004055c1
push dword [ebp + 0x18]
call fcn.0040cad0
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 0x18]
call fcn.004055c1
mov eax, dword [ebp - 0x1c]
mov edi, 0x416374
cmp eax, ebx
jne 0x4098e5
mov eax, edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x40992b
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x409913
mov eax, edi
cmp dword [ebp - 0x1c], ebx
je 0x40991b
mov edi, dword [ebp - 0x1c]
push 1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
setne byte [ebp - 0xd]
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004056e6
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x20]
call fcn.004056e6
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40af81
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
xor ebx, ebx
push 0x94
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.0040ca70
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x40afd5
cmp dword [ebp - 0x90], 5
jne 0x40afd5
cmp dword [ebp - 0x8c], ebx
jbe 0x40afd5
mov bl, 1
mov al, bl
pop ebx
leave
ret

Function at 0x40b16f
Capabilities:
Check os version

Disassembly:
mov eax, 0x4156a7
call fcn.0040ca3c
sub esp, 0xa8
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov al, byte [ebp + 0xc]
push 1
pop edi
lea ecx, [ebp - 0x1c]
push ebx
mov dword [ebp - 4], edi
mov byte [ebp - 0x1c], al
call fcn.004056e6
push dword [0x4163f4]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.00405618
mov esi, 0x94
lea eax, [ebp - 0xb4]
push esi
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0040ca70
add esp, 0xc
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 2
jne 0x40b217
cmp dword [ebp - 0xb0], 5
jne 0x40b217
mov esi, str.Global_
push esi
call fcn.0040cad0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004058f3
push dword [0x4163f4]
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ebx
push eax
call fcn.00405539
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x1c]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.004056e6
push dword [0x4163f4]
lea eax, [ebp - 0x1c]
mov ecx, esi
push ebx
push eax
call fcn.00405618
mov dword [ebp - 0x20], edi
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004056e6
push edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.004056e6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40b266
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
push esi
push edi
mov esi, str.IsHideModesChecked
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x94
xor edi, edi
push esi
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.0040ca70
add esp, 0xc
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 1
je 0x40b32e
lea eax, [ebp - 0x1b8]
push 0x104
push eax
push dword [ebp + 8]
call sub.hccutils.DLL_GetHardwareKey
add esp, 0xc
test al, al
je 0x40b32e
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 0x20019
lea eax, [ebp - 0x1b8]
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b32e
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.PruningMode
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b322
cmp dword [ebp - 8], edi
setne al
mov edi, eax
jmp 0x40b325
push 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40baa6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
lea eax, [ebp - 0x10c]
xor esi, esi
push 0x104
push eax
mov dword [ebp - 8], esi
call sub.hccutils.DLL_GetCommonRegKey
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
lea eax, [ebp - 0x10c]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40bb2c
cmp dword [ebp - 8], 2
jne 0x40bb23
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.CUIModesCacheDisplay1
push dword [ebp - 4]
call esi
push str.CUIModesCacheDisplay2
push dword [ebp - 4]
call esi
push str.HideModesCheckboxStatus1
push dword [ebp - 4]
call esi
push str.HideModesCheckboxStatus2
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x403440
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.00406018
test esi, esi
jne 0x403478
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.00406154
jmp 0x403496
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403324
mov edi, eax
test esi, esi
je 0x403496
cmp dword [ebx], 0
je 0x403496
dec esi
jmp 0x40347f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40511c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a5054], 0
je 0x40517d
cmp word [0x4a5330], 0xd7b2
jne 0x405145
cmp dword [0x4a5338], 0
jbe 0x405145
mov eax, 0x4a532c
call dword [0x4a5348]
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 0x4051a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a102c], 0
jne 0x405199
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405328
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 [0x4a1034], 0
je 0x40534e
mov edx, esi
mov eax, ebx
call dword [0x4a1034]
jmp 0x40535d
mov eax, 8
call fcn.00403060
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4a5055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4052f0
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 0x40867c
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 0x40a148
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4a7b60
push 0xa
push 0x40a1dc
mov eax, dword [0x4a7b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40a16c
call fcn.00412ff0
push ebx
mov eax, dword [0x4a7b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40a183
call fcn.00412ff0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40a195
call fcn.00412ff0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4a7b64], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4a7b68], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4a7b6c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4a7b70], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4a7b74], ecx
add edx, dword [eax + 0x14]
mov dword [0x4a7b78], edx
pop esi
pop ebx
ret

Function at 0x40b96c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ba15
test eax, edx
je 0x40ba18
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b995
push edx
mov edx, eax
mov eax, esp
call fcn.0040621c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b9ab
push eax
lea eax, [esp + 8]
call fcn.0040621c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b9ba
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b9e1
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 0x40b9fb
add ecx, 4
js 0x40b9d2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b9f8
push eax
mov eax, ecx
mov edx, 2
call fcn.004053c8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b9df
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b9e1
xor eax, eax
ret
test eax, eax
je 0x40ba28
test edx, edx
jne 0x40b97c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41015c
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 0x410195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406154
jmp 0x41019e
mov eax, ebx
mov edx, esi
call fcn.00406018
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4101a8
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 0x4101ca
movzx eax, word [esp]
jmp 0x4101cc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410954
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 0x410a79
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00410768
mov esi, eax
mov eax, dword [0x4a4150]
cmp byte [eax], 0
je 0x410a21
mov eax, dword [0x4a3e00]
call fcn.0040380c
call fcn.004031c8
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 [0x410930]
call fcn.00407880
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 0x410a94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x410a5d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4a3d74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a7b50]
call fcn.00407974
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 0x410a80
lea eax, [ebp - 4]
mov edx, dword [0x410930]
call fcn.0040788c
ret