joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008ddb4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x10b0
call fcn.14017fd70
sub rsp, rax
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x10a0], rax
mov rdi, rcx
mov rbx, rdx
mov rcx, r8
xor esi, esi
xor r14d, r14d
call fcn.14017f7c0
and qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x14008df54
lea r8, [0x140226450]
mov rcx, rdi
lea rdx, str.TYPE
call fcn.14008e40c
test rax, rax
je 0x14008df4b
lea rdx, [0x140226404]
mov rcx, rdi
call fcn.14008e2d4
test rax, rax
je 0x14008df4b
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14008e5d0
test rax, rax
je 0x14008df4b
mov r8, rbp
lea rdx, str.STOR
mov rcx, rdi
call fcn.14008e40c
test rax, rax
je 0x14008df31
lea rdx, str.125_150
mov rcx, rdi
call fcn.14008e2d4
test rax, rax
je 0x14008df31
cmp dword [rdi + 0x30], esi
jne 0x14008debd
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14008e540
test rax, rax
je 0x14008df31
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov r14d, 1
call fcn.14008e7c8
test rax, rax
je 0x14008df31
and qword [rdi + 0x40], rsi
and dword [rdi + 0x48], esi
and qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jle 0x14008df2e
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.14008e474
test rax, rax
je 0x14008df31
movsxd rax, dword [rsp + 0x40]
add qword [rdi + 0x40], rax
cmp dword [rdi + 0x48], esi
je 0x14008dedc
jmp 0x14008df31
mov esi, r14d
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14008e7b0
test r14d, r14d
je 0x14008df4b
mov rcx, rdi
call fcn.14008e3b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call fcn.14017f7b0
mov ecx, esi
mov eax, esi
neg ecx
sbb rdx, rdx
add rdx, 0xfffffffffffffffe
mov qword [rdi + 0x40], rdx
mov rcx, qword [rsp + 0x10a0]
xor rcx, rsp
call fcn.14017f910
add rsp, 0x10b0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008e5d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xb70]
sub rsp, 0xc70
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rbp + 0xb60], rax
xor r14d, r14d
mov r15, rdx
mov rdi, rcx
cmp dword [rcx + 0x30], r14d
je 0x14008e700
lea r8, [0x140208e40]
lea rdx, [0x140226488]
call fcn.14008e40c
mov r9d, 0x400
lea r8, [rsp + 0x60]
lea rdx, [0x140226490]
mov rcx, rdi
xor ebx, ebx
call fcn.14008e2f4
test rax, rax
je 0x14008e785
mov dl, byte [rsp + 0x63]
lea rbx, [rsp + 0x63]
lea edi, [r14 + 1]
test dl, dl
je 0x14008e694
xor esi, esi
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14008e68b
mov rcx, rbx
cmp dl, 0x39
jg 0x14008e673
add rbx, rdi
mov dl, byte [rbx]
cmp dl, 0x30
jge 0x14008e664
mov byte [rbx], 0
call fcn.14004dfb4
mov dword [rsp + rsi*4 + 0x48], eax
add r14d, edi
add rsi, rdi
cmp rsi, 6
je 0x14008e694
add rbx, rdi
mov dl, byte [rbx]
test dl, dl
jne 0x14008e65a
xor ebx, ebx
cmp r14d, 6
jne 0x14008e785
mov eax, dword [rsp + 0x54]
lea rdx, [0x140226498]
mov r9d, dword [rsp + 0x4c]
lea rcx, [rbp + 0x360]
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
call fcn.140088f70
mov edx, dword [rsp + 0x58]
lea rcx, [rbp + 0x360]
shl edx, 8
add edx, dword [rsp + 0x5c]
call fcn.14008ecd4
mov qword [r15], rax
test rax, rax
je 0x14008e785
mov dword [r15 + 0x34], 5
mov rbx, rdi
jmp 0x14008e785
xor edx, edx
or rcx, 0xffffffffffffffff
call fcn.14008fd10
xor ebx, ebx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14008e785
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x30]
mov rcx, qword [rax]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rsp + 0x3a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
lea rdx, str.127_0_0_1__d__d
movzx r9d, r8b
lea rcx, [rsp + 0x60]
shr r8d, 8
call fcn.140062850
lea r8, [rsp + 0x60]
mov rcx, rdi
lea rdx, [0x1402264c0]
call fcn.14008e40c
lea rdx, [0x140226404]
mov rcx, rdi
call fcn.14008e2d4
test rax, rax
lea edi, [rbx + 1]
cmovne ebx, edi
mov rax, rbx
mov rcx, qword [rbp + 0xb60]
xor rcx, rsp
call fcn.14017f910
mov rbx, qword [rsp + 0xcb0]
add rsp, 0xc70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008f1b4
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10, rdx
jne 0x14008f1cf
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14008f207
mov al, byte [rcx + 0x20]
lea r9, [rcx + 4]
neg al
mov rax, qword [rcx + 0x28]
sbb edx, edx
and edx, 0xc
add edx, 0x10
test rax, rax
je 0x14008f1ee
mov rcx, qword [rax]
jmp 0x14008f1f2
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov rdx, r10
mov qword [rsp + 0x20], r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
add rsp, 0x38
ret

Function at 0x14008f210
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rax, rdx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x14008f23d
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x14008f285
cmp qword [rcx + 0x38], rsi
je 0x14008f285
cmp r8d, dword [rcx + 0x40]
mov esi, r8d
mov rdx, qword [rcx + 0x48]
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call fcn.140052f00
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x14008f285
mov r8, qword [rdi + 0x38]
xor edx, edx
mov rcx, qword [0x1402a74e8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x38], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14008f2f8
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x960]
sub rsp, 0xa60
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rbp + 0x950], rax
xor ebx, ebx
mov rdi, rcx
cmp dword [rcx], 1
jne 0x14008f3a9
movsxd rcx, dword [rcx + 8]
lea rax, [rsp + 0x38]
mov rdi, rcx
mov qword [rsp + 0x48], rcx
inc ecx
mov dword [rsp + 0x40], 1
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14008f3a2
je 0x14008f40e
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14008f40e
lea r8, [rsp + 0x30]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x14008f3a2
cmp dword [rsp + 0x30], ebx
lea ebx, [rax + 2]
jne 0x14008f40e
mov ebx, 4
jmp 0x14008f40e
mov rcx, qword [rcx + 0x30]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov r8d, 0x800
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x14008f40e
mov rcx, qword [0x1402a74e8]
xor edx, edx
movsxd r8, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rsp + 0x30]
lea rdx, [rbp + 0x150]
mov dword [rdi + 0x40], ecx
mov r8, rcx
mov rcx, rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x48], rax
call fcn.140052f00
mov ebx, 2
mov rax, rbx
mov rcx, qword [rbp + 0x950]
xor rcx, rsp
call fcn.14017f910
lea r11, [rsp + 0xa60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14008f610
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x14029fd68]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [0x14008f52c]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.1400a4fa4
xor r8d, r8d
mov qword [0x1402a90d0], rax
xor edx, edx
mov ecx, ebx
call fcn.1400a4d04
xor ebx, ebx
mov qword [0x1402afa40], rax
cmp word [0x1402a90c8], bx
jne 0x14008f745
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x14008f68a
movzx eax, di
jmp 0x14008f68c
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1402a90c8], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402a90d8], rax
test rax, rax
je 0x14008f745
lea rdx, [0x140226780]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402a90d8]
lea rdx, [0x140226790]
mov qword [0x1402a90a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402a90d8]
lea rdx, str.getnameinfo
mov qword [0x1402a90b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402a90d8]
lea rdx, str.WSAStringToAddressA
mov qword [0x1402a90b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1402a90a8], rbx
mov qword [0x1402a90c0], rax
je 0x14008f745
cmp qword [0x1402a90b0], rbx
je 0x14008f745
cmp qword [0x1402a90b8], rbx
je 0x14008f745
mov ecx, dword [0x1402a90cc]
test rax, rax
cmovne ecx, edi
mov dword [0x1402a90cc], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14017f910
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
Function at 0x14008fd10
Capabilities:
Set socket configuration

Disassembly:
xor r9d, r9d
lea r8d, [r9 + 1]
jmp 0x14008fd1c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov rbx, rcx
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x1402a90d0]
mov r14d, r8d
mov ebp, edi
call fcn.1400a4ed4
mov rsi, rax
test rax, rax
je 0x14008fe68
cmp r12d, 0xffff
ja 0x14008fe51
mov r15d, r14d
mov r13d, r14d
btr r15d, 0x1c
and r13d, 0x10000000
mov eax, r13d
cmove r15d, r14d
neg eax
lea eax, [rdi + 1]
sbb ecx, ecx
and ecx, 0x15
add ecx, 2
test r15d, r15d
cmove r15d, eax
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14008fe51
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x14008fe48
mov rax, qword [rsp + 0x88]
lea r8, [rsi + 8]
mov ecx, edi
mov dword [rsp + 0x28], r12d
test r13d, r13d
mov qword [rsp + 0x20], rax
mov r9, r8
mov rdx, r14
setne cl
call fcn.14008fe8c
test eax, eax
je 0x14008fe48
lea r12d, [rdi + 1]
cmp r15d, r12d
jne 0x14008fe24
lea edx, [rdi + 0x64]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
cmove ebp, r12d
test rbp, rbp
je 0x14008fe48
test r13d, r13d
mov qword [rsi], r14
mov word [rsi + 0x24], r15w
mov rbp, rsi
setne dil
cmp rbx, 0xffffffffffffffff
mov word [rsi + 0x26], di
cmove rbx, rsi
mov qword [rsi + 0x28], rbx
jmp 0x14008fe68
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x1402a90d0]
cmp rbx, 0xffffffffffffffff
cmove rbx, rsi
mov rdx, rbx
call fcn.1400a4e08
lea r11, [rsp + 0x40]
mov rax, rbp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14008ff84
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
xor ebx, ebx
movsxd rdi, ecx
mov rsi, r8
cmp edx, 0xffffffff
jne 0x14008ffba
lea r8, [rax + 0x10]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x14008fffd
mov r8d, edx
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14008fff1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
and eax, 0xfffffffa
neg eax
sbb ebx, ebx
not ebx
and ebx, 0xfffffffe
jmp 0x14008fffd
test eax, eax
mov ecx, 0xfffffffe
cmove eax, ecx
mov ebx, eax
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140090358
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1402a90e8], 0
jne 0x1400903be
lea rcx, [0x1402a90e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400903aa
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1402a90f0]
imul qword [0x1402a90e8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1402a90e8], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1402a90e8], 0
jne 0x1400903be
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x1400903e4
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1402a90f0]
cqo
idiv qword [0x1402a90e8]
add rsp, 0x28
ret

Function at 0x1400903ec
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov edx, ecx
mov ebx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, ebx
call fcn.1400a61d0
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140090429
sub ebx, dword [rsp + 0x38]
mov ecx, ebx
call fcn.1400a6280
jmp 0x140090430
mov ecx, edi
call fcn.1400a62b0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14009043c
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, 0x400
call fcn.1400a61d0
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x400
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14009047a
mov ecx, 0x401
sub ecx, dword [rsp + 0x38]
call fcn.1400a6280
jmp 0x140090481
mov ecx, ebx
call fcn.1400a62b0
add rsp, 0x20
pop rbx
ret
Function at 0x140090a50
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 [0x14029fd68]
xor rax, rsp
mov qword [rbp + 0x380], rax
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x140090be1
cmp word [rcx], di
je 0x140090be1
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rbp + 0x170]
call fcn.1401a4288
lea rcx, [rbp + 0x170]
mov word [rbp + 0x378], di
call fcn.1400426f8
mov rdx, rax
cdqe
lea rcx, [rbp + rax*2 + 0x16e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x140090b14
cmp word [rbp + 0x172], 0x3a
jne 0x140090b14
cmp edx, 2
jne 0x140090af2
lea rdx, [0x140209660]
lea rcx, [rbp + 0x170]
call fcn.1401a11d8
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140090be1
mov rbx, 0xfffffffffffffffe
jmp 0x140090be1
cmp word [rcx], 0x5c
je 0x140090b20
cmp word [rcx], 0x2f
jne 0x140090b29
mov word [rcx], di
sub rcx, 2
jmp 0x140090b14
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x140090b6a
test byte [rsp + 0x20], 0x10
je 0x140090b53
mov rbx, 0xfffffffffffffffe
jmp 0x140090b62
mov ebx, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x40]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140090be1
movzx ecx, word [rbp + 0x170]
movzx eax, word [rbp + 0x172]
cmp cx, 0x5c
jne 0x140090b83
cmp ax, cx
je 0x140090b99
cmp cx, 0x2f
jne 0x140090b8e
cmp ax, cx
je 0x140090b99
cmp cx, 0x2e
jne 0x140090be1
cmp ax, cx
jne 0x140090be1
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140090bc0
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x140090be1
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.14017f910
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140090ccc
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.1400a61d0
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 0x140090d1b
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x140090d1b
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.1400a6280
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 0x140090e3c
Capabilities:
Set file attributes

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140090e97
test dl, 2
je 0x140090e8a
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 0x140090e99
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140090ebc
Capabilities:
Set current directory

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

Function at 0x140091ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x1402afa80]
call fcn.1400a4e74
mov rbx, rax
test rax, rax
je 0x140091f30
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.1400929b0
mov r8d, dword [rbx + 0x20]
lea rdx, [0x140226cf8]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400929b0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140092680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x1400926f8
test r8d, r8d
je 0x1400926f8
mov rdx, rcx
mov rcx, qword [0x1402afa80]
call fcn.1400a4e74
test rax, rax
je 0x1400926f4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400926e1
mov rcx, rax
call fcn.140092b50
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140092710
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x1402afa80]
jne 0x140092730
add rsp, 0x30
pop rdi
jmp fcn.1400a50b0
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.1400a4e74
mov rbx, rax
test rax, rax
je 0x1400927a5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14009278d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14009277a
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1402a74e8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1402afa80]
mov rdx, rdi
call fcn.1400a4e08
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400927b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400927f4
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140092840
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1402afa80]
call fcn.1400a4e74
mov rbx, rax
test rax, rax
je 0x140092893
cmp qword [rax + 8], 0
je 0x140092872
cmp dword [rax + 0x1c], 0
jne 0x140092872
mov rcx, rax
call fcn.1400927b0
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

Function at 0x1400928a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x1402afa80]
call fcn.1400a4e74
test rax, rax
je 0x140092908
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x1400928ee
mov r8, rbx
mov rcx, rax
call fcn.140092c60
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400929b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x48], esi
test rdx, rdx
je 0x140092aa7
cmp word [rdx], si
je 0x140092aa7
test r8d, r8d
jne 0x1400929de
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x140092a3e
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400929f0
lea r8d, [rax + rax]
cmp qword [rcx + 8], rsi
je 0x140092a1b
call fcn.140092b50
mov dword [rsp + 0x48], eax
cdqe
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp r8d, 2
mov qword [rsp + 0x40], rdi
mov ecx, 0xfde9
lea r8, [rsp + 0x58]
cmovne ecx, esi
call fcn.140092db0
mov rdi, rax
test rax, rax
je 0x140092aa2
mov rdx, rax
mov r8d, dword [rsp + 0x58]
cmp qword [rbx + 8], rsi
je 0x140092a7d
mov rcx, rbx
call fcn.140092b50
mov dword [rsp + 0x48], eax
jmp 0x140092a90
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1402a74e8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret