Function at 0x81a044
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ecx]
mov esi, ecx
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x2c], esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [esi + 4]
mov ebx, dword [eax]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
movzx eax, byte [ecx + 0x10]
test ebx, ebx
mov dword [edi], 0
mov dword [esp + 0xc], ecx
mov dword [ecx], edx
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, ebx
jle 0x819fd3
mov eax, dword [ebp + 0x18]
xor edx, edx
mov esi, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 8]
mov ecx, dword [eax + 0x14]
lea edi, [edi + edi*2]
mov byte [esi + 5], 0
shl edi, 4
mov ebx, dword [ecx + edi + 0x24]
mov eax, dword [ecx + edi + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, ebx
and ecx, dword [ebp + 0x10]
xor ecx, ebx
mov ebx, eax
and ebx, dword [ebp + 0xc]
xor ebx, eax
or ebx, ecx
jne 0x819fca
movzx eax, word [ebp + 0x14]
mov ecx, dword [esp + 0x10]
test word [ecx + edi + 0xc], ax
jne 0x819fca
mov byte [esi + 5], 1
inc edx
add esi, 0xc
cmp edx, dword [esp]
jne 0x819f85
mov eax, dword [esp]
lea eax, [eax*8]
push eax
push 0
push dword [esp + 0x20]
call fcn.00980a60
add esp, 0xc
mov ebx, dword [ebp + 0x18]
mov eax, dword [esp + 4]
mov edi, dword [esp + 8]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x2c], 0x546d42ae
mov dword [ebx + 0x28], 0xa2879f2e
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0x19
mov dword [ebx + 0x38], 0
lea esi, [eax + eax*8]
mov eax, dword [edi + esi*8 + 0x40]
mov ecx, dword [edi + esi*8 + 0x44]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x40], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + esi*8 + 0x18]
push ebx
call fcn.0081a650
add esp, 4
cmp eax, 0x13
jne 0x81a05d
xor eax, eax
jmp 0x81a639
test eax, eax
jne 0x81a639
cmp dword [esp], 0
jg 0x81a0a7
mov edi, dword [esp + 0xc]
lea edx, [edi + 0x18]
mov word [edi + 0x1e], 0
mov word [edi + 0x28], 0
mov eax, dword [ebx + 0x14]
mov dword [edx], eax
mov al, byte [ebx + 0x1c]
mov byte [edi + 0x1c], al
mov dword [ebx + 0x1c], 0
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x20], eax
cmp dword [ebx + 0x20], 0
jne 0x81a5cb
xor eax, eax
jmp 0x81a5ce
lea ecx, [edi + esi*8 + 0x18]
movzx eax, word [ebp + 0x1c]
mov edi, dword [esp + 0xc]
mov esi, dword [esp]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov edx, dword [edi + 0x30]
mov dword [edx + ecx*4], 0
inc ecx
cmp ecx, esi
jne 0x81a0bc
mov word [edi + 0x1e], 0
movzx eax, ax
lea ecx, [edi + 0x18]
mov dword [esp + 8], 0xffffffff
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + eax*8]
test ecx, ecx
jle 0x81a1c3
cmp ecx, esi
jg 0x81a208
mov esi, dword [edx + 8]
test esi, esi
js 0x81a208
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
cmp esi, dword [edx + 0xc]
mov edx, dword [esp + 0x10]
jge 0x81a208
mov ebx, dword [edi + 0x30]
cmp dword [ebx + ecx*4 - 4], 0
jne 0x81a208
cmp byte [edx + 5], 0
je 0x81a208
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], ebx
lea esi, [esi + esi*2]
shl esi, 4
mov ebx, dword [edx + 0x14]
mov edx, dword [ebx + esi + 0x20]
mov dword [esp + 4], edx
mov edx, edi
mov edi, dword [ebx + esi + 0x24]
or dword [edx + 4], edi
mov edi, dword [esp + 4]
or dword [edx], edi
lea edi, [ebx + esi]
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x30]
mov dword [edx + ecx*4 - 4], edi
mov edi, dword [esp + 8]
dec ecx
cmp ecx, edi
cmovge edi, ecx
cmp eax, 0xf
mov dword [esp + 8], edi
ja 0x81a1aa
mov edx, dword [esp + 0x18]
movzx ebx, byte [edx + eax*8 + 4]
test bl, bl
je 0x81a1aa
mov edx, dword [esp + 0x28]
bt edx, eax
jb 0x81a1aa
mov edx, dword [esp + 0xc]
mov edi, 1
shl edi, cl
or word [edx + 0x1e], di
mov ecx, dword [esp + 4]
test byte [ecx + esi + 0xc], 1
jne 0x81a1eb
mov edi, dword [esp + 0xc]
mov ebx, dword [ebp + 0x18]
mov esi, dword [esp]
mov edx, dword [esp + 0x10]
inc eax
add edx, 0xc
cmp eax, esi
jl 0x81a0ec
mov esi, dword [esp + 8]
lea eax, [esi + 1]
test esi, esi
mov word [edi + 0x28], ax
jns 0x81a3dc
mov edx, dword [esp + 0x20]
jmp 0x81a07e
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x20], 0
and byte [ebx + 0x38], 0xfe
mov dword [ecx], 1
mov edi, dword [esp + 0xc]
jmp 0x81a1bc
mov edx, fcn.0077e170
movzx ecx, byte [0xbb245f]
and edx, 1
inc edx
mov eax, edx
xor eax, fcn.0077e170
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x81a3ac
mov al, byte [0xbb245f]
mov ecx, edx
mov ah, 1
xor ecx, fcn.0077e170
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb245f], ah
jne 0x81a235
mov ecx, fcn.0077e170
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, fcn.0077e170
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x81a29b
mov eax, ecx
movzx edx, byte [0xbb245f]
xor eax, fcn.0077e170
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x81a27b
jmp 0x81a3ac
xor ecx, fcn.0077e170
movzx ecx, byte [0xbb245f]
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x81a38b
mov eax, fcn.0077e170
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.0077e170
mov eax, dword [str._lsm]
sete cl
or ecx, 0x155d1cde
add ecx, 0x240
xor eax, ecx
mov dword [str._lsm], eax
not eax
mov edx, dword [0xbb2444]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb2444], edx
or esi, eax
not edx
mov eax, dword [0xbb2448]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb2448], eax
or esi, edx
not eax
mov edx, dword [0xbb244c]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb244c], edx
or esi, eax
not edx
mov eax, dword [0xbb2450]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb2450], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb2454]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb2454], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb2458], edx
mov dl, 1
shl dl, cl
or byte [0xbb245f], dl
mov eax, fcn.0077e170
and eax, 1
inc eax
xor eax, fcn.0077e170
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb245f], al
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
push dword [eax]
push str._lsm
push dword [esp + 0x1c]
call fcn.00782570
add esp, 0xc
mov eax, 1
jmp 0x81a639
cmp ecx, esi
lea ecx, [ecx + 1]
jge 0x81a07e
jmp 0x81a3e5
mov eax, dword [edi + 0x30]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp dword [eax + ecx*4], 0
jne 0x81a3cf
mov edx, fcn.0079cb60
xor eax, eax
movzx esi, byte [0xbb247f]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt esi, eax
jb 0x81a5b9
mov al, byte [0xbb247f]
xor ecx, ecx
cmp edx, 3
mov ah, 1
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb247f], ah
jne 0x81a41f
mov ecx, fcn.0079cb60
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
mov ebx, edx
not ebx
lea edx, [edx + ebx*2]
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x81a494
xor eax, eax
cmp ecx, 3
movzx esi, byte [0xbb247f]
sete al
mov edx, eax
not edx
lea eax, [eax + edx*2]
and al, 3
movzx eax, al
bt esi, eax
jae 0x81a46f
jmp 0x81a5b9
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb247f]
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt edx, eax
jb 0x81a58f
mov ecx, fcn.0079cb60
xor eax, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete al
mov ecx, eax
not ecx
and ecx, 0x20d
lea ecx, [eax + ecx*2 + 0x284f4dd0]
mov eax, dword [0xbb2460]
xor eax, ecx
mov dword [0xbb2460], eax
not eax
mov edx, dword [0xbb2464]
imul eax, ecx
and cl, 7
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb2464], edx
or esi, eax
not edx
mov eax, dword [0xbb2468]
imul edx, esi
lea esi, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb2468], eax
or esi, edx
not eax
mov edx, dword [0xbb246c]
imul eax, esi
lea esi, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb246c], edx
or esi, eax
not edx
mov eax, dword [0xbb2470]
imul edx, esi
mov esi, edx
shl esi, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb2470], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbb2474]
mov esi, eax
shl esi, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb2474], edx
or eax, esi
not edx
imul edx, eax
xor dword [0xbb2478], edx
mov dl, 1
shl dl, cl
or byte [0xbb247f], dl
mov eax, fcn.0079cb60
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
not eax
lea ecx, [ecx + eax*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb247f], al
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
push dword [eax]
push 0xbb2460
jmp 0x81a3b9
mov al, byte [ebx + 8]
mov byte [edx + 5], al
mov word [edi + 0x12], 0
fld qword [ebx + 0x28]
sub esp, 8
fstp qword [esp]
call fcn.0081a8f0
add esp, 8
mov word [edi + 0x14], ax
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
call fcn.007b2640
mov word [edi + 0x16], ax
mov edx, edi
mov eax, dword [edi + 0x24]
mov ecx, eax
or eax, 0x1000
and ecx, 0xffffefff
test byte [ebx + 0x38], 1
cmove eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x24], eax
call fcn.0081a980
cmp byte [edi + 0x1c], 0
je 0x81a639
push dword [edi + 0x20]
mov esi, eax
call fcn.00775660
mov eax, esi
add esp, 4
mov byte [edi + 0x1c], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret