joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401db0
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040d760
push 0x208
mov ebx, eax
call fcn.0043694b
add esp, 4
lea ecx, [esi + 4]
mov edi, eax
push str.www.intel.com_support_optane_memory
push str.IIF_INTEL_PAGE
call fcn.004175d0
push edi
push 0
push 0
push 0x18
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SetupOptaneMemory_Uninstall.lnk
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
push str.Looking_for__S...
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401e64
push str.Shortcut_exists__deleting...
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401e7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_delete_file:__d
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
jmp 0x401e7b
push str.Shortcut_doesnt_exist.
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0xc
push 0x465774
push 0x465778
lea ecx, [esi + 4]
call fcn.004175d0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b10
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00416bf0
mov ecx, dword [0x4792e4]
call fcn.0040cb60
cmp eax, 0xd
jne 0x402cf3
push 0x200
mov edx, str.SOFTWAREIntelIRST
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00434bf0
add esp, 4
test eax, eax
je 0x402b68
push eax
push str.Failed_to_delete_tree_SoftwareIntelRST_in_32bit_subtree__errorcode:__d
push 0x466060
push 0x477a14
call fcn.00433950
add esp, 0x10
push 0x100
mov edx, str.SOFTWAREIntelIRST
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00434bf0
add esp, 4
test eax, eax
je 0x402b9b
push eax
push str.Failed_to_delete_tree_SoftwareIntelRST_in_64bit_subtree__errorcode:__d
push 0x466060
push 0x477a14
call fcn.00433950
add esp, 0x10
push str.IIF_CACHELOC
lea ecx, [esi + 4]
call fcn.004174a0
mov ebx, eax
push 0x208
mov dword [esp + 0x10], ebx
call fcn.0043694b
add esp, 4
mov esi, eax
push str.SafeModeOptaneInstallation.exe
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
push esi
call fcn.004366b8
add esp, 4
push 0x208
call fcn.0043694b
add esp, 4
mov esi, eax
push 0x208
call fcn.0043694b
add esp, 4
mov edi, eax
push esi
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SmoiLauncher.exe
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
call esi
push edi
call ebx
push str.SmoiLauncher.exe
push dword [esp + 0x10]
push edi
call esi
push edi
call ebx
push edi
call fcn.004366b8
add esp, 4
push 0x208
call fcn.0043694b
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 4
mov esi, eax
push str.DifXFrontend.exe
push dword [esp + 0x10]
push esi
call edi
push esi
call ebx
push esi
call fcn.004366b8
add esp, 4
push 0x208
call fcn.0043694b
add esp, 4
mov esi, eax
push str.Driver
push dword [esp + 0x10]
push esi
call edi
mov ecx, esi
call fcn.0041be50
push esi
call fcn.004366b8
add esp, 4
call fcn.0041cc10
push str.C:WindowsIAStorAfsService
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402cf3
mov ecx, str.C:WindowsIAStorAfsService
call fcn.0041be50
test eax, eax
je 0x402cd0
push str.C:WindowsIAStorAfsService
push str.Removing_directory___s__...
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.C:WindowsIAStorAfsService
push str.Error_while_removing_directory___s_:__d
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ab0
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4550a6
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x477070]
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, ecx
mov ebx, dword [ebp + 0xc]
push 5
call fcn.0043694b
push dword [ebp + 8]
mov edi, eax
push str._04X
push 5
push edi
call fcn.00406ca0
mov ecx, dword [esi + 4]
push str.Getting_Boot_info:
push str.UefiManager
push 0x4656cc
mov eax, dword [ecx]
push ecx
call dword [eax]
mov eax, dword [esi + 4]
push edi
push str.Bootnumber:__S
push str.UefiManager
mov ecx, dword [eax]
push 0x4656cc
push eax
call dword [ecx]
add esp, 0x38
mov dword [ebp - 0x3fc], 0xf
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x400], 0
mov byte [ebp - 0x410], 0
push 4
push str.Boot
call fcn.004066c0
mov dword [ebp - 4], 0
cmp byte [edi], 0
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
jne 0x405b86
xor ecx, ecx
jmp 0x405b99
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405b90
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x428]
call fcn.004066c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x410]
call fcn.004067c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x405be2
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.00406660
push edi
call fcn.004366b8
add esp, 4
lea ecx, [ebp - 0x3f8]
cmp dword [ebp - 0x3fc], 0x10
lea eax, [ebp - 0x410]
cmovae eax, dword [ebp - 0x410]
push 0x3e8
push ecx
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x405c45
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_boot_info._Errorcode:__d
lea eax, [ebp - 0x41c]
push eax
call fcn.00434da0
push 0x474be4
lea eax, [ebp - 0x41c]
push eax
call fcn.00439290
lea edx, [ebp - 0x3f8]
mov ecx, ebx
call fcn.004083d0
cmp dword [ebx + 0x1c], 8
lea edx, [ebx + 8]
jb 0x405c5d
mov edx, dword [edx]
mov eax, dword [esi + 4]
push edx
push str.Boot_description:__s
push str.UefiManager
mov ecx, dword [eax]
push 0x4656cc
push eax
call dword [ecx]
lea edx, [ebx + 0x20]
add esp, 0x14
cmp dword [edx + 0x14], 8
jb 0x405c83
mov edx, dword [edx]
mov eax, dword [esi + 4]
push edx
push str.Boot_file_path:__s
push str.UefiManager
mov ecx, dword [eax]
push 0x4656cc
push eax
call dword [ecx]
mov eax, dword [ebp - 0x3fc]
add esp, 0x14
cmp eax, 0x10
jb 0x405cbc
inc eax
lea ecx, [ebp - 0x410]
push eax
push dword [ebp - 0x410]
call fcn.00406660
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.00436666
mov esp, ebp
pop ebp
ret 8
Function at 0x405ce0
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4550e9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x477070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [edi + 4]
push str.Getting_boot_order
push str.UefiManager
push 0x4656cc
mov edx, dword [eax]
push eax
call dword [edx]
xor ecx, ecx
mov eax, 0x14
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043694b
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x28
push esi
push dword [edi + 0xc]
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
mov ebx, eax
test ebx, ebx
jne 0x405d8d
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_get_boot_numbers_variable._Errorcode:__d
lea eax, [ebp - 0x20]
push eax
call fcn.00434da0
push 0x474be4
lea eax, [ebp - 0x20]
push eax
call fcn.00439290
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
shr ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
je 0x405dd7
push esi
mov ecx, edi
call fcn.004063f0
add esi, 2
sub ebx, 1
jne 0x405dc4
mov esi, dword [ebp - 0x14]
push esi
call fcn.004366b8
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405e00
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push str.Checking_is_UEFI_mode_on
push str.UefiManager
push 0x4656cc
mov eax, dword [esi + 4]
push eax
mov edx, dword [eax]
call dword [edx]
add esp, 0x10
lea eax, [ebp - 8]
push 4
push eax
push dword [esi + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x405e94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax]
cmp edx, 0x3e6
jne 0x405e7e
push str.UEFI_mode_is_on
push str.UefiManager
push 0x4656cc
push eax
call dword [ecx]
add esp, 0x10
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
push edx
push str.GetFirmareEnvironmentVariable_ended_with_error:__d
push str.UefiManager
push 0x4656cc
push eax
call dword [ecx]
add esp, 0x14
mov eax, dword [esi + 4]
push str.UEFI_mode_is_off
push str.UefiManager
push 0x4656cc
mov ecx, dword [eax]
push eax
call dword [ecx]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor al, al
pop esi
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Set uefi variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455158
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x477070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edx, 2
sub eax, dword [ebp + 8]
sar eax, 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043694b
mov ecx, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp + 8]
add esp, 4
mov ebx, dword [ebp + 0x14]
sub ecx, eax
sar ecx, 1
mov dword [ebp - 0x10], edx
cmp ecx, ebx
ja 0x406333
push str.invalid_vector_T__subscript
call fcn.004356e8
mov ax, word [eax + ebx*2]
xor ecx, ecx
mov word [edx], ax
mov edx, 1
mov esi, dword [ebp + 0xc]
mov eax, esi
mov edi, dword [ebp + 8]
sub eax, edi
sar eax, 1
je 0x406375
nop
cmp edx, eax
jae 0x406375
cmp ecx, ebx
je 0x40636a
mov esi, dword [ebp - 0x10]
mov ax, word [edi + ecx*2]
mov word [esi + edx*2], ax
inc edx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, esi
inc ecx
sub eax, edi
sar eax, 1
cmp ecx, eax
jb 0x406350
mov ebx, dword [ebp - 0x14]
sub esi, edi
sar esi, 1
lea eax, [esi + esi]
push eax
push dword [ebp - 0x10]
push dword [ebx + 0xc]
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableA]
test eax, eax
jne 0x4063b9
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_set_secureboot_variable._Errorcode:__d
lea eax, [ebp - 0x20]
push eax
call fcn.00434da0
push 0x474be4
lea eax, [ebp - 0x20]
push eax
call fcn.00439290
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4063d1
mov eax, dword [ebp + 0x10]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00405180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45555e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x477070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
push esi
mov dword [esi + 0x208], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4092fd
push 0x4c
call fcn.00436685
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0xca
push str.WinResources.cpp
push str.Error_reading_system_directory_path
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004016d0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x474c58
push eax
call fcn.00439290
push dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x409352
push 0x4c
call fcn.00436685
add esp, 4
mov dword [ebp + 8], eax
push 0xd7
push str.WinResources.cpp
push str.Error_creating_DLLibrary_object
push 0x10b
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.004016d0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x474c58
push eax
call fcn.00439290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40bc90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push str.IIF_CACHELOC
add ecx, 4
call fcn.004174a0
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [ebp - 0x210]
push str.Prop.data
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Deleting_private_properties_file
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x4140a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454e46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x477070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00436685
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00435aec
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419100
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456bd9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x41915f
mov eax, dword [esi]
jmp 0x419161
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 9
lea eax, [ebp - 0x24]
mov dword [ebp - 4], ecx
push eax
movzx eax, word [ebx + 2]
push 0x59
push eax
mov dword [ebp - 0x28], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x24], 0
jne 0x41918e
xor ecx, ecx
jmp 0x4191a3
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419194
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00404c00
push 1
push 0x46add0
mov ecx, esi
call fcn.00413d10
push 9
lea eax, [ebp - 0x24]
push eax
movzx eax, word [ebx + 2]
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x24], 0
jne 0x4191db
xor ecx, ecx
jmp 0x4191f0
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4191e1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00413d10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret 4
Function at 0x419410
Capabilities:
Delete file
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov byte [ebp - 0x418], 1
push edi
mov edi, ecx
test si, si
jne 0x41947f
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
mov ecx, 0x105
cmp ax, cx
je 0x41945b
mov ecx, 0x205
cmp ax, cx
je 0x41945b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x419461
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx esi, ax
movzx eax, si
push eax
push str.Current_UI_language:__04X
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
mov eax, esi
and eax, 0x3ff
cmp ax, 3
je 0x419498
cmp ax, 0x2d
je 0x419498
cmp ax, 0x56
jne 0x41949d
mov esi, 0xc0a
lea eax, [ebp - 0x20c]
mov word [ebp - 0x420], si
push eax
push 0x104
mov dword [ebp - 0x41c], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea esi, [edi + 4]
push esi
push 0
push 0x46ae34
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push str.Language_folder:__s
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x420]
mov edx, esi
push eax
push 0x418f60
mov ecx, 0xa
call fcn.0041b4c0
add esp, 8
test eax, eax
jne 0x419549
movzx eax, word [ebp - 0x416]
push eax
push str.Loading_language__04X
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
push dword [ebp - 0x416]
call fcn.00419560
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00436666
mov esp, ebp
pop ebp
ret 8

Function at 0x419560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
push edi
mov word [ebx + 2], ax
lea eax, [ebx + 0x61c]
push 0x104
push eax
call fcn.0043efc6
push edi
lea esi, [ebx + 0x20c]
push 0x104
push esi
call fcn.0043efc6
add esp, 0x18
push str.IntelCommon.dll
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
call esi
push edi
push 0x104
lea edi, [ebx + 0x414]
push edi
call fcn.0043efc6
add esp, 0xc
push str.resource.dll.mui
push edi
call esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4195d7
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp byte [ebx], 0
lea esi, [ebx + 0x20c]
je 0x4195fa
push esi
push str.Loading_common_language_resource___s_
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
push 2
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call esi
mov dword [ebx + 0x824], eax
test eax, eax
jne 0x41961e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
pop ebp
ret 8
cmp byte [ebx], 0
je 0x41963b
push edi
push str.Loading_language_resource___s_
push 0x4656cc
push 0x477a14
call fcn.00433950
add esp, 0x10
push 2
push 0
push edi
call esi
mov dword [ebx + 0x828], eax
test eax, eax
je 0x419611
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x41b4c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x477070]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
push edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [0x4792fc], edi
mov dword [0x4792f8], edi
mov dword [0x4792e8], 0xffffffff
mov dword [0x4792ec], 0xffffffff
mov dword [0x4792f0], 0xffffffff
mov dword [0x4792f4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41b648
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41b610
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [0x4792fc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x4792f8], eax
lea eax, [esp + 0x228]
push eax
push 0xffffffffffffffff
push 0x41b250
push 0x41b2a0
push 0x41b220
push 0x41b1d0
push 0x41b1a0
push fcn.0041b190
push 0x41b180
call dword [sym.imp.Cabinet.dll_FDICreate]
mov esi, eax
add esp, 0x24
test esi, esi
je 0x41b627
mov eax, dword [esp + 0xc]
push dword [esp + 0x14]
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x228], eax
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0043efc6
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
push 0x41b2c0
push edi
push 0x466863
push 0x466863
push esi
call dword [sym.imp.Cabinet.dll_FDICopy]
add esp, 0x1c
test eax, eax
jne 0x41b606
mov edi, dword [esp + 0x228]
add edi, 0xb000
push esi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00436666
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x228]
add eax, 0xb000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00436666
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00436666
mov esp, ebp
pop ebp
ret
Function at 0x41b710
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x41c], 0
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x418], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x46ae34
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
je 0x41b7b3
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b7a4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00404c00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00436666
mov esp, ebp
pop ebp
ret