Function at 0x140007b00
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 rbx, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x140007bea
cmp byte [rcx + 1], 0
je 0x140007bea
mov byte [rax], 0
mov rdi, qword [rcx + 0xa8]
test rdi, rdi
je 0x140007bea
mov rcx, rdi
call fcn.14002be20
nop
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140007b79
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007b6c
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x140007ba1
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007b94
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x140007bc9
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007bbc
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007bdb
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r15d, r15d
mov qword [rbx + 0xa8], r15
cmp byte [rbx], r15b
je 0x140008316
cmp byte [rbx + 0x30f8], r15b
je 0x140007c6d
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140007c6d
mov rsi, qword [0x14004e960]
mov qword [0x14004e960], rbx
mov dword [rbx + 0x30fc], r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.1400164f0
mov rbp, rax
lea rdx, [0x1400419c4]
mov rcx, rdi
call fcn.140002b30
mov rdi, rax
test rax, rax
je 0x140007c74
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, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140007c74
mov rsi, qword [0x14004e960]
mov qword [0x14004e960], rbx
call fcn.1400187c0
mov qword [0x14004e960], rsi
mov esi, r15d
cmp dword [rbx + 0x30c0], r15d
jle 0x140007d1d
mov rbp, r15
nop word [rax + rax]
mov rax, qword [rbx + 0x30c8]
mov rdi, qword [rax + rbp + 8]
test rdi, rdi
je 0x140007d0f
mov rcx, qword [rdi + 0x38]
call fcn.140021400
mov qword [rdi + 0x38], r15
mov qword [rdi + 0x20], r15
mov qword [rdi + 0x18], r15
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140007cee
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007ce1
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
nop
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007d00
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add rbp, 0x10
cmp esi, dword [rbx + 0x30c0]
jl 0x140007ca0
mov edi, r15d
cmp dword [rbx + 0x3130], r15d
jle 0x140007d5f
mov rsi, r15
nop dword [rax]
mov r8, qword [rbx + 0x3138]
cmp dword [rsi + r8], 6
jne 0x140007d51
movsxd rax, edi
lea rcx, [rax + rax*2]
lea rdx, [r8 + rcx*8]
mov rcx, rbx
call qword [rsi + rreloc.WS2_32.dll_htonl + 8]
inc edi
add rsi, 0x18
cmp edi, dword [rbx + 0x3130]
jl 0x140007d30
mov esi, r15d
cmp dword [rbx + 0x1c78], r15d
jle 0x140007db7
mov r14, r15
nop
mov rax, qword [rbx + 0x1c80]
mov rdi, qword [r14 + rax]
test rdi, rdi
je 0x140007da9
mov rcx, rdi
call fcn.140004b80
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007d9a
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
inc esi
add r14, 8
cmp esi, dword [rbx + 0x1c78]
jl 0x140007d70
mov rcx, qword [rbx + 0x1c80]
test rcx, rcx
je 0x140007def
mov qword [rbx + 0x1c78], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007ddc
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c80], r15
mov rcx, qword [rbx + 0x1c90]
test rcx, rcx
je 0x140007e27
mov qword [rbx + 0x1c88], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007e14
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1c90], r15
mov rcx, qword [rbx + 0x1ca0]
test rcx, rcx
je 0x140007e5f
mov qword [rbx + 0x1c98], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007e4c
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1ca0], r15
mov qword [rbx + 0x1cd0], r15
mov rcx, qword [rbx + 0x1cb0]
test rcx, rcx
je 0x140007e9e
mov qword [rbx + 0x1ca8], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007e8b
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cb0], r15
mov rcx, qword [rbx + 0x1cc0]
test rcx, rcx
je 0x140007ed6
mov qword [rbx + 0x1cb8], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007ec3
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1cc0], r15
mov qword [rbx + 0x1eb0], r15
mov qword [rbx + 0x1ce8], r15
mov qword [rbx + 0x1ce0], r15
mov qword [rbx + 0x1cd8], r15
mov qword [rbx + 0x1d70], r15
mov qword [rbx + 0x1d58], r15
mov qword [rbx + 0x1cf8], r15
mov rcx, qword [rbx + 0x1e30]
test rcx, rcx
je 0x140007f3f
mov qword [rbx + 0x1e28], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007f2c
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e30], r15
mov rcx, qword [rbx + 0x1e40]
test rcx, rcx
je 0x140007f77
mov qword [rbx + 0x1e38], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007f64
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e40], r15
mov rcx, qword [rbx + 0x1e50]
test rcx, rcx
je 0x140007faf
mov qword [rbx + 0x1e48], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007f9c
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e50], r15
mov rcx, qword [rbx + 0x1e60]
test rcx, rcx
je 0x140007fe7
mov qword [rbx + 0x1e58], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140007fd4
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e60], r15
mov rcx, qword [rbx + 0x1e70]
test rcx, rcx
je 0x14000801f
mov qword [rbx + 0x1e68], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x14000800c
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e70], r15
mov qword [rbx + 0x1ea0], r15
mov qword [rbx + 0x1e98], r15
mov qword [rbx + 0x1e90], r15
mov edi, r15d
cmp dword [rbx + 0x1e78], r15d
jle 0x14000806e
mov rsi, r15
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x1e80]
mov rcx, qword [rcx + rsi]
call fcn.1400212f0
inc edi
lea rsi, [rsi + 8]
cmp edi, dword [rbx + 0x1e78]
jl 0x140008050
mov rcx, qword [rbx + 0x1e80]
test rcx, rcx
je 0x1400080a6
mov qword [rbx + 0x1e78], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140008093
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x1e80], r15
lea rcx, [rbx + 0x20e0]
call fcn.140020850
mov rcx, qword [rbx + 0x2110]
test rcx, rcx
je 0x1400080ea
mov qword [rbx + 0x2108], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x1400080d7
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2110], r15
mov rcx, qword [rbx + 0x2120]
test rcx, rcx
je 0x140008122
mov qword [rbx + 0x2118], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x14000810f
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2120], r15
mov rcx, qword [rbx + 0x3088]
test rcx, rcx
je 0x14000815a
mov qword [rbx + 0x3080], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140008147
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3088], r15
mov rcx, qword [rbx + 0x3098]
test rcx, rcx
je 0x140008192
mov qword [rbx + 0x3090], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x14000817f
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3098], r15
mov rcx, qword [rbx + 0x2148]
test rcx, rcx
je 0x1400081ca
mov qword [rbx + 0x2140], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x1400081b7
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2148], r15
mov rcx, qword [rbx + 0x2158]
test rcx, rcx
je 0x140008202
mov qword [rbx + 0x2150], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x1400081ef
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2158], r15
mov rcx, qword [rbx + 0x2168]
test rcx, rcx
je 0x14000823a
mov qword [rbx + 0x2160], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140008227
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x2168], r15
mov rcx, qword [rbx + 0x3128]
test rcx, rcx
je 0x140008272
mov qword [rbx + 0x3120], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x14000825f
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3128], r15
mov rcx, qword [rbx + 0x3118]
test rcx, rcx
je 0x1400082aa
mov qword [rbx + 0x3110], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140008297
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3118], r15
cmp qword [rbx + 0x3148], 0
je 0x1400082db
mov rdi, qword [rbx + 0x3148]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x1400082d4
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x3148], r15
mov rcx, qword [rbx + 0x3158]
test rcx, rcx
je 0x140008313
mov qword [rbx + 0x3150], r15
mov rax, qword [0x14004e960]
test rax, rax
je 0x140008300
dec dword [rax + 0x3b0]
mov rdx, qword [0x14004e950]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rbx + 0x3158], r15
mov byte [rbx], 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