Function at 0x140040830
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 [0x1400f23c0]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov r15, rcx
xor ebx, ebx
mov dword [r11 - 0x30], 0x8170128
mov dword [r11 - 0x2c], 0x585a0402
mov dword [r11 - 0x28], 0x2010845
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 + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0xc
jb 0x140040880
mov byte [rsp + 0x194], 0
lea rcx, [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
jne 0x1400408d2
lea rcx, [rsp + 0x188]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x1400412ca
movdqa xmm0, xmmword [0x1400bb3a0]
movdqu xmmword [rsp + 0x138], xmm0
mov word [rsp + 0x148], 0xa
mov edx, ebx
nop
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0x11
jb 0x1400408f0
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 0x140040940
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x1400409cc
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400409c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400412ec
call fcn.14008629c
test rsi, rsi
je 0x1400412f2
movdqa xmm0, xmmword [0x1400bb410]
movdqu xmmword [rsp + 0x138], xmm0
mov word [rsp + 0x148], 0xd01
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 + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0x12
jb 0x140040a00
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 0x140040a44
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x140040ad0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040acb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041314
call fcn.14008629c
test rsi, rsi
je 0x14004131a
movdqa xmm0, xmmword [0x1400bb3d0]
movdqu xmmword [rsp + 0x138], xmm0
mov word [rsp + 0x148], 0x1012
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 + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0x12
jb 0x140040b00
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 0x140040b44
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x140040bd0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040bcb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004133c
call fcn.14008629c
test rsi, rsi
je 0x140041342
mov dword [rsp + 0x138], 0x12170d35
mov dword [rsp + 0x13c], 0x2b050912
mov dword [rsp + 0x140], 0xd020007
mov word [rsp + 0x144], 0x82a
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 + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0xe
jb 0x140040c10
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 0x140040c54
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x140040ce0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040cdb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041364
call fcn.14008629c
test rsi, rsi
je 0x14004136a
mov dword [rsp + 0x138], 0x12170d35
mov dword [rsp + 0x13c], 0x2c050912
mov dword [rsp + 0x140], 0x2b080919
mov word [rsp + 0x144], reloc.OLEAUT32.dll_SafeArrayUnaccessData
mov edx, ebx
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0xd
jb 0x140040d20
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 0x140040d64
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x140040df0
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040deb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041392
call fcn.14008629c
test rsi, rsi
je 0x140041398
mov dword [rsp + 0x138], 0x12170d35
mov dword [rsp + 0x13c], 0x3b050912
mov dword [rsp + 0x140], 0x171f091e
mov word [rsp + 0x144], 0x82a
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 + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0xe
jb 0x140040e30
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 0x140040e74
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x140040f00
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040efb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400413c0
call fcn.14008629c
test rsi, rsi
je 0x1400413c6
movdqa xmm0, xmmword [0x1400bb3c0]
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 + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0x10
jb 0x140040f30
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 0x140040f74
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x140041000
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040ffb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400413ee
call fcn.14008629c
test rsi, rsi
je 0x1400413f4
mov dword [rsp + 0x178], 0x14001736
mov dword [rsp + 0x17c], 0xe475a54
mov word [rsp + 0x180], 7
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 + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0xa
jb 0x140041040
mov byte [rsp + 0x182], 0
lea rcx, [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
jne 0x140041092
lea rcx, [rsp + 0x178]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14004141c
mov dword [rsp + 0x138], 0x20b0d25
mov dword [rsp + 0x13c], 0xe070130
mov dword [rsp + 0x140], 0x3a1b04
mov edx, ebx
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x138]
add rcx, rax
lea eax, [rdx + 0x63]
xor byte [rcx], al
inc edx
cmp edx, 0xb
jb 0x1400410c0
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 0x140041104
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x140041193
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004118e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041444
call fcn.14008629c
test r14, r14
je 0x14004144a
movdqa xmm0, xmmword [0x1400bb3e0]
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 + 0x63]
xor byte [rcx], al
inc ebx
cmp ebx, 0x10
jb 0x1400411c0
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 0x140041201
mov r8, rdi
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.140003ef0
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 0x140041292
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004128d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041472
call fcn.14008629c
test rbx, rbx
je 0x140041478
mov al, 1
jmp 0x1400412a1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140086710
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.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0x30]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_2.
lea rcx, [rsp + 0x48]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0x48]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_3.
lea rcx, [rsp + 0x60]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0x60]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_4.
lea rcx, [rsp + 0x78]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0x78]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_5.
lea rcx, [rsp + 0x90]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0x90]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_6.
lea rcx, [rsp + 0xa8]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0xa8]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_7.
lea rcx, [rsp + 0xc0]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0xc0]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_14.
lea rcx, [rsp + 0xd8]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0xd8]
call fcn.140087670
lea rdx, str.dll_3__not_found.
lea rcx, [rsp + 0xf0]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0xf0]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_b1.
lea rcx, [rsp + 0x108]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0x108]
call fcn.140087670
call fcn.14008d28c
int3
lea rdx, str.Cannot_find_function_b2.
lea rcx, [rsp + 0x120]
call fcn.14003a850
lea rdx, [0x1400f05b0]
lea rcx, [rsp + 0x120]
call fcn.140087670
int3