Function at 0x58a6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6401cf
mov eax, dword fs:[0]
push eax
mov eax, 0x10b08
call fcn.006272c0
mov eax, dword [0x6a6040]
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 edi, ecx
mov dword [ebp - 0x10a80], edi
mov dword [ebp - 0x10a50], 0
push 0
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10b10]
push 0
push 0x10
call fcn.00593850
push 0
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10ae8]
push 0
push 0x10
call fcn.00593850
mov ebx, dword [0x6ac16c]
mov dword [ebp - 0x10ac0], ebx
mov dword [ebp - 0x10aa4], ebx
mov dword [ebp - 0x10aa0], 0
mov byte [ebp - 0x10a9c], 0
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x58a754
mov dword [ebx + 8], 0
jmp 0x58a758
test eax, eax
jne 0x58a76b
inc dword [ebx + 0xc]
inc dword [ebx + 8]
inc dword [ebx + 4]
mov dword [ebp - 0x10aa0], 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x58a780
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
xor esi, esi
jmp 0x58a7b7
lea eax, [ebp - 0x10a4c]
add ecx, 0x81
push eax
push 0x6acffc
call fcn.005c67a0
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
test eax, eax
je 0x58a7a9
xor esi, esi
jmp 0x58a7b7
mov esi, dword [ebp - 0x10a4c]
test esi, esi
je 0x58a7b7
lock inc dword [esi + 8]
mov dword [ebp - 0x10a54], esi
or ebx, 0xffffffff
test esi, esi
je 0x58a9f0
lea eax, [ebp - 0x10a2c]
mov dword [ebp - 0x10a2c], 0
push eax
lea ecx, [esi + 0x37]
push 0x6ad014
call fcn.004aae40
mov esi, dword [ebp - 0x10a2c]
test esi, esi
je 0x58a7f5
add esi, 0xc
jmp 0x58a7fa
mov esi, 0x6aefbc
mov esi, dword [esi]
test esi, esi
je 0x58a807
lock inc dword [esi]
mov eax, esi
jmp 0x58a80b
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10a28], esi
mov byte [ebp - 4], 6
test eax, eax
je 0x58a989
push 0
lea eax, [ebp - 0x10a48]
mov dword [ebp - 0x10a48], 0
push eax
lea eax, [ebp - 0x10a28]
push eax
lea ecx, [ebp - 0x10b10]
call fcn.00594d40
test byte [edi + 0x18], 3
jne 0x58a95e
mov esi, dword [ebp - 0x10a28]
test esi, esi
je 0x58a90a
test byte [esi + 0x10], 2
je 0x58a868
mov ecx, dword [esi + 8]
jmp 0x58a90c
mov edi, dword [esi + 4]
xor ecx, ecx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x10a48], edi
mov dword [ebp - 0x10a2c], ecx
cmp edi, 4
ja 0x58a89a
push edi
push edx
lea eax, [ebp - 0x10a2c]
push eax
call fcn.00609db0
mov ecx, dword [ebp - 0x10a2c]
add esp, 0xc
jmp 0x58a8ee
mov ebx, edi
xor eax, eax
sar ebx, 2
test ebx, ebx
je 0x58a8c5
xor edi, edi
mov ecx, edi
shr eax, 0x19
shl ecx, 7
or ecx, eax
xor ecx, dword [edx]
add edx, 4
mov eax, ecx
mov edi, eax
sub ebx, 1
jne 0x58a8a7
mov edi, dword [ebp - 0x10a48]
mov ebx, eax
and edi, 3
je 0x58a8eb
nop dword [eax]
mov ecx, eax
shl ebx, 7
movzx eax, byte [edx]
lea edx, [edx + 1]
shr ecx, 0x19
or ecx, ebx
xor ecx, eax
mov eax, ecx
mov ebx, eax
sub edi, 1
jne 0x58a8d0
or ebx, 0xffffffff
mov edi, dword [ebp - 0x10a80]
mov dword [esi + 8], ecx
mov eax, dword [ebp - 0x10a28]
or word [eax + 0x10], 2
mov esi, dword [ebp - 0x10a28]
jmp 0x58a90c
xor ecx, ecx
xor edx, edx
mov eax, ecx
div dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov edi, dword [eax + edx*4]
test edi, edi
je 0x58a95e
nop dword [eax]
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x58a952
test ecx, ecx
je 0x58a94a
test esi, esi
je 0x58a94a
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
jne 0x58a94a
mov edx, dword [esi + 0xc]
mov ecx, dword [ecx + 0xc]
push eax
call fcn.005a4c60
add esp, 4
test al, al
jne 0x58a952
mov edi, dword [edi]
test edi, edi
jne 0x58a920
jmp 0x58a95e
cmp dword [edi + 8], 0
je 0x58a95e
cmp byte [ebp + 8], 0
je 0x58a989
push 0
lea eax, [ebp - 0x10a48]
mov dword [ebp - 0x10a48], 0
push eax
lea eax, [ebp - 0x10a28]
push eax
lea ecx, [ebp - 0x10ae8]
call fcn.00594d40
mov esi, dword [ebp - 0x10a28]
test esi, esi
je 0x58a99e
mov eax, ebx
lock xadd dword [esi], eax
dec eax
jne 0x58a99e
push ecx
mov ecx, esi
call fcn.005a47b0
lea eax, [ebp - 0x10a64]
push eax
lea ecx, [ebp - 0x10a58]
call fcn.0041a9f0
mov esi, dword [ebp - 0x10a60]
mov dword [ebp - method.CMaaXmlElement.virtual_0], vtable.CMaaXmlNode.0
test esi, esi
je 0x58a9dc
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x58a9dc
mov ecx, esi
call fcn.005baee0
mov ecx, esi
call fcn.005bae00
mov esi, dword [ebp - 0x10a54]
mov edi, dword [ebp - 0x10a80]
test esi, esi
jne 0x58a7c8
mov byte [ebp - 4], 4
test esi, esi
je 0x58aa10
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x58aa10
mov ecx, esi
call fcn.005baee0
mov ecx, esi
call fcn.005bae00
mov ebx, dword [0x6ad608]
mov dword [ebp - 0x10a60], ebx
test ebx, ebx
je 0x58acf3
mov edi, dword [ebp - 0x10a2c]
nop word [eax + eax]
xor esi, esi
mov dword [ebp - 0x10a28], esi
mov byte [ebp - 4], 7
mov eax, dword [ebx + 0x26a]
test eax, eax
je 0x58aaeb
cmp byte [ebx + 0x274], 0
jne 0x58aaeb
mov eax, dword [eax + 0x470]
test eax, eax
je 0x58ab7a
lock inc dword [eax]
mov ecx, dword [ebp - 0x10a50]
mov esi, eax
or ecx, 1
mov dword [ebp - 0x10a28], esi
xor edi, edi
test byte [ebp - 0x10af8], 3
mov dword [ebp - 0x10a50], ecx
mov dword [ebp - 0x10a2c], edi
jne 0x58aaeb
lea ecx, [ebp - 0x10a28]
call fcn.005acb50
xor edx, edx
div dword [ebp - 0x10b00]
mov eax, dword [ebp - 0x10afc]
mov ebx, dword [eax + edx*4]
lea eax, [eax + edx*4]
test ebx, ebx
je 0x58aaeb
mov ecx, dword [ebx + 4]
cmp ecx, esi
je 0x58ab8a
test ecx, ecx
je 0x58aae5
test esi, esi
je 0x58aae5
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
jne 0x58aae5
mov edx, dword [esi + 0xc]
mov ecx, dword [ecx + 0xc]
push eax
call fcn.005a4c60
add esp, 4
test al, al
jne 0x58ab8a
mov ebx, dword [ebx]
test ebx, ebx
jne 0x58aab3
xor bl, bl
mov eax, dword [ebp - 0x10a50]
test al, 1
je 0x58ab16
and eax, 0xfffffffe
mov dword [ebp - 0x10a50], eax
test edi, edi
je 0x58ab16
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
jne 0x58ab16
push ecx
mov ecx, edi
call fcn.005a47b0
test bl, bl
mov ebx, dword [ebp - 0x10a60]
je 0x58acc9
mov eax, dword [ebx + 0x26a]
lea ecx, [ebp - 0x10b10]
push 1
mov eax, dword [eax + 0x204]
mov dword [ebp - 0x10a48], eax
lea eax, [ebp - 0x10a48]
push eax
lea eax, [ebp - 0x10a28]
push eax
call fcn.00594d40
test byte [ebp - 0x10ad0], 3
mov esi, dword [ebp - 0x10a28]
jne 0x58acc9
test esi, esi
je 0x58ac50
test byte [esi + 0x10], 2
je 0x58ab91
mov ecx, dword [esi + 8]
jmp 0x58ac52
mov ecx, dword [ebp - 0x10a50]
xor edi, edi
or ecx, 1
jmp 0x58aa7b
mov bl, 1
jmp 0x58aaed
mov ebx, dword [esi + 4]
xor ecx, ecx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x10a54], ecx
cmp ebx, 4
ja 0x58abc8
push ebx
push edx
lea eax, [ebp - 0x10a54]
push eax
call fcn.00609db0
mov ecx, dword [ebp - 0x10a54]
add esp, 0xc
mov dword [esi + 8], ecx
or word [esi + 0x10], 2
jmp 0x58ac52
mov eax, ebx
sar eax, 2
mov dword [ebp - 0x10a54], eax
xor eax, eax
mov dword [ebp - 0x10a5c], eax
cmp dword [ebp - 0x10a54], eax
je 0x58ac1a
mov edi, dword [ebp - 0x10a54]
xor esi, esi
nop dword [eax + eax]
mov ecx, eax
shl esi, 7
shr ecx, 0x19
or ecx, esi
xor ecx, dword [edx]
add edx, 4
mov eax, ecx
mov esi, eax
sub edi, 1
jne 0x58abf0
mov esi, dword [ebp - 0x10a28]
mov edi, dword [ebp - 0x10a2c]
mov dword [ebp - 0x10a5c], eax
and ebx, 3
je 0x58ac46
mov edi, dword [ebp - 0x10a5c]
mov ecx, eax
shl edi, 7
movzx eax, byte [edx]
lea edx, [edx + 1]
shr ecx, 0x19
or ecx, edi
xor ecx, eax
mov eax, ecx
mov edi, eax
sub ebx, 1
jne 0x58ac25
mov edi, dword [ebp - 0x10a2c]
mov dword [esi + 8], ecx
or word [esi + 0x10], 2
jmp 0x58ac52
xor ecx, ecx
xor edx, edx
mov eax, ecx
div dword [ebp - 0x10ad8]
mov eax, dword [ebp - 0x10ad4]
mov ebx, dword [eax + edx*4]
lea eax, [eax + edx*4]
test ebx, ebx
je 0x58acc3
nop dword [eax]
mov ecx, dword [ebx + 4]
cmp ecx, esi
je 0x58aca2
test ecx, ecx
je 0x58ac9a
test esi, esi
je 0x58ac9a
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
jne 0x58ac9a
mov edx, dword [esi + 0xc]
mov ecx, dword [ecx + 0xc]
push eax
call fcn.005a4c60
add esp, 4
test al, al
jne 0x58aca2
mov ebx, dword [ebx]
test ebx, ebx
jne 0x58ac70
jmp 0x58acc3
push 1
lea eax, [ebp - 0x10a48]
push eax
lea eax, [ebp - 0x10a28]
push eax
lea ecx, [ebp - 0x10ae8]
call fcn.00594d40
mov esi, dword [ebp - 0x10a28]
mov ebx, dword [ebp - 0x10a60]
mov byte [ebp - 4], 4
test esi, esi
je 0x58ace3
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x58ace3
push ecx
mov ecx, esi
call fcn.005a47b0
mov ebx, dword [ebx]
mov dword [ebp - 0x10a60], ebx
test ebx, ebx
jne 0x58aa30
mov edi, dword [ebp - 0x10a80]
lea ecx, [ebp - 0x10b10]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov eax, dword [ebp - 0x10aa0]
test eax, eax
jg 0x58ad1a
cmp dword [0x6ac6c4], 0
jne 0x58ad2c
mov ecx, dword [ebp - 0x10ac0]
dec eax
mov dword [ebp - 0x10aa0], eax
call fcn.005e0810
mov edx, dword [ebp - 0x10ad8]
xor eax, eax
mov dword [ebp - 0x10a3c], 0
mov dword [ebp - 0x10a44], 0
mov dword [ebp - 0x10a40], 0
test edx, edx
je 0x58ad70
mov esi, dword [ebp - 0x10ad4]
nop dword [eax]
mov ecx, dword [esi + eax*4]
test ecx, ecx
jne 0x58b05b
inc eax
cmp eax, edx
jb 0x58ad60
mov dword [ebp - 0x10a71], 0
mov dword [ebp - 0x10a79], 0
mov dword [ebp - 0x10a75], 0
cmp dword [ebp - 0x10a3c], 0
je 0x58adbc
mov ecx, dword [ebp - 0x10a40]
test ecx, ecx
je 0x58ada9
mov eax, dword [ebp - 0x10a44]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10a44]
test ecx, ecx
je 0x58adbc
mov eax, dword [ebp - 0x10a40]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x10a71]
mov dword [ebp - 0x10a3c], ecx
test ecx, ecx
je 0x58ae48
mov eax, dword [ebp - 0x10a6d]
add ecx, 0x1c
mov dword [ebp - 0x10a38], eax
mov eax, dword [ebp - 0x10a69]
mov dword [ebp - 0x10a34], eax
mov al, byte [ebp - 0x10a65]
mov byte [ebp - 0x10a30], al
mov eax, dword [ecx]
mov dword [ebp - 0x10a44], eax
lea eax, [ebp - 0x10a44]
mov dword [ebp - 0x10a40], ecx
mov dword [ecx], eax
mov ecx, eax
mov eax, dword [ebp - 0x10a44]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x10a71], 0
je 0x58ae42
mov ecx, dword [ebp - 0x10a75]
test ecx, ecx
je 0x58ae35
mov eax, dword [ebp - 0x10a79]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10a75]
mov eax, dword [ebp - 0x10a79]
test eax, eax
je 0x58ae42
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10a3c]
mov esi, 0xdd86
nop dword [eax]
test ecx, ecx
je 0x58b1a1
cmp byte [ebp - 0x10a30], 0
jne 0x58b15a
mov eax, dword [ebp - 0x10a38]
test eax, eax
je 0x58b15a
mov eax, dword [eax + 8]
push 0x36
mov dword [ebp - 0x10a1c], eax
lea eax, [ebp - 0x10a0c]
push 0
push eax
mov dword [ebp - 0x10a24], 0
mov dword [ebp - 0x10a20], 0
mov dword [ebp - 0x10a18], 2
mov dword [ebp - 0x10a14], 0
mov dword [ebp - 0x10a10], 0x36
call fcn.00608810
add esp, 0xc
mov word [ebp - 0x10a00], si
lea eax, [ebp - 0x10414]
mov byte [ebp - 0x109fe], 0x60
mov ecx, edi
push 0
push eax
lea eax, [ebp - 0x109fe]
push eax
lea eax, [ebp - 0x10a0c]
push eax
lea eax, [ebp - 0x10a24]
push eax
call fcn.0058b240
mov ecx, dword [ebp - 0x10a3c]
test ecx, ecx
je 0x58afb4
cmp byte [ebp - 0x10a30], 0
jne 0x58afad
mov eax, dword [ebp - 0x10a38]
test eax, eax
je 0x58af64
mov eax, dword [eax]
mov dword [ebp - 0x10a38], eax
test eax, eax
jne 0x58afad
mov eax, dword [ebp - 0x10a34]
inc eax
mov dword [ebp - 0x10a34], eax
cmp eax, dword [ecx + 0x10]
jae 0x58af64
nop dword [eax + eax]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0x10a34]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x10a38], eax
test eax, eax
jne 0x58afad
lea eax, [edx + 1]
mov dword [ebp - 0x10a34], eax
cmp eax, dword [ecx + 0x10]
jb 0x58af40
mov ecx, dword [ebp - 0x10a40]
test ecx, ecx
je 0x58af7c
mov eax, dword [ebp - 0x10a44]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10a40]
mov eax, dword [ebp - 0x10a44]
test eax, eax
je 0x58af89
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [ebp - 0x10a40], 0
mov dword [ebp - 0x10a44], 0
mov dword [ebp - 0x10a3c], ecx
cmp byte [ebp - 0x10a30], cl
je 0x58afb4
mov byte [ebp - 0x10a30], 0
mov dword [ebp - 0x10ab9], 0
mov dword [ebp - 0x10ab5], 0
mov dword [ebp - 0x10ab1], ecx
test ecx, ecx
je 0x58b1a1
mov eax, dword [ebp - 0x10a38]
add ecx, 0x1c
mov dword [ebp - 0x10aad], eax
mov eax, dword [ebp - 0x10a34]
mov dword [ebp - 0x10aa9], eax
mov al, byte [ebp - 0x10a30]
mov byte [ebp - 0x10aa5], al
mov eax, dword [ecx]
mov dword [ebp - 0x10ab9], eax
lea eax, [ebp - 0x10ab9]
mov dword [ebp - 0x10ab5], ecx
mov dword [ecx], eax
mov ecx, eax
mov eax, dword [ebp - 0x10ab9]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x10ab1], 0
je 0x58b050
mov ecx, dword [ebp - 0x10ab5]
test ecx, ecx
je 0x58b03f
mov eax, dword [ebp - 0x10ab9]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10ab5]
mov eax, dword [ebp - 0x10ab9]
test eax, eax
jne 0x58b14c
nop dword [eax]
mov ecx, dword [ebp - 0x10a3c]
jmp 0x58ae50
mov dword [ebp - 0x10a8c], ecx
lea edx, [ebp - 0x10ae8]
mov dword [ebp - 0x10a88], eax
lea ecx, [ebp - 0x10acc]
mov eax, dword [ebp - 0x10acc]
mov dword [ebp - 0x10a94], ecx
lea ecx, [ebp - 0x10a98]
mov dword [ebp - 0x10a90], edx
mov dword [ebp - 0x10acc], ecx
mov byte [ebp - 0x10a84], 0
mov dword [ebp - 0x10a98], eax
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10a90]
mov dword [ebp - 0x10a79], 0
mov dword [ebp - 0x10a75], 0
mov dword [ebp - 0x10a71], ecx
test ecx, ecx
je 0x58ad8e
mov eax, dword [ebp - 0x10a8c]
add ecx, 0x1c
mov dword [ebp - 0x10a6d], eax
mov eax, dword [ebp - 0x10a88]
mov dword [ebp - 0x10a69], eax
mov al, byte [ebp - 0x10a84]
mov byte [ebp - 0x10a65], al
mov eax, dword [ecx]
mov dword [ebp - 0x10a79], eax
lea eax, [ebp - 0x10a79]
mov dword [ebp - 0x10a75], ecx
mov dword [ecx], eax
mov ecx, eax
mov eax, dword [ebp - 0x10a79]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x10a90], 0
je 0x58ad8e
mov ecx, dword [ebp - 0x10a94]
test ecx, ecx
je 0x58b136
mov eax, dword [ebp - 0x10a98]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10a94]
mov eax, dword [ebp - 0x10a98]
test eax, eax
je 0x58ad8e
mov dword [eax + 4], ecx
jmp 0x58ad8e
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10a3c]
jmp 0x58ae50
test ecx, ecx
je 0x58b1a1
mov ecx, dword [ebp - 0x10a40]
test ecx, ecx
je 0x58b170
mov eax, dword [ebp - 0x10a44]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10a44]
test ecx, ecx
je 0x58b183
mov eax, dword [ebp - 0x10a40]
mov dword [ecx + 4], eax
mov dword [ebp - 0x10a40], 0
mov dword [ebp - 0x10a44], 0
mov dword [ebp - 0x10a3c], 0
lea ecx, [ebp - 0x10aa4]
call fcn.0041d9b0
lea ecx, [ebp - 0x10ae8]
mov dword [ebp - method.CMaaUnivHash_New_class_CMaaString__class_CMaaString__1_.virtual_0], vtable.CMaaUnivHash_New_class_CMaaString__unsigned_long_int__1_.0
call fcn.00595020
lea ecx, [ebp - 0x10acc]
call fcn.0040a090
lea ecx, [ebp - 0x10b10]
mov dword [ebp - method.CMaaUnivHash_New_class_CMaaString__class_CMaaString__1_.virtual_0], vtable.CMaaUnivHash_New_class_CMaaString__unsigned_long_int__1_.0
call fcn.00595020
lea ecx, [ebp - 0x10af4]
call fcn.0040a090
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], vtable.CMaaXmlNode.0
test eax, eax
je 0x58b21a
or ecx, 0xffffffff
lock xadd dword [eax + 8], ecx
dec ecx
jne 0x58b21a
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x58b21a
mov ecx, esi
call fcn.005baee0
mov ecx, esi
call fcn.005bae00
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.00606a47
mov esp, ebp
pop ebp
ret 0xc