Function at 0x1400f7300
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8e8]
sub rsp, 0x9e8
mov rax, qword [0x1409c0280]
xor rax, rsp
mov qword [rbp + 0x8d0], rax
mov rax, qword [rbp + 0x978]
mov rdi, rcx
mov r15, qword [rbp + 0x960]
lea rcx, str.wc_CryptKey
mov qword [rbp], r15
mov r12d, r9d
mov qword [rbp - 0x28], rax
mov r13, r8
movsxd rsi, edx
call fcn.1400ee110
movsxd rax, dword [rbp + 0x958]
cmp eax, 5
ja case.default.0x1400f737c
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xf8060]
add rcx, rdx
jmp rcx
mov r14d, 3
mov dword [rsp + 0x64], r14d
jmp 0x1400f73d6
cmp dword [rbp + 0x988], 0x28d
mov eax, 6
mov r14d, 4
mov r10d, reloc.WLDAP32.dll_Ordinal_32
cmove r14d, eax
mov dword [rsp + 0x64], r14d
jmp 0x1400f73dc
cmp dword [rbp + 0x988], 0x28d
je 0x1400f73ca
mov r14d, 4
mov dword [rsp + 0x64], r14d
jmp 0x1400f73d6
mov eax, 6
mov r14d, eax
mov dword [rsp + 0x64], eax
mov r10d, reloc.WS2_32.dll_recv
mov eax, dword [rbp + 0x970]
mov ebx, 0x100
mov dword [rsp + 0x60], r10d
cmp eax, 6
jne 0x1400f742d
mov eax, dword [rbp + 0x950]
lea rcx, [rbp + 0x3e0]
mov dword [rsp + 0x38], r14d
mov r9, r13
mov dword [rsp + 0x30], r10d
mov r8d, esi
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov dword [rsp + 0x20], r12d
call fcn.1400ecbc0
mov r9d, eax
mov eax, dword [rbp + 0x958]
jmp 0x1400f7b4d
cmp eax, 5
jne 0x1400f7471
mov eax, dword [rbp + 0x950]
lea rcx, [rbp + 0x3e0]
mov dword [rsp + 0x48], r14d
mov edx, r10d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call fcn.1400ec740
mov r9d, eax
mov eax, dword [rbp + 0x958]
jmp 0x1400f7b4d
cmp eax, 0xc
jne 0x1400f7fb4
xor ebx, ebx
lea eax, [rsi*2 + 2]
mov r9d, 0x100
cmp eax, r9d
jle 0x1400f7498
mov eax, 0xffffff51
jmp 0x1400f8036
test esi, esi
jle 0x1400f74c5
xor edx, edx
xor ecx, ecx
cmp rcx, r9
jae 0x1400f8059
movzx eax, byte [rdx + rdi]
add ebx, 2
mov byte [rbp + rcx + 0x10], 0
inc rdx
mov byte [rbp + rcx + 0x11], al
add rcx, 2
cmp rdx, rsi
jl 0x1400f74a0
movsxd rax, ebx
inc ebx
cmp rax, r9
jae 0x1400f8059
mov byte [rbp + rax + 0x10], 0
movsxd rax, ebx
inc ebx
cmp rax, r9
jae 0x1400f8059
mov edi, dword [rbp + 0x950]
lea rdx, [rbp + 0x10]
mov dword [rsp + 0x40], 1
lea rcx, [rbp + 0x3e0]
mov dword [rsp + 0x38], r14d
mov r9, r13
mov dword [rsp + 0x30], r10d
mov r8d, ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r12d
mov byte [rbp + rax + 0x10], 0
call fcn.1400ed140
mov r9d, eax
mov dword [rbp - 0x18], eax
mov eax, dword [rbp + 0x958]
cmp eax, 1
je 0x1400f7b48
mov rax, qword [rbp - 0x28]
lea r9, [rbp + 0x4d0]
mov dword [rbp - 0x34], 8
mov qword [rbp - 8], rax
mov dword [rbp - 0x30], 0
mov qword [rsp + 0x70], r9
test rax, rax
je 0x1400f7b36
test ebx, ebx
js 0x1400f7b36
test r12d, r12d
js 0x1400f7b36
mov eax, 1
test edi, edi
mov ecx, r14d
cmovg eax, edi
mov dword [rbp - 0x20], eax
call fcn.1400df580
mov esi, eax
test eax, eax
js 0x1400f7b3b
mov ecx, r14d
mov dword [rbp - 0x38], eax
call fcn.1400df610
mov esi, eax
test eax, eax
js 0x1400f7b3b
xorps xmm1, xmm1
mov dword [rbp - 0x70], esi
xor edx, edx
lea eax, [r12 - 1]
add eax, esi
xorps xmm0, xmm0
div esi
movups xmmword [rbp + 0x420], xmm0
mov r15d, eax
imul r15d, esi
movups xmmword [rbp + 0x430], xmm0
movups xmmword [rbp + 0x440], xmm1
movups xmmword [rbp + 0x450], xmm1
movups xmmword [rbp + 0x460], xmm1
movups xmmword [rbp + 0x470], xmm1
test ebx, ebx
je 0x1400f7602
xor edx, edx
lea eax, [rbx - 1]
add eax, esi
div esi
mov r14d, eax
imul r14d, esi
jmp 0x1400f7605
xor r14d, r14d
lea eax, [r14 + r15]
mov dword [rbp - 0x6c], eax
add eax, esi
mov dword [rbp - 0x1c], eax
cmp eax, 0x400
jbe 0x1400f764f
mov ecx, eax
mov rax, qword [0x140a04578]
test rax, rax
je 0x1400f762a
call rax
jmp 0x1400f762f
call fcn.140182c38
mov qword [rsp + 0x70], rax
mov r9, rax
test rax, rax
jne 0x1400f7648
mov r15, qword [rbp]
lea esi, [rax - 0x7d]
jmp 0x1400f7b3b
mov dword [rbp - 0x30], 1
mov rax, rsi
mov edi, r15d
add rsi, r9
mov qword [rbp - 0x10], rax
mov r8, rax
mov edx, 2
mov rcx, r9
add rdi, rsi
call fcn.14016ad60
xor r8d, r8d
test r15d, r15d
jle 0x1400f76a0
mov r9, rsi
nop word [rax + rax]
mov eax, r8d
lea r9, [r9 + 1]
xor edx, edx
inc r8d
div r12d
movsxd rax, edx
movzx ecx, byte [rax + r13]
mov byte [r9 - 1], cl
cmp r8d, r15d
jl 0x1400f7680
xor r8d, r8d
test r14d, r14d
jle 0x1400f76cd
nop dword [rax + rax]
mov eax, r8d
lea rdi, [rdi + 1]
cdq
inc r8d
idiv ebx
movsxd rax, edx
movzx ecx, byte [rbp + rax + 0x10]
mov byte [rdi - 1], cl
cmp r8d, r14d
jl 0x1400f76b0
mov r14d, dword [rbp - 0x38]
mov r12d, dword [rbp - 0x6c]
mov r13, qword [rsp + 0x70]
nop word [rax + rax]
mov eax, dword [rbp - 0x20]
lea r9, [rbp + 0x420]
mov r8d, dword [rbp - 0x1c]
mov rdx, r13
mov ecx, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
call fcn.1400ecf10
mov esi, eax
test eax, eax
js 0x1400f7b09
mov r15d, dword [rbp - 0x70]
xor ebx, ebx
mov r8d, ebx
test r15d, r15d
jle 0x1400f7750
lea r9, [rbp + 0x440]
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea r9, [r9 + 1]
mov eax, r8d
inc r8d
div r14d
movzx eax, byte [rbp + rdx + 0x420]
mov byte [r9 - 1], al
cmp r8d, r15d
jl 0x1400f7730
mov r8d, r15d
mov qword [rbp - 0x78], rbx
lea rdx, [rbp + 0x440]
mov qword [rsp + 0x78], rbx
lea rcx, [rsp + 0x78]
mov dword [rbp - 0x80], ebx
call fcn.1400e16e0
test eax, eax
jne 0x1400f7ab2
lea r8, [rsp + 0x78]
lea edx, [rax + 1]
lea rcx, [rsp + 0x78]
call fcn.1400e87d0
test eax, eax
jne 0x1400f7aab
test esi, esi
jne 0x1400f7ab7
xor eax, eax
mov dword [rsp + 0x68], ebx
test r12d, r12d
jle 0x1400f7a30
nop dword [rax]
add r13, qword [rbp - 0x10]
lea rcx, [rbp - 0x50]
movsxd rsi, ebx
mov r8d, r15d
add r13, rsi
mov qword [rbp - 0x48], 0
mov rdx, r13
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x40], rax
mov rdi, rax
mov qword [rbp - 0x50], 0
mov r14d, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x68], 0
call fcn.1400e16e0
test eax, eax
je 0x1400f780d
mov r12, qword [rbp - 0x40]
mov esi, 0xffffff91
mov r15d, dword [rbp - 0x50]
jmp 0x1400f7987
mov r10d, dword [rbp - 0x48]
mov r11d, dword [rbp - 0x80]
cmp r10d, r11d
jne 0x1400f783a
lea r8, [rbp - 0x68]
mov dword [rbp - 0x60], r10d
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x50]
call fcn.1400e4d10
mov r12, qword [rbp - 0x40]
mov r15d, dword [rbp - 0x50]
jmp 0x1400f789c
mov r15d, dword [rbp - 0x50]
mov r12, qword [rbp - 0x40]
cmp r15d, dword [rsp + 0x78]
jg 0x1400f7886
jl 0x1400f78b2
lea eax, [r15 - 1]
xor r8d, r8d
movsxd rcx, eax
lea rdx, [rcx*4]
lea rcx, [r12 + rdx]
test r15d, r15d
jle 0x1400f7886
mov r9, qword [rbp - 0x78]
sub r9, rcx
add r9, rdx
mov eax, dword [r9 + rcx]
cmp dword [rcx], eax
ja 0x1400f7886
jb 0x1400f78b2
inc r8d
sub rcx, 4
cmp r8d, r15d
jl 0x1400f7870
mov dword [rbp - 0x60], r10d
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x50]
lea r8, [rbp - 0x68]
call fcn.1400e4e60
mov rdi, qword [rbp - 0x58]
mov r14d, dword [rbp - 0x68]
test eax, eax
je 0x1400f78c1
mov esi, 0xffffff8d
jmp 0x1400f7987
mov dword [rbp - 0x60], r11d
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
jmp 0x1400f7893
test r14d, r14d
jne 0x1400f78f9
xor ebx, ebx
mov eax, dword [rbp - 0x70]
cmp ebx, eax
jle 0x1400f7937
lea rdx, [rbp + 0x480]
lea rcx, [rbp - 0x68]
call fcn.1400e0d10
mov r8, qword [rbp - 0x10]
lea rdx, [rbp + 0x481]
mov rcx, r13
mov esi, eax
call fcn.14016a6b0
jmp 0x1400f7983
imul edx, r14d, 0x1c
lea eax, [r14 - 1]
movsxd rcx, eax
mov eax, dword [rdi + rcx*4]
sub edx, 0x1c
test eax, eax
je 0x1400f7916
nop
inc edx
shr eax, 1
jne 0x1400f7910
test dl, 7
mov eax, edx
cdq
mov ebx, 0
setne bl
and edx, 7
add eax, edx
sar eax, 3
add ebx, eax
jns 0x1400f78c8
mov esi, 0xffffff8f
jmp 0x1400f7983
jge 0x1400f7975
sub eax, ebx
xor edx, edx
mov r8d, eax
mov rcx, r13
call fcn.14016ad60
mov rcx, qword [rbp - 0x10]
mov r13, qword [rsp + 0x70]
mov rdx, rcx
movsxd rax, ebx
sub rdx, rax
add rdx, rsi
lea rax, [rcx + r13]
add rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400e0d10
mov ebx, dword [rsp + 0x68]
mov esi, eax
jmp 0x1400f798c
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.1400e0d10
mov esi, eax
mov ebx, dword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
test r12, r12
je 0x1400f79ce
test r15d, r15d
jle 0x1400f79a7
mov r8d, r15d
xor edx, edx
shl r8, 2
mov rcx, r12
call fcn.14016ad60
mov rax, qword [0x140a04568]
mov rcx, r12
test rax, rax
je 0x1400f79ba
call rax
jmp 0x1400f79bf
call fcn.14017d748
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], eax
jmp 0x1400f79d0
xor eax, eax
test rdi, rdi
je 0x1400f7a10
test r14d, r14d
jle 0x1400f79eb
mov r8d, r14d
xor edx, edx
shl r8, 2
mov rcx, rdi
call fcn.14016ad60
mov rax, qword [0x140a04568]
mov rcx, rdi
test rax, rax
je 0x1400f79fe
call rax
jmp 0x1400f7a03
call fcn.14017d748
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
test esi, esi
js 0x1400f7a28
mov r15d, dword [rbp - 0x70]
add ebx, r15d
mov dword [rsp + 0x68], ebx
cmp ebx, dword [rbp - 0x6c]
jl 0x1400f77b0
mov r14d, dword [rbp - 0x38]
mov r12d, dword [rbp - 0x6c]
mov r15d, dword [rbp - 0x34]
lea rdx, [rbp + 0x420]
mov rcx, qword [rbp - 8]
cmp r15d, r14d
mov edi, r14d
cmovl edi, r15d
mov r8d, edi
mov ebx, edi
call fcn.14016a6b0
mov rcx, qword [rbp - 0x78]
sub r15d, edi
add qword [rbp - 8], rbx
mov dword [rbp - 0x34], r15d
test rcx, rcx
je 0x1400f7aa0
xor ebx, ebx
mov edx, ebx
cmp dword [rsp + 0x78], ebx
jle 0x1400f7a86
mov eax, ebx
mov dword [rcx + rax], ebx
lea rax, [rax + 4]
mov rcx, qword [rbp - 0x78]
inc edx
cmp edx, dword [rsp + 0x78]
jl 0x1400f7a73
test rcx, rcx
je 0x1400f7aa0
mov rax, qword [0x140a04568]
test rax, rax
je 0x1400f7a9b
call rax
jmp 0x1400f7aa0
call fcn.14017d748
test r15d, r15d
jg 0x1400f76e0
jmp 0x1400f7b09
mov esi, 0xffffff8d
jmp 0x1400f7ab7
mov esi, 0xffffff91
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400f7b09
mov edx, ebx
cmp dword [rsp + 0x78], ebx
jle 0x1400f7ae3
mov rax, rbx
nop dword [rax + rax]
mov dword [rcx + rax], ebx
lea rax, [rax + 4]
mov rcx, qword [rbp - 0x78]
inc edx
cmp edx, dword [rsp + 0x78]
jl 0x1400f7ad0
test rcx, rcx
je 0x1400f7b01
mov rax, qword [0x140a04568]
test rax, rax
je 0x1400f7af8
call rax
jmp 0x1400f7afd
call fcn.14017d748
mov qword [rbp - 0x78], rbx
mov qword [rsp + 0x78], rbx
mov dword [rbp - 0x80], ebx
cmp dword [rbp - 0x30], 0
je 0x1400f7b30
test r13, r13
je 0x1400f7b30
mov rax, qword [0x140a04568]
mov rcx, r13
test rax, rax
je 0x1400f7b2b
call rax
mov r15, qword [rbp]
jmp 0x1400f7b3b
call fcn.14017d748
mov r15, qword [rbp]
jmp 0x1400f7b3b
mov esi, 0xffffff53
mov r9d, dword [rbp - 0x18]
mov eax, dword [rbp + 0x958]
add r9d, esi
mov ebx, 0x100
test r9d, r9d
je 0x1400f7b5a
mov eax, r9d
jmp 0x1400f8036
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0xf8078]
add rcx, rdx
jmp rcx
mov ecx, dword [rbp + 0x970]
lea rax, [rbp + 0x3e8]
cmp ecx, 6
je 0x1400f7b86
cmp ecx, 0xc
jne 0x1400f7b8f
mov rax, qword [rbp - 0x28]
test rax, rax
je 0x1400f7b92
mov rax, qword [rax]
lea r8, [rbp + 0x20]
mov qword [rbp + 0x10], rax
mov edx, 1
lea rcx, [rbp + 0x3e0]
call fcn.1400f5540
test eax, eax
jne 0x1400f8036
mov r9d, dword [rbp + 0x968]
lea rcx, [rbp + 0x10]
mov r8, r15
mov rdx, r15
call fcn.1400f6a90
xor eax, eax
jmp 0x1400f8036
xor r9d, r9d
mov word [rbp + 0x10], 1
xor r11d, r11d
lea rcx, [rbp + 0x12]
xor eax, eax
mov byte [rcx], al
lea rcx, [rcx + 1]
inc eax
cmp eax, ebx
jb 0x1400f7d43
mov edi, dword [rsp + 0x60]
lea r10, [rbp + 0x12]
movzx r8d, byte [r10]
lea rcx, [rbp + 0x12]
movzx edx, byte [rbp + r9 + 0x3e0]
lea r10, [r10 + 1]
add edx, r11d
add edx, r8d
movzx r11d, dl
movzx eax, byte [rcx + r11]
mov byte [r10 - 1], al
lea eax, [r9 + 1]
xor r9d, r9d
mov byte [rcx + r11], r8b
cmp eax, edi
cmovb r9d, eax
sub rbx, 1
jne 0x1400f7d57
mov r9d, dword [rbp + 0x968]
test r15, r15
je 0x1400f7f6e
movzx r10d, byte [rbp + 0x10]
movzx r11d, byte [rbp + 0x11]
test r9d, r9d
je 0x1400f7f6e
nop dword [rax]
mov eax, r10d
lea rdx, [rbp + 0x12]
add rdx, rax
lea r15, [r15 + 1]
movzx r8d, byte [rdx]
lea eax, [r8 + r11]
movzx r11d, al
lea eax, [r10 + 1]
movzx r10d, al
movzx ecx, byte [rbp + r11 + 0x12]
mov byte [rdx], cl
mov byte [rbp + r11 + 0x12], r8b
lea eax, [r8 + rcx]
movzx eax, al
movzx ecx, byte [rbp + rax + 0x12]
xor byte [r15 - 1], cl
add r9d, 0xffffffff
jne 0x1400f7dc0
xor eax, eax
jmp 0x1400f8036
xor eax, eax
jmp 0x1400f8036
cmp dword [0x140a04560], 0
je 0x1400f8031
mov rax, qword [0x140a04558]
test rax, rax
je 0x1400f7fd9
lea rdx, str.Unknown_Unsupported_PKCS_version
mov ecx, 1
call rax
jmp 0x1400f8031
mov ecx, 2
call fcn.14017cf98
lea r8, str.Unknown_Unsupported_PKCS_version
jmp 0x1400f8022
cmp dword [0x140a04560], 0
je 0x1400f8031
mov rax, qword [0x140a04558]
test rax, rax
je 0x1400f8011
lea rdx, str.Unknown_Unsupported_encrypt_decrypt_id
mov ecx, 1
call rax
jmp 0x1400f8031
mov ecx, 2
call fcn.14017cf98
lea r8, str.Unknown_Unsupported_encrypt_decrypt_id
lea rdx, [0x140998764]
mov rcx, rax
call fcn.1400af550
mov eax, 0xffffff7b
mov rcx, qword [rbp + 0x8d0]
xor rcx, rsp
call fcn.140167e90
add rsp, 0x9e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140168424
int3