Function at 0x1001d180
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d6734
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1010f770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
sub esp, 0x18
mov dword [ebp - 4], 3
mov ecx, esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.416D6C646B65
mov word [ecx], ax
call fcn.1001a3a0
lea ecx, [ebp - 0x88]
call fcn.100209c0
mov ecx, esp
mov byte [ebp - 4], 4
push 4
xor eax, eax
push str.6E60
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.1001a3a0
lea ecx, [ebp - 0xa0]
call fcn.100209c0
add esp, 0x18
xor eax, eax
mov byte [ebp - 4], 5
push eax
push 0x1010154c
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.1001a3a0
mov byte [ebp - 4], 6
lea edx, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0x44], 7
cmovae edx, dword [ebp - 0xa0]
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edx], ax
jne 0x1001d277
xor ecx, ecx
jmp 0x1001d28f
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d280
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.1001a3a0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x14], 7
cmovae edx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x1001d2cb
xor ecx, ecx
jmp 0x1001d2df
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d2d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1001a3a0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.1001dc20
mov ecx, eax
call fcn.10022210
cmp dword [ebp - 0x14], 8
jb 0x1001d31d
push dword [ebp - 0x28]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x44], 8
jb 0x1001d342
push dword [ebp - 0x58]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x5c], 8
jb 0x1001d36b
push dword [ebp - 0x70]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
push ecx
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x40]
mov word [ebp - 0x70], ax
call fcn.1001fa10
sub esp, 0x14
mov byte [ebp - 4], 0xd
mov ecx, esp
lea eax, [ebp - 0x40]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10019c20
lea ecx, [ebp - 0x244]
call fcn.10020ab0
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x1001d3f8
cmp dword [ebp - 0x2c], 0x10
jb 0x1001d3dd
push dword [ebp - 0x40]
call fcn.1005f16c
add esp, 4
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.1001ed80
cmp dword [ebp - 0x230], 0x10
jb 0x1001d40f
push dword [ebp - 0x244]
call fcn.1005f16c
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x38]
push eax
call fcn.10019d50
call fcn.1001c870
add esp, 0x18
test eax, eax
jne 0x1001d863
sub esp, 0x18
mov ecx, esp
push 4
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
push str.7875
mov word [ecx], ax
call fcn.1001a3a0
lea ecx, [ebp - 0x70]
call fcn.100209c0
add esp, 0x18
xor eax, eax
mov byte [ebp - 4], 0xe
push eax
push 0x1010154c
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.1001a3a0
sub esp, 0x18
mov byte [ebp - 4], 0xf
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x38]
push eax
call fcn.10019d50
lea ecx, [ebp - 0xb8]
call fcn.10020ba0
add esp, 0x18
mov esi, eax
call fcn.1001dc20
cmp dword [eax + 0x18], 8
lea edx, [eax + 4]
jb 0x1001d4da
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
jb 0x1001d4e2
mov esi, dword [esi]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
push edx
cmovae ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
push esi
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [ebp - 0xa4], 8
jb 0x1001d51f
push dword [ebp - 0xb8]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
jb 0x1001d551
push dword [ebp - 0x58]
call fcn.1005f16c
add esp, 4
push ecx
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x28]
call fcn.1001fa10
sub esp, 0x14
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x218], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 0x50]
push eax
call fcn.10019d50
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.10019c20
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x10
call fcn.1001cbf0
add esp, 0x30
test eax, eax
jne 0x1001d82b
sub esp, 0x18
mov ecx, esp
push str.766371695D666E5D64636B6E6766
call fcn.10019ac0
lea ecx, [ebp - 0xb8]
call fcn.100209c0
mov ecx, esp
mov byte [ebp - 4], 0x12
push str.6A767672382D2D63726B2C7663716961762C616D6F2D6B6C66677A2C726A723D6F3F43727224613F43726B7124633F717663707624
call fcn.10019ac0
lea ecx, [ebp - 0x58]
call fcn.100209c0
add esp, 0x18
push 0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x21c], esp
push 0x1010154c
call fcn.10019ac0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x14
push eax
call fcn.10019b50
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.1005c920
push str.type
lea ecx, [ebp - 0x244]
call fcn.10019ac0
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov esi, esp
mov dword [ebp - 0x21c], esp
sub esp, 0x18
mov ecx, esp
push str.616E6B6169
call fcn.10019ac0
mov ecx, esi
call fcn.100209c0
add esp, 0x18
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x16
push eax
call fcn.10019b50
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.1005ca70
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x230], 8
jb 0x1001d69f
push dword [ebp - 0x244]
call fcn.1005f16c
add esp, 4
push str.supplyid
lea ecx, [ebp - 0x244]
call fcn.10019ac0
sub esp, 0x18
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x21c], esp
push str.1003
call fcn.10019ac0
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x18
push eax
call fcn.10019b50
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.1005ca70
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x230], 8
jb 0x1001d6fe
push dword [ebp - 0x244]
call fcn.1005f16c
add esp, 4
push str.appid
lea ecx, [ebp - 0x244]
call fcn.10019ac0
sub esp, 0x18
mov byte [ebp - 4], 0x19
mov ecx, esp
mov dword [ebp - 0x21c], esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0xb8]
push eax
call fcn.10019d50
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x1a
push eax
call fcn.10019b50
mov ecx, eax
mov byte [ebp - 4], 0x19
call fcn.1005ca70
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x230], 8
jb 0x1001d775
push dword [ebp - 0x244]
call fcn.1005f16c
add esp, 4
call fcn.10019b50
push 0
push 0
push 0x863
push dword [eax + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.10019b50
mov ecx, eax
call fcn.1005c9e0
cmp dword [ebp - 0x44], 8
jb 0x1001d7a9
push dword [ebp - 0x58]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0xa4], 8
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x1001d7d4
push dword [ebp - 0xb8]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], 7
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
jb 0x1001d802
push dword [ebp - 0x28]
call fcn.1005f16c
add esp, 4
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x1001dad1
push dword [ebp - 0x70]
call fcn.1005f16c
jmp 0x1001dace
cmp dword [ebp - 0x14], 0x10
jb 0x1001d83c
push dword [ebp - 0x28]
call fcn.1005f16c
add esp, 4
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x1001d863
push dword [ebp - 0x70]
call fcn.1005f16c
add esp, 4
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001dad1
test al, 0x10
jne 0x1001dad1
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x210]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
xor esi, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
push eax
cmovne esi, dword [ebp - 0x1f0]
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.1006062f
add esp, 4
mov edi, eax
mov dword [ebp - 0x220], edi
push esi
push 0
push edi
call fcn.10065910
add esp, 0xc
mov dword [ebp - 0x214], 0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x214]
cmovae ecx, dword [ebp - 0x40]
push 0x10102864
push ecx
push eax
call fcn.1006079a
add esp, 0xc
test eax, eax
je 0x1001d91f
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x1001dac4
push eax
call fcn.1006084b
add esp, 4
jmp 0x1001dac4
push dword [ebp - 0x214]
push esi
push 1
push edi
call fcn.10060a87
push dword [ebp - 0x214]
call fcn.1006084b
add esp, 0x14
push esi
call fcn.1006062f
add esp, 4
mov edi, eax
mov dword [ebp - 0x22c], edi
push esi
push 0
push edi
call fcn.10065910
add esp, 0xc
xor edx, edx
test esi, esi
je 0x1001da25
cmp esi, 0x20
jb 0x1001d9f8
mov ecx, dword [ebp - 0x220]
lea eax, [ecx - 1]
add eax, esi
cmp edi, eax
ja 0x1001d984
lea eax, [edi - 1]
add eax, esi
cmp eax, ecx
jae 0x1001d9f8
movdqa xmm1, xmmword [0x1010a410]
mov eax, esi
and eax, 0x1f
mov dword [ebp - 0x224], esi
sub dword [ebp - 0x224], eax
mov esi, edi
sub esi, ecx
mov eax, ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x228], ecx
mov edi, esi
mov ecx, dword [ebp - 0x224]
lea ebx, [ebx]
movdqu xmm0, xmmword [eax]
mov esi, dword [ebp - 0x228]
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x20], xmm0
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movdqu xmmword [esi + edx], xmm0
mov esi, dword [ebp - 0x218]
add edx, 0x20
cmp edx, ecx
jb 0x1001d9c0
mov edi, dword [ebp - 0x22c]
cmp edx, esi
jae 0x1001da25
mov eax, dword [ebp - 0x220]
lea ecx, [edx + edi]
sub eax, edi
sub esi, edx
mov dword [ebp - 0x218], eax
mov edi, eax
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, 2
mov byte [ecx - 1], al
dec esi
jne 0x1001da11
mov edi, dword [ebp - 0x22c]
test edi, edi
je 0x1001dabe
sub esp, 0xc
mov ecx, edi
call fcn.10025e50
add esp, 0xc
mov dword [ebp - 0x218], eax
test eax, eax
je 0x1001dab5
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x746f7250
mov ecx, eax
mov dword [ebp - 0x18], 0x4d746365
mov dword [ebp - 0x14], 0x6e6961
call fcn.10025ff0
mov esi, eax
test esi, esi
je 0x1001dab5
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10019d50
push dword [0x101149c0]
call esi
mov ecx, dword [ebp - 0x218]
add esp, 0x1c
mov esi, eax
call fcn.100260a0
test esi, esi
je 0x1001dab5
mov eax, dword [ebp - 0x21c]
mov dword [eax], 1
push edi
call fcn.1005f7c4
add esp, 4
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x1001dad1
push edi
call fcn.1005f7c4
add esp, 4
cmp dword [ebp - 0x2c], 0x10
jb 0x1001dae2
push dword [ebp - 0x40]
call fcn.1005f16c
add esp, 4
cmp dword [ebp - 0xbc], 8
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
jb 0x1001db0b
push dword [ebp - 0xd0]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0xbc], 7
cmp dword [ebp - 0x8c], 8
mov word [ebp - 0xd0], ax
mov dword [ebp - 0xc0], eax
jb 0x1001db3b
push dword [ebp - 0xa0]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
cmp dword [ebp - 0x74], 8
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x90], eax
jb 0x1001db68
push dword [ebp - 0x88]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
cmp dword [ebp + 0x1c], 8
mov word [ebp - 0x88], ax
mov dword [ebp - 0x78], eax
jb 0x1001db8c
push dword [ebp + 8]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x1001dbb1
push dword [ebp + 0x20]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp + 0x34], 7
cmp dword [ebp + 0x4c], 8
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x1001dbd6
push dword [ebp + 0x38]
call fcn.1005f16c
add esp, 4
xor eax, eax
mov dword [ebp + 0x4c], 7
cmp dword [ebp + 0x64], 8
mov dword [ebp + 0x48], 0
mov word [ebp + 0x38], ax
jb 0x1001dbfb
push dword [ebp + 0x50]
call fcn.1005f16c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005f171
mov esp, ebp
pop ebp
ret