Function at 0x140040320
Capabilities:
Encode data using xor
Link many functions at runtime

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [0x1400ee3c0]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov r15, rcx
xor ebx, ebx
mov dword [r11 - 0x30], 0xc2d9cfe2
mov dword [r11 - 0x2c], 0x829cc2c8
mov dword [r11 - 0x28], 0xd8dfd69f
xor eax, eax
mov byte [r11 - 0x24], al
mov edx, ebx
nop
movsxd rax, edx
lea rcx, [rsp + 0x188]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0xc
jb 0x140040370
mov byte [rsp + 0x194], 0
lea rcx, [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
jne 0x1400403c2
lea rcx, [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x140040dba
movdqa xmm0, xmmword [0x1400bb3a0]
movdqu xmmword [rsp + 0x138], xmm0
mov word [rsp + 0x148], 0xc0
mov edx, ebx
nop
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0x11
jb 0x1400403e0
mov byte [rsp + 0x149], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140040430
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [r15 + 8], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x1400404bc
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400404b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040ddc
call fcn.14008668c
test rsi, rsi
je 0x140040de2
movdqa xmm0, xmmword [0x1400bb3e0]
movdqu xmmword [rsp + 0x138], xmm0
mov word [rsp + 0x148], 0xc3cb
xor eax, eax
mov byte [rsp + 0x14a], al
mov edx, ebx
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0x12
jb 0x1400404f0
mov byte [rsp + 0x14a], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140040534
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [r15 + 0x10], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x1400405c0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400405bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e04
call fcn.14008668c
test rsi, rsi
je 0x140040e0a
movdqa xmm0, xmmword [0x1400bb400]
movdqu xmmword [rsp + 0x138], xmm0
mov word [rsp + 0x148], 0xded8
xor eax, eax
mov byte [rsp + 0x14a], al
mov edx, ebx
nop
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0x12
jb 0x1400405f0
mov byte [rsp + 0x14a], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140040634
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [r15 + 0x18], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x1400406c0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400406bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e2c
call fcn.14008668c
test rsi, rsi
je 0x140040e32
mov dword [rsp + 0x138], 0xd8d9c3ff
mov dword [rsp + 0x13c], 0xf1c3cfd8
mov dword [rsp + 0x140], 0xd7dcdedd
mov word [rsp + 0x144], 0xcef0
xor eax, eax
mov byte [rsp + 0x146], al
mov edx, ebx
nop
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0xe
jb 0x140040700
mov byte [rsp + 0x146], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140040744
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [r15 + 0x20], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x1400407d0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400407cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e54
call fcn.14008668c
test rsi, rsi
je 0x140040e5a
mov dword [rsp + 0x138], 0xd8d9c3ff
mov dword [rsp + 0x13c], 0xf6c3cfd8
mov dword [rsp + 0x140], 0xf1d6d7c3
mov word [rsp + 0x144], 0xcd
mov edx, ebx
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0xd
jb 0x140040810
mov byte [rsp + 0x145], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140040854
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [r15 + 0x28], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x1400408e0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400408db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040e82
call fcn.14008668c
test rsi, rsi
je 0x140040e88
mov dword [rsp + 0x138], 0xd8d9c3ff
mov dword [rsp + 0x13c], 0xe1c3cfd8
mov dword [rsp + 0x140], 0xcdc1d7c4
mov word [rsp + 0x144], 0xcef0
xor eax, eax
mov byte [rsp + 0x146], al
mov edx, ebx
nop
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0xe
jb 0x140040920
mov byte [rsp + 0x146], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140040964
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [r15 + 0x30], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x1400409f0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400409eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040eb0
call fcn.14008668c
test rsi, rsi
je 0x140040eb6
movdqa xmm0, xmmword [0x1400bb390]
movdqu xmmword [rsp + 0x138], xmm0
xor eax, eax
mov byte [rsp + 0x148], al
mov edx, ebx
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0x10
jb 0x140040a20
mov byte [rsp + 0x148], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140040a64
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov qword [r15 + 0x68], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x140040af0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040aeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040ede
call fcn.14008668c
test rsi, rsi
je 0x140040ee4
mov dword [rsp + 0x178], 0xdeced9fc
mov dword [rsp + 0x17c], 0xd4819c9e
mov word [rsp + 0x180], 0xdedd
xor eax, eax
mov byte [rsp + 0x182], al
mov edx, ebx
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x178]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0xa
jb 0x140040b30
mov byte [rsp + 0x182], 0
lea rcx, [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
jne 0x140040b82
lea rcx, [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140040f0c
mov dword [rsp + 0x138], 0xc8c5c3ef
mov dword [rsp + 0x13c], 0xd4c1c7fa
mov dword [rsp + 0x140], 0xe4c5de
mov edx, ebx
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx - 0x57]
xor byte [rcx], al
inc edx
cmp edx, 0xb
jb 0x140040bb0
mov byte [rsp + 0x143], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140040bf4
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [r15 + 0xd0], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x140040c83
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040c7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040f34
call fcn.14008668c
test r14, r14
je 0x140040f3a
movdqa xmm0, xmmword [0x1400bb3f0]
movdqu xmmword [rsp + 0x138], xmm0
xor eax, eax
mov byte [rsp + 0x148], al
nop word [rax + rax]
movsxd rax, ebx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rbx - 0x57]
xor byte [rcx], al
inc ebx
cmp ebx, 0x10
jb 0x140040cb0
mov byte [rsp + 0x148], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x158], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x168], xmm1
lea rax, [rsp + 0x138]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140040cf1
mov r8, rdi
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003990
lea rdx, [rsp + 0x158]
cmp qword [rsp + 0x170], 0xf
cmova rdx, qword [rsp + 0x158]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [r15 + 0xd8], rax
mov rdx, qword [rsp + 0x170]
cmp rdx, 0xf
jbe 0x140040d82
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040d7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040f62
call fcn.14008668c
test rbx, rbx
je 0x140040f68
mov al, 1
jmp 0x140040d91
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140086b00
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rdx, str.dll_1__not_found.
lea rcx, [rsp + 0x30]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0x30]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_2.
lea rcx, [rsp + 0x48]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0x48]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_3.
lea rcx, [rsp + 0x60]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0x60]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_4.
lea rcx, [rsp + 0x78]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0x78]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_5.
lea rcx, [rsp + 0x90]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0x90]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_6.
lea rcx, [rsp + 0xa8]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0xa8]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_7.
lea rcx, [rsp + 0xc0]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0xc0]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_14.
lea rcx, [rsp + 0xd8]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0xd8]
call fcn.140087a60
lea rdx, str.dll_3__not_found.
lea rcx, [rsp + 0xf0]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0xf0]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_b1.
lea rcx, [rsp + 0x108]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0x108]
call fcn.140087a60
call fcn.14008d67c
int3
lea rdx, str.Cannot_find_function_b2.
lea rcx, [rsp + 0x120]
call fcn.14003a340
lea rdx, [0x1400ec150]
lea rcx, [rsp + 0x120]
call fcn.140087a60
int3