joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401480
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 0x401499
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4014d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4014d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014c0
cmp esi, eax
jb 0x4014da
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 0x401970
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x7834], 0
jne 0x401a15
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.00401680
cmp eax, 6
jne 0x401a15
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 0x4019c4
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 0x4019bd
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x4019bd
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x401973
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x7834], 0
jne 0x401a15
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.00401680
cmp eax, 6
jne 0x401a15
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 0x4019c4
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 0x4019bd
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x4019bd
mov eax, 1
pop esi
add esp, 0x14
ret
Function at 0x401ec0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x44c538]
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 [0x44d9f4], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401f18
push str.System32
lea ecx, [esp + 0x14]
push ecx
call esi
push str.DIFxAPI.dll
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 0x401f4c
push str.DriverPackageUninstallA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x401f51
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x401f69
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.0042652f
add esp, 0x10c
ret

Function at 0x402a30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x44c538]
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 0x402aaa
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 0x402a9f
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 0x402ac6
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.0042652f
add esp, 0x110
ret
Function at 0x403440
Capabilities:
Access peb ldr_data
Get kernel32 base address
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x438758
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x44c538]
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.00403040
push str.F132AF7F_7BCA_4EDE_8A7C_958108FE7DBC
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x4c], 0
call fcn.00403040
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 0x4034e7
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 0x40350f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0xf], 0
je 0x40357a
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 0x40356f
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 0x403dd0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4388f6
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x44c538]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
push edi
mov eax, dword [0x44c538]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
call fcn.00415e0b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403e28
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 0x403e5a
cmp dword [esi + 0x158], 0
jne 0x403e63
test eax, eax
jne 0x403e91
cmp dword [esi + 0x158], 0
jne 0x403e91
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 0x403e8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403fc0
cmp dword [esi + 0x784c], 0
jne 0x403eef
push str.RealtekInstallShield
lea ecx, [esi + 0x148]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00403040
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call fcn.00403160
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 0x403eff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403eff
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x18]
call fcn.00402de0
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 0x403f97
cmp dword [esi + 0x154], eax
je 0x403f3e
push str.F132AF7F_7BCA_4EDE_8A7C_958108FE7DBC
lea edx, [esp + 0x20]
push 0x43cd10
push edx
call fcn.004277bf
add esp, 0xc
mov eax, 0x27
jmp 0x403f69
cmp dword [esi + 0x158], 0
je 0x403f65
push str.5449FB4F_1802_4D5B_A6D8_087DB1142147
lea eax, [esp + 0x20]
push 0x43cd10
push eax
call fcn.004277bf
add esp, 0xc
mov eax, 0x27
jmp 0x403f69
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 0x403fbe
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.0042652f
add esp, 0x120
ret
Function at 0x403ff0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438940
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x44c538]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov eax, dword [0x44c538]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00415e0b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40403b
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.004277bf
add esp, 0xc
cmp dword [esi + 0x784c], 0
jne 0x4040c2
push str.RealtekInstallShield
add esi, 0x148
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00403040
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 1
call fcn.00403160
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 0x4040d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4040d2
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x10]
call fcn.00402de0
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 0x404110
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 0x404134
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.0042652f
add esp, 0x5c
ret 4
Function at 0x404160
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438986
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x44c538]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov eax, dword [0x44c538]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00415e0b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4041b4
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.0x4041de
jmp dword [eax*4 + 0x404334]
mov ecx, dword [esp + 0xac]
push ecx
push str.DriverPackageInstall_Error_code_0x_08X
jmp 0x404229
mov eax, dword [esp + 0xac]
push eax
push str.DriverPackagePrenstall_Error_code_0x_08X
lea ecx, [esp + 0x1c]
push ecx
jmp 0x40422e
mov edx, dword [esp + 0xac]
push edx
push str.DriverPackageUninstall_Error_code_0x_08X
lea eax, [esp + 0x1c]
push eax
jmp 0x40422e
mov ecx, dword [esp + 0xac]
push ecx
push str.DriverPackageGetPath_Error_code_0x_08X
lea edx, [esp + 0x1c]
push edx
call fcn.004277bf
add esp, 0xc
cmp dword [esi + 0x784c], 0
jne 0x404294
push str.RealtekInstallShield
add esi, 0x148
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00403040
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xa4], 1
call fcn.00403160
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 0x4042a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4042a4
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x10]
call fcn.00402de0
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 0x4042e5
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 0x40430c
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.0042652f
add esp, 0x9c
ret 8
Function at 0x408df0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x44d9d4]
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 [0x44d9d4], eax
mov edx, dword [esi + 0x7870]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00411514
cmp dword [esi + 0x7840], 0
je 0x408e40
mov dword [0x44d9cc], 1
jmp 0x408e50
mov ecx, esi
call fcn.00402320
test eax, eax
mov dword [0x44d9cc], eax
je 0x408ec8
mov eax, dword [esi + 0x7824]
test eax, eax
push edi
je 0x408ea1
cmp dword [esi + 0x782c], 0
je 0x408e83
mov ecx, esi
call fcn.004071b0
mov ecx, esi
mov edi, eax
call fcn.004063e0
test edi, edi
jne 0x408eb3
test eax, eax
jne 0x408ebc
push 0xffffffffffffffff
call fcn.00427e71
test eax, eax
je 0x408ea1
cmp dword [esi + 0x782c], 0
jne 0x408e9d
mov ecx, esi
call fcn.004071b0
mov edi, eax
xor eax, eax
jmp 0x408e74
test eax, eax
jne 0x408e7c
cmp dword [esi + 0x782c], 0
je 0x408e7c
mov ecx, esi
call fcn.004063e0
jmp 0x408e78
cmp edi, 1
jne 0x408ee2
test eax, eax
jmp 0x408ebf
cmp eax, 1
jne 0x408ee2
push 0xfffffffffffffffc
call fcn.00427e71
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.00401680
push 0xfffffffffffffffe
call fcn.00427e71
pop edi
pop esi
ret

Function at 0x408df5
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x44d9d4]
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 [0x44d9d4], eax
mov edx, dword [esi + 0x7870]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00411514
cmp dword [esi + 0x7840], 0
je 0x408e40
mov dword [0x44d9cc], 1
jmp 0x408e50
mov ecx, esi
call fcn.00402320
test eax, eax
mov dword [0x44d9cc], eax
je 0x408ec8
mov eax, dword [esi + 0x7824]
test eax, eax
push edi
je 0x408ea1
cmp dword [esi + 0x782c], 0
je 0x408e83
mov ecx, esi
call fcn.004071b0
mov ecx, esi
mov edi, eax
call fcn.004063e0
test edi, edi
jne 0x408eb3
test eax, eax
jne 0x408ebc
push 0xffffffffffffffff
call fcn.00427e71
test eax, eax
je 0x408ea1
cmp dword [esi + 0x782c], 0
jne 0x408e9d
mov ecx, esi
call fcn.004071b0
mov edi, eax
xor eax, eax
jmp 0x408e74
test eax, eax
jne 0x408e7c
cmp dword [esi + 0x782c], 0
je 0x408e7c
mov ecx, esi
call fcn.004063e0
jmp 0x408e78
cmp edi, 1
jne 0x408ee2
test eax, eax
jmp 0x408ebf
cmp eax, 1
jne 0x408ee2
push 0xfffffffffffffffc
call fcn.00427e71
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.00401680
push 0xfffffffffffffffe
call fcn.00427e71
pop edi
pop esi
ret
Function at 0x40b4b2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44c538]
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 0x40b4f2
push 0x43d8e0
push 4
push eax
call fcn.00427193
push eax
call fcn.00401000
add esp, 0x10
jmp 0x40b504
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40b572
push edi
call fcn.004283fe
mov edi, dword [eax]
call fcn.004283fe
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.00427856
add esp, 0x18
mov ebx, eax
call fcn.004283fe
cmp dword [eax], 0
je 0x40b552
call fcn.004283fe
push dword [eax]
call fcn.0040ab67
pop ecx
jmp 0x40b559
call fcn.004283fe
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40b572
cmp ebx, esi
jae 0x40b572
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40b574
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042652f
leave
ret
Function at 0x40e305
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 0x40e34b
call fcn.0040f5a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e34b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40e38e
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 0x40e377
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 0x40e377
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40e38b
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 0x414716
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 0x414759
call fcn.0040f5a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414759
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x414774
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004142cd
test ebx, ebx
mov esi, eax
je 0x414772
test edi, edi
je 0x414772
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4164bf
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 0x4164ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41650b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00416429
jmp 0x41650b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41650b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00416429
test edi, edi
mov eax, edi
jne 0x4164f5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44f540]
test ecx, ecx
je 0x4165ce
jmp 0x4164be
ret 8

Function at 0x42652f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c538]
jne 0x426539
repz ret
jmp fcn.0042ab55
Function at 0x42a4b3
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 + 0x44c808]
je 0x42a4ce
inc edi
cmp edi, 0x17
jb 0x42a4bf
cmp edi, 0x17
jae 0x42a64e
push ebp
push 3
call fcn.00432b5f
cmp eax, 1
pop ecx
je 0x42a61a
push 3
call fcn.00432b5f
test eax, eax
pop ecx
jne 0x42a502
cmp dword [0x44c544], 1
je 0x42a61a
cmp ebx, 0xfc
je 0x42a64d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44fa00
push ebp
call fcn.00427193
add esp, 0xc
test eax, eax
je 0x42a538
push esi
push esi
push esi
push esi
push esi
call fcn.0042a6c2
add esp, 0x14
push 0x104
mov esi, 0x44fa19
push esi
push 0
mov byte [0x44fb1d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42a57c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00427193
add esp, 0xc
test eax, eax
je 0x42a57c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042a6c2
add esp, 0x14
push esi
call fcn.004282e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42a5c1
push esi
call fcn.004282e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44fd14
push 0x44074c
sub ecx, eax
push ecx
push eax
call fcn.0042860f
add esp, 0x14
test eax, eax
je 0x42a5c1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042a6c2
add esp, 0x14
jmp 0x42a5c3
xor esi, esi
push 0x440748
push ebx
push ebp
call fcn.004284c9
add esp, 0xc
test eax, eax
je 0x42a5e3
push esi
push esi
push esi
push esi
push esi
call fcn.0042a6c2
add esp, 0x14
push dword [edi*8 + 0x44c80c]
push ebx
push ebp
call fcn.004284c9
add esp, 0xc
test eax, eax
je 0x42a605
push esi
push esi
push esi
push esi
push esi
call fcn.0042a6c2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004329a2
add esp, 0xc
jmp 0x42a64d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42a64d
cmp ebp, 0xffffffff
je 0x42a64d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44c80c]
push dword [esi]
call fcn.004282e0
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