joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7aaf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7bf9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x7ab002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007aedff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7ab002
lea edx, [esp + 0x14]
push edx
push 0x7c5140
call fcn.007a66e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007af20b
push 0x10
call fcn.007af1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7aafc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0079b1c0
jmp 0x7aafc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007aab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7aaff0
mov ecx, edi
call fcn.0079b2c0
push edi
call fcn.007af1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7ab021
inc ebx
cmp ebx, 0x20
jb 0x7aaf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7ae1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007ae140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007ae140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007ae140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007ae140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7ae230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ae2d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x7ae2ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.007ae230
mov esi, eax
add esp, 8
test esi, esi
jne 0x7ae2ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x7ae27e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x7ae2ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x7aebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7aec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7c087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7aec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7aec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4061d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4aa32b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404304
call fcn.00406eec
push 4
mov dword [esp + 0x18], 0
call fcn.004083d1
mov edi, eax
add esp, 4
test edi, edi
je 0x406244
push ebx
call fcn.00406ce7
mov dword [edi], eax
call fcn.00406aa6
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406ead
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406238
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406ed5
pop ebx
jmp 0x406246
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408a4b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4add68]
jne 0x408a55
repz ret
jmp fcn.0040e45c
Function at 0x4a76d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe44
cmp dword [0x8363fc], 0x37
jne 0x4a7766
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommModemStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [esp + 0x644]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov edx, dword [0x8373f0]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x836364]
mov byte [edx + esi], cl
add esp, 0xe44
ret
Function at 0x4a79f0
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x8363fc]
sub esp, 0xa8c
push ebx
push ebp
push esi
mov esi, dword [0x836364]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x4a7c08
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
jmp 0x4a7a26
mov esi, dword [esp + 0x20]
xor edi, edi
cmp dword [0x8363fc], 0x1c
jne 0x4a7a3d
lea eax, [esp + 0x44]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x4ae2c4]
mov ebx, dword [0x4ae2c0]
mov ebp, dword [0x4ae2c8]
mov dword [esp + 0x14], ecx
mov ecx, dword [str.j]
mov dword [esp + 0x1c], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], 0x20
jmp 0x4a7a86
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, dword [esp + 0x2c]
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x18], edx
add ecx, ebp
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0x836368], edi
mov eax, dword [esp + 0x18]
add dword [0x836368], eax
mov eax, dword [0x836368]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov eax, ecx
shl eax, 4
add eax, ebx
cmp dword [0x8363fc], 0x1be
mov dword [esp + 0x10], eax
lea edi, [esi + ecx]
jne 0x4a7b44
push 0
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ecx, 5
add ecx, dword [esp + 0x30]
cmp dword [0x8363fc], 0x979
mov dword [0x836370], 0xff6b3619
mov dword [0x836374], 0xffffffff
mov dword [esp + 0x18], ecx
jne 0x4a7b85
push 0
lea ecx, [esp + 0x29c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov eax, dword [esp + 0x10]
xor eax, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
add esi, 0x61c88647
dec dword [esp + 0x24]
jne 0x4a7a80
cmp dword [0x8363fc], 0x8d4
jne 0x4a7bbd
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0x8363fc], 0x17
jne 0x4a7bf7
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x48]
push ecx
push 0x403ff0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x20], esi
jne 0x4a7a20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8c
ret
Function at 0x401280
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00410310
push esi
push str.StatusPrint
push str._s___
push 6
call fcn.0040b7b0
add esp, 0xc
mov dword [esp + 4], 0
push 0
push 0x80000080
push 2
push 0
push 0
push 0xc0000000
push str.results.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.StatusPrint
push str._s:___FALSE
push 6
call fcn.0040b7b0
add esp, 0xc
lea ecx, [esp + 0x100c]
call fcn.0040ff82
xor eax, eax
pop esi
add esp, 0x1004
ret
mov ecx, dword [esp + 0x100c]
push 0
push 0
lea edx, [esp + 0x10]
mov eax, dword [ecx - 8]
inc eax
push eax
push edx
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x100c]
lea eax, [esp + 4]
push 0
push eax
mov edx, dword [ecx - 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.StatusPrint
push str._s:___TRUE
push 6
call fcn.0040b7b0
add esp, 0xc
lea ecx, [esp + 0x100c]
call fcn.0040ff82
mov eax, 1
pop esi
add esp, 0x1004
ret

Function at 0x401800
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
test ebp, ebp
mov eax, ebp
jne 0x401815
mov eax, 0x414c54
push eax
push str.S3D.AppendHeader
push 0x414c3c
push 6
call fcn.0040bbc0
add esp, 0x10
lea esi, [edi + 0xa0]
mov ecx, esi
mov byte [edi + 0x274], 0
push 0xffffffffffffffff
push 0
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
mov eax, dword [edi + 0xc0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x414c38
push 0
push 0xc2
push eax
call ebx
push 0x4116b8
push str._s:_1
push 5
call fcn.0040b7b0
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
push 0
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0xd
mov ecx, esi
call fcn.004073d0
push 0x4116b8
push str._s:_2
push 5
call fcn.0040b7b0
add esp, 0xc
mov ecx, esi
push 0
push 0
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 2
mov ecx, esi
call fcn.004073d0
push 1
mov ecx, esi
call fcn.00407340
mov ecx, dword [edi + 0xc0]
push ebp
push 0
push 0xc2
push ecx
call ebx
mov edi, 0x414c20
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x16
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x414c18
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
mov ecx, esi
push edx
push eax
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0xff0000
mov ecx, esi
call fcn.004074a0
push 0x4116b8
push str._s:__
push 6
call fcn.0040b7b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x401dc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
mov edi, ecx
test ebp, ebp
mov eax, ebp
jne 0x401dd3
mov eax, 0x414c54
push ebx
push esi
push eax
push str.S3D.AppendText
push 0x414c3c
push 6
call fcn.0040bbc0
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
lea esi, [edi + 0xa0]
mov ecx, esi
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0x41180c
push str._s:_1
push 5
call fcn.0040b7b0
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
call sub.MFC42u.DLL_CRichEditCtrl::LineIndex
push 0xffffffffffffffff
mov ecx, esi
mov ebx, eax
call sub.MFC42u.DLL_CRichEditCtrl::LineLength
add ebx, eax
mov eax, dword [edi + 0xc0]
push ebp
push 0
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x41180c
push str._s:_2
push 5
call fcn.0040b7b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [ebx + ecx]
mov ecx, esi
push edx
push ebx
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0xff
mov ecx, esi
call fcn.004074a0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0xd
mov ecx, esi
call fcn.004073d0
push 0x41180c
push str._s:_3
push 5
call fcn.0040b7b0
add esp, 0xc
mov ecx, edi
call fcn.00401d00
mov eax, dword [edi + 0x288]
pop esi
cmp eax, 1
pop ebx
jne 0x401ecb
push str._r_nlog
mov ecx, 0x459eec
call fcn.00410084
push ebp
mov ecx, 0x459eec
call fcn.00410084
push 0x41180c
push str._s:__
push 6
call fcn.0040b7b0
add esp, 0xc
pop edi
pop ebp
ret 4

Function at 0x401f70
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
mov ebx, ecx
mov eax, ebp
jne 0x401f85
mov eax, 0x414c54
push eax
push str.S3D.AppendYellowText
push 0x414c3c
push 6
call fcn.0040bbc0
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
lea esi, [ebx + 0xa0]
mov ecx, esi
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0x41188c
push str._s:_1
push 5
call fcn.0040b7b0
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
call sub.MFC42u.DLL_CRichEditCtrl::LineIndex
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call sub.MFC42u.DLL_CRichEditCtrl::LineLength
add edi, eax
mov eax, dword [ebx + 0xc0]
push ebp
push 0
push 0xc2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x41188c
push str._s:_2
push 5
call fcn.0040b7b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [edi + ecx]
mov ecx, esi
push edx
push edi
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0xff
mov ecx, esi
call fcn.004074a0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42u.DLL_CRichEditCtrl::SetSel
push 0xd
mov ecx, esi
call fcn.004073d0
mov ecx, ebx
call fcn.00401d50
push 0x41188c
push str._s:__
push 6
call fcn.0040b7b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x402fc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
mov ecx, dword [str.SoftwareMDCRefCounters]
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push ecx
push 0x80000002
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402ffc
xor eax, eax
pop esi
add esp, 0x10c
ret
mov dx, word [0x459f00]
push ebx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
mov edx, dword [esp + 0xc]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
stosw word es:[edi], ax
push esi
push esi
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebx
cmp eax, 0x103
je 0x4030ab
test eax, eax
jne 0x4030ab
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x403066
inc dword [esp + 0x14]
mov dx, word [0x459f00]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
mov edx, dword [esp + 0xc]
rep stosd dword es:[edi], eax
push 0
push 0
stosw word es:[edi], ax
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x28]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebx
cmp eax, 0x103
jne 0x403044
mov eax, dword [esp + 0xc]
pop edi
test eax, eax
pop ebx
je 0x4030c1
cmp eax, 0xffffffff
je 0x4030c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x10c
ret
Function at 0x403760
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x4156a8]
push ebx
push esi
push edi
mov dword [esp + 0x224], eax
mov edx, dword [str.SoftwareMDCRefCounters]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x228]
xor esi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov ebx, 0x100
push ecx
push 0xf003f
push esi
push edx
push 0x80000002
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4037e6
mov ecx, dword [str.SoftwareMDCRefCounters]
lea eax, [esp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403930
lea edx, [esp + 0x10]
lea eax, [esp + 0x224]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x403812
mov dword [esp + 0x10], esi
jmp 0x403930
lea eax, [esp + 0x224]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
mov dx, word [0x459f00]
mov dword [esp + 0x18], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12e]
mov word [esp + 0x12c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x20]
stosw word es:[edi], ax
lea edx, [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x138]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
call ebp
cmp eax, 0x103
je 0x40392d
test eax, eax
jne 0x40392d
lea ecx, [esp + 0x28]
push str.single_bind
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4038be
inc dword [esp + 0x1c]
mov dx, word [0x459f00]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12a]
mov word [esp + 0x128], dx
mov word [esp + 0x28], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2a]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x138]
inc esi
push edx
push eax
push esi
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
call ebp
cmp eax, 0x103
jne 0x40389b
xor esi, esi
pop ebp
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x403944
cmp eax, 0xffffffff
je 0x403944
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
cmp eax, esi
pop esi
pop ebx
jne 0x403959
or eax, 0xffffffff
add esp, 0x318
ret
cmp dword [esp + 0xc], eax
sbb eax, eax
inc eax
add esp, 0x318
ret
Function at 0x403970
Capabilities:
Terminate process

Disassembly:
sub esp, 0x108
push esi
push str.S3D.OnUnisntallButton
push str._s___
mov esi, ecx
push 6
mov dword [esp + 0x10], 0xffffffff
call fcn.0040b7b0
add esp, 0xc
mov ecx, esi
call fcn.004068b0
push str.S3D.OnUnisntallButton
push str._s:_1:_DisableButtons
push 5
call fcn.0040b7b0
add esp, 0xc
lea eax, [esi + 0x2dc]
lea ecx, [esp + 8]
push str.___Uninstalling
push eax
push ecx
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
mov ecx, esi
push eax
call fcn.00401800
lea ecx, [esp + 8]
call fcn.0040ff82
mov edx, dword [esi + 0x298]
mov ecx, dword [0x459ef8]
lea eax, [esp + 4]
push edx
push eax
push 0
push ecx
push 0xffffffffffffffff
call fcn.004034a0
add esp, 0x14
test al, al
jne 0x403a38
push str.Warning:_a_driver_registration_inconsistency_detected.
mov ecx, esi
call fcn.004019c0
push str.Please_check_the_VendorName_you_specified.
mov ecx, esi
call fcn.004019c0
push str.It_also_could_be_caused_by_errorneous_previous_installations___uninstallations.
mov ecx, esi
call fcn.004019c0
push str.This_is_just_a_warning._Chances_are__you_wont_experience_any_real_problems.
mov ecx, esi
call fcn.004019c0
push str.The_only_thing_it_might_have_any_impact_on__is_accidental_driver_deletion_protection.
mov ecx, esi
call fcn.004019c0
mov eax, dword [esp + 4]
test eax, eax
je 0x403acd
mov eax, dword [esi + 0x248]
test eax, eax
jne 0x403acd
push str.Driver_uninstallation_complete.
mov ecx, esi
call fcn.004019c0
push str.The_driver_will_still_appear_in_the_system__because_other_vendors_seem_to_be_using_it_yet.
mov ecx, esi
call fcn.004019c0
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push str.NOT_registered
push str.Registration_status:__s___u_registrations_total_.
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004019c0
mov ecx, esi
call fcn.00406610
cmp dword [esi + 0x288], 1
jne 0x403b1a
mov eax, dword [esi + 0x290]
test eax, eax
jne 0x403ab7
mov ecx, esi
call fcn.004046e0
mov ecx, esi
call fcn.00404520
mov edx, dword [esi + 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x403b1a
push str.S3D.OnUnisntallButton
push str._s:_2:_S3ActionUnsinstallThenStop
push 5
mov dword [0x457668], 6
mov dword [0x457674], 0x4156fc
mov dword [0x457678], 0x4156c8
call fcn.0040b7b0
add esp, 0xc
mov ecx, esi
call fcn.00404480
push str.S3D.OnUnisntallButton
push str._s:_2:_DoRemoveProtocol
push 5
call fcn.0040b7b0
add esp, 0xc
push str.S3D.OnUnisntallButton
push str._s:__
push 6
call fcn.0040b7b0
add esp, 0xc
pop esi
add esp, 0x108
ret