Function at 0x140003e40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x380
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14009a478]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdi, rcx
xor ebx, ebx
call fcn.140002c60
cmp qword [rdi + 0x30], 0xa
jne 0x140003dd2
cmp qword [rdi + 0x50], 0x40
jne 0x140003dd2
lea rcx, [rbp + 0x210]
call fcn.140002ed0
nop
mov dword [rsp + 0x30], 0xa4bea7e1
mov dword [rsp + 0x34], 0xaaa4beae
mov word [rsp + 0x38], 0xf2
mov byte [rsp + 0x3a], 1
mov dword [rsp + 0x50], 0xa7a8a6e1
mov dword [rsp + 0x54], 0x100f1ae
mov dword [rsp + 0x48], 0xb9a8a0e1
mov dword [rsp + 0x4c], 0x100f1a3
mov dword [rsp + 0x40], 0xb8acbee1
mov word [rsp + 0x44], 0xf6
mov byte [rsp + 0x46], 1
mov dword [rsp + 0x58], 0xafb9b1b3
mov dword [rsp + 0x5c], 0xa7a3a5f6
mov word [rsp + 0x60], 0xbb
mov byte [rsp + 0x62], 1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140003e70
nop
lea rdx, [rdi + 0x60]
mov rcx, rax
call fcn.140006c40
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x1d0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1e0], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
lea r8, [rsp + 0x48]
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp + 0x48]
call fcn.140003fe0
nop
lea rdx, [rbp + 0x210]
mov rcx, rax
call fcn.140006c40
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 8], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.140003fe0
nop
mov rdx, rdi
mov rcx, rax
call fcn.140006c40
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 8]
call fcn.1400040e0
nop
lea rdx, [rdi + 0x20]
mov rcx, rax
call fcn.140006c40
movups xmm7, xmmword [rax]
movups xmmword [rbp + 0x230], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rbp + 0x240], xmm6
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x14000369a
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003695
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003695
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400751c4
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp + 8], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1400036ea
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400751c4
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x140003728
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003723
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003723
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400751c4
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x28], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140003777
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003771
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003771
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400751c4
nop
mov rdx, qword [rbp + 0x60]
cmp rdx, 0x10
jb 0x1400037b5
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400037b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400037b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400751c4
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x48], 0
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 0x10
jb 0x14000380a
inc rdx
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003804
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003804
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400751c4
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140003848
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003843
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003843
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400751c4
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x70], 0
lea rax, [rbp + 0x1d0]
mov qword [rbp + 0x68], rax
lea rdx, [rdi + 0xa0]
lea rcx, [rbp + 0x1d0]
call fcn.140006d80
mov r12, rax
lea rax, [rbp - 0x18]
mov qword [rbp + 0x70], rax
lea rdx, [rdi + 0x80]
lea rcx, [rbp - 0x18]
call fcn.140006d80
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
lea r14, [rbp + 0x230]
movq rsi, xmm7
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r13, xmm0
cmp r13, 0x10
cmovae r14, rsi
movq r15, xmm6
cmp r15, 0x10
jae 0x1400038df
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x70], xmm0
mov ebx, reloc.WS2_32.dll_ntohs
jmp 0x14000395c
mov rbx, r15
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140003936
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140003e3a
mov rcx, rax
call fcn.140075188
mov rcx, rax
test rax, rax
je 0x14000392f
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003944
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140003942
call fcn.140075188
jmp 0x140003944
xor eax, eax
mov qword [rsp + 0x70], rax
lea r8, [r15 + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], rbx
mov r9, r12
mov r8, rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x1f0]
call fcn.1400053d0
nop
call fcn.140002c60
xor r14d, r14d
mov qword [rbp - 0x38], r14
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x1c0]
call fcn.140008790
nop
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x30]
call fcn.140006640
mov rdx, rax
mov rcx, rdi
call fcn.140002840
lea rdx, str.success
lea rcx, [rbp + 0x1c0]
call fcn.140008620
lea rcx, [rax + 8]
cmp byte [rax], 4
cmovne rcx, r14
cmp byte [rcx], r14b
lea rcx, [rbp + 0x1c0]
je 0x140003aa9
lea rdx, str.sessionid
call fcn.140008620
cmp byte [rax], 3
jne 0x140003a01
mov rdx, qword [rax + 8]
jmp 0x140003a04
mov rdx, r14
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140003a12
mov rdx, qword [rdx]
lea rcx, [rdi + 0x268]
call fcn.140007c00
lea rdx, str.appinfo
lea rcx, [rbp + 0x1c0]
call fcn.140008620
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140006640
mov rdx, rax
mov rcx, rdi
call fcn.1400026d0
nop
movzx edx, byte [rbp + 0x1c0]
lea rcx, [rbp + 0x1c8]
call fcn.1400076d0
nop
mov rdx, qword [rbp + 0x208]
cmp rdx, 0x10
jb 0x140003d00
inc rdx
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003cfb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003cfb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.message
call fcn.140008620
mov rdi, rax
mov byte [rsp + 0x30], 3
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.140075188
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov r8d, 0xa
lea rdx, str.invalidver
mov rcx, rax
call fcn.140007c00
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140009cf0
movzx ebx, al
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.1400076d0
nop
test bl, bl
je 0x140003a4a
lea rdx, str.download
lea rcx, [rbp + 0x1c0]
call fcn.140008620
lea rdx, [rbp + 0x1d0]
mov rcx, rax
call fcn.140008700
lea rdx, [0x14008bf7b]
lea rcx, [rbp + 0x1d0]
call fcn.1400085d0
test al, al
je 0x140003cc4
movdqa xmm0, xmmword [0x14008d360]
movdqa xmmword [rbp + 0x80], xmm0
movdqa xmm1, xmmword [0x14008d2a0]
movdqa xmmword [rbp + 0x90], xmm1
movdqa xmm0, xmmword [0x14008d3b0]
movdqa xmmword [rbp + 0xa0], xmm0
movdqa xmm1, xmmword [0x14008d230]
movdqa xmmword [rbp + 0xb0], xmm1
movdqa xmm0, xmmword [0x14008d240]
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmm1, xmmword [0x14008d200]
movdqa xmmword [rbp + 0xd0], xmm1
movdqa xmm0, xmmword [str._aJEKEG]
movdqa xmmword [rbp + 0xe0], xmm0
movdqa xmm1, xmmword [str.CPPI]
movdqa xmmword [rbp + 0xf0], xmm1
movdqa xmm0, xmmword [0x14008d1e0]
movdqa xmmword [rbp + 0x100], xmm0
movdqa xmm1, xmmword [str.x4___5___]
movdqa xmmword [rbp + 0x110], xmm1
movdqa xmm0, xmmword [0x14008d1b0]
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmm1, xmmword [0x14008d3e0]
movdqa xmmword [rbp + 0x130], xmm1
movdqa xmm0, xmmword [0x14008d400]
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmm1, xmmword [0x14008d3a0]
movdqa xmmword [rbp + 0x150], xmm1
movdqa xmm0, xmmword [0x14008d380]
movdqa xmmword [rbp + 0x160], xmm0
movdqa xmm1, xmmword [0x14008d330]
movdqa xmmword [rbp + 0x170], xmm1
movdqa xmm0, xmmword [0x14008d350]
movdqa xmmword [rbp + 0x180], xmm0
movdqa xmm1, xmmword [0x14008d280]
movdqa xmmword [rbp + 0x190], xmm1
movdqa xmm0, xmmword [0x14008d2b0]
movdqa xmmword [rbp + 0x1a0], xmm0
mov dword [rbp + 0x1b0], 0x83958c94
mov word [rbp + 0x1b4], Ordinal_217
mov byte [rbp + 0x1b6], 1
lea rcx, [rbp + 0x80]
call fcn.1400041e0
mov rdx, rax
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140003cf2
lea rcx, [rbp + 0x1d0]
call fcn.140006b20
mov r8, rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.1400751c4
mov qword [rbp + 0x200], r14
mov qword [rbp + 0x208], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x1f0], 0
cmp r13, 0x10
jb 0x140003d54
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140003d4b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400751c4
nop
mov rdx, qword [rbp + 0x228]
cmp rdx, 0x10
jb 0x140003d98
inc rdx
mov rcx, qword [rbp + 0x210]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400751c4
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140075340
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movdqa xmm0, xmmword [0x14008d3f0]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x14008d390]
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmm0, xmmword [0x14008d2f0]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmm1, xmmword [0x14008d220]
movdqa xmmword [rbp - 0x40], xmm1
mov dword [rbp - 0x30], 0x6927666e
mov dword [rbp - 0x2c], 0x1007c7b
lea rcx, [rbp - 0x70]
call 0x140003e40
mov rdx, rax
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.140001550
nop
cmp byte [rcx + 0x47], 0
je 0x140003e63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x39]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x140003e50
mov byte [rcx + 0x47], 0
mov rax, rcx
ret