joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409d00
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, ecx
push esi
mov ebx, edx
call edi
test eax, eax
jne 0x409d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409d81
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x409d3f
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x409d81
test bl, 2
je 0x409d5a
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push 4
push ecx
push esi
call fcn.00404070
push esi
call edi
test eax, eax
jne 0x409d81
test bl, 1
je 0x409d78
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4

Function at 0x409d90
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, ecx
push esi
mov ebx, edx
call edi
test eax, eax
jne 0x409e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x409e11
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 5
je 0x409dcf
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
test eax, eax
jne 0x409e11
test bl, 2
je 0x409dea
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
push 5
push ecx
push esi
call fcn.00404070
push esi
call edi
test eax, eax
jne 0x409e11
test bl, 1
je 0x409e08
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4
Function at 0x40b800
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e080
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edx, ecx
mov dword [ebp - 0x78], edx
mov ecx, dword [ebx + 8]
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x74], ecx
mov word [ebp - 0x1e], ax
mov ax, word [ebx + 0xc]
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x2e], xmm0
movlpd qword [ebp - 0x26], xmm0
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], ax
movups xmmword [ebp - 0x70], xmm0
test edx, edx
je 0x40b8ac
xor eax, eax
cmp word [edx], ax
je 0x40b8ac
nop
inc eax
cmp word [edx + eax*2], 0
jne 0x40b8a0
test eax, eax
jne 0x40b8b3
mov dword [ebp - 0x78], 0
test esi, esi
je 0x40b8cc
xor eax, eax
cmp word [esi], ax
je 0x40b8cc
nop
inc eax
cmp word [esi + eax*2], 0
jne 0x40b8c0
test eax, eax
jne 0x40b8ce
xor esi, esi
test ecx, ecx
je 0x40b8ec
xor eax, eax
cmp word [ecx], ax
je 0x40b8ec
nop dword [eax]
inc eax
cmp word [ecx + eax*2], 0
jne 0x40b8e0
test eax, eax
jne 0x40b8f3
mov dword [ebp - 0x74], 0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
movq qword [ebp - 0x88], xmm0
xor edi, edi
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x88], edi
mov byte [ebp - 0x80], 1
mov dword [ebp - 4], edi
test esi, esi
je 0x40b98b
push 0xfa02
mov dword [ebp - 0x84], edi
call fcn.0046b90c
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x7c], edi
xor ecx, ecx
mov word [edi + 0xfa00], ax
cmp word [esi], ax
je 0x40b957
nop word [eax + eax]
inc ecx
cmp word [esi + ecx*2], ax
jne 0x40b950
cmp ecx, 0x7d00
jle 0x40b966
mov ecx, 0x7d00
jmp 0x40b96a
test ecx, ecx
jle 0x40b983
mov edx, edi
sub esi, edi
mov edi, ecx
mov ax, word [edx + esi]
lea edx, [edx + 2]
mov word [edx - 2], ax
sub edi, 1
jne 0x40b970
mov edi, dword [ebp - 0x7c]
xor eax, eax
mov esi, edi
mov word [edi + ecx*2], ax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x74]
push 0
push 0
push 0
push 0
push 0
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40b9b2
xor esi, esi
jmp 0x40b9be
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x70]
test edi, edi
je 0x40b9cb
push edi
call fcn.0046b303
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x40b9f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x40]
movlpd qword [ebp - 0x20], xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40ba6b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x40ba98
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c410
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x4b5200]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 7
mov edi, ecx
mov dword [esp + 0x24], 0
push 0
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x40c45d
or esi, 0xffffffff
jmp 0x40c462
cmp esi, 0xffffffff
jne 0x40c48e
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x40c49a
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40c49a
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, 0xffffffff
je 0x40c4b2
test esi, esi
je 0x40c4b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret
Function at 0x40efc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e24d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b5200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x230]
test ecx, ecx
jne 0x40f008
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x248]
shr eax, 2
test al, 1
jne 0x40f02e
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40f02e
push 0
push dword [esi + 0x230]
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x10], 1
mov dword [ebp - 4], 0
push 0x20a
mov dword [ebp - 0x14], 0
call fcn.0046b90c
add esp, 4
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], ebx
push 0x104
mov word [ebx + 0x208], ax
push ebx
mov word [ebx], ax
push dword [esi + 0x230]
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esi + 0x3c], 0
je 0x40f0c7
mov edi, dword [esi + 0x40]
test edi, edi
je 0x40f0c7
cmp edi, 1
jl 0x40f0c7
lea ebx, [edi + edi*8]
shl ebx, 3
nop
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40f0bb
cmp edi, dword [esi + 0x40]
jg 0x40f0bb
cmp dword [ebx + eax + 0xc], 0
je 0x40f0bb
push edi
mov ecx, esi
call fcn.00415ed0
dec edi
sub ebx, 0x48
cmp edi, 1
jge 0x40f0a0
mov ebx, dword [ebp - 0x18]
mov eax, dword [esi + 0x238]
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x40f0e0
push eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x23c]
test eax, eax
je 0x40f0ed
push eax
call ecx
mov eax, dword [esi + 0x1fc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x40f109
cmp dword [esi + 0x204], 4
je 0x40f109
push eax
call edi
mov eax, dword [esi + 0x200]
test eax, eax
je 0x40f116
push eax
call edi
mov eax, dword [esi + 0x1e0]
test eax, eax
je 0x40f123
push eax
call edi
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x40f134
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x260]
test eax, eax
je 0x40f145
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esi + 0x244]
test eax, eax
je 0x40f156
push eax
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov eax, dword [esi + 0x248]
mov ecx, dword [esi + 0x230]
shr eax, 2
test al, 1
jne 0x40f19e
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x248]
shr eax, 1
test al, 1
jne 0x40f1ab
xor eax, eax
cmp word [ebx], ax
je 0x40f1ab
inc eax
cmp word [ebx + eax*2], 0
jne 0x40f183
test eax, eax
je 0x40f1ab
push dword [esi + 0x11c]
push ebx
call dword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x40f1ab
push esi
push 0x40e170
push ecx
call dword [sym.imp.COMCTL32.dll_RemoveWindowSubclass]
push 0
mov ecx, esi
call fcn.0041ac10
push ebx
call fcn.0046b303
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4188b0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea eax, [edi + 0x40]
cmp esi, 0xffffffff
jne 0x4188d8
mov esi, dword [eax]
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x418af7
cmp esi, 1
jl 0x418af7
cmp esi, dword [eax]
jg 0x418af7
lea eax, [esi + esi*8]
shl eax, 3
mov dword [ebp - 0x3fc], eax
cmp dword [eax + ecx + 0xc], 0
je 0x418af7
cmp dword [eax + ecx], 0x26
jne 0x4189b9
push 0x3ac
lea eax, [ebp - 0x3e8]
push 0
push eax
call fcn.0046ce00
mov eax, dword [edi + 0x230]
add esp, 0xc
mov dword [ebp - 0x3f4], eax
xor eax, eax
mov dword [ebp - 0x3f8], 0x3bc
mov dword [ebp - 0x3f0], esi
mov dword [ebp - 0x3ec], 4
test ebx, ebx
je 0x418972
cmp word [ebx], ax
je 0x418968
nop dword [eax]
inc eax
cmp word [ebx + eax*2], 0
jne 0x418960
mov ecx, 0x7f
cmp eax, ecx
cmovg eax, ecx
push eax
push ebx
lea eax, [ebp - 0x3e0]
push 0x80
push eax
call fcn.0046e5a3
add esp, 0x10
mov dword [ebp - 0xd8], 3
lea eax, [ebp - 0x3f8]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x238], 0
jne 0x418a1b
push 0
push dword [edi + 0x11c]
push 0
push dword [edi + 0x230]
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SHDefExtractIconW
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0x238], eax
test eax, eax
je 0x418af7
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x3fc]
xorps xmm0, xmm0
add ecx, dword [edi + 0x3c]
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x34], 0x30
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
cmp dword [ecx], 0x1c
jne 0x418a98
push 0
push esi
push 0x419
mov dword [ebp - 0x30], 0x10
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x418af7
lea ecx, [ebp - 0x24]
push ecx
push eax
mov eax, dword [edi + 0x3c]
lea ecx, [esi + esi*8]
push 0x41d
push dword [eax + ecx*8 + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x418af7
mov dword [ebp - 0x28], esi
jmp 0x418aa5
mov dword [ebp - 0x30], 0x11
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x186a0
push 0
push 0x418
push dword [edi + 0x238]
call esi
mov eax, dword [edi + 0x11c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x432
push dword [edi + 0x238]
mov dword [ebp - 0x10], ebx
call esi
cmp eax, 1
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418b10
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
cmp eax, 0xffffffff
jne 0x418b23
mov eax, dword [edi + 0x40]
mov esi, dword [edi + 0x3c]
test esi, esi
je 0x418bc8
cmp eax, 1
jl 0x418bc8
cmp eax, dword [edi + 0x40]
jg 0x418bc8
lea ebx, [eax + eax*8]
cmp dword [esi + ebx*8 + 0xc], 0
je 0x418bc8
cmp dword [esi + ebx*8], 0x1c
mov ecx, dword [esi + ebx*8 + 4]
jne 0x418b88
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x419
push ecx
call esi
cmp eax, 0xffffffff
je 0x418bc8
push dword [ebp + 0xc]
push eax
mov eax, dword [edi + 0x3c]
push 0x433
push dword [eax + ebx*8 + 4]
call esi
pop edi
test eax, eax
pop esi
setne al
pop ebx
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x418bc8
mov eax, dword [edi + 0x3c]
push dword [eax + ebx*8 + 4]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x418bc8
push 2
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi]
sub dword [esi + 8], eax
mov eax, dword [esi + 4]
sub dword [esi + 0xc], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x41c8b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e5bd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b5200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x1c], 0
mov eax, dword [ebp + 8]
je 0x41ca64
cmp dword [ebx], 1
jl 0x41ca64
cmp eax, 0xfffffffe
jg 0x41ca64
cmp dword [ebx + 4], 2
jne 0x41c908
cmp eax, dword [ebx + 8]
je 0x41ca64
mov ecx, 0xffffff9c
cmp eax, ecx
cmovge ecx, eax
mov eax, dword [ebx + 0x38]
mov dword [ebp + 8], ecx
cmp eax, 0xffffffff
je 0x41c952
test eax, eax
je 0x41c952
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebx + 0x34], 1
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x41c952
cmp eax, 0xffffffff
je 0x41c952
push 0
push eax
call edi
cmp eax, 0x102
jne 0x41c952
push 0x1e
call esi
jmp 0x41c934
mov ecx, dword [ebx + 0xc]
mov edx, ecx
push dword [ebx + 0x18]
call fcn.00406430
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x1c]
push eax
push eax
push esi
push 0
push dword [ebx]
call fcn.004172d0
mov eax, dword [ebx]
mov edx, dword [ebx + 0x1c]
test eax, eax
jne 0x41c98e
mov eax, dword [edx + 0x230]
jmp 0x41c9ba
lea ecx, [edx + 0x40]
cmp eax, 0xffffffff
jne 0x41c998
mov eax, dword [ecx]
mov edx, dword [edx + 0x3c]
test edx, edx
je 0x41c9b8
cmp eax, 1
jl 0x41c9b8
cmp eax, dword [ecx]
jg 0x41c9b8
lea eax, [eax + eax*8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x41c9b8
mov eax, dword [edx + eax*8 + 4]
jmp 0x41c9ba
xor eax, eax
mov edx, dword [ebx + 0x18]
lea edi, [ebx + 0x20]
mov dword [edi], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x24], eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
push 0
movzx eax, dl
and edx, 0xff00
shl eax, 0x10
push 0
or ecx, eax
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0xc]
or ecx, edx
push edi
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
push 0x40e620
push 0
neg eax
mov dword [ebx + 0x28], ecx
push 0
mov dword [ebx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebx + 0x38]
mov edi, eax
cmp ecx, 0xffffffff
je 0x41ca21
test ecx, ecx
je 0x41ca21
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x38], edi
test edi, edi
jne 0x41ca2f
mov dword [ebx + 0x38], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 4], 2
mov edx, dword [eax + 0x230]
test ecx, ecx
je 0x41ca59
test edx, edx
je 0x41ca59
mov eax, dword [ecx]
push 1
push edx
push ecx
call dword [eax + 0x28]
test esi, esi
je 0x41ca64
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f0f0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e79d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0
push 0x4b00
mov dword [ebp - 4], 0
call fcn.0046b90c
push 0x4b00
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x28], ebx
call fcn.0046ce00
add esp, 0x10
mov dword [esi + 4], 0
lea ecx, [esi + 4]
push 0
push ecx
push 0x4b00
push ebx
push 0
push 0
push 0x70050
push dword [esi + 0x230]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f1f3
cmp dword [ebx + 4], 0
je 0x41f1f3
test edi, edi
je 0x41f18f
mov eax, dword [ebx]
mov dword [edi], eax
mov ecx, dword [ebp - 0x28]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], eax
test eax, eax
je 0x41f1f5
lea edi, [ecx + 0x30]
nop
mov eax, dword [edi]
test eax, eax
jne 0x41f1cf
cmp byte [edi + 0x20], al
jbe 0x41f1c1
cmp byte [edi + 0x22], al
je 0x41f1c1
inc ebx
add edi, 0x90
sub dword [ebp - 0x30], 1
jne 0x41f1b0
jmp 0x41f1f5
cmp eax, 1
jne 0x41f1c1
lea edx, [edi + 0x20]
mov esi, 0xc
lea eax, [ebp - 0x24]
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x41f1c0
add edx, 4
add eax, 4
sub esi, 4
jae 0x41f1e0
jmp 0x41f1c1
xor ebx, ebx
push dword [ebp - 0x28]
call fcn.0046b303
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 4
Function at 0x41f3f0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x230]
cmp eax, 0xffffffff
je 0x41f4f1
test eax, eax
je 0x41f4f1
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 4]
cmp edi, 0xc
jae 0x41f4b9
mov eax, dword [esi]
test eax, eax
je 0x41f42d
push eax
call fcn.0046b303
add esp, 4
push 0xc
call fcn.0046b90c
add esp, 4
mov dword [esi + 4], 0xc
mov edi, eax
lea ecx, [ebx + 4]
mov eax, dword [ebp + 8]
mov dword [esi], edi
push 0
push ecx
push 8
push edi
push 0xc
push edi
mov dword [edi], eax
mov dword [edi + 4], 0
push 0x2d1400
push dword [ebx + 0x230]
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f4f1
mov eax, dword [edi + 4]
test eax, eax
je 0x41f4f1
mov edi, 0xc
cmp eax, edi
jbe 0x41f4b9
mov ecx, dword [esi]
mov edi, eax
add eax, 0xa
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x41f49f
push ecx
call fcn.0046b303
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
call fcn.0046b90c
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push eax
mov dword [esi], eax
mov dword [esi + 4], ecx
call fcn.0046ce00
add esp, 0x10
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push 0
mov dword [eax], ecx
mov dword [eax + 4], 0
lea eax, [ebx + 4]
push eax
push edi
mov dword [eax], 0
mov ecx, dword [esi]
push ecx
push edi
push ecx
push 0x2d1400
push dword [ebx + 0x230]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4205c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e81d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4205ff
test eax, eax
setne al
jmp 0x42069c
push 0xc
call fcn.0046b90c
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x420659
test eax, eax
je 0x420659
push 0
lea eax, [esi + 4]
mov dword [edi], 8
push eax
push 0xc
push edi
push 0xc
push edi
mov dword [edi + 4], 0
push 0x2d1400
push dword [esi + 0x230]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x420659
xor eax, eax
cmp byte [edi + 8], al
setne al
mov dword [esi + 8], eax
cmp dword [esi + 8], 1
je 0x42067a
mov ecx, esi
call fcn.0041f220
test eax, eax
je 0x42067a
test byte [eax + 0x152], 1
je 0x42067a
mov dword [esi + 8], 1
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x42068b
mov dword [esi + 8], 0
xor eax, eax
cmp eax, 1
push edi
sete bl
call fcn.0046b303
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret
Function at 0x420d30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x420d5e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 4
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
movups xmm0, xmmword [0x4a0490]
mov ecx, dword [0x4a04c0]
mov edx, eax
mov dword [ebp - 0x20], ecx
xor eax, eax
mov cx, word [0x4a04c4]
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x1c], cx
xor ecx, ecx
movups xmm0, xmmword [0x4a04a0]
mov dword [ebp - 0xc], 0x5c
xor esi, esi
mov dword [ebp - 0x18], edx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0x3a0041
movups xmm0, xmmword [0x4a04b0]
mov word [ebp - 0xc], ax
mov dword [ebp - 0x14], ecx
movups xmmword [ebp - 0x30], xmm0
nop
mov ax, word [ebp + esi*2 - 0x50]
mov word [ebp - 0x10], ax
test ebx, edx
je 0x420de5
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00401a90
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x14], ecx
add edi, 0xc
inc esi
add ebx, ebx
cmp esi, 0x1a
jl 0x420dc0
mov eax, ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 4