Function at 0x10001000
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], edi
je 0x100013f1
cmp dword [ebp + 8], edi
je 0x100013f1
push 0x104
lea eax, [ebp - 0x1b0]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x1b1], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x10001065
lea eax, [ebp - 0x1b0]
push 0x1001905c
push eax
call esi
lea eax, [ebp - 0x1b0]
push str.v3update.cfg
push eax
call esi
push edi
push edi
push 3
push edi
push edi
lea eax, [ebp - 0x1b0]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10001099
push 2
jmp 0x100013f3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
je 0x100013e6
push esi
call fcn.10009153
test eax, eax
pop ecx
mov dword [ebp - 0x18], eax
je 0x100013e6
lea ecx, [ebp - 0x24]
push 0
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x100013e1
cmp dword [ebp - 0x24], esi
jne 0x100013e1
cmp esi, eax
jle 0x10001100
mov ecx, dword [ebp - 0x18]
add ecx, eax
xor byte [ecx], 0x32
inc eax
cmp eax, esi
jl 0x100010f3
mov esi, dword [ebp - 0x18]
push 0xb
lea eax, [ebx + 0x26]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esi + 0xa]
add esi, 0xa
movzx ecx, ax
shr eax, 0x10
cmp dword [ebx + 0x1e], ecx
mov dword [ebx + 0x36], ecx
mov edi, eax
jl 0x1000112d
push 4
jmp 0x100013e3
cmp word [ebx + 0x22], 0xffff
jne 0x100012ca
xor eax, eax
add esi, 4
test di, di
mov dword [ebp + 0xc], eax
jbe 0x10001156
mov ecx, esi
movzx edx, di
add eax, dword [ecx]
add ecx, 4
dec edx
jne 0x1000114b
mov dword [ebp + 0xc], eax
movzx eax, ax
mov dword [ebp - 0x10], eax
inc eax
shl eax, 7
push eax
call fcn.10009019
pop ecx
mov ecx, eax
test ecx, ecx
mov dword [ebp - 8], ecx
jne 0x1000117c
mov dword [ebp - 0x14], 3
jmp 0x100013d1
movzx eax, di
xor edi, edi
cmp word [ebp + 0xc], di
lea eax, [esi + eax*4]
mov esi, 0x80
jbe 0x10001223
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
jmp 0x100011a1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], eax
movzx ecx, cx
mov dword [ebp - 0x28], ecx
inc ecx
cmp ecx, esi
jb 0x100011b9
mov ecx, esi
push ecx
push eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
and dword [ebp + 0xc], 0
test edi, edi
jle 0x100011f5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100011f5
inc dword [ebp + 0xc]
add dword [ebp - 0x1c], esi
cmp dword [ebp + 0xc], edi
jl 0x100011d6
cmp dword [ebp + 0xc], edi
jne 0x1000120e
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc edi
add dword [ebp - 0xc], esi
mov eax, dword [ebp - 0x2c]
shr eax, 0x10
add eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
dec dword [ebp - 0x10]
jne 0x1000119e
mov eax, edi
push str.v3update.cfg
shl eax, 7
add eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc edi
mov eax, edi
mov dword [ebx + 0x3a], edi
imul eax, eax, 0x104
add eax, 0x40
cmp dword [ebx + 8], eax
jb 0x100012b2
and dword [ebp + 0xc], 0
test edi, edi
jle 0x100012bc
mov eax, dword [ebp - 8]
add ebx, 0x140
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebx - 0x100]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebx - 0x80]
push str.UPDATE
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi - 1]
cmp dword [ebp + 0xc], eax
jne 0x1000128c
mov eax, dword [ebp - 0x20]
jmp 0x1000129d
lea eax, [ebx - 0x100]
push eax
push dword [ebp + 8]
call fcn.10003292
pop ecx
pop ecx
inc dword [ebp + 0xc]
add dword [ebp - 0xc], esi
mov dword [ebx], eax
add ebx, 0x104
cmp dword [ebp + 0xc], edi
jl 0x1000125f
jmp 0x100012bc
mov dword [ebx + 8], eax
mov dword [ebp - 0x14], 5
push dword [ebp - 8]
call fcn.10008f30
pop ecx
jmp 0x100013d1
mov eax, dword [ebx + 0x22]
movzx ecx, di
cmp ecx, eax
jle 0x100013ca
mov esi, dword [esi + eax*4 + 4]
movzx ecx, si
inc ecx
mov eax, ecx
mov dword [ebx + 0x3a], ecx
imul eax, eax, 0x104
add eax, 0x40
cmp dword [ebx + 8], eax
jb 0x100013be
and dword [ebp - 8], 0
shr esi, 0x10
add esi, dword [ebp - 0x18]
test ecx, ecx
mov dword [ebp - 4], esi
jle 0x100013d1
lea edi, [ebx + 0x140]
mov esi, 0x80
mov eax, dword [ebx + 0x3a]
dec eax
cmp dword [ebp - 8], eax
jne 0x10001348
lea eax, [edi - 0x100]
push str.v3update.cfg
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi - 0x80]
push 0x10019040
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
jmp 0x100013a7
mov eax, dword [ebp - 4]
add dword [ebp - 4], 4
mov ecx, esi
mov ebx, dword [eax]
movzx eax, bx
inc eax
cmp eax, esi
jae 0x1000135d
mov ecx, eax
push ecx
lea eax, [edi - 0x100]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
movzx eax, bx
add dword [ebp - 4], eax
shr ebx, 0x10
lea eax, [ebx + 1]
cmp eax, esi
jb 0x10001380
mov eax, esi
push eax
lea eax, [edi - 0x80]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [edi - 0x100]
push eax
push dword [ebp + 8]
call fcn.10003292
add dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
pop ecx
mov dword [edi], eax
pop ecx
inc dword [ebp - 8]
add edi, 0x104
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x3a]
jl 0x10001317
jmp 0x100013d1
mov dword [ebx + 8], eax
mov dword [ebp - 0x14], 5
jmp 0x100013d1
mov dword [ebp - 0x14], 1
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.10008f25
pop ecx
mov eax, esi
jmp 0x100013f4
push 3
pop esi
jmp 0x100013d4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
jmp 0x100013f3
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret