Function at 0x815450
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [edx + 0x20]
mov edi, dword [edx + 0x44]
mov ebp, ecx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax]
call fcn.007f7590
mov ebx, eax
mov ecx, eax
mov edx, 0x64
push esi
push dword [edi + 0x30]
call fcn.007d10d0
add esp, 8
mov eax, dword [edi + 0x30]
mov ecx, ebx
mov edx, 0x62
push eax
inc eax
push eax
call fcn.007d10d0
add esp, 8
mov eax, dword [edi + 0x30]
mov ecx, ebx
mov edx, 0x62
push eax
add eax, 2
push eax
call fcn.007d10d0
add esp, 8
mov eax, dword [edi + 0x30]
mov ecx, ebx
mov edx, 0x62
push eax
add eax, 3
push eax
call fcn.007d10d0
add esp, 8
mov eax, dword [edi + 8]
test eax, eax
je 0x8154f1
mov ecx, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, 0x48
inc ecx
mov dword [edi + 0x44], ecx
add dword [ebp + 0x2c], eax
mov ecx, ebx
mov esi, dword [edi + 0x44]
lea eax, [eax + esi - 1]
push eax
push esi
push 0
call fcn.007d10f0
add esp, 0xc
mov eax, dword [ebp + 0x2c]
mov ecx, ebx
mov edx, 0x45
inc eax
mov dword [ebp + 0x2c], eax
mov dword [edi + 0x54], eax
push eax
push 1
call fcn.007d10d0
add esp, 8
cmp byte [edi + 0x14], 0
mov esi, ebp
jne 0x815b8a
mov ebp, 0x7b1040
mov eax, fcn.00789b90
mov edx, fcn.007aeae0
mov ecx, 3
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
imul ebp, ebp
and eax, 1
sub ecx, edx
and ebp, 3
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov edx, dword [edi + 0x2c]
test byte [edx + 5], 0x10
je 0x8155ec
cmp byte [edi + 0x11], 0x5a
je 0x8155ec
mov eax, dword [edi + 0x48]
mov ecx, esi
mov edx, dword [eax + 0x14]
push 0
push 0
call fcn.008152a0
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [edi + 0x40], eax
add dword [esi + 0x2c], 3
test ebx, ebx
je 0x8155a7
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x20]
cmp byte [eax + 1], 0x69
jne 0x8155a7
mov eax, dword [ebx + 0x10]
mov byte [eax], 1
mov esi, dword [esp + 4]
mov edx, 0x64
mov ecx, esi
push 2
push dword [edi + 0x3c]
call fcn.007d10d0
add esp, 8
mov ecx, esi
mov edx, ebx
push 0xfffffffffffffff7
call fcn.007f7b70
add esp, 4
mov eax, dword [edi + 0x40]
mov ecx, esi
mov edx, 0x45
inc eax
push eax
push 0
call fcn.007d10d0
add esp, 8
mov esi, dword [esp + 0xc]
jmp 0x815b77
xor eax, eax
cmp ebp, 1
movzx ebx, byte [0xbb9c33]
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x815722
mov al, byte [0xbb9c33]
xor ecx, ecx
cmp ebp, 1
mov ah, 1
seta cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2 + 4]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb9c33], ah
jne 0x815616
xor ecx, ecx
cmp ebp, 1
movzx eax, al
seta cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2 + 4]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x815683
xor eax, eax
cmp ebp, 1
movzx ebx, byte [0xbb9c33]
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x81565d
jmp 0x815722
xor eax, eax
cmp ebp, 1
movzx ebx, byte [0xbb9c33]
seta al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2 + 4]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x815702
xor eax, eax
cmp ebp, 1
seta al
mov ecx, eax
not ecx
and ecx, 0x813
lea ecx, [eax + ecx*2 + 0x2b14a14c]
mov eax, dword [0xbb9c24]
mov dword [esp], ecx
xor eax, ecx
mov dword [0xbb9c24], eax
not eax
mov ebx, dword [0xbb9c28]
imul eax, ecx
lea ecx, [eax + eax]
xor ebx, eax
shr eax, 0x1e
mov dword [0xbb9c28], ebx
or ecx, eax
not ebx
mov al, 1
imul ebx, ecx
mov ecx, dword [esp]
xor dword [0xbb9c2c], ebx
and cl, 7
shl al, cl
or byte [0xbb9c33], al
xor eax, eax
cmp ebp, 1
seta al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2 + 4]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb9c33], al
mov ebx, fcn.00840620
xor eax, eax
imul ebx, ebx
and ebx, 3
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb9c53]
bt ecx, eax
jb 0x81587f
mov al, byte [0xbb9c53]
mov dword [esp], edx
xor edx, edx
cmp ebx, 3
sete dl
mov ecx, edx
xor ecx, 1
lea ecx, [edx + ecx*2 + 2]
mov dl, 1
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb9c53], dl
jne 0x815756
xor ecx, ecx
cmp ebx, 3
movzx eax, al
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 2]
mov edx, dword [esp]
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x8157be
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb9c53]
bt ecx, eax
jae 0x81579c
jmp 0x81587f
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
movzx ecx, byte [0xbb9c53]
bt ecx, eax
jb 0x815861
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 - 0x2ec1886e]
mov eax, dword [0xbb9c40]
mov edx, ecx
mov dword [esp + 0x10], ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
mov dword [0xbb9c40], eax
not eax
imul edx, eax
mov eax, dword [0xbb9c44]
lea ecx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb9c44], eax
or ecx, edx
not eax
imul eax, ecx
mov ecx, dword [0xbb9c48]
lea edx, [eax*4]
xor ecx, eax
shr eax, 0x1d
mov dword [0xbb9c48], ecx
or edx, eax
not ecx
mov al, 1
imul ecx, edx
mov edx, dword [esp]
xor dword [0xbb9c4c], ecx
mov ecx, dword [esp + 0x10]
and cl, 7
shl al, cl
or byte [0xbb9c53], al
xor eax, eax
cmp ebx, 3
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb9c53], al
mov edx, dword [edx + 0x20]
cmp edx, 0xbb9c24
je 0x815892
cmp edx, 0xbb9c40
jne 0x8158c1
mov eax, dword [esi + 0x2c]
mov edx, 0x62
inc eax
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov dword [edi + 0x3c], eax
add dword [esi + 0x2c], 2
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push dword [eax + 0x30]
push dword [edi + 0x3c]
jmp 0x815b6f
mov esi, dword [esp + 0x18]
xor eax, eax
movzx ebx, byte [0xbb87eb]
mov ecx, esi
xor ecx, fcn.00789b90
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x815a08
mov al, byte [0xbb87eb]
mov ebx, esi
xor ecx, ecx
mov ah, 1
xor ebx, fcn.00789b90
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb87eb], ah
jne 0x8158f5
mov ebx, esi
xor ecx, ecx
movzx eax, al
xor ebx, fcn.00789b90
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 6]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x815974
mov ecx, esi
xor eax, eax
movzx ebx, byte [0xbb87eb]
xor ecx, fcn.00789b90
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jae 0x815948
jmp 0x815a08
mov ecx, esi
xor eax, eax
movzx ebx, byte [0xbb87eb]
xor ecx, fcn.00789b90
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt ebx, eax
jb 0x8159e4
mov ecx, esi
xor eax, eax
xor ecx, fcn.00789b90
sete al
mov ecx, eax
not ecx
and ecx, 0x381
lea ecx, [eax + ecx*2 + 0x59d04c0e]
mov eax, dword [0xbb87e0]
mov ebx, ecx
shr ebx, 0x1f
or ebx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb87e0], eax
not eax
imul ebx, eax
mov ah, 1
xor dword [0xbb87e4], ebx
shl ah, cl
or byte [0xbb87eb], ah
xor eax, eax
xor esi, fcn.00789b90
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb87eb], al
mov esi, dword [esp + 0x14]
xor eax, eax
movzx ebx, byte [0xbb87f7]
mov ecx, esi
xor ecx, fcn.007aeae0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt ebx, eax
jb 0x815b3e
mov al, byte [0xbb87f7]
mov ebx, esi
xor ecx, ecx
mov ah, 1
xor ebx, fcn.007aeae0
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 [0xbb87f7], ah
jne 0x815a3a
mov ebx, esi
xor ecx, ecx
movzx eax, al
xor ebx, fcn.007aeae0
sete cl
mov ebx, ecx
not ebx
lea ecx, [ecx + ebx*2]
and cl, 3
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x815ab3
mov ecx, esi
xor eax, eax
movzx ebx, byte [0xbb87f7]
xor ecx, fcn.007aeae0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt ebx, eax
jae 0x815a89
jmp 0x815b3e
mov ecx, esi
xor eax, eax
movzx ebx, byte [0xbb87f7]
xor ecx, fcn.007aeae0
sete al
mov ecx, eax
not ecx
lea eax, [eax + ecx*2]
and al, 3
movzx eax, al
bt ebx, eax
jb 0x815b1a
mov ecx, esi
xor eax, eax
xor ecx, fcn.007aeae0
sete al
mov ecx, eax
not ecx
and ecx, 0x795
lea ecx, [eax + ecx*2 + 0x2e80a868]
mov eax, dword [0xbb87ec]
xor eax, ecx
mov dword [0xbb87ec], eax
not eax
imul eax, ecx
and cl, 7
xor dword [0xbb87f0], eax
mov ah, 1
shl ah, cl
or byte [0xbb87f7], ah
mov ecx, esi
xor eax, eax
xor ecx, fcn.007aeae0
sete al
mov ecx, eax
not ecx
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb87f7], al
mov esi, dword [esp + 0xc]
cmp edx, 0xbb87e0
je 0x815b52
cmp edx, 0xbb87ec
jne 0x815b77
mov eax, dword [esi + 0x28]
mov ebx, dword [esp + 8]
mov edx, 0x62
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 4]
mov dword [edi + 0x3c], eax
push dword [ebx + 0x30]
push eax
call fcn.007d10d0
add esp, 8
mov edi, dword [edi + 0x24]
test edi, edi
jne 0x81554d
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x2c]
mov edx, 0x45
inc eax
mov dword [esi + 0x2c], eax
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esi + 0x2c], eax
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x28]
lea ecx, [eax + 1]
mov dword [esi + 0x28], ecx
mov dword [edi + 0x3c], eax
mov ecx, ebx
push dword [edi + 0x58]
push 1
call fcn.007d10d0
add esp, 8
mov ecx, ebx
mov edx, 0x45
push dword [edi + 0x5c]
push 0
call fcn.007d10d0
add esp, 8
mov ecx, ebx
mov edx, 0x62
push dword [edi + 0x30]
push dword [edi + 0x3c]
call fcn.007d10d0
add esp, 0x24
jmp 0x815b85