joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ef5e8
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
xor ebx, ebx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x1400ef692
movsxd rcx, dword [rcx + 8]
lea rax, [rbp + 0x980]
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r9d, r9d
xor r8d, r8d
inc ecx
mov dword [rsp + 0x40], 1
mov qword [rbp + 0x980], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1400ef68b
je 0x1400ef711
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400ef711
lea r8, [rbp + 0x970]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400ef68b
cmp dword [rbp + 0x970], ebx
je 0x1400ef68b
lea ebx, [rax + 2]
jmp 0x1400ef711
mov ebx, 4
jmp 0x1400ef711
mov rcx, qword [rcx + 0x30]
lea rax, [rbp + 0x978]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x800
mov dword [rbp + 0x978], reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbp + 0x970], eax
test eax, eax
jle 0x1400ef711
mov rcx, qword [0x14021be74]
movsxd r8, eax
xor edx, edx
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movsxd rcx, dword [rbp + 0x970]
mov dword [rdi + 0x40], ecx
mov r8, rcx
lea rdx, [rbp + 0x150]
mov rcx, rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
movsxd rax, ebx
add rsp, 0xa50
pop rdi
pop rbx
pop rbp
ret

Function at 0x1400ef720
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
cmp dword [rcx], 1
mov rax, rdx
mov rdi, rcx
jne 0x1400ef74d
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x1400ef795
cmp qword [rcx + 0x38], rsi
je 0x1400ef795
cmp r8d, dword [rcx + 0x40]
mov rdx, qword [rcx + 0x48]
mov esi, r8d
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x1400ef795
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x14021be74]
xor edx, edx
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 0x1400ef7a8
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10d, r8d
mov r11, rdx
jne 0x1400ef7c6
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x1400ef804
cmp byte [rcx + 0x20], 0
lea r8, [rcx + 4]
mov edx, reloc.OLEAUT32.dll_DispGetIDsOfNames
jne 0x1400ef7da
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400ef7e8
mov rcx, qword [rax]
jmp 0x1400ef7ec
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r8
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
add rsp, 0x38
ret
Function at 0x1400ef80c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x760]
sub rsp, 0x860
mov rsi, rcx
mov rcx, qword [0x140221c20]
xor edi, edi
mov r15d, edi
call fcn.14012a578
mov rcx, qword [rsi]
lea r12d, [rdi + 1]
mov r14, rax
cmp word [rsi + 0x24], r12w
jne 0x1400ef895
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400efa07
lea rcx, [rsi + 0x30]
lea edx, [rdi + 0x28]
call fcn.14012b2ac
mov r15d, r12d
mov dword [rax], r12d
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rcx, rax
mov rax, qword [rsi + 0x28]
mov qword [r14 + 8], rax
mov qword [r14], rcx
jmp 0x1400efa07
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rsp + 0x60]
cmp word [rsi + 0x26], di
je 0x1400ef8c6
lea rax, [rbp + 0x7a0]
mov dword [rbp + 0x7a0], reloc.OLEAUT32.dll_DispGetIDsOfNames
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
jmp 0x1400ef8e1
lea rax, [rbp + 0x7a8]
mov dword [rbp + 0x7a8], reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov r12d, eax
test eax, eax
jle 0x1400efa07
mov rbx, qword [rsi + 0x30]
mov r15d, 2
test rbx, rbx
je 0x1400ef941
lea rcx, [rbx + 0x14]
cmp word [rsi + 0x26], di
je 0x1400ef91e
movsxd r8, dword [rbp + 0x7a0]
lea rdx, [rsp + 0x40]
jmp 0x1400ef92a
movsxd r8, dword [rbp + 0x7a8]
lea rdx, [rsp + 0x30]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400ef938
mov rbx, qword [rbx]
jmp 0x1400ef901
lea rdi, [rbx + 0x10]
test rbx, rbx
jne 0x1400ef990
lea rcx, [rsi + 0x30]
mov edx, 0x60
call fcn.14012b2ac
xor r8d, r8d
mov dword [rax], r15d
mov qword [rax + 0x28], rsi
mov rdi, rax
mov al, byte [rsi + 0x26]
mov byte [rdi + 0x20], al
cmp word [rsi + 0x26], r8w
je 0x1400ef986
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi + 4], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rdi + 0x14], xmm1
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x1c], eax
jmp 0x1400ef990
movups xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rdi + 4], xmm0
mov r8, qword [rdi + 0x38]
mov rcx, qword [0x14021be74]
test r8, r8
jne 0x1400ef9cc
movsxd rbx, r12d
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rsp + 0x60]
mov r8, rbx
mov rcx, rax
mov qword [rdi + 0x38], rax
mov dword [rdi + 0x40], r12d
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_memcpy
jmp 0x1400ef9fc
mov eax, dword [rdi + 0x40]
mov edx, 8
add eax, r12d
movsxd r9, eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movsxd rcx, dword [rdi + 0x40]
lea rdx, [rsp + 0x60]
add rcx, rax
movsxd r8, r12d
mov qword [rdi + 0x38], rax
call sub.msvcrt.dll_memcpy
add dword [rdi + 0x40], r12d
mov qword [r14], rdi
mov rcx, qword [rsi + 0x28]
mov qword [r14 + 8], rcx
mov eax, r15d
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x860
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400efbcc
Capabilities:
Set socket configuration

Disassembly:
xor r9d, r9d
lea r8d, [r9 + 1]
jmp 0x1400efbd8
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, 0x40
mov r12d, edx
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [0x14021d6e8]
mov r13, r9
mov esi, r8d
xor r14d, r14d
call fcn.14012a89c
mov rbx, rax
test rax, rax
je 0x1400efd0e
cmp r12d, 0xffff
ja 0x1400efcf7
bt esi, 0x1c
jae 0x1400efc3b
lea r15d, [r14 + 0x17]
btr esi, 0x1c
jmp 0x1400efc41
mov r15d, 2
mov eax, 1
test esi, esi
mov ecx, r15d
cmove esi, eax
xor r8d, r8d
mov edx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400efcf7
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x1400efce9
xor ecx, ecx
lea r8, [rbx + 8]
cmp r15d, 0x17
mov rdx, rbp
mov r9, r8
sete cl
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r13
call fcn.1400efd74
test eax, eax
je 0x1400efce9
cmp esi, 1
jne 0x1400efcc1
lea edx, [rsi + 0x63]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1400efce9
xor eax, eax
cmp r15d, 0x17
mov qword [rbx], rbp
sete al
cmp rdi, 0xffffffffffffffff
mov word [rbx + 0x24], si
mov word [rbx + 0x26], ax
mov rax, rdi
mov r14, rbx
cmove rax, rbx
mov qword [rbx + 0x28], rax
jmp 0x1400efcf2
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
test r14, r14
jne 0x1400efd0e
mov rcx, qword [0x14021d6e8]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14012a7d0
lea r11, [rsp + 0x40]
mov rax, r14
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 0x1400efbd8
Capabilities:
Set socket configuration

Disassembly:
xor r9d, r9d
lea r8d, [r9 + 1]
jmp 0x1400efbd8
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, 0x40
mov r12d, edx
mov rdi, rcx
mov rdx, rcx
mov rcx, qword [0x14021d6e8]
mov r13, r9
mov esi, r8d
xor r14d, r14d
call fcn.14012a89c
mov rbx, rax
test rax, rax
je 0x1400efd0e
cmp r12d, 0xffff
ja 0x1400efcf7
bt esi, 0x1c
jae 0x1400efc3b
lea r15d, [r14 + 0x17]
btr esi, 0x1c
jmp 0x1400efc41
mov r15d, 2
mov eax, 1
test esi, esi
mov ecx, r15d
cmove esi, eax
xor r8d, r8d
mov edx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400efcf7
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x1400efce9
xor ecx, ecx
lea r8, [rbx + 8]
cmp r15d, 0x17
mov rdx, rbp
mov r9, r8
sete cl
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r13
call fcn.1400efd74
test eax, eax
je 0x1400efce9
cmp esi, 1
jne 0x1400efcc1
lea edx, [rsi + 0x63]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1400efce9
xor eax, eax
cmp r15d, 0x17
mov qword [rbx], rbp
sete al
cmp rdi, 0xffffffffffffffff
mov word [rbx + 0x24], si
mov word [rbx + 0x26], ax
mov rax, rdi
mov r14, rbx
cmove rax, rbx
mov qword [rbx + 0x28], rax
jmp 0x1400efcf2
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
test r14, r14
jne 0x1400efd0e
mov rcx, qword [0x14021d6e8]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.14012a7d0
lea r11, [rsp + 0x40]
mov rax, r14
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 0x1400efe70
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
mov rsi, r8
movsxd rdi, ecx
cmp edx, 0xffffffff
jne 0x1400efea6
lea r8, [rax + 0x10]
mov rcx, rdi
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x1400efee9
mov r8d, edx
mov rcx, rdi
mov r9d, 2
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1400efedd
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 0x1400efee9
mov ecx, 0xfffffffe
test eax, eax
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 0x1400eff90
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 0x1400effd4
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
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 0x1400f0700
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 [0x140221c40]
call fcn.14012a83c
mov rbx, rax
test rax, rax
je 0x1400f0750
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.1400f07d0
mov r8d, dword [rbx + 0x20]
lea rdx, [0x1401e134c]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400f07d0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f0760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdx, rcx
mov rcx, qword [0x140221c40]
mov edi, r8d
call fcn.14012a83c
mov rbx, rax
test rax, rax
je 0x1400f07bb
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400f07d0
lea rdx, [0x1401e134c]
mov r8d, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400f07d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f07d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 0
test rdx, rdx
je 0x1400f08d3
cmp word [rdx], 0
je 0x1400f08d3
test r8d, r8d
jne 0x1400f07fd
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x1400f0863
or rax, 0xffffffffffffffff
cmp qword [rcx + 8], 0
je 0x1400f0831
nop
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400f0810
lea r8d, [rax + rax]
call fcn.1400f1460
mov dword [rsp + 0x48], eax
cdqe
add rsp, 0x30
pop rbx
ret
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400f0831
mov rcx, qword [rcx]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor ecx, ecx
cmp r8d, 2
mov eax, 0xfde9
lea r8, [rsp + 0x58]
cmove ecx, eax
mov qword [rsp + 0x40], rdi
call fcn.1400f15b0
mov rdi, rax
test rax, rax
je 0x1400f08ce
cmp qword [rbx + 8], 0
mov r8d, dword [rsp + 0x58]
mov rdx, rax
je 0x1400f08a5
mov rcx, rbx
call fcn.1400f1460
mov dword [rsp + 0x48], eax
jmp 0x1400f08bc
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14021be74]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x1400f08e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x140221c40]
call fcn.14012a83c
test rax, rax
je 0x1400f0910
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.1400f07d0
add rsp, 0x20
pop rbx
ret

Function at 0x1400f0920
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 [0x140221c40]
mov ebx, r8d
call fcn.14012a83c
test rax, rax
je 0x1400f095c
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400f07d0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f0970
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x140221c40]
call fcn.14012a83c
mov rbx, rax
test rax, rax
je 0x1400f09c3
cmp qword [rax + 8], 0
je 0x1400f09a2
cmp dword [rax + 0x1c], 0
jne 0x1400f09a2
mov rcx, rax
call fcn.1400eff90
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1400f0ad0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x140221c40]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
call fcn.14012a83c
mov rdi, rax
test rax, rax
je 0x1400f0b74
cmp qword [rax + 8], rbx
je 0x1400f0b37
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.1400f1670
test rax, rax
je 0x1400f0b24
inc dword [rdi + 0x14]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ebx, 1
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f0b86
cmp dword [rsp + 0x58], ebx
je 0x1400f0b86
mov rcx, qword [rdi]
mov r9d, 1
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
or ebx, 0xffffffff
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400f0ba0
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 rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x1400f0c18
test r8d, r8d
je 0x1400f0c18
mov rdx, rcx
mov rcx, qword [0x140221c40]
call fcn.14012a83c
test rax, rax
je 0x1400f0c14
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400f0c01
mov rcx, rax
call fcn.1400f1460
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 0x1400f0c40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x140221c40]
mov rbx, r8
mov dword [rsp + 0x58], 0
call fcn.14012a83c
test rax, rax
je 0x1400f0ca8
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x1400f0c8e
mov r8, rbx
mov rcx, rax
call fcn.1400f1670
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 0x1400f0eb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x14021be74]
mov rsi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400f1074
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
cmp rsi, 0xffffffffffffffff
je 0x1400f0f1a
test rsi, rsi
je 0x1400f0fda
dec rsi
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r13
je 0x1400f0f39
mov r8d, 1
mov rcx, rdi
call fcn.1400f1670
mov dword [rsp + 0x34], eax
jmp 0x1400f0f56
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x1400f0fda
test r8b, r8b
je 0x1400f0f72
mov byte [rbx], r8b
movzx r8d, byte [rsp + 0x30]
inc rbx
lea eax, [r14 - 1]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x1400f0fb4
mov rcx, qword [0x14021be74]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x1400f0fda
test r15d, r15d
jne 0x1400f0f08
cmp r8b, 0xd
je 0x1400f0fdf
cmp r8b, 0xa
jne 0x1400f0f08
dec rbx
jmp 0x1400f105d
test r15d, r15d
jne 0x1400f105d
cmp r8b, 0xa
jne 0x1400f0fea
dec rbx
jmp 0x1400f105d
cmp r8b, 0xd
jne 0x1400f105d
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r13
je 0x1400f1012
mov r8d, 1
mov rcx, rdi
call fcn.1400f1670
mov dword [rsp + 0x34], eax
jmp 0x1400f102b
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1400f105d
cmp qword [rdi + 8], r13
je 0x1400f103d
inc dword [rdi + 0x14]
jmp 0x1400f105d
mov rcx, qword [rdi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], r13b
mov rbx, qword [rsp + 0x70]
mov rax, rbp
jmp 0x1400f1077
mov rax, r13
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400f10a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x14021be74]
mov rbp, r8
mov r12d, edx
mov r8d, 0x1000
xor edx, edx
mov r13, r9
xor edi, edi
mov r15d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400f1282
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
nop dword [rax]
cmp rbp, 0xffffffffffffffff
je 0x1400f1112
test rbp, rbp
je 0x1400f11d4
dec rbp
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x1400f1132
mov r8d, 2
mov rcx, rsi
call fcn.1400f1670
mov dword [rsp + 0x34], eax
jmp 0x1400f114f
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x1400f11d4
test dx, dx
je 0x1400f116a
mov word [rbx], dx
movzx edx, word [rsp + 0x30]
add rbx, 2
mov rdi, rbx
lea eax, [r15 - 1]
sub rdi, r14
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x1400f11b0
mov rcx, qword [0x14021be74]
add r15d, 0x800
mov r8, r14
movsxd r9, r15d
mov edx, 8
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r14, rax
movsxd rax, edi
lea rbx, [r14 + rax*2]
test dx, dx
je 0x1400f11d4
mov edi, 0
test r12d, r12d
jne 0x1400f1100
cmp dx, 0xd
je 0x1400f11d9
cmp dx, 0xa
je 0x1400f11df
jmp 0x1400f1100
test r12d, r12d
jne 0x1400f11e3
cmp dx, 0xa
jne 0x1400f1202
sub rbx, 2
xor edi, edi
mov rax, rbx
sub rax, r14
sar rax, 1
mov qword [r13], rax
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
mov rax, r14
jmp 0x1400f1285
cmp dx, 0xd
jne 0x1400f11e3
sub rbx, 2
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x1400f122e
mov r8d, 2
mov rcx, rsi
call fcn.1400f1670
xor edi, edi
mov dword [rsp + 0x34], eax
jmp 0x1400f1247
mov rcx, qword [rsi]
xor edi, edi
lea r9, [rsp + 0x34]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x1400f11e5
cmp qword [rsi + 8], 0
je 0x1400f125c
add dword [rsi + 0x14], 2
jmp 0x1400f11e5
mov rcx, qword [rsi]
mov r9d, 1
lea r8, [rsp + 0x3c]
lea edx, [r9 - 3]
mov qword [rsp + 0x38], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1400f11e5
mov rax, rdi
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400f12a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x14021be74]
mov rdi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400f1439
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x1400f1309
test rdi, rdi
je 0x1400f1397
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400f1820
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x1400f1321
xor r8b, r8b
jmp 0x1400f1325
movzx r8d, byte [rbx]
cdqe
mov byte [rsp + 0x30], r8b
add rbx, rax
lea eax, [r14 - 5]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x1400f1371
mov rcx, qword [0x14021be74]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x1400f1397
test r15d, r15d
jne 0x1400f12f7
cmp r8b, 0xd
je 0x1400f13a0
cmp r8b, 0xa
jne 0x1400f12f7
dec rbx
jmp 0x1400f1424
test r15d, r15d
jne 0x1400f1424
cmp r8b, 0xa
jne 0x1400f13ab
dec rbx
jmp 0x1400f1424
cmp r8b, 0xd
jne 0x1400f1424
dec rbx
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x1400f13d4
mov r8d, 1
mov rcx, rsi
call fcn.1400f1670
mov dword [rsp + 0x34], eax
jmp 0x1400f13f1
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1400f1424
cmp qword [rsi + 8], 0
je 0x1400f1404
inc dword [rsi + 0x14]
jmp 0x1400f1424
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret