joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4352ac
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 + 0x1f8], 0
je 0x4352c8
cmp dword [esi + 4], 0
je 0x4352f5
test byte [ebx + 0x55], 1
jne 0x4352e7
mov eax, ebx
call fcn.00433e4c
test eax, eax
jne 0x4352e7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x435405
mov edx, esi
mov eax, ebx
call fcn.00434dd0
jmp 0x435405
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 0x4353fe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043711c
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.00431ae8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004352ac
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.0043711c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435405
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 0x43ba94
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4531a0]
cmp byte [eax + 0xc], 0
je 0x43bc01
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43bbfa
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x454b64], 0
jne 0x43bae8
push 0x43bc08
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43bc10
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b64], eax
cmp dword [0x452b84], 0
jne 0x43bbe3
push 0x43bc20
call sub.kernel32.dll_LoadLibraryA
mov dword [0x452b84], eax
cmp dword [0x452b84], 0
je 0x43bbe3
push 0x43bc2c
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b68], eax
push 0x43bc3c
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b6c], eax
push 0x43bc50
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b70], eax
push 0x43bc68
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b74], eax
push 0x43bc80
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b78], eax
push 0x43bc94
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b7c], eax
push 0x43bcac
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b80], eax
push 0x43bcc4
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b84], eax
push 0x43bce0
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b88], eax
push 0x43bcec
mov eax, dword [0x452b84]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x454b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bc01
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43fa8c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e2c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43fadb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040409c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447218
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447268]
test si, 4
je 0x44722c
or bl, 1
test si, 8
je 0x447236
or bl, 4
test si, 1
je 0x447240
or bl, 8
test si, 2
je 0x44724a
or bl, 0x10
test si, 0x10
je 0x447254
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447263
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44726c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4472a4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447285
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447294
or bl, 4
test esi, 0x20000000
je 0x44729f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44d94c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44d95e
add esp, 0xfffffff0
call fcn.00403400
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041909c
mov eax, dword [0x452e78]
mov dword [eax + 4], ebx
mov dword [eax], 0x44dcf0
mov eax, dword [0x452e84]
mov dword [eax + 4], ebx
mov dword [eax], 0x44dcfc
mov eax, ebx
call fcn.0044dd08
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411394]
call fcn.004030c4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411394]
call fcn.004030c4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411394]
call fcn.004030c4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411394]
call fcn.004030c4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411394]
call fcn.004030c4
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, 0x44a124
push eax
push 0
push 0
mov eax, dword [0x452fc4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41aac8]
call fcn.0041bf0c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41aac8]
call fcn.0041bf0c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41aac8]
call fcn.0041bf0c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e128
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e004
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e004
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e004
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44da9b
call fcn.00403458
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44dde8
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 0x44df93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44df74
mov dl, 1
mov eax, dword [0x4117b0]
call fcn.004030c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e2c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44df63
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.0043bdf4
test al, al
je 0x44df56
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, 0x44dfa4
lea eax, [ebp - 0x254]
call fcn.004088fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44df56
xor eax, eax
push ebp
push 0x44df4f
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 0x44dfdc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44df38
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040409c
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 0x44df38
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040409c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44df56
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44de59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041528c
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 0x44df9a
lea eax, [ebp - 0x260]
call fcn.00403e2c
ret

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

Disassembly:
push ecx
mov eax, dword [0x454bb0]
cmp byte [eax + 0xa5], 0
jne 0x44e939
cmp dword [0x454bc8], 0
jne 0x44e8fa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e884
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x454bc8], eax
cmp dword [0x454bc4], 0
jne 0x44e915
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x454bc4], eax
cmp dword [0x454bcc], 0
jne 0x44e939
push esp
push 0
push 0
push 0x44e828
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x454bcc], eax
pop edx
ret
Function at 0x44ea30
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ea47
add esp, 0xfffffff0
call fcn.00403400
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041909c
mov eax, dword [0x452fb0]
cmp word [eax + 2], 0
jne 0x44ea6f
mov eax, dword [0x452fb0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450108
mov eax, dword [0x453058]
cmp word [eax + 2], 0
jne 0x44ea89
mov eax, dword [0x453058]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450300
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411394]
call fcn.004030c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411394]
call fcn.004030c4
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b278]
call fcn.00420ec0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ec10
mov eax, dword [0x452ed8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421290
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4508a0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x452ed8]
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.0040bf38
test eax, eax
je 0x44eb7e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004082f0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf60
test eax, eax
je 0x44eb92
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040409c
mov eax, dword [0x452ddc]
cmp byte [eax], 0
jne 0x44ebc6
mov eax, ebx
call fcn.0044ed38
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00450a7c
mov eax, ebx
call fcn.00451440
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ec06
call fcn.00403458
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44efb8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x454bb0]
cmp dword [eax + 0x30], 0
je 0x44f062
cmp dword [ebx + 0x94], 0
jne 0x44f05c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ef48
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f05c
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 0x44f022
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f05c
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.004136fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f031
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fbc4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44fbf9
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.00403f1c
jmp 0x44fc06
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e80
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450c58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450c99
mov eax, esi
call fcn.00437420
test al, al
je 0x450c99
mov eax, dword [ebx + 0x84]
call fcn.0043711c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450c99
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043711c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x406fc8
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566f2f
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46260c], eax
sub eax, eax
je 0x406ffc
jmp 0xa97b5888
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x77bee82c
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x77bee83c
xor ecx, ecx
jmp 0x77bee85a
cmp eax, 0x1a
jbe 0x77bee846
push 0x57
pop eax
pop ebp
ret
add al, 0x40
lea ecx, [ebp + 8]
mov byte [ebp + 8], al
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
mov eax, dword [ebp + 0xc]
push eax
lea edx, [eax + 4]
push edx
lea edx, [eax + 0xc]
push edx
add eax, 8
push eax
push ecx
call dword [sym.imp._CKERNEL.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x77bee87c
pop ebp
jmp dword [sym.imp._CKERNEL.dll_GetLastError]
xor eax, eax
pop ebp
ret

Function at 0x77bef355
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x77bef37a
call dword [sym.imp._CKERNEL.dll_GetLastError]
push eax
call fcn.77bef2d8
pop ecx
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x77bef39c
test byte [ebp + 0xc], 2
je 0x77bef39c
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
call sym.msvcrt.dll___doserrno
mov dword [eax], 5
jmp 0x77bef375
xor eax, eax
pop ebp
ret

Function at 0x77bef4ac
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x77be1308
call fcn.77c07420
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x77bef51b
cmp ebx, 0x1f
jg 0x77bef51b
push 7
call sym.msvcrt.dll__lock
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp._CKERNEL.dll_SetCurrentDirectoryA]
test eax, eax
je 0x77bef4f3
and dword [ebp - 0x20], 0
jmp 0x77bef504
call dword [sym.imp._CKERNEL.dll_GetLastError]
push eax
call fcn.77bef2d8
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.77bef512
mov eax, dword [ebp - 0x20]
jmp 0x77bef534
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
call sym.msvcrt.dll___doserrno
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.77c0745b
ret

Function at 0x77bef53f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x77bef56e
test byte [ebp + 0xc], 0x80
je 0x77bef55d
and eax, 0xfffffffe
jmp 0x77bef560
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp._CKERNEL.dll_SetFileAttributesA]
test eax, eax
jne 0x77bef580
call dword [sym.imp._CKERNEL.dll_GetLastError]
push eax
call fcn.77bef2d8
pop ecx
or eax, 0xffffffff
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x77bef63a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x77bef66a
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp._CKERNEL.dll_GetDriveTypeA]
test eax, eax
je 0x77bef66f
cmp eax, 1
je 0x77bef66f
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x77bef678
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x77c2fac4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x77bef709
push ebx
call fcn.77bef63a
test eax, eax
pop ecx
jne 0x77bef6c8
call sym.msvcrt.dll___doserrno
mov dword [eax], 0xf
call sym.msvcrt.dll__errno
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.77c27993
leave
ret
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x10c]
add bl, 0x40
push eax
mov byte [ebp - 0x10c], bl
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x2e
mov byte [ebp - 0x109], 0
call dword [sym.imp._CKERNEL.dll_GetFullPathNameA]
jmp 0x77bef71c
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp._CKERNEL.dll_GetCurrentDirectoryA]
test eax, eax
je 0x77bef6b9
inc eax
cmp eax, esi
ja 0x77bef6b9
test edi, edi
jne 0x77bef74e
cmp eax, dword [ebp + 0x10]
jg 0x77bef731
mov eax, dword [ebp + 0x10]
push eax
call sym.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
jne 0x77bef763
call sym.msvcrt.dll__errno
mov dword [eax], 0xc
jmp 0x77bef6b9
cmp eax, dword [ebp + 0x10]
jle 0x77bef763
call sym.msvcrt.dll__errno
mov dword [eax], 0x22
jmp 0x77bef6b9
lea ecx, [ebp - 0x108]
mov esi, edi
mov eax, ecx
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x77bef76f
mov eax, edi
jmp 0x77bef6bb