joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408abf
mov eax, dword fs:[0]
push eax
mov eax, 0x2f08
call fcn.00408a50
mov eax, dword [0x40e01c]
xor eax, esp
mov dword [esp + 0x2f04], eax
push ebp
push esi
mov eax, dword [0x40e01c]
xor eax, esp
push eax
lea eax, [esp + 0x2f14]
mov dword fs:[0], eax
push 0x2ee0
lea eax, [esp + 0x34]
push eax
xor esi, esi
push ecx
mov dword [esp + 0x2f28], esi
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov ecx, edi
mov dword [esp + 0x2f1c], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebp, ebp
mov dword [esp + 0xc], 1
cmp dword [esp + 0x28], ebp
jbe 0x405a7d
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp byte [eax], 0x5e
je 0x405a7b
inc esi
cmp esi, dword [esp + 0x28]
jb 0x405a62
jmp 0x405a7d
mov ebp, esi
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp ebp, dword [eax]
je 0x405aae
xor esi, esi
test ebp, ebp
jle 0x405abb
lea esp, [esp]
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
movzx ecx, word [eax]
push ecx
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_]
inc esi
cmp esi, ebp
jl 0x405a90
jmp 0x405abb
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call dword [0x40a0ac]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f1c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x2f14]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x2f04]
xor ecx, esp
call fcn.004080ae
add esp, 0x2f14
ret
Function at 0x4080ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e01c]
jne 0x4080b8
repz ret
jmp fcn.00408572
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2ea722d1
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6d1d357f
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x40626
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047b432
Function at 0x4012c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401314
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401310
lea ebx, [ebx]
cmp esi, eax
jae 0x401314
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401300
cmp esi, eax
jb 0x40131a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CAboutDlg.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x40f455
cmp dword [edi + 0x54], 0
jne 0x40f455
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041636e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040f3fc
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x401e80
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov ebp, ecx
push 0
push 0
lea edi, [ebp + 0x80]
push 0x200
mov ecx, edi
call fcn.00414be5
xor esi, esi
push esi
push 0x436c28
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 0xc], eax
je 0x401f09
push eax
call fcn.0041ba24
mov esi, eax
add esp, 4
test esi, esi
je 0x401f09
mov eax, dword [esp + 0xc]
push esi
push eax
push 0
push 0x436c28
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401f09
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x436c24
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401f09
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xa]
mov dword [esp + 0x14], ecx
push esi
call fcn.0041b947
add esp, 4
cmp byte [ebp + 0x290], 0
je 0x401f64
cmp word [esp + 0x14], 6
jb 0x401f45
mov edx, dword [ebp + 0xa0]
push 0x10021
push 0
push 0x1036
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
push 0x800040
jmp 0x401f81
mov eax, dword [ebp + 0xa0]
push 0x21
push 0
push 0x1036
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
push 0x800040
jmp 0x401f81
mov ecx, dword [ebp + 0xa0]
push 0x21
push 0
push 0x1036
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
push 0x800000
push 0
mov ecx, edi
call fcn.00414bbb
xor esi, esi
cmp byte [ebp + 0x290], 0
je 0x401faf
push 0xffffffffffffffff
push 0xa0
push esi
push str.Process__PID_
push esi
mov ecx, edi
call fcn.00414e8b
mov esi, 1
push 0xffffffffffffffff
push 0x3c
push 0
push str.Protocol
push esi
mov ecx, edi
call fcn.00414e8b
push 0xffffffffffffffff
push 0x80
push 0
push str.Local_Address
add esi, 1
push esi
mov ecx, edi
call fcn.00414e8b
push 0xffffffffffffffff
push 0x80
push 0
push str.Foreign_Address
add esi, 1
push esi
mov ecx, edi
call fcn.00414e8b
push 0xffffffffffffffff
push 0x50
push 0
push 0x436bac
add esi, 1
push esi
mov ecx, edi
call fcn.00414e8b
lea eax, [ebp + 0x100]
test eax, eax
je 0x402017
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0xa0]
push 1
push eax
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xc
ret
Function at 0x4022e0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x444238]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
mov ebx, dword [esp + 0x23c]
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40232b
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40232f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x40236b
push edi
mov edi, dword [esp + 0x240]
cmp dword [esp + 0x14], edi
je 0x40234e
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402337
jmp 0x402361
mov eax, dword [esp + 0x248]
lea edx, [esp + 0x30]
push edx
push eax
push ebx
call fcn.004019b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov ecx, dword [esp + 0x234]
pop esi
pop ebx
xor ecx, esp
call fcn.0041afda
add esp, 0x230
ret 0xc

Function at 0x403fd0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x444238]
xor eax, esp
mov dword [esp + 0x2b4], eax
push 0x2b0
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call fcn.0041b350
mov eax, dword [esp + 0x2cc]
add esp, 0xc
cmp dword [esp + 0x2d4], 8
jae 0x404018
lea eax, [esp + 0x2c0]
push 0x4000
push 0x2b4
lea ecx, [esp + 8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x404068
cmp dword [esp + 0x2d4], 8
jb 0x40404e
mov edx, dword [esp + 0x2c0]
push edx
call fcn.0040c689
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.0041afda
add esp, 0x2b8
ret 0x1c
cmp dword [esp + 0x2d4], 8
push esi
mov esi, dword [esp + 8]
jb 0x404087
mov eax, dword [esp + 0x2c4]
push eax
call fcn.0040c689
add esp, 4
mov ecx, dword [esp + 0x2b8]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041afda
add esp, 0x2b8
ret 0x1c
Function at 0x404c20
Capabilities:
Check os version
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x433e0b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x444238]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push esi
push edi
mov eax, dword [0x444238]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [esp + 0x140]
push eax
mov esi, ecx
push 0x66
mov dword [esp + 0x1c], esi
call fcn.0040eb73
xor ebx, ebx
lea edi, [esi + 0x80]
mov ecx, edi
mov dword [esp + 0x138], ebx
mov dword [esi], vtable.CNssNetStatDlg.0
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
call fcn.00410bee
mov dword [edi], vtable.CListCtrl.0
lea ecx, [esi + 0xd8]
mov byte [esp + 0x138], 1
mov dword [esi + 0xd4], ebx
call fcn.00408d60
lea ecx, [esi + 0xf4]
mov byte [esp + 0x138], 2
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov byte [esi + 0xf0], bl
call fcn.00409bc0
lea ecx, [esi + 0x148]
mov byte [esp + 0x138], 3
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
call fcn.0040ac00
lea ecx, [esi + 0x1ec]
mov byte [esp + 0x138], 4
call fcn.0040ac00
mov byte [esp + 0x138], 5
mov byte [esi + 0x290], bl
call fcn.0041636e
call fcn.0041636e
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x80
push eax
call edi
mov dword [esi + 0x74], eax
call fcn.0041636e
call fcn.0041636e
mov eax, dword [eax + 0xc]
push 0x81
push eax
call edi
push 0x110
mov dword [esi + 0xe0], eax
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0041b350
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404da0
cmp dword [esp + 0x1c], 6
jb 0x404da0
call fcn.0041636e
call fcn.0041636e
mov eax, dword [eax + 0xc]
push 0x85
push eax
call edi
mov dword [esi + 0xe4], eax
cmp dword [esi + 0xe4], ebx
jne 0x404dc3
call fcn.0041636e
call fcn.0041636e
mov eax, dword [eax + 0xc]
push 0x82
push eax
call edi
mov dword [esi + 0xe4], eax
push 8
call fcn.0040c65e
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x138], 6
je 0x404de6
mov ecx, eax
call fcn.0040bdc0
jmp 0x404de8
xor eax, eax
push 0x10
mov byte [esp + 0x13c], 5
mov dword [esi + 0xd4], eax
call fcn.0040c65e
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x138], 7
je 0x404e19
mov ecx, eax
call fcn.00415502
jmp 0x404e1b
xor eax, eax
push 8
mov byte [esp + 0x13c], 5
mov dword [esi + 0x140], eax
call fcn.0040c65e
add esp, 4
cmp eax, ebx
je 0x404e42
mov dword [eax + 4], ebx
mov dword [eax], vtable.CBitmap.0
jmp 0x404e44
xor eax, eax
mov ecx, esi
mov dword [esi + 0x144], eax
call fcn.004015a0
mov byte [esi + 0x290], al
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041afda
add esp, 0x12c
ret 4
Function at 0x408e60
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0
mov byte [0x4457dc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 8]
push 0x4457d8
mov dword [0x4457d4], eax
mov eax, dword [esp + 8]
push eax
push ecx
push 0x408d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4457d0], eax
xor eax, eax
ret 8

Function at 0x408ee0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x18
push esi
push str.advapi32.dll
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x408f02
pop esi
add esp, 0x18
ret
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenProcessToken
push esi
call edi
push str.LookupPrivilegeValueW
push esi
mov ebx, eax
call edi
push str.AdjustTokenPrivileges
push esi
mov ebp, eax
call edi
test ebx, ebx
mov edi, eax
je 0x408fd6
test ebp, ebp
je 0x408fd6
test edi, edi
je 0x408fd6
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x408fc1
lea ecx, [esp + 0x1c]
push ecx
push 0x4375bc
push 0
mov dword [esp + 0x24], 1
call ebp
test eax, eax
je 0x408fc1
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0x10
neg edx
lea eax, [esp + 0x24]
push eax
sbb edx, edx
push 0
and edx, 2
push ecx
mov dword [esp + 0x3c], edx
call edi
test eax, eax
je 0x408fc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov edi, eax
neg edi
sbb edi, edi
push edx
add edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x408ff0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x444238]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, ecx
push str.psapi.dll
mov dword [esi + 0x28], 1
call edi
push str.Kernel32.dll
mov dword [esi + 0x2c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
xor ebx, ebx
cmp eax, ebx
je 0x409080
push str.EnumProcessModules
push eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x2c]
push str.GetModuleFileNameExW
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.EnumProcesses
push ecx
mov dword [esi + 8], eax
call edi
cmp dword [esi + 4], ebx
mov dword [esi + 0xc], eax
je 0x409080
cmp dword [esi + 8], ebx
je 0x409080
cmp eax, ebx
je 0x409080
mov dword [esi + 0x28], ebx
push 0x110
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.0041b350
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4090ca
cmp dword [esp + 0x10], 6
jb 0x4090ca
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x4090ca
push str.QueryFullProcessImageNameW
push eax
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x4090ca
mov dword [esi + 0x28], ebx
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041afda
add esp, 0x118
ret
Function at 0x4090f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x420
mov eax, dword [0x444238]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x434]
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x22]
push ebx
push eax
mov edi, ecx
mov word [esp + 0x28], bx
call fcn.0041b350
push 0x206
lea ecx, [esp + 0x236]
push ebx
push ecx
mov word [esp + 0x23c], bx
call fcn.0041b350
push 1
mov dword [esp + 0x2c], ebx
call fcn.00408ee0
mov ebp, dword [esp + 0x450]
add esp, 0x1c
push ebp
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x409182
push ebp
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push 0
call fcn.00408ee0
add esp, 4
test ebx, ebx
je 0x409315
mov eax, dword [edi + 0x10]
test eax, eax
je 0x409245
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
mov dword [esp + 0x24], 0x104
call eax
test eax, eax
je 0x40930e
push 4
lea edx, [esp + 0x20]
push 0x43770c
push edx
call fcn.0041d06f
add esp, 0xc
test eax, eax
jne 0x4091dc
lea eax, [esp + 0x24]
jmp 0x409215
push 0xb
lea ecx, [esp + 0x20]
push str.SystemRoot
push ecx
call fcn.0041d06f
add esp, 0xc
test eax, eax
jne 0x409211
mov edi, dword [esp + 0x43c]
lea edx, [esp + 0x32]
push edx
push 0x4376d0
push edi
push esi
call fcn.00401b60
add esp, 0x10
jmp 0x409224
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x43c]
push eax
push edi
push esi
call fcn.00401a30
push 0x208
lea ecx, [esp + 0x228]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x224]
push edx
jmp 0x4092ff
mov edx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push ebx
call edx
cmp eax, 1
jne 0x40930e
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 8]
push 0x208
lea eax, [esp + 0x20]
push eax
push ecx
push ebx
call edx
test eax, eax
je 0x40930e
push 4
lea eax, [esp + 0x20]
push 0x43770c
push eax
call fcn.0041d06f
add esp, 0xc
test eax, eax
jne 0x40929b
lea ecx, [esp + 0x24]
jmp 0x4092d4
push 0xb
lea edx, [esp + 0x20]
push str.SystemRoot
push edx
call fcn.0041d06f
add esp, 0xc
test eax, eax
jne 0x4092d0
mov edi, dword [esp + 0x43c]
lea eax, [esp + 0x32]
push eax
push 0x4376d0
push edi
push esi
call fcn.00401b60
add esp, 0x10
jmp 0x4092e3
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x43c]
push ecx
push edi
push esi
call fcn.00401a30
push 0x208
lea edx, [esp + 0x228]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x224]
push eax
push edi
push esi
call fcn.00401a30
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x42c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041afda
add esp, 0x420
ret 0xc
Function at 0x409830
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x444238]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041b350
mov esi, 2
lea ecx, [esp + 0x10]
add esp, 0xc
test ecx, ecx
mov eax, 0x11c
mov dword [esp + 4], eax
mov dword [esp + 8], 5
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], esi
je 0x4098c8
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0
push 0
call esi
push 1
push 1
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0xb
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
setne al
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041afda
add esp, 0x120
ret
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
call fcn.00409580
add esp, 4
test al, al
jne 0x40990c
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call fcn.00409580
add esp, 4
test al, al
jne 0x40990c
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041afda
add esp, 0x120
ret
cmp dword [esp + 8], 5
jne 0x40993a
cmp dword [esp + 0xc], esi
jne 0x40993a
cmp dword [esp + 0x14], esi
jne 0x40993a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041afda
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041afda
add esp, 0x120
ret
Function at 0x409a40
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
mov eax, 0x2844
call fcn.0041d120
mov eax, dword [0x444238]
xor eax, esp
mov dword [esp + 0x2840], eax
push esi
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.0041b350
push 0x2424
lea ecx, [esp + 0x228]
push 0
push ecx
call fcn.0041b350
add esp, 0x18
lea edx, [esp + 0x10]
push edx
push 2
call dword [sym.imp.nspcutil.dll_Ordinal_265]
push 0x206
lea eax, [esp + 0x2642]
push 0
push eax
mov word [esp + 0x2648], 0
call fcn.0041b350
lea ecx, [esp + 0x224]
push ecx
push str.SoftwareINCAInternet
push str._s_s
lea edx, [esp + 0x2654]
push 0x104
push edx
call fcn.004099e0
add esp, 0x20
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
lea ecx, [esp + 0x2648]
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0x409
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409b6f
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push esi
push esi
push str.LangID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409b31
lea esi, [eax + 1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x409b6f
mov eax, dword [esp + 8]
cmp eax, 0x412
ja 0x409b61
je 0x409b8d
mov ecx, eax
sub ecx, 0x408
je 0x409b8d
sub ecx, 1
je 0x409b8d
sub ecx, 8
jmp 0x409b6d
cmp eax, 0x421
je 0x409b8d
cmp eax, 0x804
je 0x409b8d
cmp dword [esp + 0x284c], 0
je 0x409b81
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x409b87
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
movzx eax, ax
mov ecx, dword [esp + 0x2844]
pop esi
xor ecx, esp
call fcn.0041afda
add esp, 0x2844
ret