Function at 0x20002e50
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Read file on windows

Disassembly:
mov eax, 0x1030
call fcn.20013be0
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x102c], eax
mov eax, dword [esp + 0x1038]
mov ecx, dword [esp + 0x1040]
mov edx, dword [esp + 0x1044]
push ebx
push ebp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1044]
push esi
xor ebp, ebp
sub eax, 1
push edi
mov edi, dword [esp + 0x1044]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], ebp
je 0x20002ff8
sub eax, 1
je 0x20002f67
sub eax, 1
jne 0x200031d3
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x14], ebp
lea ebp, [eax + 0xa]
xor esi, esi
jmp 0x20002ed0
push 0
lea eax, [esp + 0x18]
push eax
push 0x1000
lea ecx, [esp + esi + 0x48]
push ecx
push edi
call ebx
add esi, dword [esp + 0x14]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
dec ebp
test ebp, ebp
jle 0x20002efa
cmp esi, 7
jl 0x20002ed0
mov edx, dword [esp + 0x3c]
cmp dl, 0xaa
jne 0x20002fee
cmp dh, dl
jne 0x20002fee
cmp byte [esp + 0x3e], dl
jne 0x20002fee
cmp byte [esp + 0x3f], 0x96
jne 0x20002fee
mov ax, word [esp + 0x40]
cmp al, 0x69
jne 0x20002fee
mov cl, byte [esp + 0x42]
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], ah
mov dword [esp + 0x34], edx
movzx edx, word [esp + 0x10]
mov word [esp + 0x38], ax
push edx
lea eax, [esp + 0x47]
mov byte [esp + 0x3e], cl
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.20013870
add esp, 0xc
jmp 0x200031d3
push ebp
lea edx, [esp + 0x18]
push edx
push 7
lea eax, [esp + 0x40]
push eax
push ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0x222028
push edi
call ebp
test eax, eax
je 0x20002fee
cmp dword [esp + 0x14], 7
jne 0x20002fee
cmp byte [esp + 0x34], 0xaa
jne 0x20002fee
cmp byte [esp + 0x35], 0xaa
jne 0x20002fee
cmp byte [esp + 0x36], 0xaa
jne 0x20002fee
cmp byte [esp + 0x37], 0x96
jne 0x20002fee
cmp byte [esp + 0x38], 0x69
jne 0x20002fee
mov cl, byte [esp + 0x3a]
mov dl, byte [esp + 0x39]
push 0
mov byte [esp + 0x14], cl
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x15], dl
movzx ebx, word [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push 0
push 0
push 0x22202c
push edi
call ebp
test eax, eax
je 0x20002fee
cmp ebx, dword [esp + 0x14]
je 0x200031d3
mov eax, 3
jmp 0x20003220
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 0x800
push 0x800
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetupComm]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ebx, eax
cmp dword [esp + 0x1c], ebp
jne 0x20003131
cmp dword [esp + 0x28], 7
jb 0x200030b4
mov bp, word [esp + 0x10]
test bp, bp
jne 0x200030be
push 0
lea ecx, [esp + 0x18]
push ecx
push 7
lea edx, [esp + 0x40]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
je 0x20003141
cmp dword [esp + 0x14], 7
jne 0x20003141
cmp byte [esp + 0x34], 0xaa
jne 0x20003149
cmp byte [esp + 0x35], 0xaa
jne 0x20003149
cmp byte [esp + 0x36], 0xaa
jne 0x20003149
cmp byte [esp + 0x37], 0x96
jne 0x20003149
cmp byte [esp + 0x38], 0x69
jne 0x20003149
mov al, byte [esp + 0x3a]
mov cl, byte [esp + 0x39]
mov byte [esp + 0x10], al
mov byte [esp + 0x11], cl
mov bp, word [esp + 0x10]
test bp, bp
je 0x200030cb
movzx edx, bp
cmp dword [esp + 0x28], edx
jae 0x20003153
mov eax, 0x508
cmp bp, ax
jae 0x2000317e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, dword [esp + 0x20]
cmp eax, 0x2328
jbe 0x20003102
test bp, bp
je 0x20003214
cmp eax, 0x2328
ja 0x2000321b
push 0x800
push 0x800
push edi
call dword [sym.imp.KERNEL32.dll_SetupComm]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [esp + 0x1c], 0
mov ebx, eax
je 0x20003032
cmp dword [esp + 0x28], 0
je 0x20003141
push 8
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
or eax, 0xffffffff
jmp 0x20003220
mov eax, 0xfffffffd
jmp 0x20003220
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x18]
push eax
movzx ebx, bp
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x20003174
cmp ebx, dword [esp + 0x14]
je 0x200031d3
mov eax, 0xfffffffc
jmp 0x20003220
movzx ebp, bp
xor esi, esi
mov dword [esp + 0x14], esi
test ebp, ebp
jle 0x200031cb
jmp 0x20003190
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x20]
cmp eax, 0x2328
ja 0x20003203
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
mov eax, ebp
sub eax, esi
push eax
add ecx, esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [esp + 0x14]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebp
jl 0x20003190
test ebx, ebx
je 0x20003174
cmp ebp, esi
jne 0x20003174
movzx edx, word [esp + 0x10]
mov cl, byte [esp + 0x39]
xor cl, byte [esp + 0x3a]
xor eax, eax
test edx, edx
jle 0x200031f8
mov esi, dword [esp + 0x18]
lea ebx, [ebx]
xor cl, byte [esi + eax]
inc eax
cmp eax, edx
jl 0x200031f0
test cl, cl
je 0x2000320a
mov eax, 0xfffffff7
jmp 0x20003220
mov eax, 0xfffffff8
jmp 0x20003220
mov eax, dword [esp + 0x30]
mov dword [eax], edx
xor eax, eax
jmp 0x20003220
mov eax, 0xfffffffb
jmp 0x20003220
mov eax, 0xfffffffa
mov ecx, dword [esp + 0x103c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x1030
ret