joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401380
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 0x401399
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4013d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013c0
cmp esi, eax
jb 0x4013da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4053f0
Capabilities:
Enumerate services

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
push 0xf01ff
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
je 0x4054d4
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push esi
push esi
push 3
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
push ebx
call esi
mov eax, dword [esp + 0x1c]
push eax
mov edi, eax
call fcn.0040b28c
add esp, 4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
mov ebp, eax
push ebp
push 3
push ebx
call esi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x405494
test ebp, ebp
je 0x405472
push ebp
call fcn.0040b281
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
call fcn.004051f0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
xor edi, edi
cmp dword [esp + 0x20], edi
jle 0x4054bc
mov esi, ebp
mov edi, edi
cmp dword [esi + 0xc], 1
je 0x4054b2
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push eax
call fcn.0040ea1f
inc edi
add esi, 0x24
cmp edi, dword [esp + 0x20]
jl 0x4054a0
test ebp, ebp
je 0x4054c9
push ebp
call fcn.0040b281
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x405b90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0041a8c0
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x405bf9
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004051f0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00419ef2
add esp, 0x20c
ret 0xc
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00419ef2
add esp, 0x20c
ret 0xc
Function at 0x405d00
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc4c
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0xc48], eax
mov eax, dword [esp + 0xc50]
push ebp
push edi
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x2a]
push edx
mov dword [esp + 0x24], eax
mov word [esp + 0x2c], cx
call fcn.0041a8c0
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x446]
push ecx
mov word [esp + 0x448], ax
call fcn.0041a8c0
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x862]
push eax
mov word [esp + 0x864], dx
call fcn.0041a8c0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x24
lea ecx, [esp + 8]
push ecx
push 0x20019
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetControlPrintMonitors
push 0x80000002
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edi
call ebp
test eax, eax
jne 0x405ddd
mov ecx, dword [esp + 8]
push eax
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x405de4
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x405ede
push esi
jmp 0x405df0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x438]
push str.SYSTEMCurrentControlSetControlPrintMonitors_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x440]
push eax
push 0x80000002
call ebp
mov esi, eax
test esi, esi
jne 0x405ec7
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x848]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push str.Driver
push ecx
mov dword [esp + 0x2c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x405ebc
cmp dword [esp + 0x14], eax
je 0x405ebc
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x844]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405ec7
mov ecx, dword [esp + 0xc]
push esi
push esi
push esi
push esi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
inc edi
push edi
push ecx
mov dword [esp + 0x38], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
jne 0x405df0
jmp 0x405ec7
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, 0x103
sete al
pop esi
mov ecx, dword [esp + 0xc50]
pop edi
pop ebp
xor ecx, esp
call fcn.00419ef2
add esp, 0xc4c
ret 4
Function at 0x406060
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x218
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
mov esi, dword [esp + 0x220]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0041a8c0
add esp, 0xc
test esi, esi
jne 0x4060d8
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4060c6
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00419ef2
add esp, 0x218
ret 4
push 0x431de4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x4060e4
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x406125
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x406125
mov ecx, dword [esp + 0xc]
push esi
push edi
push ecx
lea edx, [esp + 0x20]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x406129
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x406153
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
push esi
test eax, eax
je 0x40611f
mov edx, dword [esp + 0xc]
movzx edi, word [edx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ax, di
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.00419ef2
add esp, 0x218
ret 4

Function at 0x406e70
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x20
push esi
mov dword [esp + 4], 0
call fcn.0040fb12
mov ecx, dword [eax + 4]
call fcn.0040c448
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x406f32
lea edx, [esp + 8]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x406f2b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x1388
jbe 0x406ee7
mov eax, 0x1388
jmp 0x406ef0
test eax, eax
jne 0x406ef4
mov eax, 0x3e8
mov dword [esp + 0x2c], eax
push eax
call edi
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
je 0x406f28
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x406f20
cmp eax, 3
jne 0x406f28
call ebp
sub eax, dword [esp + 0x38]
cmp eax, 0x7530
jb 0x406ed5
jmp 0x406f28
mov dword [esp + 0x10], 1
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x2c]
call fcn.00406d60
mov eax, dword [esp + 4]
pop esi
add esp, 0x20
ret 8
Function at 0x406f50
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x20
push esi
mov dword [esp + 4], 0
call fcn.0040fb12
mov ecx, dword [eax + 4]
call fcn.0040c448
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x407042
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0xc]
push edx
push esi
call edi
cmp dword [esp + 0x10], 4
jne 0x406fab
mov dword [esp + 8], 1
jmp 0x40703a
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40703a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x3e8
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
push eax
push esi
call edi
test eax, eax
je 0x407038
mov eax, dword [esp + 0x18]
cmp eax, 4
je 0x407030
cmp eax, 2
jne 0x407038
call ebp
sub eax, dword [esp + 0x38]
cmp eax, 0x7530
jae 0x407038
mov eax, dword [esp + 0x2c]
cmp eax, 0x1388
jbe 0x407012
mov eax, 0x1388
jmp 0x40701b
test eax, eax
jne 0x40701f
mov eax, 0x3e8
mov dword [esp + 0x2c], eax
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x406fe5
jmp 0x407038
mov dword [esp + 0x10], 1
pop ebp
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
lea ecx, [esp + 0x2c]
call fcn.00406d60
mov eax, dword [esp + 4]
pop esi
add esp, 0x20
ret 8
Function at 0x407e10
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42b18b
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
mov eax, dword [0x43d838]
xor eax, esp
push eax
lea eax, [esp + 0x85c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x86c]
mov ebx, dword [esp + 0x870]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x42]
push ecx
mov dword [esp + 0x20], 0
mov word [esp + 0x44], ax
call fcn.0041a8c0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x256]
push eax
mov word [esp + 0x258], dx
call fcn.0041a8c0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x46a]
push edx
mov word [esp + 0x46c], cx
call fcn.0041a8c0
push edi
lea eax, [esp + 0x678]
push str.SYSTEMCurrentControlSetControlPrintMonitors_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x680]
push ecx
push 0x80000002
call fcn.00409280
add esp, 0x38
test eax, eax
je 0x408050
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x65c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407f17
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004051f0
jmp 0x408062
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.Driver
push ecx
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408057
cmp dword [esp + 0x14], eax
je 0x408057
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x82c]
cmp eax, 2
je 0x407f72
cmp eax, 3
je 0x407f72
cmp eax, 4
jne 0x407f81
mov ecx, esi
call fcn.004076b0
test eax, eax
je 0x408062
push edi
push ebx
mov ecx, esi
call fcn.00405c20
mov ebx, eax
test ebx, ebx
jne 0x407fa0
push edi
push eax
push eax
call sub.WINSPOOL.DRV_DeleteMonitorW
test eax, eax
je 0x407f07
push 0x104
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x407f07
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x248]
push eax
call fcn.0040a130
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0040af30
cmp dword [esi + 0x82c], 4
mov dword [esp + 0x864], 0
jne 0x407ffe
lea ecx, [esp + 0x1c]
call fcn.0040afd0
test ebx, ebx
jne 0x40803c
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00405d00
cmp eax, 1
jne 0x40803c
lea edx, [esp + 0x448]
push edx
mov ecx, esi
call fcn.00407060
test eax, eax
jne 0x40803c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x864], 0xffffffff
call fcn.0040b010
jmp 0x408062
lea ecx, [esp + 0x1c]
mov dword [esp + 0x864], 0xffffffff
call fcn.0040b010
mov eax, 1
jmp 0x408064
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x85c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.00419ef2
add esp, 0x858
ret 8
Function at 0x408f80
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4090da
mov eax, dword [esp + 0x18]
sub eax, 1
je 0x4090b5
sub eax, 1
jne 0x4090da
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x408ff5
cmp dword [esp + 0x10], 0
jne 0x4090da
mov eax, 2
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00419ef2
add esp, 0x11c
ret
cmp eax, 5
jne 0x409084
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409069
cmp eax, 1
je 0x409069
cmp eax, 2
jne 0x4090da
push str.IsWow64Process
push 0x432588
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x409069
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 4], 0
je 0x409069
mov eax, 4
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00419ef2
add esp, 0x11c
ret
mov eax, 3
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00419ef2
add esp, 0x11c
ret
cmp eax, 6
jb 0x4090da
push str.IsWow64Process
push 0x432588
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x409069
lea edx, [esp + 4]
push edx
jmp 0x40903e
mov eax, dword [esp + 0x14]
shr eax, 0x10
cmp eax, 0x40a
sbb eax, eax
inc eax
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00419ef2
add esp, 0x11c
ret
mov ecx, dword [esp + 0x11c]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.00419ef2
add esp, 0x11c
ret
Function at 0x4092c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x210], eax
mov ecx, dword [esp + 0x21c]
mov eax, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x224]
lea edx, [esp + 4]
push edx
push 9
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409317
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00419ef2
add esp, 0x214
ret
mov edx, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x40937a
push ebp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40939f
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
je 0x409343
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00419ef2
add esp, 0x214
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00419ef2
add esp, 0x214
ret

Function at 0x4093d0
Capabilities:
Delete registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push ebx
push esi
push edi
call fcn.004092c0
add esp, 0xc
test eax, eax
je 0x409443
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409431
mov ecx, dword [esp + 0xc]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x409438
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4094b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x204
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x200], eax
mov ecx, dword [esp + 0x20c]
push ebx
mov ebx, dword [esp + 0x214]
xor eax, eax
mov word [0x4422f0], ax
mov eax, ebx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
push esi
mov esi, dword [esp + 0x210]
inc eax
push edi
movzx eax, ax
movzx edi, ax
push ecx
push edi
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x40950f
push 6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, ebx
xor ecx, ecx
and edx, 0x8000000f
jns 0x409531
dec edx
or edx, 0xfffffff0
inc edx
js 0x40954d
inc edx
lea eax, [eax + ecx*2]
movzx ecx, word [eax]
add eax, 2
sub edx, 1
jne 0x409532
cmp ecx, 0xff
jl 0x40954d
mov ecx, 0xfe
lea esi, [ecx + ecx]
push esi
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0041b370
add esp, 0xc
push 0xff
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push 0x4422f0
mov word [esp + esi + 0x18], ax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 0x4422f0
call fcn.00419ef2
add esp, 0x204
ret

Function at 0x409720
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
test di, di
jne 0x409745
push 0
call fcn.004095f0
add esp, 4
mov eax, edi
and eax, 0x3ff
sub eax, 4
je 0x40976d
sub eax, 0xd
je 0x409766
sub eax, 1
je 0x40975f
xor edi, edi
jmp 0x40978d
mov edi, 0x3b5
jmp 0x40978d
mov edi, 0x3a4
jmp 0x40978d
shr di, 0xa
cmp di, 1
je 0x409788
cmp di, 3
je 0x409788
cmp di, 5
mov edi, 0x3a8
jne 0x40978d
mov edi, 0x3b6
cmp word [esi], bx
je 0x4097d1
mov ebx, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
push ebp
mov ebp, dword [esp + 0x18]
lea ecx, [ecx]
movzx eax, byte [esi]
push eax
push edi
call ebx
test eax, eax
je 0x4097b4
test edi, edi
je 0x4097b4
add esi, 4
jmp 0x4097c2
movzx ecx, word [esi]
cmp ecx, ebp
jne 0x4097bf
mov dword [esp + 0x14], esi
add esi, 2
cmp word [esi], 0
jne 0x4097a0
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4097e0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x634
mov eax, dword [0x43d838]
xor eax, esp
mov dword [esp + 0x630], eax
mov edx, dword [esp + 0x644]
mov eax, dword [esp + 0x638]
mov ecx, dword [esp + 0x63c]
push ebx
mov ebx, dword [esp + 0x644]
push ebp
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x654]
push eax
lea edx, [esp + 0x230]
push edx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str..exe
lea eax, [esp + 0x230]
push eax
call ebp
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x230]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x40987a
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00419ef2
add esp, 0x634
ret
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4099ba
mov eax, dword [esp + 0x20]
push esi
push edi
push eax
lea ecx, [esp + 0x23c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4099b3
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4099b3
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push edx
lea eax, [esp + 0x440]
push str._04X_04X
push eax
call edi
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x3c]
push str.StringFileInfo_sFileDescription
push edx
call edi
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4099b3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call ebp
lea edx, [esp + 0x438]
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_sFileVersion
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4099b3
mov ecx, dword [esp + 0x65c]
mov edx, dword [esp + 0x18]
push 0x11f
push ecx
push edx
call fcn.004094b0
add esp, 0xc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x10]
push eax
push ebx
call ebp
lea ecx, [esp + 0x438]
push ecx
lea edx, [esp + 0x2c]
push str.StringFileInfo_sLegalCopyright
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4099be
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x4099da
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov ecx, dword [esp + 0x640]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419ef2
add esp, 0x634
ret