joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448ec8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x474728]
jne 0x448ed2
repz ret
jmp fcn.0044e83c

Function at 0x457c69
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044e285
xor ebx, ebx
cmp dword [0x479618], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x457d3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x457ca9
xor eax, eax
jmp 0x457e02
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x467cb4
push edi
call esi
cmp eax, ebx
je 0x457ca2
push eax
call fcn.0044e222
mov dword [esp], 0x467ca4
push edi
mov dword [0x479618], eax
call esi
push eax
call fcn.0044e222
mov dword [esp], 0x467c90
push edi
mov dword [0x47961c], eax
call esi
push eax
call fcn.0044e222
mov dword [0x479620], eax
lea eax, [ebp - 8]
push eax
call fcn.0044a65d
test eax, eax
pop ecx
pop ecx
je 0x457d0c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00450161
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x457d3e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044e222
cmp eax, ebx
pop ecx
mov dword [0x479628], eax
je 0x457d3e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044e222
pop ecx
mov dword [0x479624], eax
mov eax, dword [0x479624]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x457db7
cmp dword [0x479628], esi
je 0x457db7
push eax
call fcn.0044e28e
pop ecx
call eax
cmp eax, ebx
je 0x457d84
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x479628]
call fcn.0044e28e
pop ecx
call eax
test eax, eax
je 0x457d84
test byte [ebp - 0x18], 1
jne 0x457db7
lea eax, [ebp - 0xc]
push eax
call fcn.0044a694
test eax, eax
pop ecx
je 0x457d9f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00450161
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x457dae
or dword [ebp + 0x10], 0x200000
jmp 0x457de8
or dword [ebp + 0x10], 0x40000
jmp 0x457de8
mov eax, dword [0x47961c]
cmp eax, esi
je 0x457de8
push eax
call fcn.0044e28e
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x457de8
mov eax, dword [0x479620]
cmp eax, esi
je 0x457de8
push dword [ebp - 4]
push eax
call fcn.0044e28e
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x479618]
call fcn.0044e28e
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c0c4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x474728]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045c059
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00449450
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45c113
cmp dword [ebp - 0x1c], 5
jb 0x45c12b
jmp 0x45c127
cmp dword [ebp - 0x10], 1
jne 0x45c12b
cmp dword [ebp - 0x1c], 4
ja 0x45c127
jne 0x45c12b
cmp dword [ebp - 0x18], 0
jbe 0x45c12b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x468538
call fcn.0045bf4a
test eax, eax
jge 0x45c14c
mov byte [0x476cd8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00448ec8
add ebp, 0x78
leave
ret
Function at 0x4012a0
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 0x4012b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4012f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4012f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012e0
cmp esi, eax
jb 0x4012fa
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 0x405320
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 0x405404
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.0040b201
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 0x4053c4
test ebp, ebp
je 0x4053a2
push ebp
call fcn.0040b20c
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x14]
push 0
push 0xffffffffffffffff
call fcn.004051e0
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 0x4053ec
mov esi, ebp
mov edi, edi
cmp dword [esi + 0xc], 1
je 0x4053e2
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
push eax
call fcn.0040c64d
inc edi
add esi, 0x24
cmp edi, dword [esp + 0x20]
jl 0x4053d0
test ebp, ebp
je 0x4053f9
push ebp
call fcn.0040b20c
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 0x405ac0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x43d768]
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.0041a6b0
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x405b29
push eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004051e0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00419ef4
add esp, 0x20c
ret 0xc
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00419ef4
add esp, 0x20c
ret 0xc
Function at 0x405c30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc4c
mov eax, dword [0x43d768]
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.0041a6b0
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x446]
push ecx
mov word [esp + 0x448], ax
call fcn.0041a6b0
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x862]
push eax
mov word [esp + 0x864], dx
call fcn.0041a6b0
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 0x405d0d
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 0x405d14
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x405e0e
push esi
jmp 0x405d20
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 0x405df7
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 0x405dec
cmp dword [esp + 0x14], eax
je 0x405dec
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 0x405df7
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 0x405d20
jmp 0x405df7
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.00419ef4
add esp, 0xc4c
ret 4
Function at 0x405f90
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x218
mov eax, dword [0x43d768]
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.0041a6b0
add esp, 0xc
test esi, esi
jne 0x406008
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x405ff6
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00419ef4
add esp, 0x218
ret 4
push 0x431dd4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x406014
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 0x406055
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x406055
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 0x406059
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x406083
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 0x40604f
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.00419ef4
add esp, 0x218
ret 4

Function at 0x406d70
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.0040fb15
mov ecx, dword [eax + 4]
call fcn.0040ca2a
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 0x406e32
lea edx, [esp + 8]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x406e2b
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 0x406de7
mov eax, 0x1388
jmp 0x406df0
test eax, eax
jne 0x406df4
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 0x406e28
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x406e20
cmp eax, 3
jne 0x406e28
call ebp
sub eax, dword [esp + 0x38]
cmp eax, 0x7530
jb 0x406dd5
jmp 0x406e28
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.00406c60
mov eax, dword [esp + 4]
pop esi
add esp, 0x20
ret 8
Function at 0x406e50
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.0040fb15
mov ecx, dword [eax + 4]
call fcn.0040ca2a
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 0x406f42
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 0x406eab
mov dword [esp + 8], 1
jmp 0x406f3a
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x406f3a
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 0x406f38
mov eax, dword [esp + 0x18]
cmp eax, 4
je 0x406f30
cmp eax, 2
jne 0x406f38
call ebp
sub eax, dword [esp + 0x38]
cmp eax, 0x7530
jae 0x406f38
mov eax, dword [esp + 0x2c]
cmp eax, 0x1388
jbe 0x406f12
mov eax, 0x1388
jmp 0x406f1b
test eax, eax
jne 0x406f1f
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 0x406ee5
jmp 0x406f38
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.00406c60
mov eax, dword [esp + 4]
pop esi
add esp, 0x20
ret 8
Function at 0x407d10
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42afcb
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x43d768]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
mov eax, dword [0x43d768]
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.0041a6b0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x256]
push eax
mov word [esp + 0x258], dx
call fcn.0041a6b0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x46a]
push edx
mov word [esp + 0x46c], cx
call fcn.0041a6b0
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.00409040
add esp, 0x38
test eax, eax
je 0x407f50
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 0x407e17
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004051e0
jmp 0x407f62
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 0x407f57
cmp dword [esp + 0x14], eax
je 0x407f57
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x82c]
cmp eax, 2
je 0x407e72
cmp eax, 3
je 0x407e72
cmp eax, 4
jne 0x407e81
mov ecx, esi
call fcn.004075b0
test eax, eax
je 0x407f62
push edi
push ebx
mov ecx, esi
call fcn.00405b50
mov ebx, eax
test ebx, ebx
jne 0x407ea0
push edi
push eax
push eax
call sub.WINSPOOL.DRV_DeleteMonitorW
test eax, eax
je 0x407e07
push 0x104
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x407e07
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x248]
push eax
call fcn.0040a0b0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0040aeb0
cmp dword [esi + 0x82c], 4
mov dword [esp + 0x864], 0
jne 0x407efe
lea ecx, [esp + 0x1c]
call fcn.0040af50
test ebx, ebx
jne 0x407f3c
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00405c30
cmp eax, 1
jne 0x407f3c
lea edx, [esp + 0x448]
push edx
mov ecx, esi
call fcn.00406f60
test eax, eax
jne 0x407f3c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x864], 0xffffffff
call fcn.0040af90
jmp 0x407f62
lea ecx, [esp + 0x1c]
mov dword [esp + 0x864], 0xffffffff
call fcn.0040af90
mov eax, 1
jmp 0x407f64
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.00419ef4
add esp, 0x858
ret 8
Function at 0x408d40
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
mov eax, dword [0x43d768]
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 0x408e9a
mov eax, dword [esp + 0x18]
sub eax, 1
je 0x408e75
sub eax, 1
jne 0x408e9a
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x408db5
cmp dword [esp + 0x10], 0
jne 0x408e9a
mov eax, 2
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00419ef4
add esp, 0x11c
ret
cmp eax, 5
jne 0x408e44
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408e29
cmp eax, 1
je 0x408e29
cmp eax, 2
jne 0x408e9a
push str.IsWow64Process
push 0x432578
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 0x408e29
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 4], 0
je 0x408e29
mov eax, 4
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00419ef4
add esp, 0x11c
ret
mov eax, 3
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00419ef4
add esp, 0x11c
ret
cmp eax, 6
jb 0x408e9a
push str.IsWow64Process
push 0x432578
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 0x408e29
lea edx, [esp + 4]
push edx
jmp 0x408dfe
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.00419ef4
add esp, 0x11c
ret
mov ecx, dword [esp + 0x11c]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.00419ef4
add esp, 0x11c
ret
Function at 0x409080
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x43d768]
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 0x4090d7
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00419ef4
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 0x40913a
push ebp
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40915f
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 0x409103
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.00419ef4
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.00419ef4
add esp, 0x214
ret

Function at 0x409190
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.00409080
add esp, 0xc
test eax, eax
je 0x409203
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 0x4091f1
mov ecx, dword [esp + 0xc]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4091f8
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 0x409430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x204
mov eax, dword [0x43d768]
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 [0x442230], 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 0x40948f
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 0x4094b1
dec edx
or edx, 0xfffffff0
inc edx
js 0x4094cd
inc edx
lea eax, [eax + ecx*2]
movzx ecx, word [eax]
add eax, 2
sub edx, 1
jne 0x4094b2
cmp ecx, 0xff
jl 0x4094cd
mov ecx, 0xfe
lea esi, [ecx + ecx]
push esi
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0041b1e0
add esp, 0xc
push 0xff
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push 0x442230
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, 0x442230
call fcn.00419ef4
add esp, 0x204
ret

Function at 0x4096a0
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 0x4096c5
push 0
call fcn.00409570
add esp, 4
mov eax, edi
and eax, 0x3ff
sub eax, 4
je 0x4096ed
sub eax, 0xd
je 0x4096e6
sub eax, 1
je 0x4096df
xor edi, edi
jmp 0x40970d
mov edi, 0x3b5
jmp 0x40970d
mov edi, 0x3a4
jmp 0x40970d
shr di, 0xa
cmp di, 1
je 0x409708
cmp di, 3
je 0x409708
cmp di, 5
mov edi, 0x3a8
jne 0x40970d
mov edi, 0x3b6
cmp word [esi], bx
je 0x409751
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 0x409734
test edi, edi
je 0x409734
add esi, 4
jmp 0x409742
movzx ecx, word [esi]
cmp ecx, ebp
jne 0x40973f
mov dword [esp + 0x14], esi
add esi, 2
cmp word [esi], 0
jne 0x409720
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret