joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c50d0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1409541e8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, SafeArrayGetLBound
lea r8, [0x1400c4fec]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14011b110
xor r8d, r8d
mov qword [0x14095b2b0], rax
xor edx, edx
mov ecx, ebx
call fcn.14011ae70
xor ebx, ebx
mov qword [0x1409d6120], rax
cmp word [0x14095b2a8], bx
jne 0x1400c5205
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400c514a
movzx eax, di
jmp 0x1400c514c
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x14095b2a8], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14095b2b8], rax
test rax, rax
je 0x1400c5205
lea rdx, str.getaddrinfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095b2b8]
lea rdx, str.freeaddrinfo
mov qword [0x14095b288], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095b2b8]
lea rdx, str.getnameinfo
mov qword [0x14095b290], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14095b2b8]
lea rdx, str.WSAStringToAddressA
mov qword [0x14095b298], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14095b288], rbx
mov qword [0x14095b2a0], rax
je 0x1400c5205
cmp qword [0x14095b290], rbx
je 0x1400c5205
cmp qword [0x14095b298], rbx
je 0x1400c5205
mov ecx, dword [0x14095b2ac]
test rax, rax
cmovne ecx, edi
mov dword [0x14095b2ac], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401ae940
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x1400c53c8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rax, rdx
mov r14, rcx
test rdx, rdx
je 0x1400c5490
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
je 0x1400c5490
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x140959128]
xor edx, edx
movsxd rbp, eax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x1400c5487
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x68], ebp
jne 0x1400c5475
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.1400c569c
mov rbx, rax
mov rcx, qword [0x140959128]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ed9e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x1409d38c0], 0
jne 0x1400edab7
lea rdx, [0x1409d33b8]
mov dword [0x1409d38c0], 1
xor ecx, ecx
mov dword [0x1409d61a0], 0x40
call fcn.14015e5f0
test eax, eax
jne 0x1400edab7
lea edx, [rax + 0x40]
lea ecx, [rdx + 0x40]
lea r8, [0x1400ed910]
call fcn.14011b110
mov rcx, qword [0x140959128]
mov edx, 8
mov qword [0x1409d33a8], rax
movsxd rax, dword [0x1409d61a0]
imul r8, rax, 0x468
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [0x1409d33b8]
mov qword [0x1409d61c0], rax
call fcn.14015e590
mov rcx, rax
mov qword [0x1409d6180], rax
call fcn.14015bcd0
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1400eded0]
mov edx, 0x2000
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400edaad
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1409d33b0], 1
mov rax, qword [0x1409d33a8]
add rsp, 0x38
ret

Function at 0x1400ee670
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov edi, r8d
mov ebp, edx
mov rsi, rcx
call fcn.14014f390
lea rax, [0x140954dc0]
mov rdx, rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14014f700
test eax, eax
jne 0x1400ee768
mov ecx, 0x20000
mov qword [rsi + 0x60], 0
call fcn.1401af1f4
mov ecx, 0x20000
mov qword [rsi + 0x48], rax
call fcn.1401af1f4
mov rcx, qword [rsi + 0x48]
mov edx, 0x20000
mov qword [rsi + 0x50], rax
mov dword [rsi + 0x74], ebx
mov rbx, qword [rsp + 0x78]
mov dword [rsi + 0x70], edi
mov r8, rbx
mov rdi, qword [rsp + 0x70]
mov dword [rsi + 0x68], 1
mov dword [rsi + 0x6c], ebp
mov qword [rsi + 0x80], rdi
mov qword [rsi + 0x88], rbx
call rdi
mov rcx, qword [rsi + 0x50]
mov r8, rbx
mov edx, 0x20000
mov dword [rsi + 0x58], eax
call rdi
lea rcx, [rsp + 0x50]
mov dword [rsi + 0x5c], eax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400ee780]
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, rsi
mov edx, 0x2000
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400ee768
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov dword [rsi + 0x78], 1
jmp 0x1400ee76a
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400f0a04
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1409d5e20]
call fcn.14011afe0
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x1400f0a84
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400f0a49
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400f0a84
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.14011c060
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.140085a9c
sub edi, eax
mov ecx, edi
call fcn.14011c110
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f1838
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 2
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 4
or edi, 2
bt ax, 0xf
cmovae edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [rsp + 0x30]
movzx ecx, ax
mov rsi, qword [rsp + 0x38]
mov eax, edi
or eax, 4
bt cx, 0xf
cmovae eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1400f1ee0
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1409541e8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx]
lea rdx, [rbp - 0x18]
xor r12d, r12d
mov r13d, r12d
call qword [sym.imp.USER32.dll_GetClientRect]
test rbx, rbx
jne 0x1400f1f34
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
lea r13d, [r12 + 1]
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.1400f952c
test byte [rdi + 0x28], 8
mov qword [rbp - 0x20], rax
je 0x1400f2068
call qword [sym.imp.USER32.dll_GetFocus]
cmp qword [rdi], rax
jne 0x1400f2068
mov r15d, dword [rbp - 0x10]
mov r14d, dword [rbp - 0xc]
sub r15d, dword [rbp - 0x18]
sub r14d, dword [rbp - 0x14]
test r15d, r15d
jle 0x1400f20ba
test r14d, r14d
jle 0x1400f20ba
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
test rax, rax
je 0x1400f20ba
mov r8d, r14d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
test rax, rax
je 0x1400f205d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r9, qword [rdi + 0x20]
xor eax, eax
test r9, r9
je 0x1400f1ff2
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov dword [rsp + 0x40], eax
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, rsi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x1400f200a
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x18]
mov rcx, rsi
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
add dword [rbp - 0x18], 2
lea rdx, [rbp - 0x18]
add dword [rbp - 0x14], 2
mov rcx, rsi
sub dword [rbp - 0x10], 2
sub dword [rbp - 0xc], 2
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov dword [rsp + 0x40], 0xcc0020
mov r9d, r15d
and dword [rsp + 0x38], 0
xor r8d, r8d
and dword [rsp + 0x30], 0
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.dll_BitBlt]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x1400f20ba
mov r9, qword [rdi + 0x20]
test r9, r9
je 0x1400f20a2
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov dword [rsp + 0x40], r12d
xor edx, edx
mov dword [rsp + 0x38], r12d
mov rcx, rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.USER32.dll_DrawStateW]
jmp 0x1400f20ba
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdx, [rbp - 0x18]
mov rcx, rbx
mov r8, rax
call qword [sym.imp.USER32.dll_FillRect]
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.1400f9508
test r13d, r13d
je 0x1400f20d7
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401ae940
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f20fc
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12d, r9d
mov ebp, r8d
mov r13, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetMessagePos]
mov rcx, qword [rdi]
mov edx, 0xfffffff4
mov ebx, eax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rcx, qword [rdi]
mov r15, rax
call fcn.1400f97e0
mov rcx, rax
call fcn.1400fbe60
mov rcx, qword [0x1409d3a68]
mov r14, rax
call fcn.14011b254
movsx ecx, bx
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], ecx
mov rsi, rax
shr ebx, 0x10
movsx ecx, bx
mov dword [rsp + 0x64], ecx
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, SafeArrayGetLBound
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
or edi, 2
bt ax, 0xf
cmovae edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [rsp + 0x60]
movzx ebx, ax
mov eax, 0x8000
mov dword [rsi], ecx
mov ecx, dword [rsp + 0x64]
and bx, ax
mov dword [rsi + 4], ecx
call fcn.1400f1838
mov dword [rsi + 8], eax
mov ecx, edi
movzx eax, word [rsp + 0x80]
or ecx, 4
test bx, bx
mov dword [rsi + 0x18], eax
lea rax, [0x1400f2234]
mov dword [rsi + 0xc], ebp
cmove ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsi + 0x10], ecx
mov r9, r13
mov ecx, 0x332c
mov dword [rsi + 0x14], r12d
mov r8, r14
mov qword [rsp + 0x20], rsi
mov rdx, r15
call fcn.1401003dc
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400f8838
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
or rbp, 0xffffffffffffffff
mov rsi, rax
cmp rax, rbp
je 0x1400f88ec
mov rcx, qword [r14]
lea edx, [rbp - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x1400f88ec
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x140959128]
xor edx, edx
movsxd rbx, eax
lea r8, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
lea r8d, [rbx + 1]
xor eax, eax
mov rdx, rdi
mov word [rdi], ax
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [r14]
mov r9, rdi
mov r8, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140959128]
mov r8, rdi
cmp rax, rbp
cmove rsi, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400fcd30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1409541e8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_GetFocus]
lea rdx, str.PB_WindowID
mov rcx, r14
mov rdi, rax
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetPropW]
lea r13d, [rbx + 9]
mov rsi, rax
test rax, rax
je 0x1400fcdef
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400fcdef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x20], eax
jne 0x1400fcdef
mov rcx, qword [0x1409d5e40]
lea rdx, [rsi - 1]
call fcn.14011afe0
mov rbx, rax
lea ebp, [r13 - 8]
cmp dword [rax + 0x20], 0
jle 0x1400fcdef
mov rcx, qword [rax + 8]
xor edx, edx
movsxd rax, dword [rax + 0x20]
add rcx, 4
cmp word [rcx - 2], r13w
jne 0x1400fcddf
mov r8d, 0xfa01
cmp word [rcx], r8w
je 0x1400fcded
inc rdx
add rcx, 6
cmp rdx, rax
jge 0x1400fcdef
jmp 0x1400fcdcc
xor ebp, ebp
mov sil, pe_nt_image_headers64
test rdi, rdi
je 0x1400fcebf
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400fcebf
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fcebf
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fcebf
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fcebf
mov r8d, SafeArrayGetLBound
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetClassNameW]
test ebp, ebp
jne 0x1400fcebf
lea r8d, [rbp + 5]
lea rdx, str.RichE
lea rcx, [rsp + 0x28]
call fcn.140087514
test eax, eax
je 0x1400fce8f
lea r8d, [rbp + 4]
lea rdx, str.RICHE
lea rcx, [rsp + 0x28]
call fcn.140087514
test eax, eax
jne 0x1400fceaa
xor r9d, r9d
xor r8d, r8d
mov edx, 0x44e
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xb
jae 0x1400fcf26
lea rdx, str.Scintilla
lea rcx, [rsp + 0x28]
call fcn.14008ce64
test eax, eax
je 0x1400fcf26
test r14, r14
je 0x1400fcf01
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElemsize
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fcef4
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
jne 0x1400fcef4
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x1400fcf01
mov edx, 1
mov rcx, r14
call fcn.1400fcf50
test rdi, rdi
je 0x1400fcf1b
lea rdx, str.PB_Hotkey
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
jne 0x1400fcf26
test rbx, rbx
je 0x1400fcf26
mov rax, qword [rbx + 0x10]
jmp 0x1400fcf28
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401ae940
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
Function at 0x1400fd548
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1409541e8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
test rcx, rcx
je 0x1400fd5e4
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1401cea2c
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.140085a9c
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x1400fd5d0
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x1400fd5d0
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x1400fd5d0
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x1400fd5a2
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x1400fd5e6
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401ae940
add rsp, 0x240
pop rbx
ret

Function at 0x1400fd600
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1409541e8]
xor rax, rsp
mov qword [rbp + 0x380], rax
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x1400fd791
cmp word [rcx], di
je 0x1400fd791
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rbp + 0x170]
call fcn.1401cea2c
lea rcx, [rbp + 0x170]
mov word [rbp + 0x378], di
call fcn.140085a9c
mov rdx, rax
cdqe
lea rcx, [rbp + rax*2 + 0x16e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1400fd6c4
cmp word [rbp + 0x172], 0x3a
jne 0x1400fd6c4
cmp edx, 2
jne 0x1400fd6a2
lea rdx, [0x14021d518]
lea rcx, [rbp + 0x170]
call fcn.1401cea74
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400fd791
mov rbx, 0xfffffffffffffffe
jmp 0x1400fd791
cmp word [rcx], 0x5c
je 0x1400fd6d0
cmp word [rcx], 0x2f
jne 0x1400fd6d9
mov word [rcx], di
sub rcx, 2
jmp 0x1400fd6c4
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x1400fd71a
test byte [rsp + 0x20], 0x10
je 0x1400fd703
mov rbx, 0xfffffffffffffffe
jmp 0x1400fd712
mov ebx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x40]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400fd791
movzx ecx, word [rbp + 0x170]
movzx eax, word [rbp + 0x172]
cmp cx, 0x5c
jne 0x1400fd733
cmp ax, cx
je 0x1400fd749
cmp cx, 0x2f
jne 0x1400fd73e
cmp ax, cx
je 0x1400fd749
cmp cx, 0x2e
jne 0x1400fd791
cmp ax, cx
jne 0x1400fd791
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400fd770
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x1400fd791
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1401ae940
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400fd7b8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x1400fd7cb
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
add rsp, 0x28
ret
Function at 0x1400fd7d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400fd7fb
test dl, 2
je 0x1400fd7ee
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x1400fd7fd
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400fd910
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x1409d48b0]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x1400fd962
lea r8, [fcn.1400fda88]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.14011b110
mov qword [0x1409d48b0], rax
mov rdx, rdi
mov rcx, rax
call fcn.14011b040
mov rbx, rax
test rax, rax
je 0x1400fda65
test r14, r14
lea r15, [0x140220ff0]
cmovne r15, r14
test rbp, rbp
je 0x1400fd993
cmp word [rbp], r13w
jne 0x1400fd99a
lea rbp, [0x14023ce20]
mov rcx, r15
call fcn.140085a9c
mov rcx, rbp
mov r12, rax
call fcn.140085a9c
mov rcx, qword [0x140959128]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400fda4e
mov rdx, r15
mov rcx, rax
call fcn.1401cea10
test r12d, r12d
je 0x1400fd9fb
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x1400fd9fb
lea rdx, [0x14021d518]
mov rcx, r14
call fcn.1401cea74
mov rdx, rbp
mov rcx, r14
call fcn.1401cea74
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1400fda22
mov dword [rbx + 8], r13d
jmp 0x1400fda34
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400fda37
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x140959128]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x1400fda65
mov rcx, qword [0x1409d48b0]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14011af74
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400fdbec
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400fdbff
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x1400fdc01
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400fdd18
Capabilities:
Copy file

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400fdd33
test rdx, rdx
je 0x1400fdd33
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cdqe
jmp 0x1400fdd35
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400fe178
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.14011c060
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x1400fe1c7
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x1400fe1c7
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.14011c110
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1400fe204
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400fe204
mov eax, eax
jmp 0x1400fe208
or rax, 0xffffffffffffffff
add rsp, 0x28
ret

Function at 0x1400fe210
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x1400fe221
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x1400fe304
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
lea rax, [r11 + 0x10]
mov edx, ecx
mov qword [r11 - 0x18], rax
xor esi, esi
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov ebx, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x1400fe376
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400fe36b
mov rcx, rdi
call fcn.140085a9c
mov rbx, rax
test eax, eax
je 0x1400fe36b
movsxd rax, ebx
lea ecx, [rsi + 0x5c]
cmp word [rdi + rax*2 - 2], cx
je 0x1400fe36b
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fea70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1409d6800]
call fcn.14011afe0
mov rbx, rax
test rax, rax
je 0x1400feac3
cmp qword [rax + 8], 0
je 0x1400feaa2
cmp dword [rax + 0x1c], 0
jne 0x1400feaa2
mov rcx, rax
call fcn.1400febf0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret