Function at 0x5b59b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x34
call fcn.004c03f0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005b49c0
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x5b59e2
mov eax, dword [ebp - 0x2c]
jmp 0x5b601e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x110]
shl edx, 4
add edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
push 0x10
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004bd990
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
sub ecx, 0x10
mov dword [ebp - 4], ecx
jmp 0x5b5a78
mov edx, dword [ebp - 0x18]
add edx, 0x10
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
sub eax, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 4]
jae 0x5b5e48
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov edx, dword [ebp - 0x14]
shl edx, 0x18
or ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x30]
shr eax, 0x10
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x30]
shl ecx, 0x10
or eax, ecx
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
xor edx, edx
jne 0x5b5a84
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shr edx, 8
mov eax, dword [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x30]
shr ecx, 0x10
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x30]
shl edx, 0x10
or ecx, edx
xor ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
xor eax, eax
jne 0x5b5abb
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
shr eax, 8
mov ecx, dword [ebp - 0x14]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x30]
shr edx, 0x10
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x30]
shl eax, 0x10
or edx, eax
xor edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
xor ecx, ecx
jne 0x5b5af3
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov edx, dword [ebp - 0x14]
shl edx, 0x18
or ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x30]
shr eax, 0x10
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x30]
shl ecx, 0x10
or eax, ecx
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor edx, edx
jne 0x5b5b2b
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x34]
xor edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x28]
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
xor eax, eax
jne 0x5b5b63
mov ecx, dword [ebp - 0x28]
shl ecx, 8
and ecx, 0xff00ff00
mov edx, dword [ebp - 0x28]
shr edx, 8
and edx, 0xff00ff
xor ecx, edx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
mov ecx, dword [ebp - 0x1c]
shl ecx, 0x10
or eax, ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
shl edx, 0x18
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor edx, eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff00
shl ecx, 8
xor edx, ecx
mov eax, dword [ebp - 0x10]
and eax, 0xff0000
shr eax, 8
xor edx, eax
mov dword [ebp - 0x10], edx
xor ecx, ecx
jne 0x5b5b9d
mov edx, dword [ebp - 0x28]
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x34]
xor ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x10]
xor edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
xor edx, edx
jne 0x5b5bfb
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
shr eax, 8
mov ecx, dword [ebp - 0x14]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x30]
shr edx, 0x10
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x30]
shl eax, 0x10
or edx, eax
xor edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
xor ecx, ecx
jne 0x5b5c4d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov edx, dword [ebp - 0x14]
shl edx, 0x18
or ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x30]
shr eax, 0x10
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x30]
shl ecx, 0x10
or eax, ecx
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
xor edx, edx
jne 0x5b5c84
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shr edx, 8
mov eax, dword [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x30]
shr ecx, 0x10
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x30]
shl edx, 0x10
or ecx, edx
xor ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x5b5cbc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
shr eax, 8
mov ecx, dword [ebp - 0x14]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x30]
shr edx, 0x10
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x30]
shl eax, 0x10
or edx, eax
xor edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], edx
xor ecx, ecx
jne 0x5b5cf4
mov edx, dword [ebp - 0x28]
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x34]
xor ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x10]
xor edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
xor edx, edx
jne 0x5b5d2c
mov eax, dword [ebp - 0x28]
shl eax, 8
and eax, 0xff00ff00
mov ecx, dword [ebp - 0x28]
shr ecx, 8
and ecx, 0xff00ff
xor eax, ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x1c]
shr edx, 0x10
mov eax, dword [ebp - 0x1c]
shl eax, 0x10
or edx, eax
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x10]
shl ecx, 0x18
mov edx, dword [ebp - 0x10]
shr edx, 0x18
xor ecx, edx
mov eax, dword [ebp - 0x10]
and eax, 0xff00
shl eax, 8
xor ecx, eax
mov edx, dword [ebp - 0x10]
and edx, 0xff0000
shr edx, 8
xor ecx, edx
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x5b5d66
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x34]
xor eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
xor ecx, ecx
jne 0x5b5dc3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
jmp 0x5b5a66
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shr edx, 8
mov eax, dword [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x30]
shr ecx, 0x10
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x30]
shl edx, 0x10
or ecx, edx
xor ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
xor eax, eax
jne 0x5b5e48
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
shr eax, 8
mov ecx, dword [ebp - 0x14]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x30]
shr edx, 0x10
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x30]
shl eax, 0x10
or edx, eax
xor edx, dword [ebp - 0x30]
mov dword [ebp - 0x28], edx
xor ecx, ecx
jne 0x5b5e7f
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov edx, dword [ebp - 0x14]
shl edx, 0x18
or ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x30]
shr eax, 0x10
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x30]
shl ecx, 0x10
or eax, ecx
xor eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
xor edx, edx
jne 0x5b5eb7
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shr edx, 8
mov eax, dword [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x30]
shr ecx, 0x10
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x30]
shl edx, 0x10
or ecx, edx
xor ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x5b5eef
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x34]
xor eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
xor ecx, ecx
jne 0x5b5f27
mov edx, dword [ebp - 0x28]
shl edx, 8
and edx, 0xff00ff00
mov eax, dword [ebp - 0x28]
shr eax, 8
and eax, 0xff00ff
xor edx, eax
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
mov edx, dword [ebp - 0x1c]
shl edx, 0x10
or ecx, edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x10]
shl eax, 0x18
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor eax, ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff00
shl edx, 8
xor eax, edx
mov ecx, dword [ebp - 0x10]
and ecx, 0xff0000
shr ecx, 8
xor eax, ecx
mov dword [ebp - 0x10], eax
xor edx, edx
jne 0x5b5f61
mov eax, dword [ebp - 0x28]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x34]
xor edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x28]
xor edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edx
xor eax, eax
jne 0x5b5fbf
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
xor eax, eax
mov esp, ebp
pop ebp
ret