Function at 0x140004240
Capabilities:
Terminate process

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
movzx r12d, r9w
movzx r13d, r8w
mov r15, rdx
mov rbp, rcx
test rcx, rcx
je 0x140004960
test r8w, r8w
je 0x140004960
test rdx, rdx
je 0x140004960
test r9w, r9w
je 0x140004960
mov qword [rsp + 0x50], rbx
mov ecx, 0x70
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140004317
lea rdx, [rax + 0x11]
cmp byte [rsp + 0x70], dil
je 0x1400042e9
mov byte [rax], 0x36
mov eax, dword [rbp]
mov dword [rbx + 1], eax
mov eax, dword [rbp + 4]
mov dword [rbx + 5], eax
mov eax, dword [rbp + 8]
mov dword [rbx + 9], eax
mov eax, dword [rbp + 0xc]
mov dword [rbx + 0xd], eax
mov eax, dword [r15]
mov dword [rbx + 0x11], eax
mov eax, dword [r15 + 4]
mov dword [rbx + 0x15], eax
mov eax, dword [r15 + 8]
mov dword [rbx + 0x19], eax
mov ecx, dword [r15 + 0xc]
jmp 0x140004305
mov byte [rax], 0x34
mov ecx, edi
mov eax, dword [rbp]
mov dword [rbx + 1], eax
mov qword [rbx + 5], rdi
mov dword [rbx + 0xd], edi
mov eax, dword [r15]
mov dword [rbx + 0x11], eax
mov qword [rbx + 0x15], rdi
mov eax, ntohs
mov dword [rdx + rax], ecx
mov word [rbx + 0x21], r13w
mov word [rbx + 0x23], r12w
xor edx, edx
mov rcx, rbx
call fcn.140003e50
test eax, eax
jne 0x140004953
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rbx + 0x28], rax
movzx eax, byte [rsp + 0x78]
mov word [rbx + 0x30], ax
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
movzx edx, byte [rbx + 4]
movzx r9d, byte [rbx + 3]
movzx r8d, byte [rbx + 8]
shl r9d, 8
add r8d, 0xfeedbeef
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0xa]
shl ecx, 8
add ecx, 0x9e3779b9
add edx, ecx
movzx ecx, byte [rbx + 0xb]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 2]
add r9d, eax
shl ecx, 8
movzx eax, byte [rbx + 1]
add r8d, ecx
shl r9d, 8
add r9d, eax
movzx eax, byte [rbx]
shl r9d, 8
add r9d, eax
mov eax, r8d
sub r9d, edx
shr eax, 0xd
sub r9d, r8d
sub r9d, 0x61c88647
xor r9d, eax
sub edx, r9d
mov eax, r9d
sub edx, r8d
shl eax, 8
xor edx, eax
sub r8d, edx
mov eax, edx
shr eax, 0xd
sub r8d, r9d
xor r8d, eax
sub r9d, edx
sub r9d, r8d
mov eax, r8d
shr eax, 0xc
xor r9d, eax
sub edx, r9d
mov eax, r9d
sub edx, r8d
shl eax, 0x10
xor edx, eax
sub r8d, edx
mov eax, edx
shr eax, 5
sub r8d, r9d
xor r8d, eax
sub r9d, edx
mov eax, r8d
sub r9d, r8d
shr eax, 3
xor r9d, eax
sub edx, r9d
mov eax, r9d
sub edx, r8d
shl eax, 0xa
xor edx, eax
sub r8d, edx
mov eax, edx
sub r8d, r9d
movzx ecx, byte [rbx + 0x13]
movzx r10d, byte [rbx + 0xf]
shr eax, 0xf
xor r8d, eax
shl r10d, 8
movzx eax, byte [rbx + 0x12]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x11]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x10]
add edx, eax
shl ecx, 8
movzx eax, byte [rbx + 0x16]
add edx, ecx
movzx ecx, byte [rbx + 0x17]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x15]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x14]
add r8d, eax
shl ecx, 8
movzx eax, byte [rbx + 0xe]
add r8d, ecx
add r10d, eax
movzx ecx, byte [rbx + 0x1f]
movzx eax, byte [rbx + 0xd]
shl r10d, 8
add r10d, eax
movzx eax, byte [rbx + 0xc]
shl r10d, 8
add r10d, eax
mov eax, r8d
sub r10d, edx
shr eax, 0xd
sub r10d, r8d
add r10d, r9d
xor r10d, eax
sub edx, r10d
mov eax, r10d
sub edx, r8d
shl eax, 8
xor edx, eax
sub r8d, edx
mov eax, edx
shr eax, 0xd
sub r8d, r10d
xor r8d, eax
sub r10d, edx
sub r10d, r8d
mov eax, r8d
shr eax, 0xc
xor r10d, eax
sub edx, r10d
mov eax, r10d
sub edx, r8d
shl eax, 0x10
xor edx, eax
sub r8d, edx
mov eax, edx
shr eax, 5
sub r8d, r10d
xor r8d, eax
sub r10d, edx
mov eax, r8d
sub r10d, r8d
shr eax, 3
xor r10d, eax
sub edx, r10d
mov eax, r10d
sub edx, r8d
shl eax, 0xa
xor edx, eax
sub r8d, edx
mov eax, edx
sub r8d, r10d
shr eax, 0xf
xor r8d, eax
movzx eax, byte [rbx + 0x1e]
movzx ebp, byte [rbx + 0x20]
shl ecx, 8
add ebp, r8d
add ecx, eax
movzx eax, byte [rbx + 0x1d]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x1c]
add edx, eax
shl ecx, 8
add edx, ecx
movzx eax, byte [rbx + 0x22]
movzx ecx, byte [rbx + 0x23]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x21]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x1a]
shl ecx, 8
add ebp, ecx
movzx ecx, byte [rbx + 0x1b]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x19]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0x18]
shl ecx, 8
add ecx, eax
mov eax, ebp
sub ecx, edx
shr eax, 0xd
sub ecx, ebp
add ecx, r10d
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 8
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 0xd
xor ebp, eax
sub ecx, edx
sub ecx, ebp
mov eax, ebp
shr eax, 0xc
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 0x10
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 5
xor ebp, eax
sub ecx, edx
sub ecx, ebp
mov eax, ebp
shr eax, 3
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 0xa
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 0xf
xor ebp, eax
movzx eax, byte [rbx + 0x24]
add ecx, eax
add ebp, 0x25
sub ecx, edx
sub ecx, ebp
mov qword [rbx + 0x60], rbx
mov eax, ebp
mov dword [rbx + 0x68], 0x25
shr eax, 0xd
lea rsi, [rbx + 0x38]
xor ecx, eax
mov r14, 0xffffffffffffffff
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 8
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 0xd
xor ebp, eax
sub ecx, edx
sub ecx, ebp
mov eax, ebp
shr eax, 0xc
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 0x10
xor edx, eax
sub ebp, edx
mov eax, edx
sub ebp, ecx
shr eax, 5
xor ebp, eax
sub ecx, edx
mov eax, ebp
sub ecx, ebp
shr eax, 3
xor ecx, eax
sub edx, ecx
mov eax, ecx
sub edx, ebp
shl eax, 0xa
xor edx, eax
sub ebp, edx
shr edx, 0xf
sub ebp, ecx
xor ebp, edx
mov dword [rbx + 0x6c], ebp
mov rax, qword [0x1400097e0]
test rax, rax
jne 0x14000471b
mov ecx, 0x40
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x40], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsi], rax
test rax, rax
je 0x1400047ea
xorps xmm0, xmm0
mov ecx, 0x200
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov rax, qword [rsi]
mov qword [rax + 0x18], rsi
mov rax, qword [rsi]
mov dword [rax + 8], 0x20
mov rax, qword [rsi]
mov dword [rax + 0xc], 5
mov rax, qword [rsi]
mov qword [rax + 0x20], 0x38
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsi]
mov qword [rcx], rax
mov rax, qword [rsi]
mov dword [rax + 0x38], 0xa0111fe1
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400047ea
xor edx, edx
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov rax, rbx
mov qword [0x1400097e0], rbx
jmp 0x140004766
mov rax, qword [rax + 0x38]
mov qword [rsi], rax
mov qword [rbx + 0x48], rdi
mov rax, qword [0x1400097e0]
mov rcx, qword [rax + 0x38]
mov rax, qword [rcx + 0x18]
sub rax, qword [rcx + 0x20]
mov qword [rbx + 0x40], rax
mov rax, qword [0x1400097e0]
mov rcx, qword [rax + 0x38]
mov rax, qword [rcx + 0x18]
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400097e0]
mov rcx, qword [rax + 0x38]
mov qword [rcx + 0x18], rsi
mov rax, qword [0x1400097e0]
mov rax, qword [rax + 0x38]
inc dword [rax + 0x10]
mov rax, qword [0x1400097e0]
mov rcx, qword [rax + 0x38]
mov eax, ebp
mov edx, dword [rcx + 8]
dec edx
and rdx, rax
shl rdx, 4
add rdx, qword [rcx]
mov rax, qword [rdx]
inc dword [rdx + 8]
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x50], rdi
mov rax, qword [rdx]
test rax, rax
je 0x1400047a3
mov qword [rax + 0x18], rsi
mov eax, dword [rdx + 0xc]
inc eax
mov qword [rdx], rsi
lea ecx, [rax + rax*4]
add ecx, ecx
cmp dword [rdx + 8], ecx
jb 0x14000492e
mov rax, qword [rbx + 0x38]
cmp dword [rax + 0x34], edi
jne 0x14000492e
mov edx, dword [rax + 8]
mov eax, 2
shl rdx, 4
mul rdx
cmovb rax, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x1400047f4
mov ecx, r14d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rbx + 0x38]
xor edx, edx
mov rcx, rsi
mov r8d, dword [rax + 8]
shl r8, 5
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rbx + 0x38]
mov r11d, edi
mov eax, dword [r9 + 8]
mov ecx, dword [r9 + 0xc]
mov r8d, dword [r9 + 0x10]
inc ecx
shr r8d, cl
lea eax, [rax*2 - 1]
test dword [r9 + 0x10], eax
mov eax, edi
setne al
add r8d, eax
mov dword [r9 + 0x28], r8d
mov rax, qword [rbx + 0x38]
mov dword [rax + 0x2c], edi
mov rax, qword [rbx + 0x38]
cmp dword [rax + 8], edi
jbe 0x1400048e4
nop dword [rax]
mov rax, qword [rax]
mov ecx, r11d
add rcx, rcx
mov r8, qword [rax + rcx*8]
test r8, r8
je 0x1400048d3
mov rax, qword [rbx + 0x38]
mov r10, qword [r8 + 0x20]
mov ecx, dword [rax + 8]
lea eax, [rcx*2 - 1]
mov ecx, dword [r8 + 0x34]
and rax, rcx
shl rax, 4
add rax, rsi
mov ecx, dword [rax + 8]
inc ecx
mov dword [rax + 8], ecx
mov rdx, qword [rbx + 0x38]
cmp ecx, dword [rdx + 0x28]
jbe 0x1400048b1
inc dword [rdx + 0x2c]
mov rcx, qword [rbx + 0x38]
mov r9d, dword [rax + 0xc]
mov edx, r9d
imul edx, dword [rcx + 0x28]
cmp dword [rax + 8], edx
jbe 0x1400048b1
lea ecx, [r9 + 1]
mov dword [rax + 0xc], ecx
mov qword [r8 + 0x18], rdi
mov rcx, qword [rax]
mov qword [r8 + 0x20], rcx
mov rcx, qword [rax]
test rcx, rcx
je 0x1400048c8
mov qword [rcx + 0x18], r8
mov qword [rax], r8
mov r8, r10
test r10, r10
jne 0x140004862
mov rax, qword [rbx + 0x38]
inc r11d
cmp r11d, dword [rax + 8]
jb 0x140004850
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x38]
mov eax, dword [rcx + 8]
add eax, eax
mov dword [rcx + 8], eax
mov rax, qword [rbx + 0x38]
inc dword [rax + 0xc]
mov rax, qword [rbx + 0x38]
mov qword [rax], rsi
mov rcx, qword [rbx + 0x38]
mov eax, dword [rcx + 0x10]
shr eax, 1
cmp dword [rcx + 0x2c], eax
jbe 0x14000491a
mov edi, dword [rcx + 0x30]
inc edi
mov dword [rcx + 0x30], edi
mov rcx, qword [rbx + 0x38]
cmp dword [rcx + 0x30], 1
jbe 0x14000492e
mov dword [rcx + 0x34], 1
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140004933
xor eax, eax
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret