joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420d40
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x56d638
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0xd
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ecx, [esi + 0x4f0]
call fcn.00438760
push 0
push 0
push 0xd
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ecx, [esi + 0x480]
call fcn.00438760
push 0
push 0
push 0xd
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ecx, [esi + 0x410]
call fcn.00438760
push 0
push 0
push 0xd
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ecx, [esi + 0x3a0]
call fcn.00438760
push 0
push 0
push 0xd
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ecx, [esi + 0x560]
call fcn.00438760
push 0
push 0
push 0xd
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ecx, [esi + 0x640]
call fcn.00438760
push 0
push 0
push 0xd
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ecx, [esi + 0x720]
call fcn.00438760
push 1
push 0xff00
push 0x14
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea edi, [esi + 0x5d0]
mov ecx, edi
call fcn.00438760
push 1
push 0xff
push 0x14
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ebx, [esi + 0x6b0]
mov ecx, ebx
call fcn.00438760
push 1
push 0
push 0x14
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea ebp, [esi + 0x790]
mov ecx, ebp
call fcn.00438760
push str.00000
mov ecx, edi
call fcn.00452880
push str.00000
mov ecx, ebx
call fcn.00452880
push str.00000
mov ecx, ebp
call fcn.00452880
xor ebx, ebx
push ebx
push ebx
push 0xd
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x582bac
call fcn.00409120
lea edi, [esi + 0x330]
mov ecx, edi
call fcn.00438760
mov eax, dword [esi + 0x33a0]
push eax
mov ecx, edi
call fcn.00452880
mov ebp, vtable.CFont.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebp
push 0x582bac
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x190
push ebx
push ebx
push 6
push 0xfffffffffffffff3
mov dword [esp + 0x60], ebx
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
lea ecx, [esp + 0x1c]
call fcn.00455751
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x1234]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push ecx
call edi
mov edx, dword [esp + 0x1c]
push 1
push edx
mov eax, dword [esi + 0x820]
push 0x30
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.0045577d
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x18], ebp
call fcn.00404370
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x44a0d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56fe16
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CGridColumn.0
call fcn.0045e1b2
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x44a11c
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov dword [esp + 0x1c], edi
call fcn.0045e1b2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x44a149
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x34], eax
mov ebx, 1
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], bl
call fcn.0046a10b
mov ecx, dword [esp + 0x24]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], 0x40
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0x2710
mov dword [esi + 0x20], edi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x453127
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57081b
call fcn.004962b5
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x45314c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x453192
lea ecx, [ebp - 0x10]
call fcn.00403dd0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00450df7
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004019f0
mov eax, esi
call fcn.0049638d
ret 8

Function at 0x45d1b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x45d1fc
call fcn.004543dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45d1fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45d218
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0045cd2d
mov esi, eax
test edi, edi
je 0x45d216
test ebx, ebx
je 0x45d216
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x46630e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x466332
cmp dword [edi + 0x54], 0
jne 0x466332
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004543dd
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004662cf
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4669bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x466a05
call fcn.004543dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x466a05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x466a48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x466a31
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x466a31
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x466a45
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46c379
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5723f3
call fcn.004962b5
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409120
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x46c3db
call fcn.004537dc
cmp eax, 1
jne 0x46c3db
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x592d70
push eax
call fcn.0041a250
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041a0d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004019f0
mov dword [ebp + 8], SysFreeString
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004019f0
mov eax, esi
call fcn.0049638d
ret 0x10

Function at 0x46c404
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x57241e
call fcn.004962b5
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409120
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x46c466
call fcn.004537dc
cmp eax, 1
jne 0x46c466
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x592d70
push eax
call fcn.0041a250
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041a0d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004019f0
mov dword [ebp + 8], SysFreeString
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004019f0
mov eax, esi
call fcn.0049638d
ret 0x14
Function at 0x46c492
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x572449
call fcn.004962b5
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00409120
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x46c4f4
call fcn.004537dc
cmp eax, 1
jne 0x46c4f4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x592d70
push eax
call fcn.0041a250
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041a0d0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004019f0
mov dword [ebp + 8], SysFreeString
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004019f0
mov eax, esi
call fcn.0049638d
ret 8

Function at 0x4933c9
Capabilities:
Encode data using xor

Disassembly:
lea edx, [0x53051f15]
test edx, ebx
push 0xffff23e4
imul edi, edi, 0x47582de7
pop ebx
and ebp, edx
xor ebx, 0xda84
mov dh, dl
sub esi, ebx
sub esi, 0x6a1
lea ebp, [0x9be020d2]
cmp al, ch
inc ecx
cmp esi, 0x24c
jae 0x4933ad
pop ebx
adc eax, 0x85983620
cmp edi, ecx
test cl, ah
push 0x1cb
pop edx
or ah, 0xcd
sub edx, 0x1cb
lea edi, [0xebdac2e3]
inc ebp
dec al
add edx, 0xf51
dec eax
sub edx, 0xf50
imul esi, ebx
xor al, bh
cmp ebx, 0x644c
jbe 0x493422
invalid
dec ecx
cmp edx, 0xd53
jb 0x4933fd
movd mm0, ebx
bswap edi
test bl, 0x94
cmp ecx, 0x601b
movd ecx, mm0
mov edi, ecx
jo 0x493441
inc eax
add ecx, 0x173158
xchg bl, bl
sub dh, 0xe1
movsx edi, si
mov al, 0x1b
and ebp, ebp
push ecx
imul eax, ecx
adc dh, cl
imul ebp, ebx, 0x7b89ec5d
add esi, edi
dec ebp
ret

Function at 0x493eee
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d480c]
jne 0x493ef8
repz ret
jmp fcn.004a197c
Function at 0x4adbe3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0049bf1c
and dword [ebp - 4], 0
cmp dword [0x5daf78], 0
mov ebx, eax
jne 0x4adc94
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4add45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4add45
push eax
call fcn.0049beaa
mov dword [esp], 0x597e10
push edi
mov dword [0x5daf78], eax
call esi
push eax
call fcn.0049beaa
mov dword [esp], 0x597dfc
push edi
mov dword [0x5daf7c], eax
call esi
push eax
call fcn.0049beaa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5daf80], eax
call esi
push eax
call fcn.0049beaa
pop ecx
mov dword [0x5daf88], eax
test eax, eax
je 0x4adc94
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049beaa
pop ecx
mov dword [0x5daf84], eax
mov eax, dword [0x5daf84]
cmp eax, ebx
je 0x4adcec
cmp dword [0x5daf88], ebx
je 0x4adcec
push eax
call fcn.0049bf25
push dword [0x5daf88]
mov esi, eax
call fcn.0049bf25
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4adcec
test edi, edi
je 0x4adcec
call esi
test eax, eax
je 0x4adce3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4adce3
test byte [ebp - 0xc], 1
jne 0x4adcec
or dword [ebp + 0x10], 0x200000
jmp 0x4add25
mov eax, dword [0x5daf7c]
cmp eax, ebx
je 0x4add25
push eax
call fcn.0049bf25
pop ecx
test eax, eax
je 0x4add25
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4add25
mov eax, dword [0x5daf80]
cmp eax, ebx
je 0x4add25
push eax
call fcn.0049bf25
pop ecx
test eax, eax
je 0x4add25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5daf78]
call fcn.0049bf25
pop ecx
test eax, eax
je 0x4add45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4add47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c5510
Capabilities:
Get file size

Disassembly:
push ecx
mov ecx, dword [ecx + 0x1b8]
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c553d
or eax, eax
or edx, esi
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.004952c0
xor ecx, ecx
add eax, esi
adc edx, ecx
pop esi
pop ecx
ret
Function at 0x4c6410
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x458
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x454], eax
mov eax, dword [esp + 0x464]
push ebp
push str.Floppy
push eax
call fcn.00494ad6
mov ecx, dword [esp + 0x46c]
add esp, 8
neg eax
sbb eax, eax
xor ebp, ebp
neg eax
sub ecx, 2
mov dword [esp + 0xc], ebp
je 0x4c6480
sub ecx, 1
je 0x4c648c
sub ecx, 2
je 0x4c6476
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.00493eee
add esp, 0x458
ret 0xc
mov dword [esp + 4], 0x59d7b0
jmp 0x4c6494
mov dword [esp + 4], 0x59d790
cmp eax, ebp
jne 0x4c6494
mov dword [esp + 4], 0x59d7a0
push esi
mov esi, dword [esp + 8]
push edi
push 0x12
push ebp
push ebp
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c64b3
xor eax, eax
jmp 0x4c65ec
push ebx
lea eax, [esp + 0x48]
push eax
push ebp
push esi
push ebp
push edi
mov dword [esp + 0x5c], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x4c65ce
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
lea esp, [esp]
push ebp
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
lea edx, [esp + 0x58]
push edx
push edi
mov dword [esp + 0x2c], ebp
call ebx
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x4c65aa
cmp ecx, 0x400
ja 0x4c65aa
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
push edx
push ecx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x58]
push ecx
push edi
mov dword [esp + 0x7c], 6
mov dword [esp + 0x44], 0x1c
call ebx
test eax, eax
je 0x4c65aa
push ebp
push ebp
push 3
push ebp
push 3
push ebp
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c65aa
push ebp
lea eax, [esp + 0x20]
push eax
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push ebp
push ebp
push 0x2d1080
push esi
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c65a3
mov edx, dword [esp + 0x46c]
cmp edx, dword [esp + 0x24]
je 0x4c65d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x48]
push ecx
inc eax
push eax
push edx
push ebp
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x4c64e0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x4c65eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x40]
pop ebx
mov ecx, dword [esp + 0x460]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00493eee
add esp, 0x458
ret 0xc
Function at 0x4c7610
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
sub esp, 0x23c
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [0x59d7f8]
mov edx, dword [0x59d7f0]
mov dword [esp + 0x18], eax
mov ax, word [0x59d7f4]
mov word [esp + 0x14], ax
mov eax, dword [0x59d7e8]
push ebx
mov ebx, ecx
mov ecx, dword [0x59d7fc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x248]
mov dword [esp + 0x14], edx
mov edx, dword [0x59d7e4]
mov dword [esp + 0x20], ecx
mov ecx, dword [str..X:]
push ebp
mov ebp, dword [esp + 0x248]
and eax, 0xffdf
mov dword [esp + 0x2c], edx
push edi
mov dword [esp + 0x2c], ecx
mov cx, word [0x59d7ec]
lea edx, [eax - 0x41]
or edi, 0xffffffff
mov word [esp + 0x38], cx
mov dword [esp + 0xc], 0
cmp dx, 0x19
ja 0x4c7770
push esi
push 0
push 0
push 3
push 0
push 3
mov word [esp + 0x3c], ax
mov word [esp + 0x34], ax
mov word [esp + 0x4c], ax
push 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c773d
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xc
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c76f9
mov edi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x4c773d
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0x104
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x28]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4c773d
lea eax, [esp + 0x40]
push eax
push esi
push edi
mov ecx, ebx
call fcn.004c6410
test eax, eax
jne 0x4c775a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x244]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493eee
add esp, 0x23c
ret 8
push 0
push 0x200
push ebp
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov eax, 1
jmp 0x4c773f
xor eax, eax
jmp 0x4c7740
Function at 0x4c8760
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x574a58
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov eax, dword [esp + 0x238]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4c8850
push 0x204
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x28], 0
call fcn.00493420
mov edx, dword [0x59d808]
mov ax, word [0x59d80c]
add esp, 0xc
mov dword [esp + 0x14], edx
mov word [esp + 0x18], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebp, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, eax
mov esi, 3
mov edx, 1
mov ecx, esi
shl edx, cl
test edi, edx
je 0x4c883e
lea eax, [esp + 0x14]
push eax
call ebx
cmp eax, 2
jne 0x4c883e
push 0x104
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call ebp
test eax, eax
jbe 0x4c883e
mov ecx, dword [esp + 0x238]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00494a43
add esp, 8
test eax, eax
je 0x4c889d
inc word [esp + 0x14]
inc esi
cmp esi, 0x1a
jl 0x4c87f7
mov eax, dword [esp + 0x238]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x230], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c8873
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00493eee
add esp, 0x220
ret
mov eax, dword [esp + 0x238]
movzx esi, word [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x230], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c88d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ax, si
jmp 0x4c8875
Function at 0x4d2d00
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57546d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 1
call fcn.0045e1b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d2d4e
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x20], 2
lea edi, [esi + 4]
call fcn.0045e1b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d2d7e
push 0x80004005
call fcn.004017e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esp + 0x28]
push ecx
mov byte [esp + 0x24], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d2daf
push eax
push 0x581258
mov ecx, esi
call fcn.00407240
jmp 0x4d2e0d
push 1
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
call fcn.00473d97
push 0x592da4
push eax
call fcn.00473bf2
mov bl, al
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2def
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4d2e01
push 0x592da4
lea ecx, [esp + 0x2c]
call fcn.0041f1f0
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0041a0d0
mov edx, dword [esp + 0x2c]
cmp dword [edx - 0xc], 0
mov ecx, edi
jne 0x4d2e27
push 3
push 0x5881f4
call fcn.00407240
jmp 0x4d2e31
lea eax, [esp + 0x2c]
push eax
call fcn.0041a0d0
mov eax, dword [esp + 0x30]
mov dword [esi + 8], eax
mov dword [esi + 0x10], 0
test eax, eax
je 0x4d2e68
push 0x20
call fcn.00450c27
add esp, 4
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], 4
test eax, eax
je 0x4d2e63
mov ecx, eax
call fcn.004054f0
jmp 0x4d2e65
xor eax, eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esi + 0xc], 0
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2e94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d2ebc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0xc