Function at 0x1005a940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100658c8
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x10077604]
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 esi, ecx
movzx eax, word [ebp + 0xc]
movzx ebx, word [ebp + 0x28]
movzx edi, word [ebp + 8]
mov dword [ebp - 0x5c], eax
movzx eax, word [ebp + 0x2c]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 1
test di, di
je 0x1005ad36
test bx, bx
je 0x1005ad36
cmp dword [esi + 0x34], 0
jg 0x1005ad36
lea eax, [ebp + 0x10]
push eax
push dword [esi + 8]
call fcn.100136d0
lea eax, [ebp + 0x30]
push eax
push dword [esi + 0xc]
call fcn.100136d0
push 0
push dword [esi + 0x10]
call fcn.10013770
push 0
push dword [esi + 0x14]
call fcn.10013770
add esp, 0x20
cmp di, 0xffff
je 0x1005ad06
cmp bx, 0xffff
je 0x1005ad06
mov bh, 0x5f
mov byte [ebp - 0x48], 0
mov al, 0x2c
mov byte [ebp - 0x50], bh
mov ah, 0x30
mov byte [ebp - 0x48], 0
xor al, bh
xor ah, bh
mov byte [ebp - 0x4f], al
mov cl, 0x26
mov byte [ebp - 0x4b], ah
mov dl, 0x32
lea eax, [ebp - 0x4f]
mov ch, 0x33
push eax
mov dh, 3
lea eax, [ebp - 0x28]
mov bl, 0x3d
xor cl, bh
xor dl, bh
mov byte [ebp - 0x4e], cl
xor ch, bh
mov byte [ebp - 0x4d], dl
xor dh, bh
mov byte [ebp - 0x4a], ch
push 0x100780e8
xor bl, bh
mov byte [ebp - 0x49], dh
push eax
mov byte [ebp - 0x4c], bl
call fcn.10006fd0
add esp, 0xc
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
test ax, ax
jne 0x1005aa9c
movaps xmm0, xmmword [0x1006ce60]
xor ecx, ecx
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x307a3f26
mov word [ebp - 0x64], 0x202c
mov byte [ebp - 0x62], al
mov al, byte [ebp - 0x78]
xor byte [ebp + ecx - 0x77], al
inc ecx
cmp ecx, 0x15
jb 0x1005aa75
lea eax, [ebp - 0x77]
mov byte [ebp - 0x62], 0
push eax
lea ecx, [ebp - 0xd8]
call fcn.100017e0
mov ebx, 1
jmp 0x1005ab0f
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [0x1006ce80]
cwde
push eax
movsx eax, di
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x98], 0x32
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push 1
push eax
movups xmmword [ebp - 0xa8], xmm0
nop dword [eax]
mov al, byte [ebp - 0xa8]
xor byte [ebp + ecx - 0xa7], al
inc ecx
cmp ecx, 0x10
jb 0x1005aad0
sub esp, 0x18
mov byte [ebp - 0x97], 0
lea eax, [ebp - 0xa7]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0xc0]
push eax
call fcn.100322e0
add esp, 0x2c
mov ebx, 2
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
call fcn.10059cf0
mov dword [ebp - 4], 4
test bl, 2
je 0x1005ab38
and ebx, 0xfffffffd
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x44], ebx
call fcn.10001840
mov byte [ebp - 4], 5
test bl, 1
je 0x1005ab52
and ebx, 0xfffffffe
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x44], ebx
call fcn.10001840
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x18]
call fcn.100131b0
mov dword [esp + 4], 0
mov dword [esp], 0
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0
mov dword [esp], 0
push dword [esi + 0x18]
call fcn.100132f0
mov eax, dword [ebp - 0x94]
add esp, 0x24
test ax, ax
jne 0x1005ac0e
movaps xmm0, xmmword [0x1006ced0]
xor ecx, ecx
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0x73397c65
mov word [ebp - 0x7c], 0x636f
mov byte [ebp - 0x7a], al
nop word [eax + eax]
mov al, byte [ebp - 0x90]
xor byte [ebp + ecx - 0x8f], al
inc ecx
cmp ecx, 0x15
jb 0x1005abe0
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x7a], 0
push eax
lea ecx, [ebp - 0x108]
call fcn.100017e0
or ebx, 4
jmp 0x1005ac67
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [0x1006cea0]
cwde
push eax
mov eax, dword [ebp - 0x60]
cwde
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x48], 0x65
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push 1
push eax
movups xmmword [ebp - 0x58], xmm0
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x10
jb 0x1005ac36
sub esp, 0x18
mov byte [ebp - 0x47], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0xf0]
push eax
call fcn.100322e0
add esp, 0x2c
or ebx, 8
push eax
lea ecx, [ebp - 0x40]
call fcn.10007e10
test bl, 8
je 0x1005ac83
lea ecx, [ebp - 0xf0]
and ebx, 0xfffffff7
call fcn.10001840
mov dword [ebp - 4], 5
test bl, 4
je 0x1005ac9a
lea ecx, [ebp - 0x108]
call fcn.10001840
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x1c]
call fcn.100131b0
mov dword [esp + 4], 0
mov dword [esp], 0
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0
mov dword [esp], 0
push dword [esi + 0x1c]
call fcn.100132f0
add esp, 0x24
lea ecx, [ebp - 0x40]
call fcn.10001840
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10001840
push 0
push dword [esi + 0x20]
call fcn.10012be0
push 0
push dword [esi + 0x24]
call fcn.10012be0
mov al, byte [ebp + 0x48]
add esp, 0x10
mov ecx, esi
mov byte [esi + 0x30], al
call fcn.1005bb10
push 1
push dword [esi]
call fcn.10012be0
add esp, 8
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x1005ad4d
push 1
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x24], 0xf
mov dword [ebp + 0x20], 0
mov byte [ebp + 0x10], 0
cmp eax, 0x10
jb 0x1005ad76
push 1
inc eax
push eax
push dword [ebp + 0x30]
call fcn.10002610
add esp, 0xc
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.1005f6be
mov esp, ebp
pop ebp
ret 0x44