Function at 0x1400207a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfd0]
mov eax, 0x10d0
call fcn.140157830
sub rsp, rax
mov rax, qword [0x1401b7030]
xor rax, rsp
mov qword [rbp + 0xfc0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
lea r12, [rcx + 0x15c0]
mov qword [rsp + 0x70], r12
xor r15d, r15d
mov dword [rsp + 0x78], r15d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov r13, qword [rbx + 0x12b8]
mov qword [rsp + 0x58], r13
mov rcx, r13
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], r13
xor edx, edx
mov r8d, 0x428
lea rcx, [rbp - 0x70]
call fcn.1401216a0
mov r14d, r15d
cmp byte [rbx + 0x5213], r14b
sete r14b
mov dword [rbp - 0x70], 0x28
movzx edx, byte [rbx + 0x5210]
mov word [rbp - 0x62], dx
movzx ecx, word [rbx + 0x2ce]
movzx eax, word [rbx + 0x2cc]
mov r8d, edx
shr r8d, 3
imul r8d, eax
imul r8d, ecx
mov dword [rbp - 0x5c], r8d
mov esi, 1
mov word [rbp - 0x64], si
mov dword [rbp - 0x6c], eax
neg ecx
mov dword [rbp - 0x68], ecx
mov eax, r15d
mov ecx, 3
cmp dl, 8
cmova eax, ecx
mov dword [rbp - 0x60], eax
movzx eax, word [rbx + 0x5214]
movzx ecx, byte [rbx + 0x521a]
shl eax, cl
mov dword [rbp - 0x48], eax
movzx eax, word [rbx + 0x5216]
movzx ecx, byte [rbx + 0x521b]
shl eax, cl
mov dword [rbp - 0x44], eax
movzx eax, word [rbx + 0x5218]
movzx ecx, byte [rbx + 0x521c]
shl eax, cl
mov dword [rbp - 0x40], eax
cmp r8d, 0x2540be40
jbe 0x1400208de
xor ecx, ecx
call fcn.140111ab0
cmp byte [rbx + 0xd6b8], 0
je 0x140020956
mov rdi, qword [rbx + 0xd6b0]
cmp byte [rdi + 0x84], sil
jne 0x140020916
cmp byte [rdi + 0xac], sil
je 0x140020916
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140020916
mov rax, qword [rcx]
call qword [rax + 0x70]
mov byte [rdi + 0x84], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140020929
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 0x38], r15
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14002093c
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 0x30], r15
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x14002094f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 0x28], r15
mov byte [rbx + 0xd6b8], 0
mov rcx, qword [rbx + 0xd660]
test rcx, rcx
je 0x140020976
call qword [sym.imp.GDI32.dll_DeleteDC]
mov qword [rbx + 0xd660], r15
mov qword [rbx + 0xd670], r15
mov rcx, qword [rbx + 0xd668]
test rcx, rcx
je 0x14002098f
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [rbx + 0xd668], r15
mov rcx, qword [rbx + 0x4d18]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rbx + 0xd660], rax
lea r15, [rbx + 0xd670]
mov qword [rsp + 0x50], r15
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
mov r9, r15
mov r8d, r14d
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov qword [rbx + 0xd668], rax
mov r8d, dword [rbp - 0x5c]
mov edx, 0x80
mov rcx, qword [r15]
call fcn.1401216a0
mov rdi, qword [rbx + 0xd660]
mov qword [rsp + 0x68], rdi
mov rdx, qword [rbx + 0xd668]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r14, rax
mov qword [rsp + 0x60], rax
cmp byte [rbx + 0x5210], 8
jne 0x140020b6d
cmp byte [rbx + 0x5213], 0
je 0x140020b6d
xor r8d, r8d
movzx ecx, byte [rbx + 0x5211]
shl esi, cl
test esi, esi
jle 0x140020b0c
movzx r13d, byte [rbx + 0x521c]
movzx eax, byte [rbx + 0x521b]
mov dword [rsp + 0x40], eax
movzx eax, byte [rbx + 0x521a]
mov dword [rsp + 0x44], eax
movzx r14d, word [rbx + 0x5218]
mov r10d, r14d
shr r10d, 1
movzx r15d, word [rbx + 0x5216]
mov r11d, r15d
shr r11d, 1
movzx r12d, word [rbx + 0x5214]
mov edi, r12d
shr edi, 1
lea r9, [rbp + 0x3c4]
mov ebx, dword [rsp + 0x40]
nop dword [rax]
mov eax, r8d
mov ecx, r13d
sar eax, cl
and eax, r14d
imul eax, eax, 0xffff
add eax, r10d
cdq
idiv r14d
mov dword [r9 + 4], eax
mov eax, r8d
mov ecx, ebx
sar eax, cl
and eax, r15d
imul eax, eax, 0xffff
add eax, r11d
cdq
idiv r15d
mov dword [r9], eax
mov eax, r8d
mov ecx, dword [rsp + 0x44]
sar eax, cl
and eax, r12d
imul eax, eax, 0xffff
add eax, edi
cdq
idiv r12d
mov dword [r9 - 4], eax
inc r8d
lea r9, [r9 + 0xc]
cmp r8d, esi
jl 0x140020a90
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x58]
xor esi, esi
mov edx, esi
lea rcx, [rbp + 0x3c4]
nop word [rax + rax]
mov eax, dword [rcx - 4]
sar eax, 8
mov byte [rbp + rdx*4 - 0x46], al
mov eax, dword [rcx]
sar eax, 8
mov byte [rbp + rdx*4 - 0x47], al
mov eax, dword [rcx + 4]
sar eax, 8
mov byte [rbp + rdx*4 - 0x48], al
mov byte [rbp + rdx*4 - 0x45], sil
inc rdx
lea rcx, [rcx + 0xc]
cmp rdx, 0x100
jl 0x140020b20
lea r9, [rbp - 0x48]
xor edx, edx
mov r8d, 0x100
mov rcx, qword [rbx + 0xd660]
call qword [sym.imp.GDI32.dll_SetDIBColorTable]
jmp 0x140020b6f
xor esi, esi
mov rax, qword [rbx + 0xd748]
cmp byte [rax + 0x398], 0
je 0x140020be3
mov rcx, qword [rbx + 0xd678]
test rcx, rcx
je 0x140020b90
call fcn.14011c3a0
movzx ecx, word [rbx + 0x2cc]
movzx eax, byte [rbx + 0x5210]
imul ecx, eax
shr ecx, 3
mov edx, ecx
and edx, 3
je 0x140020bb4
mov eax, 4
sub eax, edx
add ecx, eax
movzx eax, word [rbx + 0x2ce]
imul eax, ecx
movsxd rcx, eax
call fcn.14011c740
mov qword [rbx + 0xd678], rax
lea r8, str.Cache:_Cache_buffer_bitmap_creation_n
xor edx, edx
lea rcx, vtable.Log.0
call fcn.1400155a0
nop
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rax, qword [rbx + 0xd748]
cmp byte [rax + 0x324], 0
je 0x140020d3d
cmp byte [rax + 0x6d4], 0
jne 0x140020d3d
movzx ecx, byte [rbx + 0x5210]
lea eax, [rcx - 0x10]
test al, 0xef
jne 0x140020d3d
movzx eax, byte [rbx + 0x521a]
movzx edx, word [rbx + 0x2ce]
movzx r9d, word [rbx + 0x2cc]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x20], edx
mov r8, qword [rbx + 0xd760]
mov rdx, qword [rbx + 0x12b8]
mov rcx, qword [rbx + 0xd6b0]
call fcn.14003c5b0
test eax, eax
js 0x140020d3d
mov rdi, qword [rbx + 0xd6b0]
movzx eax, byte [rbx + 0x5210]
cmp byte [rdi + 8], al
jne 0x140020cd5
mov byte [rbx + 0xd6b8], 1
movzx eax, byte [rdi + 0x18]
mov byte [rbx + 0x521a], al
movzx eax, byte [rdi + 0x1c]
mov byte [rbx + 0x521b], al
movzx eax, byte [rdi + 0x20]
mov byte [rbx + 0x521c], al
mov rcx, qword [rbx + 0xd668]
test rcx, rcx
je 0x140020cb7
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [rbx + 0xd668], rsi
mov rcx, qword [rbx + 0xd660]
test rcx, rcx
je 0x140020d3d
call qword [sym.imp.GDI32.dll_DeleteDC]
mov qword [rbx + 0xd660], rsi
mov qword [r15], rsi
jmp 0x140020d3d
cmp byte [rdi + 0x84], 1
jne 0x140020cfd
cmp byte [rdi + 0xac], 1
je 0x140020cfd
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140020cfd
mov rax, qword [rcx]
call qword [rax + 0x70]
mov byte [rdi + 0x84], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140020d10
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 0x38], rsi
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140020d23
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 0x30], rsi
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x140020d36
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rdi + 0x28], rsi
mov byte [rbx + 0xd6b8], 0
mov rdx, qword [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0xfc0]
xor rcx, rsp
call fcn.14011c340
lea r11, [rsp + 0x10d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret