Function at 0x48514f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x540]
call fcn.004857de
lea eax, [ebp - 0x13c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x13c]
push 0x4bc010
push eax
call fcn.004896b7
pop ecx
mov dword [esi], eax
test eax, eax
pop ecx
jne 0x48519d
push 1
pop eax
jmp 0x48532d
xor eax, eax
mov cl, byte [eax + 0x4bc008]
mov byte [ebp + eax - 0x24], cl
mov cl, byte [eax + section..data]
mov byte [ebp + eax - 0x1c], cl
inc eax
cmp eax, 8
jl 0x48519f
mov edi, dword [ebp + 0xc]
push edi
call fcn.00489570
and dword [esi + 0x110], 0
pop ecx
lea ecx, [esi + 0x110]
xor edx, edx
test eax, eax
jle 0x4851e1
movsx ebx, byte [edx + edi]
add dword [ecx], ebx
inc edx
cmp edx, eax
jl 0x4851d6
push 2
push 0xfffffffffffffff8
push dword [esi]
call fcn.004894e7
push dword [esi]
lea edi, [esi + 4]
push 1
pop ebx
push ebx
push 4
push edi
call fcn.00489440
push dword [esi]
call fcn.00489191
push dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push ebx
push 4
push eax
call fcn.00489440
push 0
push 0
push dword [esi]
call fcn.004894e7
and dword [ebp + 0xc], 0
add esp, 0x3c
cmp dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
jle 0x485260
mov ecx, dword [esi]
test byte [ecx + 0xc], 0x10
jne 0x485260
push ecx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00489440
add esp, 0x10
lea ecx, [ebp - 0x540]
push dword [ebp - 0x14]
call fcn.0048581d
inc dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 8]
jl 0x485230
xor eax, 0xaaaaaaaa
cmp dword [ebp - 0x10], eax
jne 0x4852a1
push 0
push dword [edi]
push dword [esi]
call fcn.004894e7
push dword [esi]
lea eax, [ebp - 0x34]
push ebx
push 0x10
push eax
call fcn.00489440
add esp, 0x1c
test eax, eax
je 0x4852a1
xor eax, eax
mov cl, byte [ebp + eax - 0x34]
cmp cl, byte [ebp + eax - 0x24]
jne 0x48529c
inc eax
cmp eax, 0x10
jl 0x48528c
cmp eax, 0x10
je 0x4852a5
push 3
jmp 0x4852bd
push dword [esi]
lea eax, [ebp - 1]
push ebx
push ebx
push eax
call fcn.00489440
add esp, 0x10
cmp byte [ebp - 1], 3
je 0x4852ca
push 4
pop edi
push dword [esi]
call fcn.00488836
pop ecx
mov eax, edi
jmp 0x48532d
push dword [esi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.00489440
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xfac1
lea ebx, [esi + 0xc]
push edi
push 1
push ebx
call fcn.00489440
add esp, 0x20
lea eax, [edi + 0xc3d2]
mov ecx, esi
push eax
push edi
push ebx
call fcn.00485342
and byte [edi + esi + 0xc], 0
lea eax, [esi + 0x110]
xor ecx, ecx
cmp edi, ecx
mov dword [eax], ecx
jle 0x485320
movsx edx, byte [ebx + ecx]
add dword [eax], edx
inc ecx
cmp ecx, edi
jl 0x485315
push dword [esi]
call fcn.00489191
mov dword [esi + 8], eax
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x485342
Capabilities:
Encode data using xor

Disassembly:
push edi
push dword [esp + 0x10]
call fcn.00412010
xor edi, edi
pop ecx
cmp dword [esp + 0xc], edi
jbe 0x48536c
push esi
mov eax, dword [esp + 0xc]
lea esi, [edi + eax]
call fcn.00412180
xor byte [esi], al
inc edi
cmp edi, dword [esp + 0x10]
jb 0x485356
pop esi
pop edi
ret 0xc