joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x61c]
sub esp, 0x61c
push 0xffffffffffffffff
push 0x48c708
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4b77c0]
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 0x425c69
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.0041f560
mov eax, dword [ebp - 0x14]
add esp, 0x20
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
cmp eax, edi
je 0x425d1a
mov dword [ebp - 0x24], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4abaa8
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x20], eax
call fcn.0046b8cf
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 0x425c87
cmp dword [ebp - 0x14], edi
je 0x425d1a
mov dword [ebp - 0x2c], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4abaa8
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x28], eax
call fcn.0046b8cf
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 0x14], 0
je 0x425d41
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x13
jne 0x425d41
push 0
lea ecx, [ebp]
call fcn.00425200
mov ebx, dword [ebp + 0x628]
mov byte [ebp - 4], 2
cmp ebx, 0x200
jb 0x425d08
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.0041fed0
add dword [esi + 8], 0x200
adc dword [esi + 0xc], 0
add edi, 0x200
sub ebx, 1
jne 0x425ce1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00424da0
mov eax, 0x425d1a
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.0046be7b
add ebp, 0x61c
mov esp, ebp
pop ebp
ret 8
push 0
push 0
call fcn.0046b8cf
int3
Function at 0x42b000
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x42b030
push eax
call fcn.00434ad0
add esp, 4
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 4]
dec eax
cmp eax, 1
mov dword [esp + 4], eax
jge 0x42b04c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
add esp, 0x10
ret
lea ecx, [eax*4]
push ecx
call fcn.0046bdb1
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [edx], eax
test eax, eax
jne 0x42b073
push str.OUTOFMEMORY
call fcn.00430610
add esp, 4
cmp dword [esp + 4], 0
mov dword [esp + 8], 0
jle 0x42b12c
push ebx
mov eax, 0xfffffffc
push ebp
sub eax, esi
push edi
lea ebx, [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b0a0
sub eax, edx
sar eax, 1
mov ebp, eax
lea edi, [ebp + 1]
push edi
call fcn.0046bdb1
mov esi, eax
add esp, 4
test esi, esi
jne 0x42b0d0
push str.OUTOFMEMORY
call fcn.00430610
add esp, 4
test ebp, ebp
jbe 0x42b0fd
mov eax, dword [ebx]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x42b100
push eax
call fcn.00434ad0
add esp, 4
call fcn.00430640
jmp 0x42b100
mov byte [esi], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
add ecx, ebx
mov dword [ecx + eax], esi
mov eax, dword [esp + 0x14]
inc eax
add ebx, 4
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jl 0x42b097
mov esi, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 4]
pop esi
add esp, 0x10
ret
Function at 0x42b5f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x110
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x10c], eax
push edi
mov edi, dword [esp + 0x118]
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.0046bf90
add esp, 0xc
cmp dword [esp + 0x11c], 0
push 0x104
jne 0x42b674
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
push 0
push 0x14b
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0046be7b
add esp, 0x110
ret
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42b687
sub eax, edx
je 0x42b725
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
push 0x158
push edi
call ebx
push 0
mov esi, eax
call fcn.0046e389
add esp, 4
mov dword [esp + 0x14], edx
cmp esi, 0xffffffff
jne 0x42b700
lea edx, [esp + 0x18]
push edx
push 0
push 0x143
push edi
mov ebp, eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x42b70a
push ebp
push esi
push 0x151
push edi
call ebx
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0046be7b
add esp, 0x110
ret
push eax
push esi
push 0x151
push edi
call ebx
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0046be7b
add esp, 0x110
ret
push 0
push 0
push 0x147
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x110]
pop edi
xor ecx, esp
call fcn.0046be7b
add esp, 0x110
ret
Function at 0x42b900
Capabilities:
Delete file

Disassembly:
sub esp, 0x364
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x360], eax
cmp dword [esp + 0x36c], 0
push edi
mov edi, dword [esp + 0x36c]
je 0x42b950
push str.History.xml
call fcn.00438120
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
mov ecx, dword [esp + 0x360]
xor ecx, esp
call fcn.0046be7b
add esp, 0x364
ret
push esi
push 0x48fa9c
push str.History.xml
call fcn.00438120
add esp, 4
push eax
call fcn.0046cbeb
mov esi, eax
add esp, 8
mov dword [esp + 8], esi
test esi, esi
je 0x42ba6e
push esi
call fcn.0045a8b0
push esi
push str._n_t_history_
call fcn.0046ca18
add esp, 0xc
xor esi, esi
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0042b750
mov dword [esp + esi*4 + 0x18], eax
inc esi
add esp, 0xc
cmp esi, 0x14
jl 0x42b990
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
xor ebp, ebp
push 0x103
lea ecx, [esp + 0x69]
push 0
push ecx
mov byte [esp + 0x70], 0
call fcn.0046bf90
mov esi, dword [esp + ebp*4 + 0x20]
add esp, 0xc
push 0
push esi
push 0x149
push edi
call ebx
cmp eax, 0x104
jae 0x42b9f0
lea edx, [esp + 0x64]
push edx
push esi
push 0x148
push edi
call ebx
cmp byte [esp + 0x64], 0
je 0x42ba44
push 0x207
lea eax, [esp + 0x16d]
push 0
push eax
mov byte [esp + 0x174], 0
call fcn.0046bf90
push 0x208
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0045a7e0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x180]
push eax
push str._n_t_t_volume__s__volume_
push ecx
call fcn.0046c8fc
add esp, 0x24
inc ebp
cmp ebp, 0x14
jl 0x42b9b3
mov esi, dword [esp + 0x10]
push esi
push str._n_t__history_
call fcn.0046ca18
push esi
call fcn.0045a8d0
push esi
call fcn.0046c880
add esp, 0x10
pop ebp
pop ebx
mov ecx, dword [esp + 0x368]
pop esi
pop edi
xor ecx, esp
call fcn.0046be7b
add esp, 0x364
ret

Function at 0x42bac0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x42baec
mov edx, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4b4958]
dec ecx
inc edx
test ecx, ecx
jne 0x42bad0
pop esi
not eax
ret

Function at 0x42bb60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
jmp 0x42bb70
movzx edx, byte [ecx + 0x4b4958]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4b4958]
movzx edx, byte [ecx + 0x4b4959]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4b4958]
movzx edx, byte [ecx + 0x4b495a]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4b4958]
movzx edx, byte [ecx + 0x4b495b]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4b4958]
add ecx, 4
cmp ecx, 0x400
jl 0x42bb70
xor ecx, ecx
not eax
cmp eax, 0x6fcf9e13
sete cl
push esi
push edi
mov edx, 0x4b4958
or eax, 0xffffffff
mov esi, ecx
mov ecx, 0x400
lea esp, [esp]
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4b4958]
dec ecx
inc edx
test ecx, ecx
jne 0x42bc00
not eax
xor edx, edx
cmp eax, 0x6fcf9e13
sete dl
pop edi
and edx, esi
mov eax, edx
pop esi
ret
Function at 0x430900
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x10c8
call fcn.0046be90
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x10c4], eax
mov eax, dword [esp + 0x10d0]
push ebx
mov ebx, dword [esp + 0x10d0]
push ebp
mov ebp, dword [esp + 0x10e0]
push esi
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xfffffffffffffff0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
and esi, 0xc00000
push 0x824
lea ecx, [esp + 0x90]
neg esi
push ecx
sbb esi, esi
push edi
inc esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebp
lea edx, [esp + 0x90]
push edx
push edi
call fcn.00430830
mov dword [esp + 0x20], eax
push ebp
lea eax, [esp + 0x9c]
push eax
push edi
call fcn.004308a0
add esp, 0x18
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebp, eax
mov dword [esp + 0x1c], ecx
test edx, edx
jl 0x430acf
cmp dword [esp + 0x10e4], 0
je 0x4309c6
cmp eax, edx
jle 0x430acf
sub ecx, dword [esp + 0x10]
sub eax, edx
lea edx, [esp + 0x30]
push edx
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
test esi, esi
je 0x4309f4
xor eax, eax
jmp 0x4309fc
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [esp + 0x3c]
sub ebx, eax
sub ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
sub ebx, dword [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x50]
push edx
push edi
mov dword [esp + 0x58], 0x3c
call dword [sym.imp.USER32.dll_GetWindowInfo]
mov al, byte [esp + 0x74]
test al, 1
je 0x430a3d
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
jmp 0x430a45
test al, 2
je 0x430a94
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
test eax, eax
jle 0x430a94
test esi, esi
je 0x430a55
xor edx, edx
jmp 0x430a63
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
sub ebp, dword [esp + 0x18]
push 1
push ecx
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x3c]
push ebp
sub ecx, ebx
push ecx
mov ecx, dword [esp + 0x30]
sub ecx, edx
sub ecx, dword [esp + 0x40]
add ecx, eax
push ecx
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x430ab1
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
sub ebp, dword [esp + 0x18]
push 6
push eax
push ebp
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x10d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046be7b
add esp, 0x10c8
ret
Function at 0x430ea0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [0x4dced8]
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push eax
push ecx
push edx
call fcn.00430e40
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 0x430f4f
test ebp, ebp
jne 0x430f4f
test ebx, ebx
jne 0x430f4f
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 0x430f34
fld1
fcomp qword [0x4b5110]
fnstsw ax
test ah, 5
jp 0x430f1c
mov edx, dword [esp + 0x1c]
push edx
call fcn.004307e0
mov ebp, eax
mov eax, dword [esp + 0x24]
push eax
jmp 0x430f45
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00430790
mov edx, dword [esp + 0x24]
push edx
mov ebp, eax
call fcn.00430790
jmp 0x430f4a
mov eax, dword [esp + 0x1c]
push eax
call fcn.00430790
mov ecx, dword [esp + 0x24]
mov ebp, eax
push ecx
call fcn.004307e0
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 0x430ff9
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
ret
mov edi, dword [esp + 0x10]
push edi
push 0
push 0x172
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x43101b
cmp eax, edi
je 0x43101b
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 0x431770
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax], 0
jne 0x43177c
xor eax, eax
ret
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4317ae
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x4317a0
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 0x431990
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x4b77c0]
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.0046be7b
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x16c
mov eax, dword [0x4b77c0]
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.0046beeb
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 0x493b68
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0046be7b
add esp, 0x16c
ret
Function at 0x433140
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x43317a
cmp dword [esp + 8], 0
jne 0x433174
mov eax, dword [0x4dce70]
push 0x30
push eax
push str.CAPSLOCK_ON
call fcn.0044c960
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 0x433200
Capabilities:
Get disk information

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, 0x19
jmp 0x433210
mov edx, 1
shl edx, cl
test eax, edx
je 0x433225
dec ecx
cmp ecx, 2
jg 0x433210
or eax, 0xffffffff
ret
mov eax, ecx
ret

Function at 0x433680
Capabilities:
Enumerate gui resources
Unmount volume via ioctl

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x218]
push ebx
push esi
mov esi, dword [esp + 0x21c]
lea edx, [esp + 0xc]
push edi
mov ebx, 0x1e
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4336b0
lea eax, [esp + 0x10]
push eax
call fcn.00430d20
lea ecx, [esp + 0x14]
push ecx
call fcn.004334f0
add esp, 8
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43370a
pop edi
pop esi
or eax, eax
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0046be7b
add esp, 0x210
ret
test edi, edi
jl 0x433724
push edi
push 0x431e90
mov dword [0x4d9928], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x433774
lea esp, [esp]
test ebx, ebx
jle 0x433774
push 0x32
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push esi
dec ebx
call edi
test eax, eax
je 0x433750
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0x90020
push esi
mov ebx, 0x1e
call edi
test eax, eax
jne 0x4337b8
test ebx, ebx
jle 0x4337bc
push 0x32
call ebp
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x90020
push esi
dec ebx
call edi
test eax, eax
je 0x433794
mov eax, esi
jmp 0x4337ca
test eax, eax
jne 0x4337b8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [esp + 0x21c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046be7b
add esp, 0x210
ret
Function at 0x433be0
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 0x433c06
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.0046bdb1
mov esi, eax
add esp, 4
test esi, esi
jne 0x433c34
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.0046bf90
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 0x433c60
push esi
call fcn.0046bcd4
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 0x433c70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4b77c0]
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 0x433cba
movsx ecx, byte [esp]
push ecx
call fcn.0046e17b
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0046be7b
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor al, al
call fcn.0046be7b
add esp, 0x108
ret

Function at 0x4342b0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4342d0
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4342ca
push SysReAllocStringLen
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x434330
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
cmp byte [ebx], 0x5c
je 0x434401
push 0x3a
push ebx
call fcn.0046e3f0
add esp, 8
test eax, eax
jne 0x434401
push str.Volume
push ebx
call fcn.0046c6d0
add esp, 8
cmp eax, ebx
je 0x434401
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 0x434395
sub eax, edx
cmp byte [esp + eax + 3], 0x5c
push esi
push edi
je 0x4343c2
lea edi, [esp + 0xc]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4343b0
mov cx, word [0x492e7c]
mov word [edi], cx
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4343c6
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4343d4
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.0046d760
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0046be7b
add esp, 0x20c
ret

Function at 0x434420
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 0x434505
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 0x4344a0
cmp dword [esp + 4], eax
je 0x4344a0
push str.SYS_AUTOMOUNT_DISABLED
call fcn.00433d10
mov eax, dword [esp + 4]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
cmp dword [0x4dce8c], 0xb
jne 0x4344ce
cmp dword [0x4dce98], 1
jge 0x4344ce
push str.SYS_ASSIGN_DRIVE_LETTER
call fcn.00433d10
mov eax, dword [esp + 4]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
ret
cmp dword [0x4dce74], 0
jne 0x4344fb
mov ecx, dword [0x4dce70]
push 0x30
push ecx
push str.DEVICE_NOT_READY_ERROR
call fcn.0044c960
mov edx, dword [0x4dce6c]
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 0x4347b0
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 0x4347ca
test al, 1
je 0x4347ca
mov eax, 1
ret
xor eax, eax
ret