joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447238
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x447254
cmp dword [esi + 4], 0
je 0x447281
test byte [ebx + 0x55], 1
jne 0x447273
mov eax, ebx
call fcn.004455f4
test eax, eax
jne 0x447273
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x447391
mov edx, esi
mov eax, ebx
call fcn.00446c40
jmp 0x447391
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44738a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00449290
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00442a1c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00447238
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00449290
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447391
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e534
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a9f2c]
cmp byte [eax + 0xc], 0
je 0x44e6a1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e69a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ad584], 0
jne 0x44e588
push 0x44e6a8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44e6b0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad584], eax
cmp dword [0x4a7688], 0
jne 0x44e683
push 0x44e6c0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a7688], eax
cmp dword [0x4a7688], 0
je 0x44e683
push 0x44e6cc
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad588], eax
push 0x44e6dc
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad58c], eax
push 0x44e6f0
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad590], eax
push 0x44e708
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad594], eax
push 0x44e720
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad598], eax
push 0x44e734
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad59c], eax
push 0x44e74c
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad5a0], eax
push 0x44e764
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad5a4], eax
push 0x44e780
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad5a8], eax
push 0x44e78c
mov eax, dword [0x4a7688]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4ad5ac], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e6a1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x453ce8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453d3c]
test si, 4
je 0x453cfd
or bl, 1
test si, 8
je 0x453d07
or bl, 4
test si, 1
je 0x453d11
or bl, 8
test si, 2
je 0x453d1b
or bl, 0x10
test si, 0x10
je 0x453d25
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453d34
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453d40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453d7c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453d5a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453d69
or bl, 4
test esi, 0x20000000
je 0x453d74
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45b4c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b4d2
add esp, 0xfffffff0
call fcn.00403e80
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042018c
mov eax, dword [0x4a990c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b864
mov eax, dword [0x4a991c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b870
mov eax, ebx
call fcn.0045b87c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.00403b2c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.00403b2c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.00403b2c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.00403b2c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.00403b2c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x457314
push eax
push 0
push 0
mov eax, dword [0x4a9bb8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x425140]
call fcn.00426994
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x425140]
call fcn.00426994
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x425140]
call fcn.00426994
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045bcac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bb7c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bb7c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bb7c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b60f
call fcn.00403ed8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45b960
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bb0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45baec
mov dl, 1
mov eax, dword [0x416d68]
call fcn.00403b2c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a60
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45badb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044e890
test al, al
je 0x45bace
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45bb1c
lea eax, [ebp - 0x254]
call fcn.0040a4d8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bace
xor eax, eax
push ebp
push 0x45bac7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45bb54
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bab0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cd0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45bab0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bace
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45b9d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041b7cc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb12
lea eax, [ebp - 0x260]
call fcn.00404a60
ret

Function at 0x45c484
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4ad5bc]
cmp byte [eax + 0xad], 0
jne 0x45c4f5
cmp dword [0x4ad5d4], 0
jne 0x45c4b6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c440
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ad5d4], eax
cmp dword [0x4ad5d0], 0
jne 0x45c4d1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4ad5d0], eax
cmp dword [0x4ad5d8], 0
jne 0x45c4f5
push esp
push 0
push 0
push 0x45c3e4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4ad5d8], eax
pop edx
ret
Function at 0x45c6c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c6df
add esp, 0xfffffff0
call fcn.00403e80
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042018c
mov eax, dword [0x4a9b8c]
cmp word [eax + 2], 0
jne 0x45c707
mov eax, dword [0x4a9b8c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e220
mov eax, dword [0x4a9ce0]
cmp word [eax + 2], 0
jne 0x45c721
mov eax, dword [0x4a9ce0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e42c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.00403b2c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.00403b2c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4166fc]
call fcn.00403b2c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x425c50]
call fcn.0042d5b8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45c8d8
mov eax, dword [0x4a99e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d98c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45eafc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a99e0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040df80
test eax, eax
je 0x45c828
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409e7c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dfb4
test eax, eax
je 0x45c83c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404cd0
mov byte [ebx + 0xd4], 0
push ebx
push 0x45dd68
call fcn.00421308
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4a9764]
cmp byte [eax], 0
jne 0x45c88d
mov eax, ebx
call fcn.0045ca1c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045ecd8
mov eax, ebx
call fcn.0045f838
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c8cd
call fcn.00403ed8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cc9c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ad5bc]
cmp dword [eax + 0x30], 0
je 0x45cd46
cmp dword [ebx + 0x94], 0
jne 0x45cd40
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45cc2c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45cd40
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45cd06
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45cd40
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418df8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45cd15
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45da60
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45da95
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b50
jmp 0x45daa2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ab4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45eebc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ef2a
mov eax, esi
call fcn.00449604
test al, al
je 0x45ef2a
mov eax, dword [ebx + 0x84]
call fcn.00449290
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ef2a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45ef1e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00449290
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00441688
jmp 0x45ef2a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045ecf8
pop esi
pop ebx
ret
Function at 0x462760
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46278e
mov eax, ebx
call fcn.00463214
cmp dword [ebx + 0x40], 0
je 0x462787
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4627ff
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4627f1
cmp dword [ebx + 8], 0
je 0x4627b0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4627c2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4627f1
cmp dword [ebx + 8], 0
je 0x4627a3
cmp eax, 3
je 0x4627d5
dec eax
jne 0x4627a3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4627a3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4627a3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46281d
cmp dword [ebx + 0x14], 0xcc
je 0x46281d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00462828
pop ebx
ret

Function at 0x475238
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00475850
test al, al
jne 0x475269
lea eax, [ebp - 0x214]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
jmp 0x475277
lea eax, [ebp - 0x214]
mov edx, dword [ebp - 4]
call fcn.00409ee8
lea eax, [ebp - 0x110]
push eax
mov al, byte [ebp - 5]
xor al, 1
and eax, 0x7f
push eax
push 0x4752ac
lea eax, [ebp - 0x214]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x110]
call fcn.0040a068
mov esp, ebp
pop ebp
ret
Function at 0x47532c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4753e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00409d04
mov byte [ebp - 5], 0
mov edx, dword [ebp - 0x1c]
mov eax, 0x4753fc
call fcn.00405068
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4753cf
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x475384
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
inc edx
lea eax, [ebp - 0x1c]
call fcn.00404fc4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4753ad
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x15]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
call fcn.00409f10
lea eax, [ebp - 0x15]
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4753ec
lea eax, [ebp - 0x1c]
call fcn.00404a60
ret

Function at 0x475400
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4754ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
lea edx, [ebp - 0x128]
mov eax, dword [ebp - 4]
call fcn.00409bcc
lea eax, [ebp - 0x128]
mov edx, 0x47550c
call fcn.00404d2c
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x124]
call fcn.00409ee8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4754d4
xor eax, eax
push ebp
push 0x4754b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
imul dword [ebp - 0x14]
imul dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4754d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4754f4
lea eax, [ebp - 0x128]
call fcn.00404a60
ret
Function at 0x47565c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475827
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00409bcc
cmp dword [ebp - 0x18], 0
jne 0x4756ad
lea eax, [ebp - 0x1c]
call fcn.00409e18
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00409bcc
lea eax, [ebp - 0x18]
mov edx, 0x475840
call fcn.00404d2c
mov eax, dword [ebp - 4]
call fcn.00475dd0
sub al, 2
jb 0x4756cd
je 0x4756e0
jmp case.default.0x475740
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp case.default.0x475740
mov edx, dword [ebp - 4]
mov eax, 0x47584c
call fcn.00405068
dec eax
jne 0x475723
push ebp
call fcn.004755fc
pop ecx
test al, al
je 0x475710
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00475510
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp case.default.0x475740
mov dword [ebp - 0x10], 0x7fffffff
mov dword [ebp - 0xc], 0
jmp case.default.0x475740
mov eax, dword [ebp - 0x18]
call fcn.00404f24
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 6
ja case.default.0x475740
jmp dword [eax*4 + 0x475747]
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp case.default.0x475740
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp case.default.0x475740
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
jmp case.default.0x475740
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00475400
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp case.default.0x475740
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004755d8
pop ecx
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp case.default.0x475740
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00475400
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp case.default.0x475740
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00475510
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4757e8
cmp dword [ebp - 0x10], 0xffffffff
jb 0x4757fd
jmp 0x4757ea
jl 0x4757fd
cmp dword [ebp - 0xc], 0
jne 0x4757fb
cmp dword [ebp - 0x10], 0x7fffffff
jbe 0x475806
jmp 0x4757fd
jle 0x475806
mov dword [ebp - 8], 0x7fffffff
jmp 0x47580c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47582e
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404a84
ret