Function at 0x140024430
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x98
call fcn.1400035e0
sub rsp, rax
mov rax, qword [0x1401ad1c0]
mov qword [rsp + 0x50], rax
cmp r9d, 0x10
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x78], rdi
mov ebp, r9d
mov rdi, rcx
mov rsi, r8
mov ebx, edx
je 0x14002477e
cmp r9d, 0x20
je 0x14002477e
cmp r9d, 0x20
jae 0x14002475a
lea rcx, [rsp + 0x30]
mov r8d, r9d
mov rdx, rsi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
call fcn.140029a50
test ebx, ebx
jne 0x14002461d
mov rax, rsi
lea ecx, [rbx + 1]
mov rdx, rdi
shr rax, 0x20
mov word [rdi + 0x18], reloc.mfc110.dll_Ordinal_319
mov dword [rdi + 0x12], esi
mov word [rdi + 0x16], 2
mov byte [rdi + 0x55], bl
mov word [rdi + 0x3e], bx
mov dword [rdi + 0x5c], eax
call fcn.140028870
lea rcx, str.______classic_aes_encrypt_hw:_LowAPI_status__u_n
movzx ebx, ax
mov byte [rdi + 0x55], 0
mov word [rdi + 0x16], 0
mov edx, ebx
call fcn.140028f30
movzx ecx, bx
call fcn.1400290c0
test eax, eax
mov ebx, eax
je 0x140024550
lea rdx, [rsp + 0x30]
mov r8d, ebp
mov rcx, rsi
call fcn.140029a50
mov eax, ebx
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
call fcn.14006b6a0
add rsp, 0x98
ret
lea rcx, [rsp + 0x20]
mov r8d, reloc.WSOCK32.dll_recv
mov rdx, rsi
call fcn.140029a50
mov r12d, ebp
and r12d, 0xf
jbe 0x140024592
lea rdx, [rsp + 0x20]
lea r8, [rsi + 0x10]
mov r9d, r12d
nop
nop
movzx eax, byte [r8]
inc rdx
inc r8
xor byte [rdx - 1], al
dec r9
jne 0x140024580
lea rax, [rsp + 0x20]
mov rdx, rdi
mov ecx, 1
mov dword [rdi + 0x12], eax
lea rax, [rsp + 0x20]
mov word [rdi + 0x18], reloc.mfc110.dll_Ordinal_319
shr rax, 0x20
mov word [rdi + 0x16], 2
mov byte [rdi + 0x55], 0
mov dword [rdi + 0x5c], eax
mov word [rdi + 0x3e], 0
call fcn.140028870
movzx ebx, ax
lea rcx, str.______classic_aes_encrypt_hw:_LowAPI_status__u_n
mov byte [rdi + 0x55], 0
mov edx, ebx
mov word [rdi + 0x16], 0
call fcn.140028f30
movzx ecx, bx
call fcn.1400290c0
test eax, eax
mov ebx, eax
jne 0x140024505
lea rcx, [rsi + 0x10]
mov r8d, r12d
mov rdx, rsi
call fcn.140029a50
lea r8d, [rbx + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140029a50
xor eax, eax
jmp 0x140024517
mov rax, rsi
mov rdx, rdi
mov ecx, 1
shr rax, 0x20
mov word [rdi + 0x18], 0x140
mov dword [rdi + 0x12], esi
mov word [rdi + 0x16], 2
mov byte [rdi + 0x55], 0
mov word [rdi + 0x3e], 0
mov dword [rdi + 0x5c], eax
call fcn.140028870
lea rcx, str.______classic_aes_encrypt_hw:_LowAPI_status__u_n
movzx ebx, ax
mov byte [rdi + 0x55], 0
mov word [rdi + 0x16], 0
mov edx, ebx
call fcn.140028f30
movzx ecx, bx
call fcn.1400290c0
test eax, eax
mov ebx, eax
jne 0x140024505
mov r12d, ebp
and r12d, 0xf
jbe 0x14002469f
mov rcx, rsi
mov edx, r12d
nop
nop
movzx eax, byte [rcx + 0x10]
inc rcx
xor byte [rcx - 1], al
dec rdx
jne 0x140024690
lea rdx, [rsi + 0x10]
lea rcx, [rsp + 0x20]
mov r8d, r12d
call fcn.140029a50
mov r11d, ebp
mov r8d, reloc.WSOCK32.dll_recv
and r11d, 0xf
sub r8d, r12d
lea rdx, [r11 + rsi]
lea rcx, [rsp + r11 + 0x20]
call fcn.140029a50
lea r11, [rsp + 0x20]
lea rax, [rsp + 0x20]
shr rax, 0x20
mov rdx, rdi
mov ecx, 1
mov word [rdi + 0x18], 0x140
mov dword [rdi + 0x12], r11d
mov word [rdi + 0x16], 2
mov dword [rdi + 0x5c], eax
mov byte [rdi + 0x55], 0
mov word [rdi + 0x3e], 0
call fcn.140028870
lea rcx, str.______classic_aes_encrypt_hw:_LowAPI_status__u_n
mov byte [rdi + 0x55], 0
movzx ebx, ax
mov word [rdi + 0x16], 0
mov edx, ebx
call fcn.140028f30
movzx ecx, bx
call fcn.1400290c0
test eax, eax
mov ebx, eax
jne 0x140024505
lea rcx, [rsi + 0x10]
mov r8d, r12d
mov rdx, rsi
call fcn.140029a50
lea r8d, [rbx + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140029a50
xor eax, eax
jmp 0x140024517
test edx, edx
jne 0x14002476e
mov r8d, r9d
mov rdx, rsi
call fcn.140021fa0
jmp 0x140024521
mov r8d, r9d
mov rdx, rsi
call fcn.140022680
jmp 0x140024521
xor eax, eax
test edx, edx
mov dword [rcx + 0x12], r8d
setne al
mov byte [rcx + 0x55], 0
mov word [rcx + 0x3e], 0
add ax, reloc.mfc110.dll_Ordinal_319
mov rdx, rcx
shr rsi, 0x20
mov word [rcx + 0x18], ax
mov dword [rcx + 0x5c], esi
shr ebp, 3
mov word [rcx + 0x16], bp
mov ecx, 1
call fcn.140028870
lea rcx, str.______classic_aes_encrypt_hw:_LowAPI_status__u_n
mov byte [rdi + 0x55], 0
movzx ebx, ax
mov word [rdi + 0x16], 0
mov edx, ebx
call fcn.140028f30
movzx ecx, bx
call fcn.1400290c0
jmp 0x140024521