joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444ac9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4668f4]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x44f634
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x444b73
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x444c75
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x444c23
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x444c76
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x444c18
cmp dword [ebp - 0x34], 1
jne 0x444c18
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push 0x44f5a4
push eax
call fcn.00423e24
add esp, 0xc
cmp eax, 1
jne 0x444c18
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x444c76
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x444c76
lea ecx, [ebp - 0x28]
push ecx
push 0x444ab3
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x444c76
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x444c9b
push dword [ebp + edi*4 - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.00444a30
cmp eax, ebx
pop ecx
jne 0x444c9d
inc edi
cmp edi, esi
jl 0x444c85
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004205fd
leave
ret 4
Function at 0x444cae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4658d0
je 0x444d6a
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x444d52
mov esi, dword [ebx + 4]
jmp 0x444d4c
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x444d3c
cmp dword [ebp - 0xc], 4
jne 0x444d3c
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x444d34
or dword [eax + 0x9c], ecx
jmp 0x444d3c
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x444d00
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x444ce3
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4454ae
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x449843
call fcn.004211e8
sub esp, 0x228
mov eax, dword [0x4668f4]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x4455bc
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x445590
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00416bb7
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.004454ae
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004166b3
test bl, bl
jne 0x445590
or dword [ebp - 4], 0xffffffff
jmp 0x4454fb
cmp esi, 0x103
je 0x4455a0
cmp esi, 0x3f2
jne 0x4455b0
push dword [edi]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004205fd
leave
ret 8
Function at 0x446409
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x44643e
cmp edi, dword [esi + 0xc]
jge 0x44643e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44643e
cmp edi, dword [eax + 8]
jge 0x44643e
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x446440
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x446544
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x446578
jmp fcn.0043b2f1
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4465e9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4466e2
cmp eax, dword [edi + 0xc]
jge 0x4466e2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x44663a
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4466cb
cmp dword [ebp + 0xc], ebx
je 0x4466cb
jmp 0x446664
push 0x10
call fcn.004462d5
cmp eax, ebx
je 0x446650
mov ecx, eax
call fcn.0044653b
mov esi, eax
jmp 0x446652
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x44667b
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x44668b
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x44669d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043b2f1
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00423f50
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4466dd
cmp ecx, dword [esi + 8]
jge 0x4466dd
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4466e3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4467a2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4467d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4467ee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044670c
jmp 0x4467ee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4467ee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044670c
test edi, edi
mov eax, edi
jne 0x4467d8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4714cc]
test ecx, ecx
je 0x4468a1
jmp 0x4467a1
ret 8
Function at 0x401ce3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov dword [ebp - 4], ecx
push edi
lea ecx, [ebp - 0x10]
mov ebx, edx
call fcn.004147cf
lea ecx, [ebp - 0x1c]
call fcn.004147cf
push 0x3c
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 0x740
mov dword [ebp - 0x3c], 0xa
test bl, 1
je 0x401d3b
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], 0x8740
test bl, 2
je 0x401d47
mov dword [ebp - 0x4c], str.runas
and ebx, 0x10000
jne 0x401d56
or dword [ebp - 0x54], 0x100
mov eax, dword [0x42268c]
push 5
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
call fcn.004030b6
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414854
cmp dword [ebp - 0xc], edi
jne 0x401d9e
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x401de5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401dd3
cmp ebx, edi
jne 0x401dc7
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret 4
Function at 0x4027fa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.0040244d
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x402701
push edi
push edi
mov dword [0x422684], esi
mov dword [0x422688], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x422680], eax
cmp eax, edi
je 0x402855
cmp dword [0x4226d0], 2
je 0x402847
call fcn.00408bb1
mov eax, dword [0x422680]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x422680]
mov ecx, dword [0x422688]
mov dword [0x422824], edi
cmp ecx, edi
je 0x40289b
cmp ecx, 1
je 0x40288f
cmp ecx, 2
je 0x40288b
cmp ecx, 3
je 0x402887
cmp ecx, 0x67
jle 0x402882
cmp ecx, 0x6b
jle 0x402904
push ecx
push 0x14
jmp 0x4028d5
push 0x12
jmp 0x402891
push 0x13
jmp 0x402891
push 0x11
push edi
call fcn.00409623
pop ecx
pop ecx
jmp 0x402904
mov dword [ebp + 8], edi
cmp dword [0x42282c], edi
jne 0x402904
cmp eax, edi
je 0x4028c2
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4028c2
cmp dword [ebp + 8], edi
jne 0x4028c2
xor eax, eax
jmp 0x402909
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x4028d8
push dword [ebp + 8]
push 0x21
push edi
jmp 0x4028fc
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x4028ee
cmp dword [0x4226d4], 0xffffffff
je 0x402904
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409623
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

Function at 0x403126
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403164
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x403151
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x403167
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403164
test al, 0x10
jne 0x403164
push esi
jmp 0x403147
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x4033bb
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
mov ebx, ecx
push edi
push ebx
lea ecx, [ebp - 0xc]
call fcn.004147f3
push 0x41dc74
lea ecx, [ebp - 0xc]
call fcn.00414912
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x403499
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push ebx
lea ecx, [ebp - 0xc]
call fcn.00414854
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040160f
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.00414912
test byte [ebp - 0x260], 0x10
je 0x403460
push 0x41dc70
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x403478
push 0x41dc68
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x403478
mov ecx, dword [ebp - 0xc]
call fcn.004033bb
jmp 0x403474
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4034c6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4034c6
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403407
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x4226f4]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push ebx
call esi
test eax, eax
je 0x4034c6
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4034c6
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x4034d0
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4034d6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x422838], 0
push esi
mov esi, ecx
je 0x4034f0
xor eax, eax
inc eax
jmp 0x403534
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4034eb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x40352d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403529
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x403534
xor eax, eax
jmp 0x403534
mov ecx, esi
call fcn.004033bb
pop esi
leave
ret
Function at 0x40399c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x422690]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x4039ea
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x403a14
mov esi, dword [ebp + 8]
test esi, esi
je 0x4039fd
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403a14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x403a7e
cmp dword [0x422694], 0
jne 0x403a7c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x4226bc]
mov dword [0x422694], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x422690]
push edi
push 0
push eax
lea eax, [ebp - 0x4c]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x403a72
push str.SetThreadPreferredUILanguages
push dword [0x4226bc]
call esi
mov ebx, eax
test ebx, ebx
je 0x403a7c
push 0
lea eax, [ebp - 0x4c]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403d74
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ecx
cmp dword [0x4220c8], ebx
je 0x403da7
mov eax, 0x4220c8
cmp dword [eax], ecx
je 0x403da7
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x4220c8]
cmp dword [eax], ebx
jne 0x403d93
shl esi, 4
cmp dword [esi + 0x4220c8], ebx
jne 0x403dbc
mov eax, 0x41dae4
jmp 0x403f30
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x403e6c
mov eax, dword [ebp - 8]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 8]
ja 0x403e63
call edi
test eax, eax
jne 0x403e63
mov eax, dword [esi + 0x4220d4]
test eax, eax
je 0x403e58
mov edi, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403e55
push dword [esi + 0x4220d4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x4220d4], edi
jmp 0x403e6b
push edi
jmp 0x403e66
mov eax, dword [ebp - 4]
mov dword [esi + 0x4220d4], eax
jmp 0x403e6c
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4220d4]
test eax, eax
jne 0x403f2f
mov ebx, dword [esi + 0x4220cc]
cmp dword [esi + 0x4220d0], eax
je 0x403ea4
call fcn.00403d19
cmp eax, dword [0x41eac0]
jne 0x403ea4
mov ebx, dword [esi + 0x4220d0]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x42208c], 0xffffffff
pop ecx
mov dword [esi + 0x4220d4], eax
jne 0x403f0f
and dword [0x42208c], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x422690]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x403f0f
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [0x42208c], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x4220d4]
push edi
push ebx
push 0
push dword [0x42208c]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4220d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f9e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403ff1
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x404349
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], edx
mov esi, ecx
call fcn.004147cf
push 2
mov ecx, esi
call fcn.0040429f
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
xor ebp, ebp
xor edx, edx
mov dword [esi + 4], ebp
mov word [ecx], dx
cmp eax, ebp
jbe 0x404393
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040429f
push eax
push ebx
call edi
mov ecx, esi
call fcn.00404284
mov eax, dword [esi + 4]
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.0040429f
push ebp
push dword [esp + 0x14]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.00404284
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4043d2
inc ebp
cmp ebp, 0xfff
jl 0x40439c
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret