joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430570
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [0x4dc3d0]
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push eax
push ecx
push edx
call fcn.00430510
add esp, 0xc
mov edi, eax
push 7
push edi
call dword [sym.imp.GDI32.dll_GetCurrentObject]
cmp dword [esp + 0x58], 0
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov esi, eax
jne 0x43061f
test ebp, ebp
jne 0x43061f
test ebx, ebx
jne 0x43061f
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x5c], ebx
je 0x430604
fld1
fcomp qword [0x4b1180]
fnstsw ax
test ah, 5
jp 0x4305ec
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042fe60
mov ebp, eax
mov eax, dword [esp + 0x24]
push eax
jmp 0x430615
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042fe10
mov edx, dword [esp + 0x24]
push edx
mov ebp, eax
call fcn.0042fe10
jmp 0x43061a
mov eax, dword [esp + 0x1c]
push eax
call fcn.0042fe10
mov ecx, dword [esp + 0x24]
mov ebp, eax
push ecx
call fcn.0042fe60
add esp, 8
mov ebx, eax
lea edx, [esp + 0x24]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push ebp
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 4
push esi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xcc0020
push eax
push ecx
push 0
push 0
push edi
push ebx
push ebp
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x58], 0
mov edx, dword [esp + 0x44]
je 0x4306c9
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x48]
push 0xcc0020
push 0
push 0
push esi
push ebx
mov edi, eax
mov eax, dword [esp + 0x60]
push ebp
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
mov edi, dword [esp + 0x10]
push edi
push 0
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4306eb
cmp eax, edi
je 0x4306eb
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x430ac0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax], 0
jne 0x430acc
xor eax, eax
ret
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x430afe
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x430af0
xor eax, eax
pop esi
ret
call esi
xor ecx, ecx
cmp eax, 5
sete cl
pop esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
Function at 0x430c00
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x41
mov word [esp + 4], ax
mov edx, 0x3a
mov word [esp + 6], dx
xor edx, edx
push edx
push edx
mov eax, 0x5c
mov word [esp + 0x10], ax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x28]
push edx
push edx
mov word [esp + 0x1e], dx
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00469f7b
add esp, 0x10
ret

Function at 0x430fd0
Capabilities:
Create process on windows
Get file system object information

Disassembly:
sub esp, 0x16c
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0x168], eax
movsx eax, byte [esp + 0x170]
add eax, 0x41
push eax
lea ecx, [esp + 0x164]
push str._c:_
push ecx
call fcn.0046a534
add esp, 0xc
push 0
push 0x160
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x170]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 1
push 0
push 0
lea ecx, [esp + 0x16c]
push ecx
push 0x49185c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.00469f7b
add esp, 0x16c
ret
Function at 0x4323b0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x4323ea
cmp dword [esp + 8], 0
jne 0x4323e4
mov eax, dword [0x4dc368]
push 0x30
push eax
push str.CAPSLOCK_ON
call fcn.0044ab30
mov ecx, dword [esp + 0x10]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
ret
xor eax, eax
ret

Function at 0x432a40
Capabilities:
Read file on windows
Timestomp file
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x432a70
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x20]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x432a9e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push edi
push 0x10000
call fcn.0046af23
mov edi, eax
add esp, 4
test edi, edi
jne 0x432ac8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0
lea edx, [esp + 0x14]
push edx
push 0x10000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x432b2d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x432b24
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432b2b
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x14]
jne 0x432b2b
push 0
lea eax, [esp + 0x14]
push eax
push 0x10000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x432ae2
jmp 0x432b2d
mov esi, 1
jmp 0x432b2d
xor esi, esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push ebp
call ebx
push edi
call fcn.0046a298
add esp, 4
pop edi
xor eax, eax
pop ebp
test esi, esi
pop esi
setne al
pop ebx
add esp, 0x10
ret
Function at 0x432de0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x432e06
xor eax, eax
pop ebx
ret
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x14]
mov dword [edi], eax
inc eax
push eax
call fcn.0046af23
mov esi, eax
add esp, 4
test esi, esi
jne 0x432e34
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [edi]
inc ecx
push ecx
push 0
push esi
call fcn.0046a470
mov edx, dword [edi]
add esp, 0xc
push 0
push edi
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x432e60
push esi
call fcn.0046a298
add esp, 4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x432e70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x432eba
movsx ecx, byte [esp]
push ecx
call fcn.0046b18a
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00469f7b
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor al, al
call fcn.00469f7b
add esp, 0x108
ret

Function at 0x4335c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
cmp byte [ebx], 0x5c
je 0x433691
push 0x3a
push ebx
call fcn.0046a6a0
add esp, 8
test eax, eax
jne 0x433691
push 0x48d750
push ebx
call fcn.0046c8a0
add esp, 8
cmp eax, ebx
je 0x433691
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433625
sub eax, edx
cmp byte [esp + eax + 3], 0x5c
push esi
push edi
je 0x433652
lea edi, [esp + 0xc]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x433640
mov cx, word [0x490090]
mov word [edi], cx
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x433656
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x433664
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x103
lea edx, [esp + 0x10]
mov ecx, eax
push edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0046adb0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00469f7b
add esp, 0x20c
ret
Function at 0x4336b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesMountMgr
push SysStringLen
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x433795
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.NoAutoMount
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x433730
cmp dword [esp + 4], eax
je 0x433730
push str.SYS_AUTOMOUNT_DISABLED
call fcn.00432f40
mov eax, dword [esp + 4]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
cmp dword [0x4dc384], 0xb
jne 0x43375e
cmp dword [0x4dc390], 1
jge 0x43375e
push str.SYS_ASSIGN_DRIVE_LETTER
call fcn.00432f40
mov eax, dword [esp + 4]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
cmp dword [0x4dc36c], 0
jne 0x43378b
mov ecx, dword [0x4dc368]
push 0x30
push ecx
push str.DEVICE_NOT_READY_ERROR
call fcn.0044ab30
mov edx, dword [0x4dc364]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret

Function at 0x433b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x433b2a
test al, 1
je 0x433b2a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x433b30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push 0x104
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
jne 0x433b77
xor eax, eax
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00469f7b
add esp, 0x110
ret
push 0
push 0
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x433b60
mov eax, dword [esp]
mov ecx, dword [esp + 0x10c]
shr eax, 0x13
xor ecx, esp
and eax, 1
call fcn.00469f7b
add esp, 0x110
ret
Function at 0x433c50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
cmp dword [0x4dc398], 0
je 0x433d0b
push esi
push 0x30
lea eax, [esp + 8]
push 0
push eax
call fcn.0046a470
mov ecx, dword [0x4dc3d0]
add esp, 0xc
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x30
mov dword [esp + 0x10], 0x430ab0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], str.TrueCryptEnableElevatedCursorChange
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov eax, dword [0x4dc3d0]
mov ecx, dword [esp + 0x38]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push eax
push 0
push ecx
push 1
call esi
push eax
push 0
call esi
push eax
push 0
push 0
push 0
push str.TrueCrypt_UAC
push str.TrueCryptEnableElevatedCursorChange
push 0x80080
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 2
push 1
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [0x4dc3d0]
push edx
push str.TrueCryptEnableElevatedCursorChange
call dword [sym.imp.USER32.dll_UnregisterClassA]
pop esi
add esp, 0x30
ret

Function at 0x434230
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x4dc3c0]
test eax, eax
jne 0x434289
push str.GlobalTrueCrypt_System_Encryption_Wizard
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4dc3c0], eax
mov ecx, dword [0x4dc3c0]
test ecx, ecx
je 0x434286
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x434289
mov edx, dword [0x4dc3c0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4dc3c0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
invalid
invalid
invalid

Function at 0x434300
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x4dc3c8]
test eax, eax
jne 0x434359
push str.GlobalTrueCrypt_Driver_Setup
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4dc3c8], eax
invalid
invalid
invalid

Function at 0x4343a0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalTrueCrypt_Setup
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4343d6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x4343c8
xor eax, eax
pop esi
ret
call esi
xor ecx, ecx
cmp eax, 5
sete cl
pop esi
mov eax, ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret
Function at 0x4343f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], 0x94
call esi
test eax, eax
jne 0x43442e
push str.NO_OS_VER
call fcn.0042fd10
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [0x4dc388], ecx
mov dword [0x4dc38c], eax
cmp edx, 2
jne 0x4345d6
cmp ecx, 5
jne 0x434510
test eax, eax
jne 0x434484
mov dword [0x4dc384], 7
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
cmp eax, 1
jne 0x4344a9
mov dword [0x4dc384], 8
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
cmp eax, 2
jne 0x43465c
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
mov al, byte [esp + 0x9e]
cmp al, 3
je 0x4344f0
cmp al, 2
je 0x4344f0
mov dword [0x4dc384], 9
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
mov dword [0x4dc384], 0xa
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
cmp ecx, 6
jne 0x4345ad
test eax, eax
jne 0x43457b
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x9c
call esi
mov al, byte [esp + 0x9e]
cmp al, 3
je 0x43455b
cmp al, 2
je 0x43455b
mov dword [0x4dc384], 0xb
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
mov dword [0x4dc384], 0xc
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
cmp eax, 1
jne 0x43465c
call fcn.004334b0
neg eax
sbb eax, eax
neg eax
add eax, 0xd
mov dword [0x4dc384], eax
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
cmp ecx, 4
jne 0x43465c
mov dword [0x4dc384], 6
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
cmp edx, 1
jne 0x43464e
cmp ecx, 4
jne 0x43465c
test eax, eax
jne 0x434604
mov dword [0x4dc384], 2
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
cmp eax, 0xa
jne 0x434629
mov dword [0x4dc384], 3
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
cmp eax, 0x5a
jne 0x43465c
mov dword [0x4dc384], 4
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
mov dword [0x4dc384], 1
test edx, edx
je 0x434666
mov dword [0x4dc384], 0
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
call fcn.00469f7b
add esp, 0x134
ret
Function at 0x434680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x4dc460]
xor ebx, ebx
test edi, edi
jne 0x4346cc
push str.Text
push 0x202
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [0x4dc45c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [0x4dc460], edi
test edi, edi
je 0x4346fc
mov eax, dword [0x4dc45c]
inc eax
push eax
call fcn.0046af23
mov esi, eax
add esp, 4
test esi, esi
je 0x4346f6
mov ebx, dword [0x4dc45c]
push ebx
push edi
push esi
call fcn.0046b7c0
add esp, 0xc
mov byte [ebx + esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x434710
Capabilities:
Create service
Start service

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x434789
push esi
push esi
push esi
push esi
push esi
push str.System32drivers_truecrypt.sys
push 1
push 1
push 1
push 0xf01ff
push str.truecrypt
push str.truecrypt
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x434789
push esi
call ebx
push 0xf01ff
push str.truecrypt
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x434789
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4347c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x4347c6
mov ebp, dword [esp + 0x18]
push ebp
call fcn.00433e20
mov eax, dword [0x4dc368]
add esp, 4
push 0x10
push eax
push str.DRIVER_INSTALL_FAILED
call fcn.0044ab30
add esp, 4
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebp, dword [esp + 0x10]
jmp 0x4347cb
mov ebp, 1
test esi, esi
je 0x4347d2
push esi
call ebx
test edi, edi
je 0x4347d9
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x4347f0
Capabilities:
Create service
Delete service
Start service

Disassembly:
sub esp, 0x350
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0x34c], eax
lea eax, [esp]
push eax
push str.Start
push str.SYSTEMCurrentControlSetServices_truecrypt
call fcn.0044e930
add esp, 0xc
test eax, eax
je 0x43483e
cmp dword [esp], 0
jne 0x43483e
mov eax, 0x1e
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.00469f7b
add esp, 0x350
ret
push esi
push 0x208
lea ecx, [esp + 0x14c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x148]
push 0x5c
push edx
call fcn.0046a760
mov esi, eax
add esp, 8
test esi, esi
jne 0x434880
mov eax, 0x2e
mov word [esp + 0x148], ax
lea esi, [esp + 0x149]
call fcn.00433460
mov edx, str._truecrypt.sys
test eax, eax
je 0x434893
mov edx, str._truecrypt_x64.sys
mov ecx, esi
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x434895
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4348f0
mov eax, dword [0x4dc368]
push 0x10
push eax
push str.DRIVER_NOT_FOUND
call fcn.0044ab30
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x1c
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.00469f7b
add esp, 0x350
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x43496c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x434950
mov ecx, dword [0x4dc368]
push 0x10
push ecx
push str.ADMIN_PRIVILEGES_DRIVER
call fcn.0044ab30
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi + 0x1c]
pop edi
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.00469f7b
add esp, 0x350
ret
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.00469f7b
add esp, 0x350
ret
push ebx
push 0xf01ff
push str.truecrypt
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x43499f
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x164]
push edx
push 1
push 3
push 1
push 0xf01ff
push str.truecrypt
push str.truecrypt
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x4349f1
push edi
call ebx
pop ebx
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.00469f7b
add esp, 0x350
ret
push ebp
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
call ebx
mov ecx, dword [esp + 0x35c]
xor eax, eax
test ebp, ebp
pop ebp
pop ebx
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00469f7b
add esp, 0x350
ret
Function at 0x436140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b38b4]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x207
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.0046a470
mov eax, dword [0x4dc388]
add esp, 0xc
test eax, eax
jg 0x436182
mov byte [0], 0
mov eax, dword [0x4dc388]
shl eax, 8
or eax, dword [0x4dc38c]
shl eax, 8
or eax, dword [0x4dc390]
cmp eax, 0x60100
jl 0x436201
lea ecx, [esp]
push ecx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x436201
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4361b5
mov edx, dword [0x492660]
mov ecx, dword [0x492664]
mov dword [eax], edx
mov edx, dword [0x492668]
mov dword [eax + 4], ecx
mov cl, byte [0x49266c]
mov dword [eax + 8], edx
lea edx, [esp]
push edx
mov byte [eax + 0xc], cl
call fcn.004329a0
add esp, 4
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00469f7b
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.00469f7b
add esp, 0x20c
ret

Function at 0x436e90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x4dc388]
mov dword [esp], 1
mov dword [esp + 8], 4
test eax, eax
jg 0x436eb7
mov byte [0], 0
mov eax, dword [0x4dc388]
shl eax, 8
or eax, dword [0x4dc38c]
shl eax, 8
or eax, dword [0x4dc390]
cmp eax, 0x60000
jge 0x436ed6
xor eax, eax
add esp, 0xc
ret
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x436f28
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x436f1d
mov dword [esp], 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [esp], eax
setne al
add esp, 0xc
ret