Function at 0x1004fb90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7138
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov eax, dword [0x101ef154]
mov dword [ebp - 0x18], 0x7a626577
mov word [ebp - 0x14], 0x6e65
mov byte [ebp - 0x12], 0
mov edi, dword [eax]
mov dword [0x101ef034], edi
cmp byte [edi + 0x78], 0
mov word [edi + 0x78], 0
setne byte [ebp - 0x29]
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [edi + 0x38]
push eax
mov eax, 0x512dc0
call eax
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
movzx edx, byte [esi + 0xb0]
movzx ecx, byte [esi + 0xac]
call fcn.1004f130
mov ecx, dword [0x101ef09c]
push dword [0x101ef034]
mov eax, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [0x102320cc]
mov dword [ecx], eax
mov eax, 0x5aaf20
call eax
mov eax, dword [0x101ef034]
movss xmm0, dword [eax + 0xd4]
movss dword [esp], xmm0
sub esp, 0xc
movss xmm0, dword [eax + 0xd0]
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + 0x408]
movss dword [esp + 4], xmm0
movss xmm0, dword [eax + 0x404]
mov eax, 0x540c30
movss dword [esp], xmm0
call eax
mov eax, dword [0x101ef034]
add esp, 0x10
cmp byte [0x101eee23], 0
fstp dword [eax + 0x418]
mov eax, dword [0x101ef168]
movsd xmm2, qword [0xd27cb8]
movsd xmm1, qword [0xd22a88]
movss xmm3, dword [eax + 0x110]
cvtps2pd xmm0, xmm3
addsd xmm0, qword [0xd27cc0]
divsd xmm0, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
cvtps2pd xmm0, xmm3
mov dword [ebp - 0x40], eax
divsd xmm0, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [ebp - 0x3c], eax
mov al, byte [0x8793383]
mov byte [ebp - 0x2a], al
mov byte [0x8793383], 1
je 0x1004fd2b
push 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0xacd30cc1
push eax
mov word [ebp - 0x34], bx
mov dword [ebp - 0x30], 0x4b18967f
call fcn.1004f7b0
mov ecx, dword [0x101ef034]
lea eax, [ecx + 0x308]
push eax
movsx eax, bx
push eax
push ecx
call dword [0x101ef124]
add esp, 0xc
cmp byte [0x101e70c9], 0
je 0x1004fe16
movzx eax, byte [esi + 0xac]
mov byte [edi + 0xac], al
movzx eax, byte [esi + 0xb0]
mov byte [edi + 0xb0], al
movzx edx, byte [esi + 0xb0]
movzx ecx, byte [esi + 0xac]
call fcn.10050ac0
mov edx, 0x1d
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.PkwN]
xor al, dl
mov byte [ebp + ecx - 0x28], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xc
jb 0x1004fd70
lea eax, [ebp - 0x28]
mov byte [ebp - 0x1c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
sete al
movq qword [ebp - 0x28], xmm0
test al, al
je 0x1004fe0f
push 0xd4
push 0xc1
mov ecx, 0x101eef3c
mov eax, 0x404b90
call eax
movzx eax, byte [esi + 0xac]
mov ecx, 0x101eef3c
push eax
mov eax, 0x4050d0
call eax
movzx eax, byte [esi + 0xb0]
mov ecx, 0x101eef3c
push eax
mov eax, 0x4050d0
call eax
push 0
push 0
mov ecx, 0x101eef3c
call fcn.10062780
push 0x32
push 0
push 0x101eef3c
call fcn.10090bb0
add esp, 0xc
mov byte [0x101e73e7], 1
push dword [0x102320d0]
mov ecx, 0x101eef3c
mov eax, 0x404b90
push 0xc1
call eax
movzx eax, bx
mov ecx, 0x101eef3c
shr eax, 8
push eax
mov eax, 0x4050d0
call eax
movzx eax, bl
mov ecx, 0x101eef3c
push eax
mov ebx, 0x4050d0
call ebx
cmp byte [0x101e7215], 0
mov ecx, 0x101eef3c
je 0x1004fea3
cmp byte [0x101e70c9], 0
je 0x1004fea3
movss xmm0, dword [esi + 0xd0]
divss xmm0, dword [0x100d6858]
cvttss2si eax, xmm0
push eax
call ebx
movss xmm0, dword [esi + 0xd0]
mov ecx, 0x101eef3c
divss xmm0, dword [0x100d6858]
cvttss2si eax, xmm0
push eax
call ebx
mov byte [0x101e73e7], 1
jmp 0x1004feb8
push dword [0x100e65bc]
call ebx
push dword [0x100e65cc]
mov ecx, 0x101eef3c
call ebx
push dword [ebp - 0x3c]
mov ecx, 0x101eef3c
call ebx
push 0xffffffffffffffff
mov ecx, 0x101eef3c
call ebx
push dword [ebp - 0x40]
mov ecx, 0x101eef3c
call ebx
movsx eax, byte [esi + 0x7f]
mov ecx, 0x101eef3c
push eax
call ebx
movsx eax, word [esi + 0x7e]
mov ecx, 0x101eef3c
movzx eax, al
push eax
call ebx
push 0
push 1
mov ecx, 0x101eef3c
call fcn.10062780
push 0x32
push 0
push 0x101eef3c
call fcn.10090bb0
movss xmm0, dword [edi + 0x404]
add esp, 0xc
divss xmm0, dword [0x100d6858]
mov ecx, dword [ebp - 0x18]
cvttss2si eax, xmm0
movss xmm0, dword [edi + 0x408]
divss xmm0, dword [0x100d6858]
mov byte [edi + 0xac], al
cvttss2si eax, xmm0
mov byte [edi + 0xb0], al
mov eax, dword [0x101ef09c]
mov dword [eax], ecx
mov al, byte [ebp - 0x29]
mov byte [edi + 0x78], al
mov al, byte [ebp - 0x2a]
mov byte [0x8793383], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret