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

Disassembly:
sub esp, 0x110
mov eax, dword [0x4b77c0]
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 0x434817
xor eax, eax
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0046be7b
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 0x434800
mov eax, dword [esp]
mov ecx, dword [esp + 0x10c]
shr eax, 0x13
xor ecx, esp
and eax, 1
call fcn.0046be7b
add esp, 0x110
ret

Function at 0x434d80
Capabilities:
Hide graphical window

Disassembly:
cmp dword [0x4dcf04], 0
jne 0x434dc9
mov eax, dword [esp + 4]
mov ecx, dword [0x4dced8]
push 0
push 0x434ce0
push eax
push 0x1399
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 1
push eax
mov dword [0x4dcf04], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x4dcf04]
push 0x1f4
push edx
call fcn.00430de0
add esp, 8
ret

Function at 0x434dd0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x4dcec8]
test eax, eax
jne 0x434e29
push str.GlobalTrueCrypt_System_Encryption_Wizard
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4dcec8], eax
mov ecx, dword [0x4dcec8]
test ecx, ecx
je 0x434e26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x434e29
mov edx, dword [0x4dcec8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4dcec8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dcec8], 0
xor eax, eax
ret
mov eax, 1
ret

Function at 0x434e70
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x4dcecc]
test eax, eax
jne 0x434ec9
push str.GlobalTrueCrypt_In_Place_Encryption_Wizard
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4dcecc], eax
mov ecx, dword [0x4dcecc]
test ecx, ecx
je 0x434ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x434ec9
mov edx, dword [0x4dcecc]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4dcecc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dcecc], 0
xor eax, eax
ret
mov eax, 1
ret

Function at 0x434f40
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x4dced0]
test eax, eax
jne 0x434f99
push str.GlobalTrueCrypt_Driver_Setup
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4dced0], eax
mov ecx, dword [0x4dced0]
test ecx, ecx
je 0x434f96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x434f99
mov edx, dword [0x4dced0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4dced0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dced0], 0
xor eax, eax
ret
mov eax, 1
ret
Function at 0x434fe0
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 0x435016
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x435008
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 0x435030
Capabilities:
Check os version

Disassembly:
sub esp, 0x134
mov eax, dword [0x4b77c0]
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 0x43506e
push str.NO_OS_VER
call fcn.00430610
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov dword [0x4dce90], ecx
mov dword [0x4dce94], eax
cmp edx, 2
jne 0x435216
cmp ecx, 5
jne 0x435150
test eax, eax
jne 0x4350c4
mov dword [0x4dce8c], 7
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
cmp eax, 1
jne 0x4350e9
mov dword [0x4dce8c], 8
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
cmp eax, 2
jne 0x43529c
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
mov al, byte [esp + 0x9e]
cmp al, 3
je 0x435130
cmp al, 2
je 0x435130
mov dword [0x4dce8c], 9
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
mov dword [0x4dce8c], 0xa
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
cmp ecx, 6
jne 0x4351ed
test eax, eax
jne 0x4351bb
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x9c
call esi
mov al, byte [esp + 0x9e]
cmp al, 3
je 0x43519b
cmp al, 2
je 0x43519b
mov dword [0x4dce8c], 0xb
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
mov dword [0x4dce8c], 0xc
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
cmp eax, 1
jne 0x43529c
call fcn.004341a0
neg eax
sbb eax, eax
neg eax
add eax, 0xd
mov dword [0x4dce8c], eax
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
cmp ecx, 4
jne 0x43529c
mov dword [0x4dce8c], 6
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
cmp edx, 1
jne 0x43528e
cmp ecx, 4
jne 0x43529c
test eax, eax
jne 0x435244
mov dword [0x4dce8c], 2
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
cmp eax, 0xa
jne 0x435269
mov dword [0x4dce8c], 3
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
cmp eax, 0x5a
jne 0x43529c
mov dword [0x4dce8c], 4
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
mov dword [0x4dce8c], 1
test edx, edx
je 0x4352a6
mov dword [0x4dce8c], 0
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
call fcn.0046be7b
add esp, 0x134
ret
Function at 0x4352c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov edi, dword [0x4dcf68]
xor ebx, ebx
test edi, edi
jne 0x43530c
push str.Text
push 0x203
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 [0x4dcf64], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [0x4dcf68], edi
test edi, edi
je 0x43533c
mov eax, dword [0x4dcf64]
inc eax
push eax
call fcn.0046bdb1
mov esi, eax
add esp, 4
test esi, esi
je 0x435336
mov ebx, dword [0x4dcf64]
push ebx
push edi
push esi
call fcn.0046dd00
add esp, 0xc
mov byte [ebx + esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x435350
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 0x4353c9
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 0x4353c9
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 0x4353c9
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x435406
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x435406
mov ebp, dword [esp + 0x18]
push ebp
call fcn.00434ad0
mov eax, dword [0x4dce70]
add esp, 4
push 0x10
push eax
push str.DRIVER_INSTALL_FAILED
call fcn.0044c960
add esp, 4
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebp, dword [esp + 0x10]
jmp 0x43540b
mov ebp, 1
test esi, esi
je 0x435412
push esi
call ebx
test edi, edi
je 0x435419
push edi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x435430
Capabilities:
Create service
Delete service
Start service

Disassembly:
sub esp, 0x350
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x34c], eax
lea eax, [esp]
push eax
push str.Start
push str.SYSTEMCurrentControlSetServices_truecrypt
call fcn.00450840
add esp, 0xc
test eax, eax
je 0x43547e
cmp dword [esp], 0
jne 0x43547e
mov eax, 0x1e
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.0046be7b
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.0046e4b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4354c0
mov eax, 0x2e
mov word [esp + 0x148], ax
lea esi, [esp + 0x149]
call fcn.00434150
mov edx, str._truecrypt.sys
test eax, eax
je 0x4354d3
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 0x4354d5
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x435530
mov eax, dword [0x4dce70]
push 0x10
push eax
push str.DRIVER_NOT_FOUND
call fcn.0044c960
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.0046be7b
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 0x4355ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x435590
mov ecx, dword [0x4dce70]
push 0x10
push ecx
push str.ADMIN_PRIVILEGES_DRIVER
call fcn.0044c960
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.0046be7b
add esp, 0x350
ret
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.0046be7b
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 0x4355df
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 0x435631
push edi
call ebx
pop ebx
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.0046be7b
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.0046be7b
add esp, 0x350
ret
Function at 0x4366c0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x248
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x244], eax
push ebp
mov ebp, dword [esp + 0x254]
push esi
mov esi, dword [esp + 0x254]
lea edx, [esp + 0x44]
push edi
mov edi, dword [esp + 0x260]
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x5c
mov byte [esp + 0xf], 0
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x436708
lea eax, [esp + 0x48]
push eax
call fcn.00430d20
lea ecx, [esp + 0x4c]
push ecx
call fcn.004334f0
add esp, 8
add al, 0x41
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x10], al
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x4367ae
cmp dword [esp + 0x264], eax
jne 0x436791
mov eax, dword [0x4dce6c]
push eax
call fcn.00434ad0
add esp, 4
cmp dword [0x4dce74], 0
jne 0x436791
mov ecx, dword [0x4dce70]
push 0x10
push ecx
push str.CANNOT_CALC_SPACE
call fcn.0044c960
mov edx, dword [0x4dce6c]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0046be7b
add esp, 0x248
ret
test ebp, ebp
jne 0x4367ba
test edi, edi
je 0x436883
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00433380
add esp, 8
test eax, eax
jne 0x43680b
cmp dword [esp + 0x264], eax
jne 0x4367ee
mov ecx, dword [0x4dce6c]
push ecx
call fcn.00434ad0
push str.CANT_GET_VOLSIZE
call fcn.00433d70
add esp, 8
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0046be7b
add esp, 0x248
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test edi, edi
je 0x436828
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
sub ecx, eax
sbb esi, edx
mov dword [edi], ecx
mov dword [edi + 4], esi
test ebp, ebp
je 0x43688b
mov ecx, edx
mov esi, edx
and ecx, 0x7fffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
fild qword [esp + 0x10]
and esi, 0x80000000
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
fild qword [esp + 0x10]
pop edi
pop esi
fchs
faddp st(1)
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x4945c8]
fstp dword [ebp]
pop ebp
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0046be7b
add esp, 0x248
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0046be7b
add esp, 0x248
ret
Function at 0x4368b0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ecx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
xor eax, eax
test edi, edi
setne al
push 0
push 0
mov ebx, 1
add eax, 2
push eax
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4368fb
mov edx, dword [0x4dce6c]
push edx
call fcn.00434ad0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
test edi, edi
je 0x43690c
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43692f
cmp ebp, dword [esp + 0x20]
je 0x436951
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x436942
test edi, edi
je 0x436951
mov edx, dword [0x4dce6c]
push edx
call fcn.00434ad0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
test ebx, ebx
jne 0x43696e
test edi, edi
jne 0x43696e
mov eax, dword [esp + 0x14]
push eax
call fcn.0046bebb
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x436e00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b77c0]
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.0046bf90
mov eax, dword [0x4dce90]
add esp, 0xc
test eax, eax
jg 0x436e42
mov byte [0], 0
mov eax, dword [0x4dce90]
shl eax, 8
or eax, dword [0x4dce94]
shl eax, 8
or eax, dword [0x4dce98]
cmp eax, 0x60100
jl 0x436ec1
lea ecx, [esp]
push ecx
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x436ec1
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x436e75
mov edx, dword [0x4945e8]
mov ecx, dword [0x4945ec]
mov dword [eax], edx
mov edx, dword [0x4945f0]
mov dword [eax + 4], ecx
mov cl, byte [0x4945f4]
mov dword [eax + 8], edx
lea edx, [esp]
push edx
mov byte [eax + 0xc], cl
call fcn.004338f0
add esp, 4
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0046be7b
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.0046be7b
add esp, 0x20c
ret

Function at 0x4378f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [0x4dce90]
mov dword [esp], 1
mov dword [esp + 8], 4
test eax, eax
jg 0x437917
mov byte [0], 0
mov eax, dword [0x4dce90]
shl eax, 8
or eax, dword [0x4dce94]
shl eax, 8
or eax, dword [0x4dce98]
cmp eax, 0x60000
jge 0x437936
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 0x437988
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 0x43797d
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 0x437a30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [0x4dcea4], 0
jne 0x437b83
mov eax, dword [0x4b511c]
push 0
cmp eax, 0xffffffff
je 0x437a9d
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 0x437bcd
mov eax, 1
mov dword [0x4dcea4], eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046be7b
add esp, 0x214
ret
push 0
push 3
push 0
push 3
push 0
push str..TrueCrypt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x437b9d
push 0x207
lea edx, [esp + 0xd]
push 0
push edx
mov byte [esp + 0x14], 0
call fcn.0046bf90
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 0x437b83
lea eax, [esp + 8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x437af4
mov ecx, dword [str.TrueCrypt_]
mov edx, dword [0x494324]
mov dword [eax], ecx
mov ecx, dword [0x494328]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea eax, [esp + 8]
dec eax
jmp 0x437b20
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x437b20
mov edx, dword [str.System_Encryption.xml]
mov ecx, dword [0x48fac8]
mov dword [eax], edx
mov edx, dword [0x48facc]
mov dword [eax + 4], ecx
mov ecx, dword [0x48fad0]
mov dword [eax + 8], edx
mov edx, dword [0x48fad4]
mov dword [eax + 0xc], ecx
mov cx, word [0x48fad8]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
push edx
mov word [eax + 0x14], cx
call fcn.004338f0
add esp, 4
test eax, eax
je 0x437b83
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x437bcd
call fcn.004378f0
test eax, eax
je 0x437bcd
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046be7b
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 0x437b83
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.0046be7b
add esp, 0x214
ret
Function at 0x438120
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
push edi
call fcn.00437a30
test eax, eax
je 0x438185
push 0x208
push 0x4dd5d0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x4dd5d0
call fcn.0046e4b0
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 0x438156
mov edi, 0x4dd5d0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x438167
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, 0x4dd5d0
pop esi
ret
push 0x4dd5d0
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x43820f
mov eax, 0x4dd5d0
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4381a5
mov ecx, dword [str.TrueCrypt_]
mov edx, dword [0x494324]
mov dword [eax], ecx
mov ecx, dword [0x494328]
push 0
mov dword [eax + 4], edx
push 0x4dd5d0
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 0x4381e0
mov edi, 0x4dd5d0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4381f1
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, 0x4dd5d0
pop esi
ret
pop edi
mov byte [0x4dd5d0], 0
mov eax, 0x4dd5d0
pop esi
ret

Function at 0x4385f0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1008
call fcn.0046be90
mov eax, dword [0x4b77c0]
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 0x43866c
cmp dword [0x4dce74], 0
jne 0x4386ef
mov ecx, dword [0x4dce70]
push 0x34
push ecx
push str.FILESYS_REPAIR_CONFIRM_BACKUP
call fcn.0044c960
mov edx, dword [0x4dce6c]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x4386ef
mov eax, str.REPAIRING_FS
jmp 0x438671
mov eax, str.CHECKING_FS
push esi
lea ecx, [esp + 8]
push ecx
push eax
call fcn.0044c960
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 0x43869f
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 0x4386d0
call fcn.004378f0
test eax, eax
mov eax, str.runas
jne 0x4386d5
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.0046be7b
add esp, 0x1008
ret