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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi + 0xab2]
mov byte [esi + 0x8cf6], 0
test eax, eax
lea ecx, [eax - 1]
mov dword [esi + 0xab2], ecx
ja 0x4a3bcf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x8cea]
test eax, eax
jne 0x4a3ece
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4a3d03
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4a3c00
xor edi, edi
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
jmp switch.0x004a3c8f
mov edx, dword [esi + 0x4c]
mov ebx, dword [esi + 0x8ce2]
mov ebp, dword [esi + 0x50]
mov eax, 3
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp eax, 3
jne 0x4a3c86
mov edx, dword [esi + 0xada]
mov eax, 0x2800
lea ecx, [esp + 0x10]
sub eax, edi
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x54]
push edx
mov edx, dword [esi + 0x58]
mov ecx, 0x20
call fcn.004b6650
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0x54]
mov ecx, ebp
push eax
push ebp
lea eax, [esp + 0x38]
push edx
push eax
push ebx
sar ecx, 0x1f
push 0
call dword [esi + 0xad6]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add edi, eax
add ebx, eax
add edx, eax
mov eax, dword [esp + 0x10]
adc ebp, 0
cmp edi, 0x2800
mov dword [esp + 0x14], edx
jb 0x4a3c1b
cmp eax, 3
mov dword [esp + 0x24], edi
ja case.default.0x4a3c8f
jmp dword [eax*4 + 0x4a3f1c]
mov ecx, edi
and ecx, 0xffff
mov dword [esi + 0x8cea], ecx
je 0x4a3cc3
mov ebx, dword [esi + 0x4c]
add ebx, ecx
mov dword [esi + 0x4c], ebx
mov edi, dword [esi + 0x50]
adc edi, 0
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x50], edi
mov dword [esi + 0x48], ecx
jmp case.default.0x4a3c8f
mov dword [esi + 0x48], 1
jmp case.default.0x4a3c8f
mov dword [esi + 0x8cea], 0xffffffff
mov byte [esi + 0x8cf6], 1
mov eax, dword [esi + 0x8cea]
test eax, eax
ja 0x4a3e6d
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x4a3cf9
mov byte [esi + 0x8cf6], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x8ce2]
mov ecx, dword [esi + 0x8cf8]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x24]
push 0
push edx
push 0x2800
push eax
push ecx
call ebx
cmp eax, 1
jne 0x4a3d3c
mov edx, dword [esp + 0x24]
and edx, 0xffff
mov dword [esi + 0x8cea], edx
jmp 0x4a3d46
mov dword [esi + 0x8cea], 0xffffffff
mov eax, dword [esi + 0x8cea]
test eax, eax
mov eax, dword [esi + 0xc7c]
ja 0x4a3d6b
test eax, eax
jne 0x4a3d73
mov byte [esi + 0x8cf6], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
test eax, eax
je 0x4a3e6d
mov eax, dword [esi + 0x8cea]
test eax, eax
ja 0x4a3e6d
mov ax, word [esi + 0xc24]
cmp ax, 0xffff
je 0x4a3da0
mov ecx, dword [esi + 0xc80]
movsx edx, ax
inc ecx
cmp ecx, edx
jg 0x4a3f11
call fcn.0049eaa0
mov ax, word [esi + 0xc24]
push 0x524a50
cmp ax, 0xffff
jne 0x4a3dc5
mov eax, dword [esi + 0xc80]
push 0
add eax, 2
push eax
jmp 0x4a3dd4
mov edx, dword [esi + 0xc80]
movsx ecx, ax
inc ecx
add edx, 2
push ecx
push edx
push 1
push 0
call fcn.004a14c0
add esp, 0x14
cmp eax, 1
jne 0x4a3f06
mov eax, dword [esi + 0xc80]
lea edi, [esi + 0x8cfc]
add eax, 2
push eax
push edi
call fcn.004a44c0
add esp, 8
test eax, eax
je 0x4a3e5f
push edi
call fcn.0049ea50
add esp, 4
test eax, eax
jne 0x4a3e5f
mov edx, dword [esi + 0x8ce2]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esi + 0x8cf8]
push ecx
push 0x2800
push edx
push eax
call ebx
cmp eax, 1
jne 0x4a3e55
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x4a3e55
and eax, 0xffff
mov dword [esi + 0x8cea], eax
mov eax, dword [esi + 0xc80]
inc eax
mov dword [esi + 0xc80], eax
jmp 0x4a3e5f
mov dword [esi + 0x8cea], 0
mov eax, dword [esi + 0xc7c]
test eax, eax
jne 0x4a3d73
mov ecx, dword [esi + 0x8f4c]
mov eax, dword [esi + 0xc84]
mov edi, dword [esi + 0x8ce2]
add ecx, 0x2800
test eax, eax
mov dword [esi + 0x8f4c], ecx
mov dword [esi + 0x8ce6], edi
je 0x4a3ece
mov eax, dword [esi + 0xab2]
mov ecx, dword [esi + 0x8cea]
inc eax
cmp ecx, eax
ja 0x4a3ea8
mov eax, ecx
mov ecx, eax
dec eax
test ecx, ecx
je 0x4a3ece
lea ebp, [eax + 1]
call fcn.004a4950
xor edx, edx
mov ebx, eax
mov dl, byte [edi]
xor ebx, edx
push ebx
call fcn.004a4980
add esp, 4
mov byte [edi], bl
inc edi
dec ebp
jne 0x4a3eb2
mov eax, dword [esi + 0x8ce6]
mov edx, dword [esp + 0x20]
pop edi
movzx cx, byte [eax]
mov word [edx], cx
mov ecx, dword [esi + 0x8ce6]
mov eax, dword [esi + 0x8cea]
inc ecx
dec eax
mov dword [esi + 0x8ce6], ecx
mov dword [esi + 0x8cea], eax
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xc
ret
cmp eax, 2
jne 0x4a3f11
mov dword [esi], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret