joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402db0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432880
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x44dd94]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402df0
sub eax, edx
cmp eax, 2
push 0x105
lea eax, [ebp - 0x11c]
jae 0x402e7f
mov ecx, dword [0x47671c]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x40a
push ecx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x32c]
push ecx
call fcn.0040ebb0
add esp, 0xc
cmp dword [ebp - 0x330], 0
je 0x402f9b
mov edx, dword [0x47671c]
push 0x3ef
push edx
call esi
push eax
call fcn.00402800
add esp, 4
test ax, ax
je 0x402e89
cmp dword [ebp + 0xc], 0
jne 0x402fae
push str.SELECT_FREE_DRIVE
jmp 0x402fa6
push esi
push eax
call fcn.00419120
add esp, 0xc
lea ecx, [ebp - 0x11c]
push 0x5c
push ecx
call fcn.00418b30
add esp, 8
test eax, eax
je 0x402f9b
push str.Partition0
push eax
call fcn.00419634
add esp, 8
test eax, eax
je 0x402f9b
mov ecx, dword [0x452e8c]
lea edx, [ebp - 0x396]
push edx
mov dword [ebp - 4], 0
call fcn.00409510
mov ecx, 0x17
mov esi, eax
mov edi, 0x452c50
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp dword [0x452c56], 0
je 0x402f69
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x11c]
push 0x435404
push ecx
call fcn.00418d29
add esp, 0xc
cmp eax, 1
je 0x402f23
cmp dword [ebp + 0xc], 0
jne 0x402fae
push str.INVALID_PATH
call fcn.0040f500
jmp 0x402fab
mov edx, dword [ebp - 0x334]
push edx
push 0x4353e4
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.00418c10
call fcn.0040eda0
mov ecx, dword [0x47671c]
push 1
push ecx
lea edx, [ebp - 0x224]
push edx
call fcn.00413fc0
add esp, 0x1c
mov esi, eax
call fcn.0040edd0
cmp esi, 2
je 0x402f70
mov eax, 1
jmp 0x402fb0
cmp dword [ebp + 0xc], 0
jne 0x402fae
push str.MOUNT_WITHOUT_PBA_VOL_ON_ACTIVE_SYSENC_DRIVE
jmp 0x402fa6
cmp dword [ebp + 0xc], 0
jne 0x402fae
push str.NO_SYSENC_PARTITION_SELECTED
call fcn.0040f4a0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041851b
mov esp, ebp
pop ebp
ret

Function at 0x4080c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432f3b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44dd94]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
call fcn.004082b0
cmp dword [esi + 0x30], 0x10
jb 0x408107
mov eax, dword [esi + 0x1c]
push eax
call fcn.00417d54
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x409a90
Capabilities:
Delete file

Disassembly:
cmp dword [esi + 0x18], 0x10
push edi
lea edi, [esi + 4]
jb 0x409a9e
mov eax, dword [edi]
jmp 0x409aa0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x18], 0x10
jb 0x409ab8
mov eax, dword [edi]
push eax
call fcn.00417d54
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [edi], 0
pop edi
ret

Function at 0x40a3f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x44dd94]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
mov esi, dword [esp + 0x118]
push 0x104
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40a449
mov dword [esp + 4], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x448828
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x10], eax
call fcn.004180e9
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a462
sub eax, edx
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00401ba0
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041851b
add esp, 0x110
ret 4

Function at 0x40a4a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x44dd94]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
mov esi, dword [esp + 0x118]
lea eax, [esp + 0xc]
push eax
push 0x104
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40a528
cmp eax, 0x104
ja 0x40a528
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a4f8
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00401ba0
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041851b
add esp, 0x110
ret 4
push 0x448860
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], vtable.TrueCrypt::ParameterIncorrect.0
mov dword [esp + 0x10], str.TrueCrypt::BootEncryption::GetTempPathA:715
call fcn.004180e9
int3
Function at 0x40bdd0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x61c]
sub esp, 0x61c
push 0xffffffffffffffff
push 0x433628
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44dd94]
xor eax, ebp
mov dword [ebp + 0x618], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x624]
mov edi, dword [ebp + 0x628]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
cmp byte [esi], bl
je 0x40be79
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [esi + 8]
push edi
push edx
push ecx
push eax
movzx eax, byte [esi + 0x14]
lea edx, [esi + 0x18]
push edx
push eax
push 1
call fcn.00409260
mov eax, dword [ebp - 0x14]
add esp, 0x20
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
cmp eax, edi
je 0x40bf2a
mov dword [ebp - 0x24], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x448828
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x20], eax
call fcn.004180e9
push ebx
lea edx, [ebp - 0x14]
push edx
push edi
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40be97
cmp dword [ebp - 0x14], edi
je 0x40bf2a
mov dword [ebp - 0x2c], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x448828
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x28], eax
call fcn.004180e9
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0x14], 0
je 0x40bf51
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x13
jne 0x40bf51
push 0
lea ecx, [ebp]
call fcn.0040b540
mov ebx, dword [ebp + 0x628]
mov byte [ebp - 4], 2
cmp ebx, 0x200
jb 0x40bf18
mov edi, dword [ebp - 0x18]
shr ebx, 9
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edi
push eax
push ecx
lea ecx, [ebp]
call fcn.00409530
add dword [esi + 8], 0x200
adc dword [esi + 0xc], 0
add edi, 0x200
sub ebx, 1
jne 0x40bef1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040b1b0
mov eax, 0x40bf2a
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.0041851b
add ebp, 0x61c
mov esp, ebp
pop ebp
ret 8
push 0
push 0
call fcn.004180e9
int3
Function at 0x40ee90
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x44dd94]
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.0041851b
add esp, 0x10
ret

Function at 0x40f3a0
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 0x40f3c6
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.00419293
mov esi, eax
add esp, 4
test esi, esi
jne 0x40f3f4
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.004188d0
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 0x40f420
push esi
call fcn.004186f8
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 0x40f430
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x44dd94]
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 0x40f47a
movsx ecx, byte [esp]
push ecx
call fcn.004194fa
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041851b
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor al, al
call fcn.0041851b
add esp, 0x108
ret
Function at 0x40f6a0
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 0x40f785
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 0x40f720
cmp dword [esp + 4], eax
je 0x40f720
push str.SYS_AUTOMOUNT_DISABLED
call fcn.0040f4a0
mov eax, dword [esp + 4]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
cmp dword [0x47673c], 0xb
jne 0x40f74e
cmp dword [0x476748], 1
jge 0x40f74e
push str.SYS_ASSIGN_DRIVE_LETTER
call fcn.0040f4a0
mov eax, dword [esp + 4]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
cmp dword [0x476724], 0
jne 0x40f77b
mov ecx, dword [0x476720]
push 0x30
push ecx
push str.DEVICE_NOT_READY_ERROR
call fcn.00414100
mov edx, dword [0x47671c]
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 0x40f790
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 0x40f7aa
test al, 1
je 0x40f7aa
mov eax, 1
ret
xor eax, eax
ret

Function at 0x40f7b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
mov eax, dword [0x44dd94]
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 0x40f7f7
xor eax, eax
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0041851b
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 0x40f7e0
mov eax, dword [esp]
mov ecx, dword [esp + 0x10c]
shr eax, 0x13
xor ecx, esp
and eax, 1
call fcn.0041851b
add esp, 0x110
ret

Function at 0x40f910
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x476780]
test eax, eax
jne 0x40f969
push str.GlobalTrueCrypt_Driver_Setup
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x476780], eax
mov ecx, dword [0x476780]
test ecx, ecx
je 0x40f966
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40f969
mov edx, dword [0x476780]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x476780]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x476780], 0
xor eax, eax
ret
mov eax, 1
ret
Function at 0x40f9b0
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 0x40fa29
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 0x40fa29
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 0x40fa29
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40fa66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x40fa66
mov ebp, dword [esp + 0x18]
push ebp
call fcn.0040f840
mov eax, dword [0x476720]
add esp, 4
push 0x10
push eax
push str.DRIVER_INSTALL_FAILED
call fcn.00414100
add esp, 4
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebp, dword [esp + 0x10]
jmp 0x40fa6b
mov ebp, 1
test esi, esi
je 0x40fa72
push esi
call ebx
test edi, edi
je 0x40fa79
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x40fa90
Capabilities:
Create service
Delete service
Start service

Disassembly:
sub esp, 0x350
mov eax, dword [0x44dd94]
xor eax, esp
mov dword [esp + 0x34c], eax
lea eax, [esp]
push eax
push str.Start
push str.SYSTEMCurrentControlSetServices_truecrypt
call fcn.00414130
add esp, 0xc
test eax, eax
je 0x40fade
cmp dword [esp], 0
jne 0x40fade
mov eax, 0x1e
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.0041851b
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.00418b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fb20
mov eax, 0x2e
mov word [esp + 0x148], ax
lea esi, [esp + 0x149]
call fcn.0040f650
mov edx, str._truecrypt.sys
test eax, eax
je 0x40fb33
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 0x40fb35
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40fb90
mov eax, dword [0x476720]
push 0x10
push eax
push str.DRIVER_NOT_FOUND
call fcn.00414100
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.0041851b
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 0x40fc0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40fbf0
mov ecx, dword [0x476720]
push 0x10
push ecx
push str.ADMIN_PRIVILEGES_DRIVER
call fcn.00414100
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.0041851b
add esp, 0x350
ret
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.0041851b
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 0x40fc3f
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 0x40fc91
push edi
call ebx
pop ebx
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.0041851b
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.0041851b
add esp, 0x350
ret
Function at 0x410180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x476740]
mov dword [esp], 1
mov dword [esp + 8], 4
test eax, eax
jg 0x4101a7
mov byte [0], 0
mov eax, dword [0x476740]
shl eax, 8
or eax, dword [0x476744]
shl eax, 8
or eax, dword [0x476748]
cmp eax, 0x60000
jge 0x4101c6
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 0x410218
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 0x41020d
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
Function at 0x410230
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x44dd94]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [0x476754], 0
jne 0x410383
mov eax, dword [0x44bf9c]
push 0
cmp eax, 0xffffffff
je 0x41029d
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push 0
push 0x222064
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4103cd
mov eax, 1
mov dword [0x476754], eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041851b
add esp, 0x214
ret
push 0
push 3
push 0
push 3
push 0
push str..SageDisks
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41039d
push 0x207
lea edx, [esp + 0xd]
push 0
push edx
mov byte [esp + 0x14], 0
call fcn.004188d0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x410383
lea eax, [esp + 8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4102f4
mov ecx, dword [str.TrueCrypt_]
mov edx, dword [0x435da0]
mov dword [eax], ecx
mov ecx, dword [0x435da4]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea eax, [esp + 8]
dec eax
jmp 0x410320
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410320
mov edx, dword [str.System_Encryption.xml]
mov ecx, dword [0x435ff8]
mov dword [eax], edx
mov edx, dword [0x435ffc]
mov dword [eax + 4], ecx
mov ecx, dword [0x436000]
mov dword [eax + 8], edx
mov edx, dword [0x436004]
mov dword [eax + 0xc], ecx
mov cx, word [0x436008]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
push edx
mov word [eax + 0x14], cx
call fcn.0040f2c0
add esp, 4
test eax, eax
je 0x410383
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4103cd
call fcn.00410180
test eax, eax
je 0x4103cd
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041851b
add esp, 0x214
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallTrueCrypt
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410383
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.0041851b
add esp, 0x214
ret
Function at 0x4103f0
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
push edi
call fcn.00410230
test eax, eax
je 0x410455
push 0x208
push 0x4767c8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x4767c8
call fcn.00418b30
mov byte [eax + 1], 0
mov eax, dword [esp + 0x14]
add esp, 8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410426
mov edi, 0x4767c8
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410437
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 0x4767c8
pop esi
ret
push 0x4767c8
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4104df
mov eax, 0x4767c8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410475
mov ecx, dword [str.TrueCrypt_]
mov edx, dword [0x435da0]
mov dword [eax], ecx
mov ecx, dword [0x435da4]
push 0
mov dword [eax + 4], edx
push 0x4767c8
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0xc]
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4104b0
mov edi, 0x4767c8
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4104c1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 0x4767c8
pop esi
ret
pop edi
mov byte [0x4767c8], 0
mov eax, 0x4767c8
pop esi
ret

Function at 0x4104f0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1008
call fcn.00418d50
mov eax, dword [0x44dd94]
xor eax, esp
mov dword [esp + 0x1004], eax
mov al, byte [esp + 0x100c]
push edi
mov edi, dword [esp + 0x1014]
add al, 0x41
mov byte [esp + 4], al
mov byte [esp + 5], 0x3a
mov byte [esp + 6], 0
test edi, edi
je 0x41056c
cmp dword [0x476724], 0
jne 0x4105ef
mov ecx, dword [0x476720]
push 0x34
push ecx
push str.FILESYS_REPAIR_CONFIRM_BACKUP
call fcn.00414100
mov edx, dword [0x47671c]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x4105ef
mov eax, str.REPAIRING_FS
jmp 0x410571
mov eax, str.CHECKING_FS
push esi
lea ecx, [esp + 8]
push ecx
push eax
call fcn.00414100
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 4
push eax
lea edx, [esp + 0x14]
push edx
call esi
add esp, 0xc
mov eax, str._C_echo__s__chkdsk__hs__F__X__pause
test edi, edi
jne 0x41059f
mov eax, str._C_echo__s__chkdsk__hs__pause
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x818]
push eax
call esi
add esp, 0x10
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
pop esi
test eax, eax
jne 0x4105d0
call fcn.00410180
test eax, eax
mov eax, 0x436038
jne 0x4105d5
mov eax, str.open
push 5
push 0
lea ecx, [esp + 0x810]
push ecx
push str.cmd.exe
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x1008]
pop edi
xor ecx, esp
call fcn.0041851b
add esp, 0x1008
ret