Function at 0x10059599
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5d6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x54
push esi
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
cmp edx, 3
ja case.default.0x10059318
jmp dword [edx*4 + 0x10059734]
movaps xmm0, xmmword [0x100f1750]
xor ecx, ecx
movups xmmword [ebp - 0x5e], xmm0
mov dword [ebp - 0x3e], 0x8eacc6ac
movaps xmm0, xmmword [0x100f0f40]
movups xmmword [ebp - 0x4e], xmm0
mov dword [ebp - 0x3a], 0x8e9c8288
mov dword [ebp - 0x36], 0x96809087
mov word [ebp - 0x32], 0x100
lea eax, [ecx - 0x38]
xor byte [ebp + ecx - 0x5e], al
inc ecx
cmp ecx, 0x2c
jb 0x10059352
push ecx
lea eax, [ebp - 0x32]
mov byte [ebp - 0x31], 0
push eax
lea eax, [ebp - 0x5e]
push eax
lea ecx, [ebp - 0x30]
call fcn.1001cc40
lea eax, [ebp - 0x30]
cmp esi, eax
je 0x100593d7
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100593aa
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x100593a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059409
mov eax, edx
push ecx
push eax
call fcn.100d178a
add esp, 8
movups xmm0, xmmword [ebp - 0x30]
mov dword [esi + 0x10], 0
mov ecx, 0xf
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x30], 0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
jmp 0x100593da
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x1005971e
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10059714
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10059714
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
movaps xmm0, xmmword [0x100f1750]
xor ecx, ecx
movups xmmword [ebp - 0x63], xmm0
mov word [ebp - 0x33], 0xd9
movaps xmm0, xmmword [0x100f1040]
movups xmmword [ebp - 0x53], xmm0
mov byte [ebp - 0x31], 1
movaps xmm0, xmmword [0x100f0f50]
movups xmmword [ebp - 0x43], xmm0
nop dword [eax]
lea eax, [ecx - 0x38]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x31
jb 0x10059440
push ecx
lea eax, [ebp - 0x32]
mov byte [ebp - 0x31], 0
push eax
lea eax, [ebp - 0x63]
push eax
lea ecx, [ebp - 0x30]
call fcn.1001cc40
lea eax, [ebp - 0x30]
cmp esi, eax
je 0x100593d7
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100593aa
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1005949a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059409
mov eax, edx
push ecx
push eax
call fcn.100d178a
movups xmm0, xmmword [ebp - 0x30]
mov dword [esi + 0x10], 0
add esp, 8
mov dword [esi + 0x14], 0xf
mov ecx, 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x30], 0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
jmp 0x100593da
movaps xmm0, xmmword [0x100f1750]
xor ecx, ecx
movups xmmword [ebp - 0x5d], xmm0
mov dword [ebp - 0x3d], 0x839ec98e
movaps xmm0, xmmword [0x100f1030]
movups xmmword [ebp - 0x4d], xmm0
mov dword [ebp - 0x39], 0x8e89cd89
mov dword [ebp - 0x35], 0xd3949d
mov byte [ebp - 0x31], 1
lea eax, [ecx - 0x38]
xor byte [ebp + ecx - 0x5d], al
inc ecx
cmp ecx, 0x2b
jb 0x10059505
push ecx
lea eax, [ebp - 0x32]
mov byte [ebp - 0x31], 0
push eax
lea eax, [ebp - 0x5d]
push eax
lea ecx, [ebp - 0x30]
call fcn.1001cc40
lea eax, [ebp - 0x30]
cmp esi, eax
je 0x100593d7
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100593aa
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1005955f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059409
mov eax, edx
push ecx
push eax
call fcn.100d178a
movups xmm0, xmmword [ebp - 0x30]
mov dword [esi + 0x10], 0
add esp, 8
mov dword [esi + 0x14], 0xf
mov ecx, 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x30], 0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
jmp 0x100593da
movaps xmm0, xmmword [0x100f1750]
xor ecx, ecx
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x34], 0x100d8bc
movaps xmm0, xmmword [0x100f13f0]
movups xmmword [ebp - 0x54], xmm0
movaps xmm0, xmmword [0x100f1170]
movups xmmword [ebp - 0x44], xmm0
lea eax, [ecx - 0x38]
xor byte [ebp + ecx - 0x64], al
inc ecx
cmp ecx, 0x32
jb 0x100595c3
push ecx
lea eax, [ebp - 0x32]
mov byte [ebp - 0x31], 0
push eax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x30]
call fcn.1001cc40
lea eax, [ebp - 0x30]
cmp esi, eax
je 0x100593d7
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100593aa
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1005961d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059409
mov eax, edx
push ecx
push eax
call fcn.100d178a
movups xmm0, xmmword [ebp - 0x30]
mov dword [esi + 0x10], 0
add esp, 8
mov dword [esi + 0x14], 0xf
mov ecx, 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x30], 0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
jmp 0x100593da
movaps xmm0, xmmword [0x100f1750]
xor ecx, ecx
movups xmmword [ebp - 0x62], xmm0
mov word [ebp - 0x32], 0x100
movaps xmm0, xmmword [0x100f0f20]
movups xmmword [ebp - 0x52], xmm0
movaps xmm0, xmmword [0x100f16f0]
movups xmmword [ebp - 0x42], xmm0
lea eax, [ecx - 0x38]
xor byte [ebp + ecx - 0x62], al
inc ecx
cmp ecx, 0x30
jb 0x10059680
push ecx
lea eax, [ebp - 0x32]
mov byte [ebp - 0x31], 0
push eax
lea eax, [ebp - 0x62]
push eax
lea ecx, [ebp - 0x30]
call fcn.1001cc40
lea eax, [ebp - 0x30]
cmp esi, eax
je 0x100593d7
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x100593aa
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x100596da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059409
mov eax, edx
push ecx
push eax
call fcn.100d178a
movups xmm0, xmmword [ebp - 0x30]
mov dword [esi + 0x10], 0
add esp, 8
mov dword [esi + 0x14], 0xf
mov ecx, 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x30], 0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
jmp 0x100593da
push ecx
push edx
call fcn.100d178a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret