Function at 0x140003930
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 [0x140036d20]
xor esi, esi
mov r13, r9
mov r12, r8
mov r15d, edx
mov r14, rcx
cmp word [rdi + 0x330], 3
jne 0x140003991
mov rdi, qword [rdi + 0x338]
lea rdx, [0x140000000]
mov ebx, pe_nt_image_headers64
jmp case.default.0x140003a03
mov rdi, rsi
lea rdx, [0x140000000]
mov ebx, pe_nt_image_headers64
jmp case.default.0x140003a03
mov r13, qword [rbp + 0x778]
mov r12, qword [rbp + 0x770]
jmp case.default.0x140003a03
mov r13, qword [rbp + 0x778]
jmp 0x1400039d0
mov r12, qword [rbp + 0x770]
mov r15d, dword [rbp + 0x768]
xor esi, esi
nop dword [rax]
test ebx, ebx
jne 0x1400039e8
xor al, al
jmp 0x1400039f0
movzx eax, byte [rdi]
inc rdi
dec ebx
movsx rcx, al
cmp ecx, 8
ja case.default.0x140003a03
mov ecx, dword [rdx + rcx*4 + 0x3fc8]
add rcx, rdx
jmp rcx
cmp dword [r14 + 0x20], 0
je case.default.0x140003a03
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 0x140003ec1
cmp dword [r14 + 0x24], 0
je case.default.0x140003a03
mov rsi, qword [r14 + 8]
movsxd r15, r15d
add r15, r12
cmp dword [r14 + 0x14], 0
jne 0x140003a8f
test r13, r13
je 0x140003a54
xor ecx, ecx
jmp 0x140003ad9
lea rdx, [rbp + 0x450]
mov dword [rbp + 0x450], 0x100002
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x140003a76
xor ecx, ecx
jmp 0x140003ad9
lea rdx, [rbp + 0x450]
mov dword [rbp + 0x500], r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
jmp 0x140003ac0
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 0x100002
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140003aab
xor ecx, ecx
jmp 0x140003ad9
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 0x140003ac8
xor ecx, ecx
jmp 0x140003ad9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test ecx, ecx
jne 0x140003fa1
mov r15d, dword [rbp + 0x768]
lea rdx, [0x140000000]
xor esi, esi
jmp case.default.0x140003a03
cmp dword [r14 + 0x1c], 0
je case.default.0x140003a03
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 0x140003ec1
cmp dword [r14 + 0x1c], 0
je 0x140003bb6
mov rsi, qword [r14]
lea rcx, str.ntdll.dll
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 0x1400039d7
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 0x140003ec1
mov rcx, qword [r14]
mov r8, r13
movsxd rsi, r15d
add rsi, r12
mov rdx, rsi
call fcn.14000b080
test eax, eax
jne 0x140003fa1
lea rdx, [0x140000000]
cmp dword [r14 + 0x1c], eax
je 0x1400039d7
mov r15, qword [r14]
lea rcx, str.ntdll.dll
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 0x1400039d0
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 0x140003fa1
mov r15d, dword [rbp + 0x768]
lea rdx, [0x140000000]
jmp case.default.0x140003a03
cmp dword [r14 + 0x20], 0
jne case.default.0x140003a03
cmp dword [r14 + 0x1c], 0
je case.default.0x140003a03
cmp dword [r14 + 0x24], 0
jne case.default.0x140003a03
movsxd rdx, r15d
mov r8, r13
add rdx, r12
mov rcx, r14
call fcn.14000b520
test eax, eax
jmp 0x140003ec1
cmp ebx, 2
jae 0x140003d48
movzx r12d, si
mov r15, rsi
cmp ebx, 4
jb 0x140003cdf
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 0x140003cdf
cmp ebx, ecx
jl 0x140003cdf
mov rsi, rdi
add rdi, rcx
sub ebx, ecx
cmp dword [r14 + 0x20], 0
lea rdx, [0x140000000]
je 0x1400039c9
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 0x1400039b7
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 0x140003e41
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 0x140003cb5
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 0x140003cb5
cmp ebx, ecx
jl 0x140003cb5
mov r15, rdi
add rdi, rcx
sub ebx, ecx
jmp 0x140003cb8
cmp ebx, 2
jae 0x140003ed3
movzx r13d, si
mov r15, rsi
cmp ebx, 4
jb 0x140003dcb
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 0x140003dcb
cmp ebx, ecx
jl 0x140003dcb
mov rsi, rdi
add rdi, rcx
sub ebx, ecx
cmp dword [r14 + 0x1c], 0
lea rdx, [0x140000000]
je 0x1400039c0
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 0x1400039b0
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 0x1400039d7
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 0x1400039d7
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 0x1400039d7
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 0x140003fa1
lea rdx, [0x140000000]
jmp case.default.0x140003a03
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 0x140003da1
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 0x140003da1
cmp ebx, ecx
jl 0x140003da1
mov r15, rdi
add rdi, rcx
sub ebx, ecx
jmp 0x140003da4
cmp dword [r14 + 0x24], 0
je case.default.0x140003a03
cmp dword [r14 + 0x1c], 0
je case.default.0x140003a03
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.0x140003a03
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.0x140003a03
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
lea rdx, [0x140000000]
cmp eax, 0xffffffff
je case.default.0x140003a03
mov eax, 1
jmp 0x140003faa
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