Function at 0x140003b40
Capabilities:
Create thread
Link many functions at runtime
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x720]
sub rsp, 0x820
mov rdi, qword [0x14005c350]
xor esi, esi
mov r13, r9
mov r12, r8
mov r15d, edx
mov r14, rcx
cmp word [rdi + 0x330], 3
jne 0x140003ba1
mov rdi, qword [rdi + 0x338]
lea rdx, [0x140000000]
mov ebx, 0x80
jmp case.default.0x140003c13
mov rdi, rsi
lea rdx, [0x140000000]
mov ebx, 0x80
jmp case.default.0x140003c13
mov r13, qword [rbp + 0x778]
mov r12, qword [rbp + 0x770]
jmp case.default.0x140003c13
mov r13, qword [rbp + 0x778]
jmp 0x140003be0
mov r12, qword [rbp + 0x770]
mov r15d, dword [rbp + 0x768]
xor esi, esi
nop dword [rax]
test ebx, ebx
jne 0x140003bf8
xor al, al
jmp 0x140003c00
movzx eax, byte [rdi]
inc rdi
dec ebx
movsx rcx, al
cmp ecx, 8
ja case.default.0x140003c13
mov ecx, dword [rdx + rcx*4 + 0x41d8]
add rcx, rdx
jmp rcx
cmp dword [r14 + 0x20], 0
je case.default.0x140003c13
movsxd r8, r15d
mov r9, r13
add r8, r12
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jmp 0x1400040d1
cmp dword [r14 + 0x24], 0
je case.default.0x140003c13
mov rsi, qword [r14 + 8]
movsxd r15, r15d
add r15, r12
cmp dword [r14 + 0x14], 0
jne 0x140003c9f
test r13, r13
je 0x140003c64
xor ecx, ecx
jmp 0x140003ce9
lea rdx, [rbp + 0x450]
mov dword [rbp + 0x450], 0x100002
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x140003c86
xor ecx, ecx
jmp 0x140003ce9
lea rdx, [rbp + 0x450]
mov dword [rbp + 0x500], r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
jmp 0x140003cd0
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 0x100002
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140003cbb
xor ecx, ecx
jmp 0x140003ce9
lea rdx, [rbp - 0x80]
mov qword [rbp], r15
mov rcx, rsi
mov qword [rbp + 8], r13
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x140003cd8
xor ecx, ecx
jmp 0x140003ce9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ecx, ecx
jne 0x1400041b1
mov r15d, dword [rbp + 0x768]
lea rdx, [0x140000000]
xor esi, esi
jmp case.default.0x140003c13
cmp dword [r14 + 0x1c], 0
je case.default.0x140003c13
mov rcx, qword [r14]
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor edx, edx
movsxd r9, r15d
add r9, r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jmp 0x1400040d1
cmp dword [r14 + 0x1c], 0
je 0x140003dc6
mov rsi, qword [r14]
lea rcx, [0x14004bcf0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlCreateUserThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140000000]
test rax, rax
je 0x140003be7
lea rcx, [rsp + 0x60]
movsxd rdx, r15d
mov qword [rsp + 0x48], rcx
add rdx, r12
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rdx
xor edx, edx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call rax
xor esi, esi
mov eax, esi
cmp qword [rsp + 0x50], rax
setne al
test eax, eax
jmp 0x1400040d1
mov rcx, qword [r14]
mov r8, r13
movsxd rsi, r15d
add rsi, r12
mov rdx, rsi
call fcn.14000a790
test eax, eax
jne 0x1400041b1
lea rdx, [0x140000000]
cmp dword [r14 + 0x1c], eax
je 0x140003be7
mov r15, qword [r14]
lea rcx, [0x14004bcf0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlCreateUserThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140000000]
test rax, rax
je 0x140003be0
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x40], rcx
mov rcx, r15
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call rax
mov eax, esi
cmp qword [rsp + 0x58], rax
setne al
test eax, eax
jne 0x1400041b1
mov r15d, dword [rbp + 0x768]
lea rdx, [0x140000000]
jmp case.default.0x140003c13
cmp dword [r14 + 0x20], 0
jne case.default.0x140003c13
cmp dword [r14 + 0x1c], 0
je case.default.0x140003c13
cmp dword [r14 + 0x24], 0
jne case.default.0x140003c13
movsxd rdx, r15d
mov r8, r13
add rdx, r12
mov rcx, r14
call fcn.14000ac30
test eax, eax
jmp 0x1400040d1
cmp ebx, 2
jae 0x140003f58
movzx r12d, si
mov r15, rsi
cmp ebx, 4
jb 0x140003eef
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
add rdi, 4
sub ebx, 4
movsxd rcx, eax
test eax, eax
je 0x140003eef
cmp ebx, ecx
jl 0x140003eef
mov rsi, rdi
add rdi, rcx
sub ebx, ecx
cmp dword [r14 + 0x20], 0
lea rdx, [0x140000000]
je 0x140003bd9
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15d, dword [rbp + 0x768]
lea rdx, [0x140000000]
mov esi, 0
test rax, rax
je 0x140003bc7
xor ecx, ecx
movsx r8, r12w
mov qword [rsp + 0x28], rcx
add r8, rax
mov r9, r13
mov dword [rsp + 0x20], 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x140004051
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
sub ebx, 2
movzx r12d, ax
cmp ebx, 4
jb 0x140003ec5
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
add rdi, 4
sub ebx, 4
movsxd rcx, eax
test eax, eax
je 0x140003ec5
cmp ebx, ecx
jl 0x140003ec5
mov r15, rdi
add rdi, rcx
sub ebx, ecx
jmp 0x140003ec8
cmp ebx, 2
jae 0x1400040e3
movzx r13d, si
mov r15, rsi
cmp ebx, 4
jb 0x140003fdb
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
add rdi, 4
sub ebx, 4
movsxd rcx, eax
test eax, eax
je 0x140003fdb
cmp ebx, ecx
jl 0x140003fdb
mov rsi, rdi
add rdi, rcx
sub ebx, ecx
cmp dword [r14 + 0x1c], 0
lea rdx, [0x140000000]
je 0x140003bd0
mov r12, qword [r14]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15d, dword [rbp + 0x768]
lea rdx, [0x140000000]
mov esi, 0
test rax, rax
je 0x140003bc0
xor ecx, ecx
movsx r9, r13w
mov r13, qword [rbp + 0x778]
add r9, rax
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov rcx, r12
xor edx, edx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r12, qword [rbp + 0x770]
mov rsi, rax
mov r15d, dword [rbp + 0x768]
lea rdx, [0x140000000]
test rax, rax
je 0x140003be7
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 0x10000b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rdx, [0x140000000]
test eax, eax
je 0x140003be7
movsxd r15, r15d
lea rdx, [rbp - 0x80]
lea rcx, [r12 + r15]
mov qword [rbp], rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
lea rdx, [0x140000000]
test eax, eax
je 0x140003be7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor esi, esi
cmp eax, 0xffffffff
mov ecx, esi
setne cl
test ecx, ecx
jne 0x1400041b1
lea rdx, [0x140000000]
jmp case.default.0x140003c13
movzx ecx, word [rdi]
call qword [sym.imp.WS2_32.dll_ntohs]
add rdi, 2
sub ebx, 2
movzx r13d, ax
cmp ebx, 4
jb 0x140003fb1
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
add rdi, 4
sub ebx, 4
movsxd rcx, eax
test eax, eax
je 0x140003fb1
cmp ebx, ecx
jl 0x140003fb1
mov r15, rdi
add rdi, rcx
sub ebx, ecx
jmp 0x140003fb4
cmp dword [r14 + 0x24], 0
je case.default.0x140003c13
cmp dword [r14 + 0x1c], 0
je case.default.0x140003c13
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtQueueApcThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140000000]
test rax, rax
je case.default.0x140003c13
mov rcx, qword [r14 + 8]
xor r9d, r9d
movsxd rdx, r15d
mov r8, r13
add rdx, r12
mov dword [rsp + 0x20], esi
call rax
lea rdx, [0x140000000]
test eax, eax
jne case.default.0x140003c13
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rdx, [0x140000000]
cmp eax, 0xffffffff
je case.default.0x140003c13
mov eax, 1
jmp 0x1400041ba
xor eax, eax
mov rbx, qword [rsp + 0x860]
add rsp, 0x820
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret