Function at 0x14000b350
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x14000b43b
cmp byte [rcx + 1], 0
je 0x14000b43b
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x14000b43b
mov rcx, rbx
call fcn.140023760
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14000b3ca
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b3bd
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x14000b3f2
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b3e5
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14000b41a
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b40d
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b42c
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rdi + 0xa8], r15
cmp byte [rdi], r15b
je 0x14000bc2f
cmp byte [rdi + 0x3091], r15b
je 0x14000b4c3
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14000b4c3
mov rsi, qword [0x140105450]
mov qword [0x140105450], rdi
mov dword [rdi + 0x3094], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.140017100
mov rbp, rax
lea rdx, [0x1400e2330]
mov rcx, rbx
call fcn.140007150
mov rbx, rax
test rax, rax
je 0x14000b4bc
mov r9, rax
mov r8, qword [rsp + 0x40]
lea edx, [r15 + 1]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x140105450], rsi
mov ebx, r15d
cmp dword [rdi + 0x30d8], r15d
jle 0x14000b502
mov rsi, r15
mov rcx, qword [rdi + 0x30e0]
cmp dword [rsi + rcx + 4], 6
jne 0x14000b4f4
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x30d8]
jl 0x14000b4d2
mov esi, r15d
cmp dword [rdi + 0x1ba8], r15d
jle 0x14000b567
mov r14, r15
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi + 0x1bb0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000b559
mov rcx, rbx
call fcn.140008510
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b54a
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rdi + 0x1ba8]
jl 0x14000b520
mov rcx, qword [rdi + 0x1bb0]
test rcx, rcx
je 0x14000b59f
mov qword [rdi + 0x1ba8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b58c
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bb0], r15
mov rcx, qword [rdi + 0x1bc0]
test rcx, rcx
je 0x14000b5d7
mov qword [rdi + 0x1bb8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b5c4
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bc0], r15
mov rcx, qword [rdi + 0x1bd0]
test rcx, rcx
je 0x14000b60f
mov qword [rdi + 0x1bc8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b5fc
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bd0], r15
mov qword [rdi + 0x1c08], r15
mov rcx, qword [rdi + 0x1be0]
test rcx, rcx
je 0x14000b64e
mov qword [rdi + 0x1bd8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b63b
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1be0], r15
mov rcx, qword [rdi + 0x1bf0]
test rcx, rcx
je 0x14000b686
mov qword [rdi + 0x1be8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b673
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1bf0], r15
mov qword [rdi + 0x1df0], r15
mov qword [rdi + 0x1c18], r15
mov qword [rdi + 0x1c10], r15
mov qword [rdi + 0x1c98], r15
mov qword [rdi + 0x1c80], r15
mov qword [rdi + 0x1c20], r15
mov rcx, qword [rdi + 0x1d68]
test rcx, rcx
je 0x14000b6e8
mov qword [rdi + 0x1d60], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b6d5
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d68], r15
mov rcx, qword [rdi + 0x1d78]
test rcx, rcx
je 0x14000b720
mov qword [rdi + 0x1d70], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b70d
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d78], r15
mov rcx, qword [rdi + 0x1d88]
test rcx, rcx
je 0x14000b758
mov qword [rdi + 0x1d80], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b745
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1d88], r15
mov rcx, qword [rdi + 0x1dc8]
test rcx, rcx
je 0x14000b790
mov qword [rdi + 0x1dc0], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b77d
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1dc8], r15
mov rcx, qword [rdi + 0x1dd8]
test rcx, rcx
je 0x14000b7c8
mov qword [rdi + 0x1dd0], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b7b5
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1dd8], r15
mov ebp, r15d
cmp dword [rdi + 0x1de0], r15d
jle 0x14000b8a6
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0x1de8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14000b894
mov rsi, qword [rbx + 0x30]
test rsi, rsi
je 0x14000b826
mov rcx, rsi
call fcn.140005a10
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b817
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000b859
mov rcx, rsi
call fcn.140005a10
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b849
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
lea rcx, [rbx + 0x70]
lea r9, [0x140017a00]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400c8f80
nop
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b885
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x1de0]
jl 0x14000b7e0
mov rcx, qword [rdi + 0x1de8]
test rcx, rcx
je 0x14000b8de
mov qword [rdi + 0x1de0], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b8cb
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x1de8], r15
lea rcx, [rdi + 0x2088]
call fcn.140017b50
mov rcx, qword [rdi + 0x20b8]
test rcx, rcx
je 0x14000b922
mov qword [rdi + 0x20b0], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b90f
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20b8], r15
mov rcx, qword [rdi + 0x20c8]
test rcx, rcx
je 0x14000b95a
mov qword [rdi + 0x20c0], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b947
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20c8], r15
lea rcx, [rdi + 0x2028]
call fcn.140017cf0
mov esi, r15d
cmp dword [rdi + 0x2050], r15d
jle 0x14000b9cb
mov rbp, r15
nop word [rax + rax]
mov rbx, qword [rdi + 0x2058]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140023140
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x14000b9bd
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b9b0
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x2050]
jl 0x14000b980
mov rcx, qword [rdi + 0x2058]
test rcx, rcx
je 0x14000ba03
mov qword [rdi + 0x2050], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000b9f0
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2058], r15
mov rcx, qword [rdi + 0x2078]
test rcx, rcx
je 0x14000ba3b
mov qword [rdi + 0x2070], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000ba28
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2078], r15
mov rcx, qword [rdi + 0x3068]
test rcx, rcx
je 0x14000ba73
mov qword [rdi + 0x3060], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000ba60
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3068], r15
mov rcx, qword [rdi + 0x3078]
test rcx, rcx
je 0x14000baab
mov qword [rdi + 0x3070], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000ba98
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3078], r15
mov rcx, qword [rdi + 0x20f0]
test rcx, rcx
je 0x14000bae3
mov qword [rdi + 0x20e8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000bad0
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x20f0], r15
mov rcx, qword [rdi + 0x2100]
test rcx, rcx
je 0x14000bb1b
mov qword [rdi + 0x20f8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000bb08
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2100], r15
mov rcx, qword [rdi + 0x2110]
test rcx, rcx
je 0x14000bb53
mov qword [rdi + 0x2108], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000bb40
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x2110], r15
mov rcx, qword [rdi + 0x30c0]
test rcx, rcx
je 0x14000bb8b
mov qword [rdi + 0x30b8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000bb78
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x30c0], r15
mov rcx, qword [rdi + 0x30b0]
test rcx, rcx
je 0x14000bbc3
mov qword [rdi + 0x30a8], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000bbb0
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x30b0], r15
cmp qword [rdi + 0x30f8], 0
je 0x14000bbf4
mov rbx, qword [rdi + 0x30f8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000bbed
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x30f8], r15
mov rcx, qword [rdi + 0x3108]
test rcx, rcx
je 0x14000bc2c
mov qword [rdi + 0x3100], r15
mov rax, qword [0x140105450]
test rax, rax
je 0x14000bc19
dec dword [rax + 0x3b0]
mov rdx, qword [0x140105440]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rdi + 0x3108], r15
mov byte [rdi], 0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret