joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ebb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 1
mov esi, ecx
call fcn.00431c90
mov edi, dword [0x5a2050]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [edi + 4]
mov dword [ebp - 4], 0x1388
call fcn.00404940
mov eax, dword [eax]
cmp eax, dword [edi + 8]
je 0x40ebee
mov edx, dword [eax + 0x14]
mov dword [ebp - 4], edx
jmp 0x40ebf5
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [edi + 4]
mov dword [ebp - 8], 0x1388
call fcn.00404940
mov eax, dword [eax]
cmp eax, dword [edi + 8]
je 0x40ec18
mov eax, dword [eax + 0x10]
jmp 0x40ec1a
xor eax, eax
mov edx, dword [ebp - 4]
push edx
push eax
push 0x1388
mov ecx, esi
call fcn.0040ce30
cmp eax, 7
je 0x40ecc3
xor edi, edi
push edi
lea ecx, [esi + 0x29c]
call fcn.00436204
push edi
lea ecx, [esi + 0x228]
call fcn.00436204
push edi
lea ecx, [esi + 0x1b4]
call fcn.00436204
mov eax, dword [esi + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.004364c6
mov ecx, dword [eax + 4]
push 3
push 0xf060
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, dword [esi + 0x160]
push 0x640000
push edi
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
lea ecx, [esi + 0x140]
call fcn.004361c2
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x40e500
push edi
push edi
mov dword [ebp - 0xc], edi
mov dword [esi + 0x3fc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3fc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ecd0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ed39
call esi
cmp eax, 0x3f0
jne 0x40ee03
lea ecx, [ebp - 0x10]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ee03
mov eax, dword [ebp - 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push 2
push eax
call edi
test eax, eax
jne 0x40ee02
call esi
cmp eax, 0x7a
jne 0x40ee02
mov ecx, dword [ebp - 0x18]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40ee02
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push eax
push esi
push 2
push ecx
call edi
test eax, eax
je 0x40ee02
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40ee02
xor edi, edi
cmp dword [esi], ebx
jbe 0x40ede8
lea ebx, [esi + 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40edde
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x40edc3
jmp 0x40ede5
mov dword [ebp - 0x14], 1
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0051e701
mov esp, ebp
pop ebp
ret
Function at 0x40eea0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ef4b
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 8], 2
call esi
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov edx, dword [ebp - 0x18]
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push edx
mov edi, eax
mov dword [ebp - 8], 0
call esi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
pop esi
jne 0x40ef5b
push str.RestartWindows_ExitWindowsEx_failed._n
push 2
call fcn.00403750
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0051e701
mov esp, ebp
pop ebp
ret
Function at 0x4112f0
Capabilities:
Create process on windows
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor edi, edi
push edi
push str.HKLMSoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
jne 0x4113a4
mov edx, dword [ebp - 4]
push ebx
lea ecx, [ebp - 8]
push ecx
push 0x20019
push edi
push str.Setup
push edx
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x41136a
mov eax, dword [ebp - 8]
push eax
call ebx
mov ecx, dword [ebp - 4]
push 0x10
push str.runonce
push 1
push 0
push str.Wrapper
push ecx
call edi
mov esi, eax
jmp 0x41136c
xor esi, esi
mov edx, dword [ebp - 4]
push 0x16
push str.grpconv__o
push 1
push 0
push str.GrpConv
push edx
call edi
test eax, eax
je 0x411388
xor esi, esi
mov eax, dword [ebp - 4]
push eax
call ebx
cmp dword [ebp + 8], 0
pop ebx
je 0x4113a2
push 1
push str.runonce__r
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4117b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0051eb70
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.0051eb70
push 0x208
lea edx, [ebp - 0x61c]
push 0
push edx
call fcn.0051eb70
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x24
push 0x5450a0
lea eax, [ebp - 0x414]
push eax
call esi
push 0x5450a0
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x620]
push edx
push 0x208
lea eax, [ebp - 0x61c]
push eax
push 1
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 0x620], 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
cmp eax, 1
jne 0x411879
lea eax, [ebp - 0x61c]
push eax
push edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret 4
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051e701
mov esp, ebp
pop ebp
ret 4

Function at 0x411c70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
lea edx, [ebp - 0x20c]
push 0x104
push edx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
call fcn.0051fddc
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x411d98
push esi
push ebx
push 0
lea edx, [ebp - 0x20c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411d6f
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0x5457b4
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x210]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push edi
push str.GetFileVersion_File___1_s__nfile_version:__2_u_._3_u_._4_u_._5_u__n
push 5
call fcn.00403750
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x218]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x220]
add esp, 0x1c
mov dword [ecx], eax
mov edi, 1
jmp 0x411d75
mov edi, dword [ebp - 0x214]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e701
mov esp, ebp
pop ebp
ret
Function at 0x413b40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push str.CDeviceInfSection::Init__________________________IN._n
push 5
mov edi, ecx
call fcn.00403750
add esp, 8
cmp dword [edi + 0x60], 0
je 0x413b6d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x413b87
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_NULL._n
jmp 0x413c22
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413b90
sub eax, edx
sar eax, 1
jne 0x413bb0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_Zero_length._n
jmp 0x413c22
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413bcb
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pInfFile_is_not_found._n
jmp 0x413c22
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413bd0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x24]
call fcn.00401dd0
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x413bff
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pSectionName_is_NULL._n
jmp 0x413c22
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413c04
sub eax, esi
sar eax, 1
jne 0x413c43
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CDeviceInfSection::Init_pSectionName_is_Zero_length._n
push 5
call fcn.00403750
add esp, 8
push str.CDeviceInfSection::Init__________________________OUT._n
push 5
call fcn.00403750
add esp, 8
pop esi
xor eax, eax
pop edi
pop ebp
ret 0xc
push edx
lea ecx, [edi + 0x40]
call fcn.004036f0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x413c56
mov dword [edi + 0x5c], eax
push str.CDeviceInfSection::Init__________________________OUT._n
push 5
mov dword [edi + 0x60], 1
call fcn.00403750
add esp, 8
pop esi
mov eax, 1
pop edi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.DelDrv.exe_public:_int___thiscall_CDeviceInfSection::Init_wchar_t_const___class_CInfStringTable___wchar_t_const__
Function at 0x414c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push str.CIniSections::Init__________________________IN._n
push 5
mov edi, ecx
call fcn.00403750
add esp, 8
cmp dword [edi + 0x30], 0
je 0x414c8d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x414ca4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_NULL._n
jmp 0x414ce9
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414cb0
sub eax, edx
sar eax, 1
jne 0x414cd0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_Zero_length._n
jmp 0x414ce9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414d0a
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CIniSections::Init_pInfFile_is_not_found._n
push 5
call fcn.00403750
add esp, 8
push str.CIniSections::Init__________________________OUT._n
push 5
call fcn.00403750
add esp, 8
pop esi
xor eax, eax
pop edi
pop ebp
ret 4
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414d10
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [edi + 0x14]
call fcn.00401dd0
push str.CIniSections::Init__________________________OUT._n
push 5
mov dword [edi + 0x30], 1
call fcn.00403750
add esp, 8
pop esi
mov eax, 1
pop edi
pop ebp
ret 4
Function at 0x423130
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x105
lea eax, [ebp - 0x210]
push eax
mov edi, ecx
mov ecx, dword [edi + 4]
xor esi, esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4231b0
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423170
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
push ebx
call fcn.00520337
add esp, 0xc
test eax, eax
je 0x4231c5
mov ecx, dword [edi + 4]
push 0x105
lea eax, [ebp - 0x210]
push eax
inc esi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x423168
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0051e701
mov esp, ebp
pop ebp
ret 4

Function at 0x423290
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, ecx
push 0x5597d0
mov dword [esi], vtable.CRegistryW.0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x423312
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5597bc
push edi
call ebx
push 0x5597b0
push edi
mov dword [esi + 8], eax
call ebx
push 0x55979c
push edi
mov dword [esi + 0xc], eax
call ebx
push 0x55978c
push edi
mov dword [esi + 0x10], eax
call ebx
push str.RegCreateKeyW
push edi
mov dword [esi + 0x14], eax
call ebx
push 0x55976c
push edi
mov dword [esi + 0x18], eax
call ebx
push 0x55975c
push edi
mov dword [esi + 0x1c], eax
call ebx
push 0x55974c
push edi
mov dword [esi + 0x20], eax
call ebx
mov dword [esi + 0x24], eax
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x4234f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.004231e0
test eax, eax
jne 0x423514
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push edi
push ecx
call ebx
cmp dword [ebp - 4], 0
je 0x42357f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x423549
push eax
call fcn.00422db0
add esp, 4
mov dword [esi + 0x24], 0
mov edx, dword [ebp - 4]
push 0x1f2
push 0x55971c
push edx
call fcn.00422d90
add esp, 0xc
mov dword [esi + 0x24], eax
test eax, eax
jne 0x42356f
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push edi
push edx
call ebx
mov eax, dword [esi + 0x24]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x423a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53694b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ebx, ecx
mov ecx, dword [esi]
push eax
push ecx
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.004088a0
mov eax, dword [ebx + 4]
xor edi, edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x21c]
push edx
push edi
push eax
mov dword [ebp - 0x23c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x423b70
lea esp, [esp]
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423ae6
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.00401dd0
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00402610
cmp dword [ebp - 0x224], 8
mov dword [ebp - 4], 0xffffffff
jb 0x423b3c
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00429e6f
add esp, 4
mov ecx, dword [ebx + 4]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x21c]
push eax
inc edi
push edi
push ecx
mov dword [ebp - 0x23c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x423ac0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051e701
mov esp, ebp
pop ebp
ret 4
Function at 0x429540
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push str.kernel32.dll
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x429610
push esi
push str.GetProductInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4295f2
push str.GetProcAddress__GetProductInfo___OK__n
push 5
call fcn.00403750
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0051eb70
add esp, 0x14
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4295f2
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x4295f2
movzx ecx, word [ebp - 0xa]
lea edx, [ebx + 0x2d0]
push edx
movzx edx, word [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x118]
push edx
push ecx
push eax
call esi
push eax
push str.pfnGetProductInfo___bret___1_d__n
push 5
call fcn.00403750
add esp, 0xc
mov edx, dword [ebx + 0x2d0]
push edx
push 0x55c498
push 5
call fcn.00403750
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0051e701
mov esp, ebp
pop ebp
ret
Function at 0x42b216
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x42b25b
push 0x55ccb0
push 4
push eax
call fcn.0051e2ba
push eax
call fcn.00401050
add esp, 0x10
jmp 0x42b271
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42b2f1
push edi
call fcn.00520604
mov edi, dword [eax]
call fcn.00520604
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00520316
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00520604
cmp dword [eax], 0
je 0x42b2c5
call fcn.00520604
push dword [eax]
call fcn.0042a38b
pop ecx
jmp 0x42b2cc
call fcn.00520604
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x42b2f1
cmp dword [ebp - 0x234], esi
jae 0x42b2f1
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42b2f3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051e701
leave
ret
Function at 0x42b85d
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5a6a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0042b7be
pop ecx
cmp eax, esi
je 0x42b947
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x42b947
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0051eb70
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x42b947
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x42b947
cmp esi, 0x14
jge 0x42b947
push 0x10
push 0
push edi
call fcn.0051f82d
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42b936
call fcn.00520604
cmp dword [eax], 0x22
je 0x42b936
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005205a7
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x42b90c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5a833c], 0
jne 0x42b9d2
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x42b9fb
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0042b216
pop ecx
pop ecx
test eax, eax
jne 0x42b9fd
inc edi
cmp edi, esi
jl 0x42b9d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e701
leave
ret 8

Function at 0x42f504
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042cb3b
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42f53d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042f141
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8