Function at 0x140035ab0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x19], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor edx, edx
mov cl, 0x41
call fcn.140034500
mov byte [rbp - 9], al
lea edx, [rbx + 1]
mov cl, 0x42
call fcn.140034500
mov byte [rbp - 8], al
lea edx, [rbx + 2]
mov cl, 0x43
call fcn.140034500
mov byte [rbp - 7], al
lea edx, [rbx + 3]
mov cl, 0x44
call fcn.140034500
mov byte [rbp - 6], al
lea edx, [rbx + 4]
mov cl, 0x45
call fcn.140034500
mov byte [rbp - 5], al
lea edx, [rbx + 5]
mov cl, 0x46
call fcn.140034500
mov byte [rbp - 4], al
lea edx, [rbx + 6]
mov cl, 0x30
call fcn.140034500
mov byte [rbp - 3], al
lea edx, [rbx + 7]
mov cl, Ordinal_50
call fcn.140034500
mov byte [rbp - 2], al
lea edx, [rbx + 8]
mov cl, reloc.WLDAP32.dll_Ordinal_50
call fcn.140034500
mov byte [rbp - 1], al
lea edx, [rbx + 9]
mov cl, 0x33
call fcn.140034500
mov byte [rbp], al
lea edx, [rbx + 0xa]
mov cl, 0x34
call fcn.140034500
mov byte [rbp + 1], al
lea edx, [rbx + 0xb]
mov cl, 0x35
call fcn.140034500
mov byte [rbp + 2], al
lea edx, [rbx + 0xc]
mov cl, 0x36
call fcn.140034500
mov byte [rbp + 3], al
lea edx, [rbx + 0xd]
mov cl, 0x37
call fcn.140034500
mov byte [rbp + 4], al
lea edx, [rbx + 0xe]
mov cl, gethostname
call fcn.140034500
mov byte [rbp + 5], al
lea edx, [rbx + 0xf]
mov cl, reloc.WS2_32.dll_gethostname
call fcn.140034500
mov byte [rbp + 6], al
lea edx, [rbx + 0x10]
mov cl, 0x61
call fcn.140034500
mov byte [rbp + 7], al
lea edx, [rbx + 0x11]
mov cl, 0x62
call fcn.140034500
mov byte [rbp + 8], al
lea edx, [rbx + 0x12]
mov cl, 0x63
call fcn.140034500
mov byte [rbp + 9], al
lea edx, [rbx + 0x13]
mov cl, 0x64
call fcn.140034500
mov byte [rbp + 0xa], al
lea edx, [rbx + 0x14]
mov cl, 0x65
call fcn.140034500
mov byte [rbp + 0xb], al
lea edx, [rbx + 0x15]
mov cl, 0x66
call fcn.140034500
mov byte [rbp + 0xc], al
xor eax, eax
mov byte [rbp + 0xd], al
mov ecx, ebx
mov edx, ebx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x13]
xor byte [rbp + rdx - 9], al
inc ecx
movsxd rdx, ecx
cmp rdx, 0x16
jb 0x140035c20
mov byte [rbp + 0xd], bl
mov qword [rbp + 0x27], reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x1f], rbx
mov byte [rbp + 0xf], bl
cmp byte [rbp - 9], bl
jne 0x140035c4e
mov r8, rbx
jmp 0x140035c5f
lea rax, [rbp - 9]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140035c56
lea rdx, [rbp - 9]
lea rcx, [rbp + 0xf]
call fcn.140034cf0
nop
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x140035c85
mov rax, qword [rdi]
jmp 0x140035c88
mov rax, rdi
mov byte [rax], 0
mov dword [rbp - 0x19], 1
cmp qword [rdi + 0x10], 0x20
je 0x140035d3b
mov rbx, qword [rbp + 0x1f]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
lea rcx, [rbx + 1]
xor edx, edx
div rcx
movsxd r8, edx
mov r9d, 1
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0xf]
call fcn.140047d70
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.140049b70
nop
mov rax, qword [rbp + 0x47]
cmp rax, 0x10
jb 0x140035c92
inc rax
mov rcx, qword [rbp + 0x2f]
cmp rax, 0x1000
jb 0x140035d15
test cl, 0x1f
jne 0x140035d34
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140035d2d
sub rcx, rax
cmp rcx, 8
jb 0x140035d26
cmp rcx, 0x27
ja 0x140035d1f
mov rcx, rax
call fcn.140054a50
jmp 0x140035c92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rbp + 0x27]
cmp rax, 0x10
jb 0x140035d95
inc rax
mov rcx, qword [rbp + 0xf]
cmp rax, 0x1000
jb 0x140035d90
test cl, 0x1f
je 0x140035d60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140035d70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140035d80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140035d8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140054a50
mov rax, rdi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret