joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b28e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
adc ecx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x20]
push eax
push ecx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x42b2dc
push 0
push dword [ebp + 0x18]
and esi, 4
push dword [ebp + 0x1c]
or esi, 8
shr esi, 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x42b606
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx edx, word [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
and eax, 0x1000000
test edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x1c], edx
jne 0x42b63b
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
leave
ret
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bl, dl
add eax, esi
xor bl, 0xa
cmp esi, eax
push edi
mov dword [ebp - 8], eax
jae 0x42b6ba
mov edi, dword [ebp + 0x14]
jmp 0x42b65e
mov edx, dword [ebp + 0x1c]
mov ecx, esi
jmp 0x42b669
mov al, byte [esi]
inc esi
cmp bl, al
je 0x42b66e
cmp esi, dword [ebp - 8]
jb 0x42b662
cmp ecx, esi
mov eax, ecx
jae 0x42b67b
xor byte [eax], dl
inc eax
cmp eax, esi
jb 0x42b674
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 4]
push eax
push edi
mov eax, esi
sub eax, ecx
push eax
push ecx
push 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x42b6a2
cmp dword [ebp - 0xc], 0
je 0x42b6b5
xor eax, eax
jmp 0x42b6bd
add dword [ebp - 4], eax
dec eax
js 0x42b6b5
inc eax
mov cx, word [ebp + 0x1c]
xor word [edi], cx
inc edi
inc edi
dec eax
jne 0x42b6a9
cmp esi, dword [ebp - 8]
jb 0x42b65b
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ca8e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x7a
push edi
jbe 0x42cb42
cmp word [esi + 2], 0x3a
jne 0x42cb42
cmp word [esi + 4], 0
jne 0x42cb42
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ax, word [esi]
cmp ax, word [ebp - 0x208]
jne 0x42cb1b
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x42cb1b
cmp dword [ebp + 0xc], edi
jae 0x42cb00
mov eax, edi
jmp 0x42cb52
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
call fcn.0046c720
add esp, 0xc
lea eax, [edi - 1]
jmp 0x42cb52
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x42cb52
mov eax, dword [ebp + 0x10]
mov cx, word [esi]
and word [eax + 6], 0
push 3
mov word [eax], cx
mov word [eax + 2], 0x3a
mov word [eax + 4], 0x5c
pop eax
jmp 0x42cb52
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
pop edi
pop esi
leave
ret

Function at 0x42dd61
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp edx, esi
push edi
mov dword [ebp - 4], esi
jne 0x42ddb5
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x42dd93
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x42ddb5
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x42ddb0
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x42ddff
cmp edx, esi
je 0x42ddff
push 9
pop ecx
xor eax, eax
push 0x28
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [ebp - 0x1c]
jmp 0x42de02
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.0040296e
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x42de10
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 4]
push eax
movzx eax, word [0x496b68]
or eax, 0x2001b
push eax
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42df63
test byte [ebp + 0x10], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x42de62
push 0x480934
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x42de90
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c415
cmp dword [ebp - 0xc], esi
jne 0x42df4f
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x42deff
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x42deff
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x42def9
cmp word [edi], si
je 0x42defc
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x42defc
mov dword [ebp - 0xc], eax
dec ebx
jns 0x42debf
test byte [ebp + 0x10], 2
je 0x42df4d
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x42df4d
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x42df47
cmp word [edi], si
je 0x42df4a
push edi
push dword [ebp - 4]
call dword [0x496fd8]
cmp eax, esi
je 0x42df4a
mov dword [ebp - 0xc], eax
dec ebx
jns 0x42df0d
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0042704a
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x42eff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00403c6d
cmp dword [ebp - 8], ebx
je 0x42f035
push dword [ebp - 8]
call fcn.0042bdd8
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x42f039
jl 0x42f035
cmp esi, ebx
jae 0x42f039
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.0042c281
cmp edi, ebx
jl 0x42f083
jg 0x42f04b
cmp esi, ebx
jbe 0x42f083
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.0042c2c5
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp eax, edi
jl 0x42f07d
jg 0x42f07b
cmp ecx, esi
jbe 0x42f07d
mov ecx, esi
mov eax, dword [ebp - 4]
mov byte [ecx + eax], bl
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call fcn.0042c4b4
lea ecx, [ebp - 4]
call fcn.0042704a
lea ecx, [ebp - 8]
call fcn.0040296e
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42f5a6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov byte [ebp - 0x28], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00403c6d
cmp dword [ebp - 4], ebx
je 0x42f5fa
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00429600
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.0040296e
mov al, bl
pop ebx
leave
ret
Function at 0x42f7c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
xor eax, eax
push edi
inc eax
xor ebx, ebx
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov word [ebp - 0x21c], bx
call fcn.0042c415
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x42f81c
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x21c]
je 0x42f92c
cmp dword [ebp - 0xc], ebx
push esi
mov esi, 0xa0000000
mov dword [ebp - 8], ebx
je 0x42f82f
mov esi, 0xe0000000
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push esi
push dword [ebp + 0xc]
call dword [0x496ff8]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x42f882
cmp dword [ebp - 0xc], 1
jne 0x42f874
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
call dword [0x496ff8]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x42f848
cmp dword [ebp + 0x14], ebx
jne 0x42f882
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x42f91d
push edi
push dword [ebp + 0x14]
call dword [0x496ffc]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x42f8a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [0x497000]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42f8c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x42f90f
xor esi, esi
cmp dword [ebp - 0xc], ebx
mov edi, 0x200
jne 0x42f8d8
mov esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x497004]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x42f90f
cmp dword [ebp - 0xc], 2
jne 0x42f904
or esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x497004]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x42f90f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], ebx
je 0x42f91d
push dword [ebp - 8]
call dword [0x497008]
cmp dword [ebp + 0x14], ebx
pop esi
je 0x42f92c
push dword [ebp + 0x14]
call dword [0x497008]
lea ecx, [ebp - 0x10]
call fcn.0042704a
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x42f93b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
movzx eax, word [0x496b68]
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42f9e0
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0xffe
mov ecx, edi
mov dword [esi], 0xffa
call fcn.0042c2c5
mov eax, dword [edi]
push esi
mov byte [eax], bl
push dword [edi]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call ebx
cmp eax, 0xea
mov dword [ebp - 4], eax
jne 0x42f9cb
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 4
push eax
mov ecx, edi
call fcn.0042c2c5
push esi
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call ebx
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
cmp dword [ebp - 4], 0
je 0x42f9ee
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x42f9e9
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x42fa19
xor ecx, ecx
cmp dword [esi], ecx
jge 0x42f9f6
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [edi]
add eax, dword [esi]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.0042c2c5
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42fba3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
neg esi
sbb esi, esi
mov eax, 0x2000000
and esi, eax
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
add esi, eax
mov eax, dword [ebp + 0x14]
xor eax, 0xa
push edi
mov dword [ebp - 0x10], eax
call fcn.0040c61c
and dword [ebp + 8], 0
cmp dword [ebp + 0x14], 0
pop ecx
pop ecx
lea ecx, [edi + eax*2]
mov dword [ebp - 8], ecx
mov ebx, eax
mov dword [ebp + 0x10], edi
jne 0x42fbec
mov edi, ecx
jmp 0x42fc0f
cmp edi, dword [ebp - 8]
jae 0x42fcb1
mov dword [ebp + 0x10], edi
mov ax, word [edi]
inc edi
inc edi
cmp word [ebp - 0x10], ax
je 0x42fc08
cmp edi, dword [ebp - 8]
jb 0x42fbf8
mov ebx, edi
sub ebx, dword [ebp + 0x10]
sar ebx, 1
mov eax, dword [ebp + 0x10]
cmp eax, edi
jae 0x42fc23
mov cx, word [ebp + 0x14]
xor word [eax], cx
inc eax
inc eax
cmp eax, edi
jb 0x42fc16
push 0
push 0
push ebx
push dword [ebp + 0x10]
mov eax, 0x20804
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [eax + ecx + 1]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0042c43e
push dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*2]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push esi
mov eax, 0x20804
push eax
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov dword [ebp - 4], eax
lea eax, [ebx + ebx]
push eax
push 0
push dword [ebp + 0x10]
call fcn.0046c4e0
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jle 0x42fbec
add dword [ebp + 8], eax
dec eax
js 0x42fbec
lea ecx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dx, word [ebp + 0x14]
xor word [eax], dx
inc eax
inc eax
dec ecx
mov dword [ebp - 0xc], eax
jne 0x42fc9a
jmp 0x42fbec
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov dx, word [ebp + 0x14]
pop edi
mov word [ecx + esi*2], dx
mov eax, dword [eax]
pop esi
pop ebx
leave
ret
Function at 0x42fcc8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x209
lea ecx, [ebp - 4]
call fcn.0042c415
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push esi
xor edi, edi
push str.Device_
mov word [eax], di
call fcn.00427f14
add esp, 0xc
test al, al
jne 0x42fd2a
push 0xc
push esi
push str.DosDevices_
call fcn.00427f14
add esp, 0xc
test al, al
jne 0x42fd2a
cmp word [esi], di
je 0x42fd2e
cmp word [esi + 2], di
je 0x42fd2e
push 0x3a
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x42fd2e
or dword [ebp + 0x14], 1
push 0xb
push esi
push 0x4861f8
call fcn.00427f14
mov ebx, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x42fd52
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x42fd69
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call ebx
mov edi, eax
test edi, edi
jne 0x42fd7a
cmp byte [ebp + 0x18], al
jl 0x42fdc0
mov byte [ebp + 0x18], al
push 0x208
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x42fda2
cmp byte [ebp + 0x18], 0
jle 0x42fdc0
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x42fdc0
mov eax, dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov edi, eax
jl 0x42fdc0
test edi, edi
jne 0x42fdc0
mov byte [ebp + 0x18], 0xff
jmp 0x42fd52
lea ecx, [ebp - 4]
call fcn.0042704a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42fdcf
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
xor esi, esi
push esi
push 0x20000000
push 3
push esi
push 3
push 0x100080
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00403c6d
cmp dword [ebp - 4], esi
jne 0x42fe03
or esi, 0xffffffff
jmp 0x42fe32
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp - 4]
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42fdfe
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.0040296e
mov eax, esi
pop esi
leave
ret
Function at 0x42ffd6
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
movzx eax, word [ebp + 0x10]
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 0x10]
sar ebx, 0x10
push esi
and ebx, 0xffdf
cmp dword [ebp + 0xc], 0
push edi
mov dword [ebp + 0x10], eax
jne 0x430012
push 0x100000
lea ecx, [ebp - 0xc]
call fcn.0042c2c5
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
push 5
pop ecx
xor eax, eax
mov esi, 0x486220
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x1b
add eax, 4
pop edx
and word [eax + 4], 0
or ecx, 0xffffffff
mov word [eax + 2], cx
mov word [eax], cx
mov word [eax - 4], cx
mov word [eax - 2], cx
add eax, 0xa
dec edx
jne 0x430032
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x18], eax
xor edi, edi
xor eax, eax
cmp bx, 0x41
mov dword [ebp - 8], 0x19
jb 0x430078
cmp bx, 0x5a
ja 0x430078
movzx eax, bx
sub eax, 0x41
mov dword [ebp - 8], eax
movsx ecx, ax
cmp ecx, dword [ebp - 8]
jg 0x4301c8
lea esi, [eax + 0x41]
mov dword [ebp - 0x10], esi
mov edx, dword [ebp - 0x18]
xor eax, eax
inc eax
shl eax, cl
mov word [ebp - 0x38], si
test edx, eax
je 0x4301b5
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp + 8]
lea ebx, [ecx + eax*2]
lea eax, [ebp - 0x38]
push eax
mov word [ebx + 8], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
mov dword [ebp - 0x14], eax
je 0x4301b5
cmp eax, 3
je 0x4300cf
cmp eax, 2
je 0x4300cf
xor al, al
jmp 0x4300d1
mov al, 1
cmp dword [ebp + 0x10], 4
je 0x4300df
test al, al
je 0x4301b5
push edi
push 0x20000000
push 3
push edi
push 3
push 0x80000000
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00403c6d
cmp dword [ebp - 4], edi
jne 0x430110
lea ecx, [ebp - 4]
call fcn.0040296e
jmp 0x4301b5
mov esi, dword [ebp + 0xc]
push 0x90
push edi
push esi
mov dword [ebp - 0x1d0], edi
call fcn.0046c4e0
or dword [esi + 0x18], 0xffffffff
add esp, 0xc
push edi
lea eax, [ebp - 0x1d0]
push eax
push 0x90
push esi
push edi
push edi
push 0x70048
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x430155
mov ax, word [esi + 0x18]
mov word [ebx], ax
push edi
mov dword [ebp - 0x1d0], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or dword [esi + 4], 0xffffffff
push edi
lea eax, [ebp - 0x1d0]
push eax
push 0xc
push esi
push edi
push edi
push 0x2d1080
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43018d
mov ax, word [esi + 4]
mov word [ebx + 2], ax
cmp dword [ebp + 0x10], 4
jne 0x4301a2
push dword [ebp - 4]
push edi
call fcn.0042dd61
pop ecx
pop ecx
mov word [ebx + 6], ax
mov ax, word [ebp - 0x14]
lea ecx, [ebp - 4]
mov word [ebx + 4], ax
call fcn.0040296e
mov esi, dword [ebp - 0x10]
inc esi
lea eax, [esi - 0x41]
movsx ecx, ax
cmp ecx, dword [ebp - 8]
mov dword [ebp - 0x10], esi
jle 0x43008a
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0xc]
call fcn.0042704a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430474
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
ja 0x4304a1
cmp dword [ebp + 0x18], ebx
jbe 0x4304aa
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp eax, ebx
jne 0x4304b4
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, ebx
mov esi, dword [ebp + 8]
jg 0x4304c8
push dword [esi]
call fcn.004297d2
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
shl eax, 7
lea eax, [eax + edi - 1]
xor edx, edx
div edi
inc eax
inc eax
mov dword [ebp + 0x10], eax
add eax, 2
imul eax, edi
push eax
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.0046c4e0
xor eax, eax
push eax
push eax
push eax
push dword [esi]
mov dword [ebp + 0x14], eax
call fcn.00427e7e
add esp, 0x1c
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
cmp dword [ebp + 0x1c], ecx
ja 0x43053b
jb 0x43051c
cmp dword [ebp + 0x18], ecx
ja 0x43053b
mov eax, 0x1c2
cmp byte [eax + ebx], 0xee
jne 0x430531
mov edx, dword [eax + ebx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x430521
push ecx
push dword [ebp - 8]
mov eax, edi
push dword [ebp - 0xc]
cdq
push edx
push eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
call fcn.0046d500
push edx
push eax
push dword [esi]
call fcn.00427e7e
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
inc eax
imul eax, edi
push eax
lea eax, [ebx + edi]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
lea eax, [ebx + edi*2 + 0x10000]
mov dword [ebp + 0x10], eax
je 0x4305e5
push edi
push 0
push eax
call fcn.0046c4e0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x4305b5
jb 0x4305a4
cmp dword [eax], 2
jae 0x4305b5
mov ecx, dword [ebx + 0x220]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x224]
mov dword [eax + 4], ecx
push 0
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.0046d500
push edx
push eax
push dword [esi]
call fcn.00427e7e
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret