Function at 0x10059a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064848
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x10075604]
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 0x10059e06
test bx, bx
je 0x10059e06
cmp dword [esi + 0x34], 0
jg 0x10059e06
lea eax, [ebp + 0x10]
push eax
push dword [esi + 8]
call fcn.10013630
lea eax, [ebp + 0x30]
push eax
push dword [esi + 0xc]
call fcn.10013630
push 0
push dword [esi + 0x10]
call fcn.100136d0
push 0
push dword [esi + 0x14]
call fcn.100136d0
add esp, 0x20
cmp di, 0xffff
je 0x10059dd6
cmp bx, 0xffff
je 0x10059dd6
mov bh, 0x54
mov byte [ebp - 0x48], 0
mov al, 0x27
mov byte [ebp - 0x50], bh
mov ah, 0x3b
mov byte [ebp - 0x48], 0
xor al, bh
xor ah, bh
mov byte [ebp - 0x4f], al
mov cl, 0x2d
mov byte [ebp - 0x4b], ah
mov dl, 0x39
lea eax, [ebp - 0x4f]
mov ch, 0x38
push eax
mov dh, 8
lea eax, [ebp - 0x28]
mov bl, 0x36
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 0x100760e8
xor bl, bh
mov byte [ebp - 0x49], dh
push eax
mov byte [ebp - 0x4c], bl
call fcn.10006f30
add esp, 0xc
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
test ax, ax
jne 0x10059b6c
movaps xmm0, xmmword [0x1006be80]
xor ecx, ecx
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x347e3b22
mov word [ebp - 0x64], 0x2428
mov byte [ebp - 0x62], al
mov al, byte [ebp - 0x78]
xor byte [ebp + ecx - 0x77], al
inc ecx
cmp ecx, 0x15
jb 0x10059b45
lea eax, [ebp - 0x77]
mov byte [ebp - 0x62], 0
push eax
lea ecx, [ebp - 0xd8]
call fcn.100017e0
mov ebx, 1
jmp 0x10059bdf
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [str.Hm__]
cwde
push eax
movsx eax, di
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x98], 0x3c
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 0x10059ba0
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.10031980
add esp, 0x2c
mov ebx, 2
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
call fcn.10058dd0
mov dword [ebp - 4], 4
test bl, 2
je 0x10059c08
and ebx, 0xfffffffd
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x44], ebx
call fcn.10001840
mov byte [ebp - 4], 5
test bl, 1
je 0x10059c22
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.10013110
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.10013250
mov eax, dword [ebp - 0x94]
add esp, 0x24
test ax, ax
jne 0x10059cde
movaps xmm0, xmmword [0x1006be30]
xor ecx, ecx
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0xc46031a
mov word [ebp - 0x7c], 0x1c10
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 0x10059cb0
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x7a], 0
push eax
lea ecx, [ebp - 0x108]
call fcn.100017e0
or ebx, 4
jmp 0x10059d37
cmp dword [ebp - 0x14], 0x10
movaps xmm0, xmmword [0x1006be90]
cwde
push eax
mov eax, dword [ebp - 0x60]
cwde
push eax
lea eax, [ebp - 0x28]
mov word [ebp - 0x48], 0x37
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 0x10059d06
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.10031980
add esp, 0x2c
or ebx, 8
push eax
lea ecx, [ebp - 0x40]
call fcn.10007d70
test bl, 8
je 0x10059d53
lea ecx, [ebp - 0xf0]
and ebx, 0xfffffff7
call fcn.10001840
mov dword [ebp - 4], 5
test bl, 4
je 0x10059d6a
lea ecx, [ebp - 0x108]
call fcn.10001840
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x1c]
call fcn.10013110
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.10013250
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.10012b10
push 0
push dword [esi + 0x24]
call fcn.10012b10
mov al, byte [ebp + 0x48]
add esp, 0x10
mov ecx, esi
mov byte [esi + 0x30], al
call fcn.1005abe0
push 1
push dword [esi]
call fcn.10012b10
add esp, 8
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10059e1d
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 0x10059e46
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.1005e77e
mov esp, ebp
pop ebp
ret 0x44