joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d65b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5b2270], 0
je 0x4d66ff
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x55f8f4]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4d66ff
mov eax, dword [0x5b2274]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5b2270]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4d66ce
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5b2270]
call fcn.0046f2c4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4d66c6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4d66c6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4d66c6
mov eax, dword [ebp - 0x14]
call fcn.004df214
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4d66c6
push ebp
call fcn.004d656c
pop ecx
test al, al
jne 0x4d66c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4d6682
mov eax, dword [ebp - 0x14]
call fcn.004ddda8
dec eax
jle 0x4d66c6
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0048e138
cmp byte [ebp - 1], 0
je 0x4d66c6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4d66c6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5b2274]
call fcn.004d5d34
inc edi
dec ebx
jne 0x4d6615
mov eax, dword [0x5b2274]
cmp dword [eax + 8], 0
jle 0x4d66e6
mov eax, dword [0x5b2274]
call fcn.004d5dc4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4d66ff
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004d63d4
pop ecx
test al, al
jne 0x4d66ff
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d9cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4d9d3c
mov eax, esi
call fcn.004c0720
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d9d3c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4d9d3c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4d9e7b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4d9d7c
cmp eax, 0x108
ja 0x4d9d7c
mov eax, esi
call fcn.004c0720
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d9e72
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x4d9e7b
jmp 0x4d9e72
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4d9e5b
cmp eax, 0x20a
ja 0x4d9e5b
test byte [esi + 0x50], 0x80
jne 0x4d9dae
sub eax, 0x203
je 0x4d9dab
sub eax, 3
je 0x4d9dab
sub eax, 3
jne 0x4d9dae
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4d9dc2
dec eax
je 0x4d9dd7
dec eax
je 0x4d9df4
dec eax
je 0x4d9dd7
jmp 0x4d9dfb
mov ecx, ebx
mov eax, dword [0x55f8f4]
mov eax, dword [eax]
mov edx, esi
call fcn.004ca1bc
jmp 0x4d9e72
cmp byte [esi + 0x5d], 1
jne 0x4d9ded
mov eax, esi
mov si, 0xffed
call fcn.0048e138
jmp 0x4d9e7b
or word [esi + 0x54], 1
jmp 0x4d9e72
and word [esi + 0x54], 0xfffe
jmp 0x4d9e72
mov eax, dword [0x5b222c]
cmp byte [eax + 0x20], 0
je 0x4d9e72
mov eax, dword [0x5b222c]
cmp dword [eax + 0x1c], 0
je 0x4d9e72
mov eax, dword [ebx]
mov edx, dword [0x5b222c]
cmp eax, dword [edx + 0x1c]
jne 0x4d9e72
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004c0644
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0048e138
jmp 0x4d9e7b
cmp eax, 0xb00b
jne 0x4d9e72
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004d8610
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dd444
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 0x4dd460
cmp dword [esi + 4], 0
je 0x4dd48d
test byte [ebx + 0x55], 1
jne 0x4dd47f
mov eax, ebx
call fcn.004dc09c
test eax, eax
jne 0x4dd47f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4dd59d
mov edx, esi
mov eax, ebx
call fcn.004dcf64
jmp 0x4dd59d
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 0x4dd596
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004df214
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.004d9c24
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004dd444
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.004df214
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd59d
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 0x4e3ac0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x55f714]
cmp byte [eax + 0xc], 0
je 0x4e3c2d
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e3c26
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5b2280], 0
jne 0x4e3b14
push 0x4e3c34
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4e3c3c
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b2280], eax
cmp dword [0x5543b8], 0
jne 0x4e3c0f
push 0x4e3c4c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x5543b8], eax
cmp dword [0x5543b8], 0
je 0x4e3c0f
push 0x4e3c58
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b2284], eax
push 0x4e3c68
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b2288], eax
push 0x4e3c7c
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b228c], eax
push 0x4e3c94
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b2290], eax
push 0x4e3cac
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b2294], eax
push 0x4e3cc0
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b2298], eax
push 0x4e3cd8
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b229c], eax
push 0x4e3cf0
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b22a0], eax
push 0x4e3d0c
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b22a4], eax
push 0x4e3d18
mov eax, dword [0x5543b8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x5b22a8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3c2d
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ec114
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ec1ec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5b22bc], 0
jne 0x4ec1d0
lea eax, [ebp - 4]
mov edx, 0x4ec204
call fcn.0048ed24
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0048f13c
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4ec1d0
mov eax, ebx
call fcn.0048ceb4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ec1c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x4ec1b3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4ec214
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4ec1b3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x5b22bc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec1d0
mov eax, dword [ebp - 0xc]
call fcn.0048ced4
ret
mov ebx, dword [0x5b22bc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec1f3
lea eax, [ebp - 4]
call fcn.0048ec8c
ret

Function at 0x501080
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5010f2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x5010c6
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.0048ee7c
jmp 0x5010cd
mov eax, ebx
call fcn.0048ec8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5010f9
cmp dword [ebp - 8], 0
je 0x5010e9
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x501100
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x5011a2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x501175
mov edx, ebx
mov eax, dword [0x4b442c]
call fcn.004b8d50
test al, al
je 0x501165
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004b8c60
call fcn.0048e7b4
jmp 0x5011a9
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x501130
mov ecx, dword [0x55fb04]
mov dl, 1
mov eax, dword [0x47ba50]
call fcn.004808b4
call fcn.0048e708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5011a9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x5011b0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x501208
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50120f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x501218
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x50126d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501274
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x5012e4
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x501359
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00500fbc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004b8d24
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x501343
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501360
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x501368
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x5013dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00500fbc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x5013c7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5013e4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x507e24
call fcn.005097c0
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x507e40
test bl, 1
je 0x507e40
call fcn.005107c0
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x508024
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0050935c
test byte [ebp + 0xd], 0xc0
jne 0x508048
mov eax, dword [0x556974]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x508055
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x508082
je 0x508094
sub ecx, 0x100
je 0x5080a2
sub ecx, 0x100
je 0x5080a9
sub ecx, 0x100
je 0x50809b
jmp 0x5080b0
sub ecx, 0x600
je 0x5080a9
sub ecx, 0x100
je 0x508094
jmp 0x5080b0
mov edi, 1
jmp 0x5080b5
mov edi, 2
jmp 0x5080b5
mov edi, 4
jmp 0x5080b5
mov edi, 5
jmp 0x5080b5
mov edi, 3
test byte [ebp + 0xd], 1
je 0x5080dc
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5563ec]
test al, 0x80
je 0x5080d5
mov ebx, 0x80
jmp 0x5080ee
mov ebx, 1
jmp 0x5080ee
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x5080ee
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x508100
je 0x508109
dec eax
je 0x508112
jmp 0x50811b
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x50812a
mov dword [ebp - 4], 0x40000000
jmp 0x50812a
mov dword [ebp - 4], 0xc0000000
jmp 0x50812a
push 1
call fcn.00509754
pop ecx
mov ebx, eax
jmp 0x50821a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x508146
sub eax, 0x10
je 0x50814d
sub eax, 0x10
je 0x508156
sub eax, 0x10
je 0x50815f
jmp 0x50815f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x508166
mov dword [ebp - 8], 1
jmp 0x508166
mov dword [ebp - 8], 2
jmp 0x508166
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x5081d3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x5081c8
test byte [ebp + 0xd], 1
je 0x5081c3
mov ebx, 0x50
jmp 0x5081c8
mov ebx, 2
push ebx
call fcn.00509754
pop ecx
mov ebx, eax
jmp 0x50821a
mov edi, esi
push edi
call fcn.00507f88
pop ecx
test eax, eax
je 0x5081e7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x5081f3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0050947c
add esp, 8
mov ebx, eax
inc eax
jne 0x50821a
push 4
call fcn.00509754
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00509390
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5083dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0050935c
test byte [ebp + 0xd], 0xc0
jne 0x508400
mov eax, dword [0x556974]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x50840d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x50843a
je 0x50844c
sub ecx, 0x100
je 0x50845a
sub ecx, 0x100
je 0x508461
sub ecx, 0x100
je 0x508453
jmp 0x508468
sub ecx, 0x600
je 0x508461
sub ecx, 0x100
je 0x50844c
jmp 0x508468
mov edi, 1
jmp 0x50846d
mov edi, 2
jmp 0x50846d
mov edi, 4
jmp 0x50846d
mov edi, 5
jmp 0x50846d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x508494
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5563ec]
test al, 0x80
je 0x50848d
mov ebx, 0x80
jmp 0x5084a6
mov ebx, 1
jmp 0x5084a6
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x5084a6
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x5084b8
je 0x5084c1
dec eax
je 0x5084ca
jmp 0x5084d3
mov dword [ebp - 4], SysReAllocStringLen
jmp 0x5084e2
mov dword [ebp - 4], 0x40000000
jmp 0x5084e2
mov dword [ebp - 4], 0xc0000000
jmp 0x5084e2
push 1
call fcn.00509754
pop ecx
mov ebx, eax
jmp 0x5085d2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x5084fe
sub eax, 0x10
je 0x508505
sub eax, 0x10
je 0x50850e
sub eax, 0x10
je 0x508517
jmp 0x508517
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x50851e
mov dword [ebp - 8], 1
jmp 0x50851e
mov dword [ebp - 8], 2
jmp 0x50851e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x50858b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x508580
test byte [ebp + 0xd], 1
je 0x50857b
mov ebx, 0x50
jmp 0x508580
mov ebx, 2
push ebx
call fcn.00509754
pop ecx
mov ebx, eax
jmp 0x5085d2
mov edi, esi
push edi
call fcn.00507f88
pop ecx
test eax, eax
je 0x50859f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x5085ab
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0050947c
add esp, 8
mov ebx, eax
inc eax
jne 0x5085d2
push 4
call fcn.00509754
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00509390
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50894c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x508968
call fcn.005097c0
jmp 0x508989
test byte [ebp + 0xc], 0x80
jne 0x508973
or ebx, 1
jmp 0x508976
and ebx, 0xfffffffe
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
dec eax
je 0x508987
call fcn.005097c0
jmp 0x508989
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x5091c4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x5568a4]
jb 0x5091e8
push 6
call fcn.00509754
pop ecx
jmp 0x50927f
push ebx
call fcn.005093a0
pop ecx
mov esi, dword [ebx*4 + 0x5b2884]
push 0x24
push 0
push edi
call fcn.005069d4
add esp, 0xc
push esi
call sub.KERNEL32.DLL_GetFileType
dec eax
je 0x50921c
dec eax
je 0x509214
dec eax
je 0x50926e
jmp 0x509274
mov word [edi + 4], 0x2000
jmp 0x509274
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
push esi
call sub.KERNEL32.DLL_GetFileTime
dec eax
je 0x50923a
call fcn.005097c0
mov esi, eax
jmp 0x509276
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x10]
push ecx
test byte [ebx*4 + 0x5568a9], 1
je 0x50925d
xor eax, eax
jmp 0x509262
mov eax, 1
push eax
push edi
call fcn.005124b8
add esp, 0x18
jmp 0x509274
mov word [edi + 4], 0x1000
xor esi, esi
push ebx
call fcn.00509434
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x509288
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.005053f0
pop ecx
mov ebx, eax
test eax, eax
jne 0x5092ac
xor eax, eax
jmp 0x509355
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x5092cd
cmp esi, 0x104
jb 0x5092d8
push ebx
call fcn.00505400
pop ecx
xor eax, eax
jmp 0x509355
cmp byte [ebx + 1], 0x3a
jne 0x509308
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x509308
push ebx
call fcn.00505400
pop ecx
xor eax, eax
jmp 0x509355
inc esi
test edi, edi
je 0x50934b
cmp esi, dword [ebp + 0x10]
jbe 0x50931d
push ebx
call fcn.00505400
pop ecx
xor eax, eax
jmp 0x509355
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.00505400
pop ecx
mov eax, edi
jmp 0x509355
push esi
push ebx
call fcn.00505410
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret