Function at 0x589650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a5428
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x24], esi
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x589698
mov eax, dword [edi]
push 0
push 0x7d7468
push dword [edi + 0x10]
push eax
call fcn.0040ffd0
add esp, 0x10
test al, al
jne 0x5899b6
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push 0
mov byte [ebp - 0x4c], al
call fcn.004353e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
push edi
mov byte [ebp - 4], 2
call fcn.0043f7c0
push 1
sub esp, 0x28
mov byte [ebp - 4], 3
mov eax, esp
lea ecx, [ebp - 0x34]
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.0043d0c0
mov al, byte [ebp - 0x34]
add esp, 0x34
mov cl, byte [ebp - 0x4c]
mov edx, dword [ebp - 0x40]
mov byte [ebp - 0x4c], al
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x34], cl
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], edx
call fcn.00434940
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x589755
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x589755
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x589755
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 1
mov eax, 5
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov dword [ebp - 0x1c], 0xc2dec5ca
mov dword [ebp - 0x18], 0xaed9
mov al, cl
sub al, 0x57
xor byte [ebp + ecx - 0x1c], al
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x589774
mov byte [ebp + eax - 0x1c], 0
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x1c]
push eax
call fcn.00435a30
movzx ecx, byte [eax]
add ecx, 0xfffffffc
cmp ecx, 3
ja case.default.0x5897a4
jmp dword [ecx*4 + 0x589a84]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
xor esi, esi
xor edi, edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 8
xor ecx, ecx
mov eax, 4
mov dword [ebp - 0x6c], 0xcddfcbcd
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x68], 0xad
mov word [ebp - 0x67], cx
mov byte [ebp - 0x65], cl
nop dword [eax + eax]
mov al, cl
sub al, 0x57
xor byte [ebp + ecx - 0x6c], al
inc ecx
mov eax, dword [ebp - 0x70]
cmp ecx, eax
jb 0x5897f0
mov byte [ebp + eax - 0x6c], 0
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x6c]
push eax
call fcn.00435a30
cmp byte [eax], 2
jne 0x589954
xor eax, eax
mov dword [ebp - 0x70], 4
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0xcddfcbcd
mov byte [ebp - 0x68], 0xad
mov word [ebp - 0x67], ax
mov byte [ebp - 0x65], al
call fcn.004131e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00435a30
mov ecx, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x34]
push eax
movups xmmword [ebp - 0x34], xmm0
call fcn.00442070
lea eax, [ebp - 0x5c]
push eax
movups xmmword [ebp - 0x5c], xmm0
call fcn.00441ff0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00441f20
test al, al
je 0x589954
nop dword [eax]
lea ecx, [ebp - 0x34]
call fcn.0045bcc0
mov dl, byte [eax]
movzx ecx, dl
add ecx, 0xfffffffc
cmp ecx, 3
ja case.default.0x589899
jmp dword [ecx*4 + 0x589a94]
add eax, 8
xor ecx, ecx
cmp dl, 6
cmovne eax, ecx
mov eax, dword [eax]
jmp 0x5898f8
cmp dl, 5
je 0x5898c9
cmp dl, 6
je 0x5898c9
add eax, 8
xor cl, cl
xor edx, edx
test cl, cl
cmove eax, edx
mov eax, dword [eax]
jmp 0x5898f8
add eax, 8
mov cl, 1
xor edx, edx
test cl, cl
cmove eax, edx
mov eax, dword [eax]
jmp 0x5898f8
add eax, 8
xor ecx, ecx
cmp dl, 7
cmovne eax, ecx
cvttsd2si eax, qword [eax]
jmp 0x5898f8
add eax, 8
xor ecx, ecx
cmp dl, 4
cmovne eax, ecx
movzx eax, byte [eax]
mov dword [ebp - 0x24], eax
cmp edi, esi
je 0x589909
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x1c], esi
jmp 0x58991c
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.0046b880
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
sub eax, 1
je 0x589937
sub eax, 1
je 0x589931
inc dword [ebp - 0x28]
jmp 0x589940
add dword [ebp - 0x2c], 0x10
jmp 0x589940
lea ecx, [ebp - 0x30]
call fcn.004284e0
nop
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00441f20
test al, al
jne 0x589880
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [eax], ecx
lea ecx, [ebp - 0x20]
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov dword [ebp - 0x18], 0
call fcn.004097f0
lea ecx, [ebp - 0x4c]
call fcn.00434940
mov eax, dword [ebp - 0x74]
jmp 0x5899cc
mov dword [esi], 0
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret
mov ecx, eax
call fcn.00435660
push eax
lea ecx, [ebp - 0x64]
call fcn.00406b50
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 9
push str.type_must_be_number__but_is
push eax
call fcn.0041ef20
push eax
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0xa
push 0x12e
push eax
call fcn.0042f470
add esp, 0x18
lea eax, [ebp - 0x94]
push 0x826ab8
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov ecx, eax
call fcn.00435660
push eax
lea ecx, [ebp - 0x64]
call fcn.00406b50
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 6
push str.type_must_be_number__but_is
push eax
call fcn.0041ef20
push eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 7
push 0x12e
push eax
call fcn.0042f470
add esp, 0x18
lea eax, [ebp - 0xb0]
push 0x826ab8
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
nop
stosd dword es:[edi], eax
xchg edi, eax
pop eax
add byte [ebx - 0x54ffa769], ch
xchg edi, eax
pop eax
add byte [ebx - 0x15ffa769], ch
cwde
pop eax
add byte [edi - 0x5fffa768], ch
cwde
pop eax
add cl, bl
cwde
pop eax
add ah, cl
int3