Function at 0x14000e6e0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
movzx ebx, r9b
mov r15, r8
movzx edi, dl
mov word [rsp + 0x30], 0x103
mov rsi, rcx
xorps xmm0, xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
lea eax, [rbx + 5]
mov r8d, 0x100
mov byte [rsp + 0x32], al
xor r14d, r14d
xor eax, eax
mov dword [rsp + 0x43], eax
mov byte [rsp + 0x47], al
movups xmmword [rsp + 0x33], xmm0
call fcn.14011adb0
cmp bl, 0x12
jae 0x14000ea67
mov r8d, ebx
mov byte [rsp + 0x33], dil
mov rdx, r15
lea rcx, [rsp + 0x34]
call fcn.14011b4a0
xor dl, dl
lea r8d, [rbx + 3]
xor cl, cl
cmp r8d, 0x20
jb 0x14000e7eb
mov edx, r8d
xorps xmm2, xmm2
and edx, 0xffffffe0
xorps xmm1, xmm1
nop
movzx eax, cl
movdqu xmm0, xmmword [rsp + rax + 0x31]
lea eax, [rcx + 0x10]
add cl, 0x20
movzx eax, al
pxor xmm0, xmm2
movdqa xmm2, xmm0
movdqu xmm0, xmmword [rsp + rax + 0x31]
movzx eax, cl
pxor xmm0, xmm1
movdqa xmm1, xmm0
cmp eax, edx
jb 0x14000e780
pxor xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd edx, xmm1
movzx eax, cl
cmp eax, r8d
jae 0x14000e811
nop dword [rax]
nop word [rax + rax]
movzx eax, cl
inc cl
xor dl, byte [rsp + rax + 0x31]
movzx eax, cl
cmp eax, r8d
jb 0x14000e800
mov byte [rsp + rbx + 0x34], dl
mov rcx, rsi
mov edx, reloc.WLDAP32.dll_Ordinal_12
mov byte [rsp + rbx + 0x35], 4
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], r14
mov r8d, reloc.ODBC32.dll_SQLAllocHandle
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000ea53
cmp dword [rbp + 0x88], 0x18
jne 0x14000ea53
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], r14
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ea44
mov edx, dword [rbp + 0x88]
cmp edx, 6
jb 0x14000ea3b
cmp byte [rsp + 0x50], 5
jne 0x14000ea2d
cmp byte [rsp + 0x51], 1
jne 0x14000ea2d
movzx r8d, byte [rsp + 0x52]
cmp r8b, 5
jb 0x14000ea1f
or dil, 0x80
cmp byte [rsp + 0x53], dil
jne 0x14000ea1f
sub r8b, 5
xor dl, dl
movzx r10d, r8b
xor al, al
lea r9d, [r10 + 3]
cmp r9d, 0x20
jb 0x14000e97a
mov edx, r9d
xorps xmm2, xmm2
and edx, 0xffffffe0
xorps xmm1, xmm1
nop
movzx ecx, al
movdqu xmm0, xmmword [rsp + rcx + 0x51]
lea ecx, [rax + 0x10]
add al, 0x20
movzx ecx, cl
pxor xmm0, xmm2
movdqa xmm2, xmm0
movdqu xmm0, xmmword [rsp + rcx + 0x51]
movzx ecx, al
pxor xmm0, xmm1
movdqa xmm1, xmm0
cmp ecx, edx
jb 0x14000e910
pxor xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd edx, xmm1
movzx ecx, al
cmp ecx, r9d
jae 0x14000e9a1
nop dword [rax]
nop word [rax + rax]
movzx ecx, al
inc al
xor dl, byte [rsp + rcx + 0x51]
movzx ecx, al
cmp ecx, r9d
jb 0x14000e990
cmp byte [rsp + r10 + 0x54], dl
jne 0x14000ea11
cmp byte [rsp + r10 + 0x55], 4
jne 0x14000ea11
mov r14d, 1
test r8b, r8b
je 0x14000ea67
mov rbx, qword [rbp + 0x90]
test rbx, rbx
je 0x14000ea67
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x14000ea67
movzx edi, r8b
lea ecx, [r14 + 0x3f]
mov edx, edi
mov byte [rax], r8b
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14000ea0c
mov r8d, edi
lea rdx, [rsp + 0x54]
mov rcx, rax
call fcn.14011b4a0
jmp 0x14000ea67
xor r14d, r14d
jmp 0x14000ea67
lea rcx, str.ERROR_sr98_send_receive___Bad_CRC_data_n
call fcn.14000afb0
jmp 0x14000ea67
lea rcx, str.ERROR_sr98_send_receive___Bad_data_size_ctl_code_n
call fcn.14000afb0
jmp 0x14000ea67
lea rcx, str.ERROR_sr98_send_receive___Bad_header_n
call fcn.14000afb0
jmp 0x14000ea67
lea rcx, str.ERROR_sr98_send_receive___Read_size___u_n
jmp 0x14000ea62
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_sr98_send_receive___ReadFile__0x_08x__n
jmp 0x14000ea60
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_sr98_send_receive___WriteFile__0x_08x__n
mov edx, eax
call fcn.14000afb0
lea r11, [rsp + 0x150]
mov eax, r14d
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret