Function at 0x1004f410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10097e11
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
xor esi, esi
mov dword [esp + 0x18], ecx
cmp eax, edi
je 0x1004f49e
cmp ecx, edi
je 0x1004f49e
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call fcn.1004b7e0
add esp, 0x14
mov dword [esp + 0x240], edi
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], edi
jne 0x1004f4c4
mov dword [esp + 0x240], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10013100
mov eax, esi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.10079a05
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, 0xd
mov edx, 2
mul edx
seto cl
push 0x100da440
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov esi, 0x80
neg ecx
or ecx, eax
push ecx
call fcn.10079cfe
mov ebx, eax
add esp, 8
mov dword [esp + 0x20], ebx
cmp ebx, edi
je 0x1004f538
mov edx, 0x1009ed9c
xor eax, eax
mov ecx, ebx
sub edx, ebx
lea esp, [esp]
mov di, word [edx + ecx]
xor di, si
mov word [ecx], di
mov edi, eax
xor edi, 0x2a
add edi, esi
and edi, 0xff
inc eax
add ecx, 2
cmp eax, 0xc
mov esi, edi
jl 0x1004f510
xor eax, eax
mov word [ebx + 0x18], ax
mov byte [esp + 0x240], 1
push ebx
mov edi, 0x1009edfc
call fcn.10047e40
mov esi, eax
mov byte [esp + 0x240], 0
test ebx, ebx
je 0x1004f56a
push ebx
call fcn.10079d09
add esp, 4
mov dword [esp + 0x20], 0
test esi, esi
jne 0x1004f589
mov dword [esp + 0x240], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10013100
xor eax, eax
jmp 0x1004f4a0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2e]
push edx
mov word [esp + 0x30], cx
call fcn.1007dcf0
push esi
lea eax, [esp + 0x34]
push str.360ini__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add esp, 0x18
lea edx, [esp + 0x24]
push edx
lea ebx, [eax + eax + 2]
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
jne 0x1004f5f4
mov dword [esp + 0x240], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.10013100
mov eax, edi
jmp 0x1004f4a0
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x1004f5d9
mov eax, dword [esp + 0x18]
mov dword [eax], esi
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x1004f62b
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.1006d3a0
mov eax, dword [esp + 0x14]
push ebx
push eax
push esi
call fcn.10081350
add esp, 0xc
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1004f661
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x1004f4a0