Function at 0x421ec0
Capabilities:
Encode data using xor
Get common file path
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 0x49bacb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x4d90c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0xb8], edi
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
movups xmmword [edi + 0x130], xmm0
mov dword [edi + 0x140], 0
mov dword [edi + 0x144], 0xf
mov byte [edi + 0x130], 0
movups xmmword [edi + 0x154], xmm0
mov dword [edi + 0x164], 0
mov dword [edi + 0x168], 0xf
mov byte [edi + 0x154], 0
push 0x104
lea eax, [edi + 0x16c]
push 0
push eax
call fcn.00473b50
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [edi + 0x280], xmm0
mov dword [edi + 0x290], 0
mov dword [edi + 0x294], 0xf
mov byte [edi + 0x280], 0
movups xmmword [edi + 0x298], xmm0
mov dword [edi + 0x2a8], 0
mov dword [edi + 0x2ac], 0xf
mov byte [edi + 0x298], 0
mov byte [ebp - 4], 5
xor eax, eax
movaps xmm0, xmmword [0x4d32e0]
xor ecx, ecx
movups xmmword [ebp - 0xa4], xmm0
mov dword [edi], 0
movaps xmm0, xmmword [0x4d35a0]
movups xmmword [ebp - 0x94], xmm0
mov byte [edi + 0x14c], 0
movaps xmm0, xmmword [str._s_20_s42_6]
mov byte [edi + 0x2b0], 0
mov word [edi + 4], 0
mov word [edi + 0x27c], ax
movups xmmword [ebp - 0x84], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0xa4]
xor byte [ebp + ecx - 0xa3], al
inc ecx
cmp ecx, 0x2e
jb 0x422040
lea ecx, [ebp - 0xa3]
mov byte [ebp - 0x75], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422060
sub ecx, edx
lea eax, [ebp - 0xa3]
push ecx
push eax
lea ecx, [edi + 0x280]
call fcn.004024f0
push 0x100
call fcn.00472277
add esp, 4
mov dword [ebp - 0x74], eax
lea esi, [edi + 0x2c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dl, 0x18
mov dword [ebp - 0x48], 0x7d4b4418
mov dword [ebp - 0x44], 0x6a7d6e6a
xor ecx, ecx
mov dword [ebp - 0x40], 0x71767136
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x47]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xb
jae 0x4220c9
mov dl, byte [ebp - 0x48]
jmp 0x4220b8
mov ecx, esi
mov byte [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x78], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4220f0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x8c]
call fcn.004080c0
lea eax, [ebp - 0x47]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405f40
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
movaps xmm0, xmmword [0x4d3060]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0xf
movups xmmword [ebp - 0xb4], xmm0
cmova eax, dword [ebp - 0x6c]
xor ecx, ecx
mov dword [ebp - 0x70], eax
nop
mov al, byte [ebp - 0xb4]
xor byte [ebp + ecx - 0xb3], al
inc ecx
cmp ecx, 0xe
jb 0x422170
push dword [ebp - 0x70]
mov ah, 0x67
mov byte [ebp - 0x38], 0x13
mov al, 0x2e
mov byte [ebp - 0x50], ah
xor al, ah
mov byte [ebp - 0x4c], 0
mov byte [ebp - 0x4f], al
mov cl, 0x37
xor cl, ah
mov byte [ebp - 0x31], 0
mov dl, 0x57
mov byte [ebp - 0x4e], cl
xor dl, ah
mov byte [ebp - 0xa5], 0
mov al, 0x40
mov byte [ebp - 0x4d], dl
xor al, byte [ebp - 0x38]
mov cl, 0x76
mov byte [ebp - 0x37], al
mov dl, 0x61
mov al, byte [ebp - 0x38]
mov ah, 0x65
xor ah, al
mov byte [ebp - 0x4c], 0
push 0x100
push dword [ebp - 0x74]
mov ch, cl
mov byte [ebp - 0x34], ah
mov dh, dl
mov byte [ebp - 0x31], 0
xor cl, al
xor dl, al
xor ch, al
mov byte [ebp - 0x36], cl
xor dh, al
mov byte [ebp - 0x35], dl
lea eax, [ebp - 0xb3]
mov byte [ebp - 0x33], ch
push eax
lea eax, [ebp - 0x4f]
mov byte [ebp - 0x32], dh
push eax
lea eax, [ebp - 0x37]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x42223a
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x422230
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422512
push ecx
push edx
call fcn.00472269
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
cmp ecx, 0xf
jbe 0x422287
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42227d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422512
push ecx
push edx
call fcn.00472269
add esp, 8
mov dl, 0x1d
mov dword [ebp - 0x48], 0x784e411d
mov dword [ebp - 0x44], 0x6f786b6f
xor ecx, ecx
mov dword [ebp - 0x40], 0x74737433
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x47]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, 0xb
jae 0x4222b5
mov dl, byte [ebp - 0x48]
jmp 0x4222a4
mov ecx, esi
mov byte [ebp - 0x3c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x78], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4222d6
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x8c]
call fcn.004080c0
lea eax, [ebp - 0x47]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405f40
mov dword [ebp - 0x5c], 0
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x6c], xmm0
mov dh, 0x3b
mov cl, 0x52
movups xmm0, xmmword [eax]
mov dl, 0x57
mov byte [ebp - 0x51], 0x5e
mov ch, 0x48
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov al, 0x7d
cmp dword [ebp - 0x58], 0xf
mov ah, 0x5e
mov byte [ebp - 0x38], 0x30
cmova esi, dword [ebp - 0x6c]
xor al, dh
mov byte [ebp - 0x4f], al
xor ah, dh
xor cl, dh
mov byte [ebp - 0x4c], ah
xor dl, dh
mov byte [ebp - 0x50], dh
xor ch, dh
mov byte [ebp - 0x4e], cl
mov al, 0x66
mov byte [ebp - 0x4d], dl
xor al, byte [ebp - 0x38]
mov cl, 0x55
mov byte [ebp - 0x37], al
mov dl, 0x42
mov al, byte [ebp - 0x38]
mov ah, 0x43
mov byte [ebp - 0x4b], ch
xor cl, al
xor dl, al
mov byte [ebp - 0x4a], 0
xor ah, al
mov byte [ebp - 0x30], 0
mov ch, 0x59
mov byte [ebp - 0x34], ah
xor ch, al
mov byte [ebp - 0x4a], 0
mov dh, 0x5f
mov byte [ebp - 0x36], cl
xor dh, al
mov byte [ebp - 0x35], dl
mov al, byte [ebp - 0x51]
xor al, byte [ebp - 0x38]
push esi
mov byte [ebp - 0x31], al
lea eax, [ebp - 0x4f]
push 1
push eax
lea eax, [ebp - 0x37]
mov byte [ebp - 0x33], ch
push eax
mov byte [ebp - 0x32], dh
mov byte [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x58]
mov word [edi + 0x27e], ax
cmp ecx, 0xf
jbe 0x422404
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4223fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422517
push ecx
push edx
call fcn.00472269
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
cmp ecx, 0xf
jbe 0x422451
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x422447
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422517
push ecx
push edx
call fcn.00472269
add esp, 8
mov ecx, dword [ebp - 0x74]
mov edx, ecx
lea esi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x422460
sub edx, esi
push edx
push ecx
lea ecx, [edi + 0x130]
call fcn.004024f0
lea esi, [edi + 0x16c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, esi
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4224a2
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004080c0
push str.wfix
call fcn.0047c9d2
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp ecx, 0xf
jbe 0x4224f2
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4224e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42251c
push ecx
push edx
call fcn.00472269
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00472221
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00479f90
call fcn.00479f90
call fcn.00479f90
int3