joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x401611
mov edx, dword [ebp - 4]
push edx
call fcn.00404332
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401611
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4015ff
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
push 0x428724
mov ecx, dword [ebp - 0x14]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4015ff
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00404327
add esp, 4
lea edx, [ebp - 0x10]
push edx
call fcn.004014e0
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x401940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], 4
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x428748
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4019ab
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x428788
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp - 0x14], 0
sete cl
mov byte [ebp - 5], cl
mov edx, dword [ebp + 0xc]
mov byte [edx], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x4019c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push str.SystemCurrentControlSetServicesNvStUSBParametersVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401a14
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push 0x4287d0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp dword [ebp - 0xc], 0
sete cl
mov byte [ebp - 1], cl
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x401be0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [edx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
cmp dword [ebp - 4], 0
jbe 0x401cb7
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401ba0
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x401c91
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401c7f
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0x428830
mov edx, dword [ebp - 0x30]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401c7f
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov edx, dword [edx + 0x10]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00404327
add esp, 4
lea edx, [ebp - 0x2c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x401cb7
push 8
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00411db0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x401d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 0
push 0
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401dea
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401dea
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
call fcn.00401ba0
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
je 0x401de0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.00411db0
add esp, 0xc
mov byte [ebp - 1], 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x401e00
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x431bb8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x250]
push eax
push 0x428834
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x5c
lea ecx, [ebp - 0x250]
push ecx
call fcn.00403450
add esp, 8
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x401e94
mov edx, dword [ebp - 0x254]
mov byte [edx], 0
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x401e87
push 0
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x401e94
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004116a1
mov esp, ebp
pop ebp
ret
Function at 0x402150
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1270
call fcn.00412500
mov eax, dword [0x431bb8]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.INFOEM.INF
lea ecx, [ebp - 0x110]
push ecx
call fcn.00411980
add esp, 8
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
je 0x4022a3
lea ecx, [ebp - 0x258]
push ecx
push 2
push 0
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x4021e4
jmp 0x402272
lea eax, [ebp - 0x1270]
push eax
push str.CatalogFile
push str.Version
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x402265
push 0
push 0x1000
lea edx, [ebp - 0x1260]
push edx
push 1
lea eax, [ebp - 0x1270]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x402265
push str.nvstusb.cat
lea ecx, [ebp - 0x1260]
push ecx
call fcn.00403470
add esp, 8
test eax, eax
jne 0x402265
lea edx, [ebp - 0x1270]
push edx
push str.nvstusb.sys
push str.SourceDisksFiles.x86
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x402265
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x402296
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4021b8
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004116a1
mov esp, ebp
pop ebp
ret
Function at 0x4022c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x431bb8]
xor eax, ebp
mov dword [ebp - 0x1c], eax
call fcn.00402150
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4023c8
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x2021f
push 0
push 0
push 0
push str.SOFTWARENVIDIA_CorporationGlobalStereo3DPersistent
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4023c8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push str.3D_Vision
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4023be
cmp dword [ebp - 0x10], 0
jne 0x4023be
push 0x105
lea ecx, [ebp - 0x230]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4023be
push 0x5c
lea edx, [ebp - 0x230]
push edx
call fcn.00403450
add esp, 8
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x4023be
mov eax, dword [ebp - 0x234]
mov byte [eax + 1], 0
push str.nvstlink.exe
lea ecx, [ebp - 0x230]
push ecx
push str.__s_s___update
lea edx, [ebp - 0x128]
push edx
call fcn.0041187a
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
call fcn.00412768
add esp, 4
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004116a1
mov esp, ebp
pop ebp
ret

Function at 0x402590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x432fec], eax
mov ecx, dword [ebp + 0xc]
mov dword [0x432ff0], ecx
mov edx, dword [ebp + 8]
mov dword [0x433000], edx
mov eax, dword [ebp + 0x10]
mov dword [0x433004], eax
call fcn.004023e0
mov ecx, 0x43303c
call fcn.00403490
mov ecx, 0x43303c
call fcn.00403490
push 0x433008
push 0
push 0x432fec
push 0x4026f0
push 0
push 0
call fcn.00412949
add esp, 0x18
mov dword [0x432ff4], eax
push 0x432ffc
push 0
push 0x433000
push 0x402640
push 0
push 0
call fcn.00412949
add esp, 0x18
mov dword [0x432ff8], eax
cmp dword [0x432ff4], 0
je 0x40262e
cmp dword [0x432ff8], 0
je 0x40262e
mov dword [ebp - 4], 1
jmp 0x402635
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x402a20
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov dword [ebp - 7], ecx
mov word [ebp - 3], cx
mov byte [ebp - 1], cl
mov dword [ebp - 0x3c], 0
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 1
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402b8c
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x3c]
push eax
push 0x4e20
push 0x2000
push 0x2000
push 0xff
push 0
push 0x80000003
push str..pipe_stereosvrpipe
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x402b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
jmp 0x402b8c
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x402b34
jmp 0x402b8c
mov ecx, 0x43303c
call fcn.00403490
lea ecx, [ebp - 0x40]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
push 0x4029b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x402b6c
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402b80
mov ecx, 0x43303c
call fcn.004034c0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0
jmp 0x402aae
cmp dword [ebp - 0x2c], 0
je 0x402b9c
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4033a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0x20219
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallNVIDIAStereo
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4033fe
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.InstallLocation
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4033f4
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x403580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
jne 0x40359f
xor al, al
jmp 0x40360a
cmp dword [ebp + 0xc], 0
je 0x403607
cmp dword [ebp + 0xc], 0x2000
jle 0x4035b7
mov dword [ebp - 0x18], 0x2000
jmp 0x4035bd
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4035e7
mov byte [ebp - 1], 0
jmp 0x403607
cmp dword [ebp - 0x10], 0
jne 0x4035f3
mov byte [ebp - 1], 0
jmp 0x403607
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
jmp 0x40359f
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8

Function at 0x403610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], ecx
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
jne 0x40362f
xor al, al
jmp 0x4036a3
cmp dword [ebp + 0xc], 0
je 0x4036a0
cmp dword [ebp + 0xc], 0x2000
jle 0x403647
mov dword [ebp - 0x1c], 0x2000
jmp 0x40364d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], 0
jmp 0x4036a0
cmp dword [ebp - 0x10], 0
jne 0x40368c
mov byte [ebp - 1], 0
jmp 0x4036a0
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
jmp 0x40362f
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x403920
Capabilities:
Create service
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x431bb8]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 8], str.NVIDIA_Stereoscopic_3D_Driver_Service
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40395f
xor al, al
jmp 0x403a8d
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 0x12c]
call fcn.004038c0
movzx ecx, al
test ecx, ecx
je 0x403990
mov ecx, dword [ebp - 0x12c]
call fcn.00403aa0
push 0
push str..LocalSystem
push 0
push 0
push 0
lea edx, [ebp - 0x120]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
push 0x10
push 0xf01ff
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x12c]
add edx, 4
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x124], eax
push 0
push 0x428ab0
push 0x428ab8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x403a8d
mov edx, dword [ebp - 0x12c]
add edx, 4
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], str.Provides_system_support_for_NVIDIA_Stereoscopic_3D_driver
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x403a66
lea edx, [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x403a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x128], eax
push 0
push str.Error
push str.Stereo_Server_has_not_been_properly_installed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x12c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004116a1
mov esp, ebp
pop ebp
ret 4
Function at 0x403aa0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403acc
xor al, al
jmp 0x403b68
push 0xf01ff
mov eax, dword [ebp - 0x34]
add eax, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403b51
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x403b35
lea edx, [ebp - 0x28]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x403b35
cmp dword [ebp - 0x24], 1
je 0x403b35
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403b13
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x403b47
mov byte [ebp - 5], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
call eax
mov esp, ebp
pop ebp
ret

Function at 0x403e10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x431bb8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x9c
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00412a00
add esp, 0xc
mov dword [ebp - 0xa8], 0x9c
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004116a1
mov esp, ebp
pop ebp
ret

Function at 0x40ed4c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040e985
push eax
push esi
push dword [ebp + 8]
call fcn.0040e93a
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
inc ebp
in al, 0x2b
Function at 0x40f017
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40f029
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40f024
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40f00e
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40f016
cmp edx, ebx
jne 0x40f164
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
dec eax
add al, 0x83
inc ebp
or byte [edx], al
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40efe5
add eax, dword [eax + 4]
jmp 0x40efd2
mov dword [ebp + 0xc], ebx
jmp 0x40f034
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40f04c
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40f06a
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
invalid
ja 0x40f0c8
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40f0af
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40f0b8
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40f0c2
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40f0a4
inc dword [ebp + 0xc]
invalid
invalid