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

Function at 0x401960
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x2a14], 0
jne 0x401a05
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x34
push str.Attention
push str.You_must_restart_your_computer_before_the_new_settings_will_take_effect._nDo_you_want_to_restart_your_computer_now__
mov ecx, esi
call fcn.00401670
cmp eax, 6
jne 0x401a05
lea ecx, [esp + 4]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4019b4
xor eax, eax
pop esi
add esp, 0x14
ret
lea edx, [esp + 0xc]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4019ad
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x4019ad
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x401963
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x2a14], 0
jne 0x401a05
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x34
push str.Attention
push str.You_must_restart_your_computer_before_the_new_settings_will_take_effect._nDo_you_want_to_restart_your_computer_now__
mov ecx, esi
call fcn.00401670
cmp eax, 6
jne 0x401a05
lea ecx, [esp + 4]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4019b4
xor eax, eax
pop esi
add esp, 0x14
ret
lea edx, [esp + 0xc]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4019ad
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x4019ad
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x401d30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x124]
push esi
push edi
mov edi, dword [esp + 0x120]
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x44c9f4], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401d88
push str.System32
lea ecx, [esp + 0x14]
push ecx
call esi
push 0x43b9a8
lea edx, [esp + 0x14]
push edx
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401dbc
push 0x43b9c4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401dc1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x401dd9
mov ecx, dword [esp + 0x124]
push ebp
push ebx
push ecx
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00426009
add esp, 0x10c
ret

Function at 0x4028a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x120]
lea ecx, [esp + 8]
push ecx
push 0xf003f
xor esi, esi
push esi
push edi
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40291a
mov ecx, dword [esp + 8]
push esi
push esi
push esi
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
push esi
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40290f
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402936
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x114]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00426009
add esp, 0x110
ret
Function at 0x4032b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x438238
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push str.MicrosoftWindowsCurrentVersionUninstall_
add ecx, 0x148
push ecx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00402eb0
push str.F132AF7F_7BCA_4EDE_8A7C_958108FE7DBC
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x4c], 0
call fcn.00402eb0
mov eax, dword [eax]
add esp, 0x18
lea edx, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov eax, dword [esp + 0x24]
sete byte [esp + 0xf]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403357
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40337f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x4033ea
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.MajorVersion
mov edi, 4
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x4033df
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MinorVersion
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
shl eax, 0x10
or eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x403c40
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4383c6
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
call fcn.004158fc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403c98
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x154]
test eax, eax
mov dword [esp + 0x12c], 0
je 0x403cca
cmp dword [esi + 0x158], 0
jne 0x403cd3
test eax, eax
jne 0x403d01
cmp dword [esi + 0x158], 0
jne 0x403d01
lea eax, [ecx - 0x10]
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403cfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403e30
cmp dword [esi + 0x2a2c], 0
jne 0x403d5f
push str.RealtekInstallShield
lea ecx, [esi + 0x148]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00402eb0
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call fcn.00402fd0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x12c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403d6f
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x18]
call fcn.00402c50
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403e07
cmp dword [esi + 0x154], eax
je 0x403dae
push str.F132AF7F_7BCA_4EDE_8A7C_958108FE7DBC
lea edx, [esp + 0x20]
push 0x43bce0
push edx
call fcn.0042723f
add esp, 0xc
mov eax, 0x27
jmp 0x403dd9
cmp dword [esi + 0x158], 0
je 0x403dd5
push str.5449FB4F_1802_4D5B_A6D8_087DB1142147
lea eax, [esp + 0x20]
push 0x43bce0
push eax
call fcn.0042723f
add esp, 0xc
mov eax, 0x27
jmp 0x403dd9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push 1
push 0
push str.RtkCurUninstallPackage
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 0x14]
neg edi
sbb edi, edi
push eax
add edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00426009
add esp, 0x120
ret
Function at 0x403e60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438410
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004158fc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403eab
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x68]
push ecx
lea edx, [esp + 0x18]
push str.0x_08X
push edx
mov dword [esp + 0x6c], 0
call fcn.0042723f
add esp, 0xc
cmp dword [esi + 0x2a2c], 0
jne 0x403f32
push str.RealtekInstallShield
add esi, 0x148
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00402eb0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 1
call fcn.00402fd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403f42
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x10]
call fcn.00402c50
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403f80
push 0x40
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push str.InstallerErrorCode
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403fa4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00426009
add esp, 0x5c
ret 4
Function at 0x403fd0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438456
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004158fc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404024
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa8]
add eax, 0xffffffff
cmp eax, 3
mov dword [esp + 0xa0], 0
ja case.default.0x40404e
jmp dword [eax*4 + 0x4041a4]
mov ecx, dword [esp + 0xac]
push ecx
push str.DriverPackageInstall_Error_code_0x_08X
jmp 0x404099
mov eax, dword [esp + 0xac]
push eax
push str.DriverPackagePrenstall_Error_code_0x_08X
lea ecx, [esp + 0x1c]
push ecx
jmp 0x40409e
mov edx, dword [esp + 0xac]
push edx
push str.DriverPackageUninstall_Error_code_0x_08X
lea eax, [esp + 0x1c]
push eax
jmp 0x40409e
mov ecx, dword [esp + 0xac]
push ecx
push str.DriverPackageGetPath_Error_code_0x_08X
lea edx, [esp + 0x1c]
push edx
call fcn.0042723f
add esp, 0xc
cmp dword [esi + 0x2a2c], 0
jne 0x404104
push str.RealtekInstallShield
add esi, 0x148
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00402eb0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xa4], 1
call fcn.00402fd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xa0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404114
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404114
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x10]
call fcn.00402c50
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x404155
push 0x80
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push str.DIFxAPIErrorCode
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0xa0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40417c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00426009
add esp, 0x9c
ret 8
Function at 0x408980
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x44c9d4]
push esi
mov esi, ecx
xor ecx, ecx
cmp eax, 0x5a
setge cl
push 0
sub ecx, 1
and ecx, 0xa
add eax, ecx
push eax
mov dword [0x44c9d4], eax
mov edx, dword [esi + 0x2a50]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00411013
cmp dword [esi + 0x2a20], 0
je 0x4089d0
mov dword [0x44c9cc], 1
jmp 0x4089e0
mov ecx, esi
call fcn.00402190
test eax, eax
mov dword [0x44c9cc], eax
je 0x408a58
mov eax, dword [esi + 0x2a04]
test eax, eax
push edi
je 0x408a31
cmp dword [esi + 0x2a0c], 0
je 0x408a13
mov ecx, esi
call fcn.00406df0
mov ecx, esi
mov edi, eax
call fcn.004060c0
test edi, edi
jne 0x408a43
test eax, eax
jne 0x408a4c
push 0xffffffffffffffff
call fcn.00427956
test eax, eax
je 0x408a31
cmp dword [esi + 0x2a0c], 0
jne 0x408a2d
mov ecx, esi
call fcn.00406df0
mov edi, eax
xor eax, eax
jmp 0x408a04
test eax, eax
jne 0x408a0c
cmp dword [esi + 0x2a0c], 0
je 0x408a0c
mov ecx, esi
call fcn.004060c0
jmp 0x408a08
cmp edi, 1
jne 0x408a72
test eax, eax
jmp 0x408a4f
cmp eax, 1
jne 0x408a72
push 0xfffffffffffffffc
call fcn.00427956
push 0x30
push str.Warning
push str._Microsoft_Bus_driver_should_be_loaded_in_your_system_before_installing_Realtek_HD_Audio_driver__
mov ecx, esi
call fcn.00401670
push 0xfffffffffffffffe
call fcn.00427956
pop edi
pop esi
ret

Function at 0x408985
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x44c9d4]
push esi
mov esi, ecx
xor ecx, ecx
cmp eax, 0x5a
setge cl
push 0
sub ecx, 1
and ecx, 0xa
add eax, ecx
push eax
mov dword [0x44c9d4], eax
mov edx, dword [esi + 0x2a50]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00411013
cmp dword [esi + 0x2a20], 0
je 0x4089d0
mov dword [0x44c9cc], 1
jmp 0x4089e0
mov ecx, esi
call fcn.00402190
test eax, eax
mov dword [0x44c9cc], eax
je 0x408a58
mov eax, dword [esi + 0x2a04]
test eax, eax
push edi
je 0x408a31
cmp dword [esi + 0x2a0c], 0
je 0x408a13
mov ecx, esi
call fcn.00406df0
mov ecx, esi
mov edi, eax
call fcn.004060c0
test edi, edi
jne 0x408a43
test eax, eax
jne 0x408a4c
push 0xffffffffffffffff
call fcn.00427956
test eax, eax
je 0x408a31
cmp dword [esi + 0x2a0c], 0
jne 0x408a2d
mov ecx, esi
call fcn.00406df0
mov edi, eax
xor eax, eax
jmp 0x408a04
test eax, eax
jne 0x408a0c
cmp dword [esi + 0x2a0c], 0
je 0x408a0c
mov ecx, esi
call fcn.004060c0
jmp 0x408a08
cmp edi, 1
jne 0x408a72
test eax, eax
jmp 0x408a4f
cmp eax, 1
jne 0x408a72
push 0xfffffffffffffffc
call fcn.00427956
push 0x30
push str.Warning
push str._Microsoft_Bus_driver_should_be_loaded_in_your_system_before_installing_Realtek_HD_Audio_driver__
mov ecx, esi
call fcn.00401670
push 0xfffffffffffffffe
call fcn.00427956
pop edi
pop esi
ret
Function at 0x40af8d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44b538]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x40afcd
push 0x43c868
push 4
push eax
call fcn.00427661
push eax
call entry0
add esp, 0x10
jmp 0x40afdf
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40b04d
push edi
call fcn.00427ede
mov edi, dword [eax]
call fcn.00427ede
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004272d6
add esp, 0x18
mov ebx, eax
call fcn.00427ede
cmp dword [eax], 0
je 0x40b02d
call fcn.00427ede
push dword [eax]
call fcn.0040a64c
pop ecx
jmp 0x40b034
call fcn.00427ede
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40b04d
cmp ebx, esi
jae 0x40b04d
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40b04f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00426009
leave
ret
Function at 0x40ddc3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40de09
call fcn.0040f096
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40de09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40de4c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40de35
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40de35
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40de49
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x414215
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x414258
call fcn.0040f096
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414258
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x414273
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00413dcc
test ebx, ebx
mov esi, eax
je 0x414271
test edi, edi
je 0x414271
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x415f9a
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 0x415fc8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415fe6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415f04
jmp 0x415fe6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415fe6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00415f04
test edi, edi
mov eax, edi
jne 0x415fd0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44e540]
test ecx, ecx
je 0x4160a9
jmp 0x415f99
ret 8

Function at 0x426009
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b538]
jne 0x426013
repz ret
jmp fcn.0042a635
Function at 0x429f93
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44b808]
je 0x429fae
inc edi
cmp edi, 0x17
jb 0x429f9f
cmp edi, 0x17
jae 0x42a12e
push ebp
push 3
call fcn.0043263f
cmp eax, 1
pop ecx
je 0x42a0fa
push 3
call fcn.0043263f
test eax, eax
pop ecx
jne 0x429fe2
cmp dword [0x44b544], 1
je 0x42a0fa
cmp ebx, 0xfc
je 0x42a12d
push 0x43f6f0
mov ebx, 0x314
push ebx
mov ebp, 0x44ea00
push ebp
call fcn.00427661
add esp, 0xc
test eax, eax
je 0x42a018
push esi
push esi
push esi
push esi
push esi
call fcn.0042a1a2
add esp, 0x14
push 0x104
mov esi, 0x44ea19
push esi
push 0
mov byte [0x44eb1d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42a05c
push 0x43f6d8
push 0x2fb
push esi
call fcn.00427661
add esp, 0xc
test eax, eax
je 0x42a05c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042a1a2
add esp, 0x14
push esi
call fcn.00427dc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42a0a1
push esi
call fcn.00427dc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44ed14
push 0x43f6d4
sub ecx, eax
push ecx
push eax
call fcn.004280ef
add esp, 0x14
test eax, eax
je 0x42a0a1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042a1a2
add esp, 0x14
jmp 0x42a0a3
xor esi, esi
push 0x43f6d0
push ebx
push ebp
call fcn.00427fa9
add esp, 0xc
test eax, eax
je 0x42a0c3
push esi
push esi
push esi
push esi
push esi
call fcn.0042a1a2
add esp, 0x14
push dword [edi*8 + 0x44b80c]
push ebx
push ebp
call fcn.00427fa9
add esp, 0xc
test eax, eax
je 0x42a0e5
push esi
push esi
push esi
push esi
push esi
call fcn.0042a1a2
add esp, 0x14
push 0x12010
push 0x43f6a8
push ebp
call fcn.00432482
add esp, 0xc
jmp 0x42a12d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42a12d
cmp ebp, 0xffffffff
je 0x42a12d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44b80c]
push dword [esi]
call fcn.00427dc0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret