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

Disassembly:
push ebp
sub esp, 0x328
lea ebp, [esp - 4]
mov eax, dword [0x84dfc0]
xor eax, ebp
mov dword [ebp + 0x328], eax
push 0x14
mov eax, 0x760672
call fcn.0048d201
mov edi, dword [ebp + 0x334]
mov eax, ecx
mov ecx, dword [ebp + 0x338]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
lea ecx, [eax + 0x344]
lea eax, [ebp + 0x104]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.0045df9b
cmp dword [ebp + 0x11c], 0x10
mov eax, dword [ebp + 0x108]
mov dword [ebp - 4], ebx
jae 0x458a19
lea eax, [ebp + 0x108]
push eax
push str.Use_deault_cfg__ip:___s_
push 4
call fcn.004618b4
push eax
call fcn.004621aa
xor eax, eax
push 0x206
mov word [ebp + 0x120], ax
lea eax, [ebp + 0x122]
push ebx
push eax
call fcn.0048d310
add esp, 0x1c
push 0x208
lea eax, [ebp + 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [edi + 0x1ac]
test esi, esi
je 0x458b19
and dword [ebp - 0x14], 0
mov edi, dword [edi + 0x1a8]
push esi
call fcn.00481e79
push esi
mov ebx, eax
push 0
push ebx
call fcn.0048d310
push 0x789bb4
lea eax, [ebp + 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0048f5eb
push 2
push 0
push dword [ebp - 0x14]
call fcn.0048f489
push dword [ebp - 0x14]
call fcn.0048f391
sub eax, esi
sub eax, edi
push 0
push eax
push dword [ebp - 0x14]
call fcn.0048f489
push dword [ebp - 0x14]
push esi
push 1
push ebx
call fcn.0048f1d7
add esp, 0x48
push dword [ebp - 0x14]
call fcn.0048eebb
xor eax, eax
pop ecx
test esi, esi
jbe 0x458ae5
xor byte [eax + ebx], 0x18
inc eax
cmp eax, esi
jb 0x458adc
push 0x10
lea eax, [ebp]
push str.LHlmbUBXQ2LjHOc8
push eax
call fcn.00478bf8
push esi
push ebx
lea eax, [ebp]
push ebx
push eax
call fcn.00478c72
mov ecx, dword [ebp - 0x20]
add esp, 0x1c
push dword [ebp - 0x1c]
add ecx, 0x344
push ebx
call fcn.0045fcd8
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
and dword [edi + 0xa4], 0
cmp dword [ebp + 0x118], 0xf
ja 0x458b4d
cmp dword [ebp + 0x118], 0
je 0x458b4d
cmp dword [ebp + 0x11c], 0x10
mov eax, dword [ebp + 0x108]
jae 0x458b4a
lea eax, [ebp + 0x108]
push eax
jmp 0x458b52
push str.0.0.0.0
lea eax, [edi + 0x94]
push 0x10
push eax
call fcn.0048dede
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x458c53
test ebx, ebx
je 0x458b89
push ebx
push str.Get_default_cfg_success___s_
push 4
call fcn.004618b4
push eax
call fcn.004621aa
add esp, 0x10
jmp 0x458b9e
push str.Get_default_cfg_failed__data_is_null.
push 4
call fcn.004618b4
push eax
call fcn.004621aa
add esp, 0xc
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x68]
add esi, 0x5c
mov ebx, 0x84
cdq
mov ecx, ebx
idiv ecx
mov byte [ebp - 0xd], 0
test eax, eax
jbe 0x458c22
and dword [ebp - 0x14], 0
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00447356
push eax
lea ecx, [ebp + 0x7c]
call fcn.00455e7b
mov eax, dword [ebp + 0xe0]
sub eax, dword [ebp + 0xdc]
push 0x30
cdq
pop ecx
idiv ecx
mov byte [ebp - 4], 1
test eax, eax
je 0x458bfc
lea eax, [ebp + 0x7c]
push eax
lea ecx, [edi + 0xf0]
call fcn.00458956
lea ecx, [ebp + 0x7c]
mov byte [ebp - 4], 0
call fcn.00455ba0
inc byte [ebp - 0xd]
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, ebx
cdq
idiv ecx
cmp dword [ebp - 0x14], eax
jb 0x458bc0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [edi + 0xb0], ecx
mov eax, dword [eax + 0x20]
mov dword [edi + 0xb4], eax
mov eax, dword [edi + 0x100]
sub eax, dword [edi + 0xfc]
cdq
idiv ebx
test eax, eax
je 0x458c68
mov dword [ebp - 0x18], 1
jmp 0x458c68
push str.Get_default_cfg_failed__all_is_null.
push 4
call fcn.004618b4
push eax
call fcn.004621aa
add esp, 0xc
push 0
push 1
lea ecx, [ebp + 0x104]
call fcn.0041c8f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x328]
xor ecx, ebp
call fcn.0048d1f2
add ebp, 0x32c
leave
ret 8