joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43541b
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x435453
cmp dword [ebp + 0xc], 2
jb 0x435468
cmp dword [ebp + 0xc], 3
jbe 0x43544c
cmp dword [ebp + 0xc], 5
jne 0x435468
mov dword [ebp - 4], 0x4958f8
jmp 0x435453
mov dword [ebp - 4], 0x495908
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4acdc0]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x43546f
xor eax, eax
jmp 0x4355b4
push ebx
push edi
push 0x1c
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
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 edi, dword [sym.imp.SETUPAPI.DLL_SetupDiEnumDeviceInterfaces]
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0x58], ecx
call edi
test eax, eax
je 0x435590
mov ebx, dword [sym.imp.SETUPAPI.DLL_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp + 0x10]
call edi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
call ebx
cmp dword [ebp - 8], esi
je 0x435575
cmp dword [ebp - 8], 0x400
ja 0x435575
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.0047fd70
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x74], 0x1c
call ebx
test eax, eax
je 0x435575
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x435575
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x3c]
push ecx
push esi
push esi
push 0x2d1080
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x43556c
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x43559d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x4354af
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.DLL_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x4355b2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.DLL_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x60]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x435799
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.00435749
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
pop esi
ret 8
Function at 0x4357ba
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.DLL_IsRectEmpty]
test eax, eax
je 0x4357dc
xor eax, eax
jmp 0x4358a7
mov eax, dword [esi]
push edi
mov edi, dword [esi + 8]
push ebx
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov esi, dword [esi + 0xc]
push ebx
push 0x49aed4
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.DLL_CreateDCA]
mov ebx, dword [sym.imp.GDI32.DLL_GetDeviceCaps]
push 8
push eax
mov dword [ebp - 4], eax
call ebx
push 0xa
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call ebx
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jge 0x43581e
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], ecx
jge 0x435826
mov dword [ebp - 8], ecx
cmp edi, dword [ebp - 0x10]
jle 0x43582e
mov edi, dword [ebp - 0x10]
cmp esi, eax
jle 0x435834
mov esi, eax
sub edi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
cmp edi, ecx
mov ebx, dword [sym.imp.GDI32.DLL_DeleteDC]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], esi
jle 0x43589e
cmp esi, ecx
jle 0x43589e
push dword [ebp - 4]
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
push esi
push dword [ebp - 0x10]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.DLL_SelectObject]
push eax
push edi
call esi
push 0xcc0020
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 0
push 0
push edi
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [ebp - 0x14]
push edi
call esi
push edi
mov dword [ebp - 0x14], eax
call ebx
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43649f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x7a
push edi
jbe 0x43655d
cmp word [esi + 2], 0x3a
jne 0x43655d
cmp word [esi + 4], 0
jne 0x43655d
mov eax, dword [ebp + 0x14]
and word [ebp - 0x20c], 0
test eax, eax
je 0x4364df
and dword [eax], 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov ax, word [esi]
cmp ax, word [ebp - 0x20c]
jne 0x436536
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x436536
cmp dword [ebp + 0xc], edi
jae 0x43651b
mov eax, edi
jmp 0x43656d
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
call fcn.004102e0
add esp, 0xc
lea eax, [edi - 1]
jmp 0x43656d
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x43656d
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 0x43656d
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 0x437883
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 0x4378d7
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 0x4378b5
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x4378d7
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x4378d2
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x437921
cmp edx, esi
je 0x437921
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 0x437924
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402b27
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x437981
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
push 0x2001b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.004316e0
add esp, 0x10
cmp eax, esi
jne 0x437acd
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 0x4379cc
push 0x4949a4
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 0x4379fa
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00435d80
cmp dword [ebp - 0xc], esi
jne 0x437ab9
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x437a69
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x437a69
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 0x437a63
cmp word [edi], si
je 0x437a66
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
cmp eax, esi
je 0x437a66
mov dword [ebp - 0xc], eax
dec ebx
jns 0x437a29
test byte [ebp + 0x10], 2
je 0x437ab7
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x437ab7
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 0x437ab1
cmp word [edi], si
je 0x437ab4
push edi
push dword [ebp - 4]
call dword [0x4ad05c]
cmp eax, esi
je 0x437ab4
mov dword [ebp - 0xc], eax
dec ebx
jns 0x437a77
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0043092f
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x438e29
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.004045f9
cmp dword [ebp - 8], ebx
je 0x438e6e
push dword [ebp - 8]
call fcn.00474fa7
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x438e72
jl 0x438e6e
cmp esi, ebx
jae 0x438e72
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.00435c39
cmp edi, ebx
jl 0x438ebc
jg 0x438e84
cmp esi, ebx
jbe 0x438ebc
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.00435c7d
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 0x438eb6
jg 0x438eb4
cmp ecx, esi
jbe 0x438eb6
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.00435e1f
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 8]
call fcn.00402b27
pop edi
pop esi
pop ebx
leave
ret
Function at 0x439467
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push dword [ebp + 8]
call fcn.00474fa7
mov edi, eax
test edi, edi
pop ecx
jg 0x439484
xor eax, eax
jmp 0x4395fc
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edi
shr eax, 1
push esi
add eax, 0xc
push eax
mov ecx, ebx
call fcn.00435da9
mov esi, dword [ebx]
or dword [ebp - 8], 0xffffffff
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, dword [ebp - 8]
test edi, edi
jle 0x4395f8
test eax, eax
je 0x4395f8
push 0xa
lea eax, [edi + esi]
push 0
push eax
call fcn.0047fd70
lea eax, [edi + 0xa]
add esp, 0xc
mov dword [ebp - 4], eax
push 2
push 0x4995a4
push esi
call fcn.004309b4
add esp, 0xc
test eax, eax
jne 0x4394f5
push edi
push esi
call fcn.0043459b
pop ecx
pop ecx
push 2
push 0x4995a0
push esi
call fcn.004309b4
add esp, 0xc
neg eax
sbb eax, eax
inc eax
cmp byte [esi], 0
je 0x439533
cmp byte [esi + 1], 0
jne 0x439533
push dword [ebp - 4]
lea eax, [esi + 2]
push esi
push eax
call fcn.00410296
add dword [ebp - 4], 2
add esp, 0xc
inc edi
xor eax, eax
inc edi
mov word [esi], 0xfeff
inc eax
test eax, eax
jne 0x439560
cmp byte [esi], al
jne 0x439569
cmp byte [esi + 1], al
je 0x439569
push dword [ebp - 4]
lea eax, [esi + 2]
push esi
push eax
call fcn.00410296
add esp, 0xc
inc edi
inc edi
add dword [ebp - 4], 2
mov word [esi], 0xfffe
jmp 0x4394d8
mov eax, edi
shr eax, 1
jmp 0x4395fa
mov eax, dword [ebx]
and dword [ebx], 0
push edi
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.00435da9
mov eax, dword [ebx]
mov cx, word [0x4995a0]
push 3
mov word [eax], cx
pop eax
push eax
push 0x4995a8
push esi
mov dword [ebp - 0xc], eax
call fcn.004309b4
add esp, 0xc
test eax, eax
je 0x4395c5
mov eax, dword [ebx]
push edi
inc eax
inc eax
push eax
push edi
push esi
push 8
push 0
call dword [0x4acb54]
mov edi, eax
xor eax, eax
test edi, edi
jle 0x4395c8
lea ecx, [ebp - 4]
call fcn.0043092f
lea eax, [edi + 1]
jmp 0x4395fa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx]
push edi
inc ecx
inc ecx
push ecx
sub edi, eax
push edi
add eax, esi
push eax
push 0
push 0xfde9
call dword [0x4acb54]
test eax, eax
jle 0x4395ea
lea esi, [eax + 1]
jmp 0x4395ec
xor esi, esi
lea ecx, [ebp - 4]
call fcn.0043092f
mov eax, esi
jmp 0x4395fa
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x439905
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.004045f9
cmp dword [ebp - 4], ebx
je 0x439959
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.0043356e
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.00402b27
mov al, bl
pop ebx
leave
ret
Function at 0x439b3f
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.00435d80
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x439b96
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 0x439ca6
cmp dword [ebp - 0xc], ebx
push esi
mov esi, 0xa0000000
mov dword [ebp - 8], ebx
je 0x439ba9
mov esi, 0xe0000000
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4ad080]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x439bfc
cmp dword [ebp - 0xc], 1
jne 0x439bee
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 [0x4ad080]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x439bc2
cmp dword [ebp + 0x14], ebx
jne 0x439bfc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x439c97
push edi
push dword [ebp + 0x14]
call dword [0x4ad084]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x439c23
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [0x4ad088]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x439c3f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x439c89
xor esi, esi
cmp dword [ebp - 0xc], ebx
mov edi, 0x200
jne 0x439c52
mov esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4ad08c]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x439c89
cmp dword [ebp - 0xc], 2
jne 0x439c7e
or esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4ad08c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x439c89
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 8], ebx
je 0x439c97
push dword [ebp - 8]
call dword [0x4ad090]
cmp dword [ebp + 0x14], ebx
pop esi
je 0x439ca6
push dword [ebp + 0x14]
call dword [0x4ad090]
lea ecx, [ebp - 0x10]
call fcn.0043092f
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x439eeb
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 [0x4acb6c]
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 0x439f90
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0xffe
mov ecx, edi
mov dword [esi], 0xffa
call fcn.00435c7d
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 0x439f7b
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 4
push eax
mov ecx, edi
call fcn.00435c7d
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 0x439f9e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x439f99
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x439fc9
xor ecx, ecx
cmp dword [esi], ecx
jge 0x439fa6
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.00435c7d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a153
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x43a185
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.00435d80
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push 0x49b1ec
mov word [eax], bx
call fcn.004318b1
add esp, 0xc
test al, al
jne 0x43a1de
push 0xc
push edi
push 0x49b1dc
call fcn.004318b1
add esp, 0xc
test al, al
jne 0x43a1de
cmp word [edi], bx
je 0x43a1e2
cmp word [edi + 2], bx
je 0x43a1e2
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.DLL_StrChrW]
test eax, eax
je 0x43a1e2
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x49b1d0
call fcn.004318b1
mov ebx, dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x43a206
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x43a22d
cmp byte [ebp + 0x18], 0
je 0x43a218
xor eax, eax
mov ax, word [esi]
push eax
call fcn.004339a6
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x43a23e
cmp byte [ebp + 0x18], al
jl 0x43a28a
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
jmp 0x43a266
cmp byte [ebp + 0x18], 0
jle 0x43a28a
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x43a28a
mov eax, dword [ebp + 0x14]
push edi
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 esi, eax
jl 0x43a28a
test esi, esi
jne 0x43a28a
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x43a206
lea ecx, [ebp - 4]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x43a299
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.004045f9
cmp dword [ebp - 4], esi
jne 0x43a2cd
or esi, 0xffffffff
jmp 0x43a308
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 0x43a2c8
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x43a305
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402b27
mov eax, esi
pop esi
leave
ret
Function at 0x43a849
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 0x43a876
cmp dword [ebp + 0x18], ebx
jbe 0x43a87f
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp eax, ebx
jne 0x43a889
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, ebx
mov esi, dword [ebp + 8]
jg 0x43a89d
push dword [esi]
call fcn.00433ad8
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.0047fd70
xor eax, eax
push eax
push eax
push eax
push dword [esi]
mov dword [ebp + 0x14], eax
call fcn.0043181b
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 0x43a910
jb 0x43a8f1
cmp dword [ebp + 0x18], ecx
ja 0x43a910
mov eax, 0x1c2
cmp byte [eax + ebx], 0xee
jne 0x43a906
mov edx, dword [eax + ebx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x43a8f6
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.0047fe80
push edx
push eax
push dword [esi]
call fcn.0043181b
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 0x43a9ba
push edi
push 0
push eax
call fcn.0047fd70
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x43a98a
jb 0x43a979
cmp dword [eax], 2
jae 0x43a98a
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.0047fe80
push edx
push eax
push dword [esi]
call fcn.0043181b
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