Function at 0x494af0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x49521c
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push edi
test ebx, ebx
jne 0x494b20
push 0x19b
push str.._sober128.cpp
push str.out___NULL
call fcn.004941e0
add esp, 0xc
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x494b3f
push 0x19c
push str.._sober128.cpp
push str.c___NULL
call fcn.004941e0
add esp, 0xc
cmp dword [esi + 0x90], 0
mov edi, dword [esp + 0x1c]
je 0x494b7d
lea esp, [esp]
test ebp, ebp
je 0x494b79
mov al, byte [edi]
xor al, byte [esi + 0x8c]
inc ebx
mov byte [ebx - 1], al
shr dword [esi + 0x8c], 8
add dword [esi + 0x90], 0xfffffff8
inc edi
dec ebp
cmp dword [esi + 0x90], 0
jne 0x494b50
mov dword [esp + 0x20], ebp
cmp ebp, 0x44
jb 0x495195
mov eax, 0xf0f0f0f1
mul ebp
shr edx, 6
mov dword [esp + 0x10], edx
movzx ecx, byte [esi + 3]
mov eax, dword [esi]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
mov ecx, dword [esi + 4]
xor eax, dword [esi + 0x3c]
xor eax, dword [esi + 0x10]
add ecx, eax
mov dword [esi], eax
mov edx, ecx
shr edx, 0x18
mov eax, dword [edx*4 + 0x54af28]
xor eax, ecx
ror eax, 8
add eax, dword [esi + 8]
xor eax, dword [esi + 0x88]
add eax, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x54af28]
xor edx, eax
add edx, dword [esi + 0x38]
mov eax, edi
push edx
mov edx, ebx
call fcn.00494220
movzx ecx, byte [esi + 7]
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x40]
xor eax, dword [esi + 0x14]
add edx, eax
mov dword [esi + 4], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0xc]
lea edx, [ebx + 4]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 4]
add ecx, dword [esi + 0x20]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x3c]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0xb]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x18]
xor eax, dword [esi]
add edx, eax
mov dword [esi + 8], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x10]
lea edx, [ebx + 8]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 8]
add ecx, dword [esi + 0x24]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x40]
push ebp
call fcn.00494220
mov eax, dword [esi + 0xc]
movzx ecx, byte [esi + 0xf]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
mov edx, dword [esi + 0x10]
xor eax, dword [esi + 4]
xor eax, dword [esi + 0x1c]
add edx, eax
mov dword [esi + 0xc], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x14]
lea edx, [ebx + 0xc]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0xc]
add ecx, dword [esi + 0x28]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x13]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x20]
xor eax, dword [esi + 8]
add edx, eax
mov dword [esi + 0x10], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x18]
lea edx, [ebx + 0x10]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x10]
add ecx, dword [esi + 0x2c]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 4]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x17]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x24]
xor eax, dword [esi + 0xc]
add edx, eax
mov dword [esi + 0x14], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x1c]
lea edx, [ebx + 0x14]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x14]
add ecx, dword [esi + 0x30]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 8]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x1b]
mov eax, dword [esi + 0x18]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x10]
xor eax, dword [esi + 0x28]
mov edx, dword [esi + 0x1c]
add edx, eax
mov dword [esi + 0x18], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x20]
lea edx, [ebx + 0x18]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x18]
add ecx, dword [esi + 0x34]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0xc]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x1f]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x14]
xor eax, dword [esi + 0x2c]
add edx, eax
mov dword [esi + 0x1c], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x24]
lea edx, [ebx + 0x1c]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x1c]
add ecx, dword [esi + 0x38]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x10]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x23]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x18]
xor eax, dword [esi + 0x30]
add edx, eax
mov dword [esi + 0x20], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x28]
lea edx, [ebx + 0x20]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x20]
add ecx, dword [esi + 0x3c]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x14]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x27]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x34]
xor eax, dword [esi + 0x1c]
mov dword [esi + 0x24], eax
add edx, eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x2c]
lea edx, [ebx + 0x24]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x24]
add ecx, dword [esi + 0x40]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x18]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x2b]
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x38]
xor eax, dword [esi + 0x20]
add edx, eax
mov dword [esi + 0x28], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x30]
lea edx, [ebx + 0x28]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x28]
add ecx, dword [esi]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x1c]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x2f]
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x3c]
xor eax, dword [esi + 0x24]
add edx, eax
mov dword [esi + 0x2c], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x34]
lea edx, [ebx + 0x2c]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x2c]
add ecx, dword [esi + 4]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x20]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x33]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x40]
xor eax, dword [esi + 0x28]
mov dword [esi + 0x30], eax
add edx, eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x38]
lea edx, [ebx + 0x30]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x30]
add ecx, dword [esi + 8]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x24]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x37]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x2c]
xor eax, dword [esi]
add edx, eax
mov dword [esi + 0x34], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x3c]
lea edx, [ebx + 0x34]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x34]
add ecx, dword [esi + 0xc]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x28]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x3b]
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 4]
xor eax, dword [esi + 0x30]
add edx, eax
mov dword [esi + 0x38], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 0x40]
lea edx, [ebx + 0x38]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x38]
add ecx, dword [esi + 0x10]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x2c]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x3f]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
xor eax, dword [esi + 0x34]
xor eax, dword [esi + 8]
add edx, eax
mov dword [esi + 0x3c], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi]
xor ecx, dword [esi + 0x88]
lea edx, [ebx + 0x3c]
add ecx, dword [esi + 0x14]
lea eax, [edi + 0x3c]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x30]
push ebp
call fcn.00494220
movzx ecx, byte [esi + 0x43]
mov eax, dword [esi + 0x40]
mov edx, dword [esi]
shl eax, 8
xor eax, dword [ecx*4 + 0x54ab28]
add esp, 0x40
xor eax, dword [esi + 0x38]
xor eax, dword [esi + 0xc]
add edx, eax
mov dword [esi + 0x40], eax
mov eax, edx
shr eax, 0x18
mov ecx, dword [eax*4 + 0x54af28]
xor ecx, edx
ror ecx, 8
add ecx, dword [esi + 4]
lea edx, [ebx + 0x40]
xor ecx, dword [esi + 0x88]
lea eax, [edi + 0x40]
add ecx, dword [esi + 0x18]
mov ebp, ecx
shr ebp, 0x18
mov ebp, dword [ebp*4 + 0x54af28]
xor ebp, ecx
add ebp, dword [esi + 0x34]
push ebp
call fcn.00494220
mov ebp, dword [esp + 0x24]
sub ebp, 0x44
add esp, 4
add ebx, 0x44
add edi, 0x44
sub dword [esp + 0x10], 1
mov dword [esp + 0x20], ebp
jne 0x494b94
cmp ebp, 4
jb 0x4951ce
mov eax, ebp
shr eax, 2
mov dword [esp + 0x20], eax
mov eax, esi
call fcn.00494230
mov edx, esi
call fcn.004942b0
push eax
mov edx, ebx
mov eax, edi
call fcn.00494220
add esp, 4
add ebx, 4
add edi, 4
sub ebp, 4
sub dword [esp + 0x20], 1
jne 0x4951a3
test ebp, ebp
je 0x495219
mov eax, esi
call fcn.00494230
mov edx, esi
call fcn.004942b0
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], 0x20
test ebp, ebp
je 0x495219
mov cl, byte [edi]
xor cl, byte [esi + 0x8c]
inc ebx
mov byte [ebx - 1], cl
shr dword [esi + 0x8c], 8
add dword [esi + 0x90], 0xfffffff8
inc edi
dec ebp
cmp dword [esi + 0x90], 0
jne 0x4951f0
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret