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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x46365a
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x46373f
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x46373f
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x46376d
test ebp, ebp
jle 0x46376d
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x46376d
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x463736
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x4636e0
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x4636f5
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x46376d
cmp dword [edi + 0x10], ebx
je 0x463759
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x46376d
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
cmp dword [esp + 0x10], 0
je 0x46377d
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x463785
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00464705
push eax
call fcn.00466284
push dword [0x6d7eec]
mov dword [esp + 0x24], eax
call fcn.0047cf71
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x4637f9
inc ebx
push 0x12
call esi
test di, ax
je 0x463805
or ebx, 2
push 0x11
call esi
test di, ax
je 0x463811
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.0046300e
push 0x463866
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.0046942f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x465719
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46588f
mov eax, dword [esp + 0x24]
dec eax
je 0x465872
dec eax
jne 0x46588f
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.004656d2
pop ecx
test eax, eax
je 0x4657d0
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x465793
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x46586e
dec ebx
je 0x46586a
dec ebx
je 0x465849
dec ebx
je 0x465803
sub ebx, 4
jne 0x46588f
test edi, edi
jne 0x46588f
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x46588f
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x465793
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x46578e
sub edi, 0
je 0x46583b
dec edi
je 0x46582d
dec edi
je 0x46581f
dec edi
jne 0x46588f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x46588f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x46588f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x46588f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x46588f
sub edi, 0
je 0x465866
dec edi
je 0x465862
dec edi
jne 0x46588f
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x46588f
push 0x3c
jmp 0x46588e
push 0x32
jmp 0x46588e
push 0x14
jmp 0x46588e
push 5
jmp 0x46588e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46588c
cmp eax, 0xa
je 0x465888
cmp eax, 0x5a
jne 0x46588f
push 0x28
jmp 0x46588e
push 0x1e
jmp 0x46588e
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret

Function at 0x465ec4
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x6d8828]
call fcn.0047cdc7
mov edi, eax
test edi, edi
je 0x465ee7
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push dword [esp + 0x10]
push esi
call fcn.0047e090
test esi, esi
je 0x465f04
lea ecx, [esi + 1]
push ecx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x465f09
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
ret 8
Function at 0x466544
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x6d8828]
call fcn.0047cdc7
mov esi, eax
test esi, esi
je 0x46661e
cmp dword [ebp + 0xc], 0
je 0x466590
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x466581
cmp dword [esi + 0x1c], 0
jne 0x466581
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46661e
test byte [ebp + 0x10], 3
je 0x4665ab
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00466e20
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4665d0
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4665e4
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x466601
test ebx, ebx
je 0x4665f5
push 8
jmp 0x466607
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x466614
test ebx, ebx
je 0x46660a
push 3
pop ecx
jmp 0x466614
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x4670e8
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x467180
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x46717d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x46717d
lea eax, [esi - 1]
push eax
push dword [0x6d8828]
call fcn.0047cdc7
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x46717f
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x467174
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x467267
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x46715a
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x467226
push eax
call esi
test al, al
jns 0x467226
push 0x11
call esi
test al, al
js 0x467226
push 0x10
call esi
test al, al
js 0x467226
push 0x12
call esi
test al, al
js 0x467226
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x467226
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x4671fa
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x467211
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x467271
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x467271
test ebp, ebp
je 0x46724a
push 0x11
call esi
test al, al
js 0x467242
push 0x10
call esi
test al, al
js 0x467242
push 0x12
call esi
test al, al
jns 0x46724a
push 1
push ebp
call fcn.0046727d
test ebx, ebx
je 0x46725e
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x467271
test edi, edi
je 0x467271
mov eax, dword [edi + 8]
jmp 0x467273
and dword [esp + 0x14], 0
jmp 0x46717f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x46745b
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4675a3
xor ecx, ecx
cmp word [eax], cx
je 0x4675a3
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4674b4
cmp eax, 3
jne 0x4674ee
cmp word [esp + 0xa], 0x3a
jne 0x4674ee
cmp eax, 2
jne 0x4674d2
lea eax, [esp + 8]
push 0x4b4958
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4675a3
push 0xfffffffffffffffe
pop edi
jmp 0x4675a3
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x467503
cmp ax, bx
jne 0x46750d
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x4674f6
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x46754c
test byte [esp + 0x21c], 0x10
je 0x467533
push 0xfffffffffffffffe
pop edi
jmp 0x467543
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4675a1
cmp word [esp + 0x10], bp
jne 0x46755a
cmp word [esp + 0x12], bp
je 0x467579
cmp word [esp + 0x10], bx
jne 0x467568
cmp word [esp + 0x12], bx
je 0x467579
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4675a1
cmp word [esp + 0x12], ax
jne 0x4675a1
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x46758e
test al, 0x10
je 0x4675a1
jmp 0x46759e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4675a1
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x4678de
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x467956
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x467937
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x467934
cmp ecx, 0x5c
je 0x467934
cmp ecx, 0x2f
jne 0x467941
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x467921
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x467958
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x46795e
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x46796c
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x4679d2
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x4679fb
test byte [esp + 8], 2
je 0x4679ef
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4679fd
xor eax, eax
ret 8

Function at 0x467a80
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x6d8000]
push esi
test eax, eax
jne 0x467aa5
push fcn.00467bad
push 0x10
push 0x258
call fcn.0047ce9a
mov dword [0x6d8000], eax
push dword [esp + 0xc]
push eax
call fcn.0047ce06
mov esi, eax
test esi, esi
je 0x467ba6
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x467ac7
mov edi, 0x4a0124
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x467ad7
xor eax, eax
cmp word [ebx], ax
jne 0x467adc
mov ebx, 0x4b495c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x467b8d
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x467b3d
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x467b41
push 0x4b4958
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x467b41
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x467b65
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x467b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x467b79
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x467ba4
cmp dword [esp + 0x14], 0xffffffff
je 0x467b98
mov esi, dword [esp + 0x14]
push esi
push dword [0x6d8000]
call fcn.0047cd78
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x467cf2
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x467d12
cmp dword [esp + 8], 0
je 0x467d12
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x467d14
xor eax, eax
ret 8

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

Disassembly:
cmp dword [esp + 4], 0
je 0x467d2d
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x467d30
or eax, 0xffffffff
ret 4

Function at 0x467d33
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x467e08
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x467e07
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.0046a405
push esi
mov word [ebp - 0x20], ax
call fcn.0046a42b
push esi
mov word [ebp - 0x1e], ax
call fcn.0046a44d
push esi
mov word [ebp - 0x1c], ax
call fcn.0046a46e
push esi
mov word [ebp - 0x1a], ax
call fcn.0046a48f
push esi
mov word [ebp - 0x18], ax
call fcn.0046a4b0
push esi
mov word [ebp - 0x16], ax
call fcn.0046a4d1
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x467de6
lea eax, [ebp - 8]
jmp 0x467df4
cmp dword [ebp + 0xc], 2
jne 0x467df1
lea ecx, [ebp - 8]
jmp 0x467df4
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x468290
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4682f5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4682ed
push dword [esp + 0x10]
push dword [0x6d8c20]
call fcn.0047cdc7
test eax, eax
je 0x4682e3
cmp dword [eax + 4], 0
je 0x4682d2
push edi
push esi
push eax
call fcn.00468920
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x468370
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x4683ac
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x4683f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x6d8c20]
call fcn.0047cdc7
mov esi, eax
test esi, esi
je 0x46846f
cmp dword [esi + 4], 0
je 0x468440
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00468a30
test eax, eax
je 0x468434
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46847a
cmp dword [esp + 8], 0
je 0x46847a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x468490
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x6d8c20]
call fcn.0047cdc7
test eax, eax
je 0x4684db
cmp dword [eax + 4], 0
je 0x4684c5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00468a30
movsx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x468670
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x468778
cmp word [edx], 0
je 0x468778
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x46869e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x4686fd
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x4686d0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4686b0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00468920
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4686d0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00469000
mov edi, eax
test edi, edi
je 0x4686f3
cmp dword [esi + 4], 0
je 0x46874b
push dword [esp + 0x14]
push edi
push esi
call fcn.00468920
push edi
push 0
push dword [0x6d6de4]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x468780
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x6d8c20]
call fcn.0047cdc7
test eax, eax
je 0x46879c
mov dword [esp + 4], eax
jmp fcn.00468670
xor eax, eax
ret 0xc
Function at 0x4688c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x6d8c20]
call fcn.0047cdc7
test eax, eax
je 0x46890b
cmp dword [eax + 4], 0
je 0x4688f5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00468a30
movzx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x468920
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x468a27
cmp dword [esi + 0x14], 1
jne 0x46896b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x4689e8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x4689d3
dec eax
je 0x4689bc
sub eax, 2
je 0x4689a7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00468370
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x468a15
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x468991
xor eax, eax
pop esi
add esp, 0xc
ret 0xc