Function at 0x824190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov dword [esp + 0x24], edx
xor ebx, ebx
mov edx, dword [ebp + 8]
mov eax, dword [0xbcbae0]
mov edi, edx
xor eax, ebp
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0xc], ecx
mov ecx, dword [ecx]
setne bl
mov al, byte [edx + ebx + 0x19]
mov dword [esp + 8], ecx
cmp al, 7
jne 0x8241db
mov ecx, dword [esp + 8]
xor esi, esi
test byte [ecx + 0x22], 8
jne 0x824bd2
mov esi, dword [edi + ebx*4 + 0x1c]
test al, al
mov ecx, edi
je 0x824bd2
test esi, esi
jne 0x824bd2
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
mov byte [esp + 3], al
lea eax, [esp + 0x68]
lea esi, [esp + 0x6c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
push eax
push esi
push edi
call fcn.00823380
add esp, 0xc
xor esi, esi
test eax, eax
jne 0x824bd2
cmp dword [edi + 0x14], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ebx
jg 0x82425b
mov ecx, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0
jmp 0x8247b8
mov edx, fcn.00830370
movzx ecx, byte [0xbb2b5f]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x824369
mov al, byte [0xbb2b5f]
cmp edx, 3
mov ah, 1
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb2b5f], ah
jne 0x824288
mov ecx, fcn.00830370
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8242e8
cmp ecx, 3
movzx edx, byte [0xbb2b5f]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x8242ca
jmp 0x824369
cmp ecx, 3
movzx ecx, byte [0xbb2b5f]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x824346
mov eax, fcn.00830370
xor ecx, ecx
mov esi, dword [0xbb2b54]
mov dl, 1
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
xor ecx, 0x79dd9f23
or ecx, 0x90
xor esi, ecx
mov dword [0xbb2b54], esi
not esi
imul esi, ecx
and cl, 3
shl dl, cl
xor dword [0xbb2b58], esi
or byte [0xbb2b5f], dl
mov eax, fcn.00830370
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbb2b5f], al
mov edx, fcn.00796cd0
mov eax, fcn.00796cd0
movzx esi, byte [0xbb2b6b]
and edx, 1
xor edx, eax
xor eax, eax
cmp edx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jb 0x8244c1
mov al, byte [0xbb2b6b]
xor ecx, ecx
cmp edx, 0xffffffff
mov ah, 1
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ebx + ecx*2]
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb2b6b], ah
jne 0x8243a2
mov ecx, fcn.00796cd0
mov edx, fcn.00796cd0
movzx eax, al
and ecx, 1
xor ecx, edx
xor edx, edx
cmp ecx, 0xffffffff
sete dl
mov ebx, edx
xor ebx, 1
lea edx, [ebx + edx*2]
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82441e
xor eax, eax
cmp ecx, 0xffffffff
movzx esi, byte [0xbb2b6b]
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt esi, eax
jae 0x8243f8
jmp 0x8244c1
xor eax, eax
cmp ecx, 0xffffffff
movzx edx, byte [0xbb2b6b]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x824492
mov ecx, fcn.00796cd0
mov eax, fcn.00796cd0
mov esi, dword [0xbb2b60]
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 0x5e6524d9
lea ecx, [ecx + eax*2 + 0x100c]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [0xbb2b60], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb2b64], edx
mov dl, 1
shl dl, cl
or byte [0xbb2b6b], dl
mov ecx, fcn.00796cd0
mov eax, fcn.00796cd0
and ecx, 1
xor ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [ecx + eax*2]
mov al, 0xfe
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb2b6b], al
cmp dword [ebp + 0xc], 0
mov dl, byte [esp + 3]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
setne al
cmp dl, 7
setne cl
cmp dl, 0xa
setne dl
xor esi, esi
or dl, al
lea eax, [edi + 0x24]
lea edi, [esp + 0x48]
and dl, cl
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x1f], dl
mov edx, dword [esp + 0x6c]
lea eax, [eax + 0x28]
mov dword [esp + 0x34], eax
mov dword [esp + 4], edx
mov ecx, dword [0xb48048]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x60], ecx
mov ecx, dword [0xb4804c]
test eax, eax
lea eax, [eax + esi*4]
cmove eax, dword [esp + 0x38]
test edx, edx
mov dword [esp + 0x64], ecx
mov ecx, dword [0xb48050]
mov dword [esp + 0x58], ecx
mov ecx, dword [0xb48054]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x34]
mov ebx, dword [eax]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
je 0x824565
lea ecx, [esi + esi]
add ecx, dword [edx + 4]
movsx ecx, word [ecx]
mov dword [esp + 0x14], esi
lea ecx, [ecx + ecx*4]
mov edx, dword [eax + ecx*4]
mov ecx, edi
call fcn.007f6a70
mov eax, dword [ebp + 8]
lea ecx, [ebx + ebx*4]
lea esi, [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [eax + ecx*4]
mov ecx, esi
call fcn.007f6a70
mov ebx, dword [esp + 8]
mov edx, 0x3b
mov ecx, ebx
push 0
push esi
call fcn.007d8c70
add esp, 8
mov esi, eax
mov ecx, ebx
mov edx, 0x3b
push 0
push edi
call fcn.007d8c70
add esp, 8
mov edi, eax
mov ecx, ebx
mov edx, 0x3b
push 0
lea eax, [esp + 0x64]
push eax
call fcn.007d8c70
add esp, 8
mov ecx, dword [esp + 0xc]
mov edx, 0x8b
push edi
mov edi, ecx
push eax
call fcn.007cff00
add esp, 8
mov ecx, edi
mov edx, 0x35
push esi
push eax
call fcn.007cff00
add esp, 8
mov edx, dword [esp + 0x18]
mov ecx, edi
push eax
call fcn.007defd0
add esp, 4
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x18], eax
je 0x8246c5
mov ecx, ebx
mov edx, 0x3b
push 0
lea esi, [esp + 0x4c]
push esi
call fcn.007d8c70
add esp, 8
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov edx, 0x3b
push 0
lea eax, [esp + 0x5c]
push eax
call fcn.007d8c70
add esp, 8
mov ecx, edi
mov edx, 0x8b
push dword [esp + 0x2c]
push eax
call fcn.007cff00
add esp, 8
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov edx, 0x3b
push 0
push esi
call fcn.007d8c70
add esp, 8
mov esi, eax
mov ecx, ebx
mov edx, 0x3b
push 0
lea eax, [esp + 0x64]
push eax
call fcn.007d8c70
add esp, 8
mov ecx, edi
mov edx, 0x8b
push esi
push eax
call fcn.007cff00
add esp, 8
mov ecx, edi
mov edx, 0x2d
push dword [esp + 0x2c]
push eax
call fcn.007cff00
add esp, 8
mov edx, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.007defd0
add esp, 4
mov dword [esp + 0x10], eax
mov edi, dword [ebp + 8]
movzx eax, byte [esp + 3]
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x14]
cmp byte [esp + 0x1f], 0
mov ecx, edi
jne 0x8246e7
lea edi, [esp + 0x48]
jmp 0x8247ae
cmp al, 9
je 0x82473c
cmp al, 0xa
jne 0x824764
mov ebx, dword [esp + 8]
mov edx, 0x3b
mov ecx, ebx
push 0
lea eax, [esp + 0x4c]
push eax
call fcn.007d8c70
add esp, 8
mov esi, eax
mov ecx, ebx
mov edx, 0x3b
push 0
lea eax, [esp + 0x5c]
push eax
call fcn.007d8c70
add esp, 8
mov ebx, dword [esp + 0xc]
mov edx, 0x8b
mov ecx, ebx
push esi
mov esi, dword [esp + 0x18]
push eax
call fcn.007cff00
add esp, 8
jmp 0x82477d
mov eax, dword [ecx]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
test byte [eax + ecx*4 + 0x10], 0x60
jne 0x824764
mov edx, dword [eax + ecx*4 + 4]
test edx, edx
je 0x824764
mov ecx, dword [esp + 8]
push 0
call fcn.007f0780
add esp, 4
jmp 0x824779
mov ecx, dword [esp + 8]
mov edx, 0x77
push 0
push 0
call fcn.007d8c70
add esp, 8
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, ebx
push eax
call fcn.007d8ad0
add esp, 4
mov ecx, ebx
mov edx, eax
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x54]
push eax
call fcn.007d8b80
add esp, 8
mov edx, dword [esp + 4]
mov ecx, dword [ebp + 8]
lea edi, [esp + 0x48]
inc esi
cmp esi, dword [ecx + 0x14]
jl 0x824518
mov esi, ecx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 8]
call fcn.00774f10
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call fcn.00777870
cmp byte [esp + 3], 7
mov dword [esp + 0x14], edi
jne 0x824a65
mov edx, fcn.007967e0
mov esi, fcn.007967e0
mov dword [esp + 4], eax
xor eax, eax
or edx, 2
xor esi, 2
movzx ebx, byte [0xbb2b93]
mov ecx, edx
add ecx, esi
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt ebx, eax
jb 0x8249e8
mov al, byte [0xbb2b93]
mov edi, edx
xor ecx, ecx
mov ah, 1
add edi, esi
sete cl
mov ebx, ecx
xor ebx, 1
lea ecx, [ecx + ebx*2 + 2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb2b93], ah
jne 0x82481c
mov ecx, fcn.007967e0
mov edx, fcn.007967e0
xor ebx, ebx
movzx eax, al
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete bl
mov esi, ebx
xor ebx, 1
lea ebx, [esi + ebx*2 + 2]
xor bl, 7
movzx esi, bl
bt eax, esi
jae 0x824898
mov edi, dword [esp + 0x14]
mov esi, ecx
xor eax, eax
add esi, edx
movzx esi, byte [0xbb2b93]
sete al
mov ebx, eax
xor ebx, 1
lea eax, [eax + ebx*2 + 2]
bt esi, eax
jae 0x824875
jmp 0x8249e8
xor eax, eax
add ecx, edx
movzx edx, byte [0xbb2b93]
mov edi, dword [esp + 0x14]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 2]
bt edx, eax
jb 0x8249bb
mov ecx, fcn.007967e0
mov edx, fcn.007967e0
xor eax, eax
xor edx, 2
or ecx, 2
add ecx, edx
sete al
mov ecx, eax
not ecx
and ecx, 0x801
lea ecx, [eax + ecx*2 + 0x715123fa]
mov eax, dword [0xbb2b70]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb2b70], eax
not eax
imul edx, eax
mov eax, dword [0xbb2b74]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb2b74], eax
or esi, edx
not eax
mov edx, dword [0xbb2b78]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb2b78], edx
or esi, eax
not edx
mov eax, dword [0xbb2b7c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb2b7c], eax
or esi, edx
not eax
mov edx, dword [0xbb2b80]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb2b80], edx
or eax, esi
not edx
mov ebx, dword [0xbb2b84]
imul edx, eax
mov esi, edx
shl esi, 5
xor ebx, edx
shr edx, 0x1a
mov dword [0xbb2b84], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbb2b88]
mov esi, ebx
shl esi, 6
xor edx, ebx
shr ebx, 0x19
mov dword [0xbb2b88], edx
or ebx, esi
not edx
imul edx, ebx
xor dword [0xbb2b8c], edx
mov dl, 1
shl dl, cl
or byte [0xbb2b93], dl
mov eax, fcn.007967e0
mov ecx, fcn.007967e0
xor edx, edx
xor ecx, 2
or eax, 2
add eax, ecx
sete dl
mov eax, edx
xor eax, 1
lea ecx, [edx + eax*2 + 2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb2b93], al
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], edi
mov edx, 0x47
mov dword [esp + 0x44], eax
push 0xbb2b70
call fcn.007d8c20
add esp, 4
mov esi, eax
test eax, eax
je 0x824a14
mov byte [esi + 1], 2
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x40]
xor edx, edx
mov ecx, ebx
push 0
push eax
call fcn.007d8e50
add esp, 8
mov edi, eax
mov ecx, ebx
xor edx, edx
push esi
call fcn.007d8ad0
add esp, 4
mov ecx, ebx
mov edx, eax
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x2c]
push edi
call fcn.007d8990
add esp, 0x1c
mov dword [esp + 0x28], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 8]
mov edx, eax
add edx, 0x51
inc dword [ebx + 0x118]
mov word [ebx + 0x11c], 0
mov ecx, ebx
push 0
mov edi, eax
call fcn.0077efb0
add esp, 4
mov esi, eax
test eax, eax
jne 0x824a98
xor edi, edi
jmp 0x824b30
lea eax, [esi + 0x24]
mov dword [esp + 4], eax
mov dword [esi + 0x1c], eax
mov eax, esi
add eax, 0x50
mov dword [esi + 0x30], eax
push edi
push dword [esp + 0x18]
push eax
call fcn.009806e0
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, ebx
push 1
call fcn.007f0780
add esp, 4
mov edx, dword [esp + 0x20]
mov dword [esi + 0x34], eax
mov ecx, ebx
push 1
call fcn.007f4030
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esi + 0x38], eax
mov ecx, ebx
push 1
call fcn.007f3ec0
add esp, 4
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x824b03
mov dword [esp + 0x10], 0
jmp 0x824b2c
mov ecx, dword [esp + 0xc]
mov edx, 0x13
push 0
push eax
call fcn.007cff00
add esp, 8
mov ecx, ebx
mov dword [esp + 0x10], eax
mov edx, eax
push 1
call fcn.007f0780
add esp, 4
mov dword [esi + 0xc], eax
mov edi, dword [esp + 4]
dec dword [ebx + 0x118]
je 0x824b3c
xor eax, eax
jmp 0x824b43
movzx eax, word [ebx + 0x11e]
mov edx, dword [esp + 0x18]
mov ecx, ebx
mov word [ebx + 0x11c], ax
call fcn.007c00e0
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.007c00e0
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.007c00f0
mov edx, dword [esp + 0x28]
mov ecx, ebx
call fcn.007c0190
cmp byte [ebx + 0x51], 1
jne 0x824b89
mov ecx, ebx
mov edx, esi
call fcn.007c7a50
xor esi, esi
jmp 0x824bd2
mov al, byte [esp + 3]
cmp al, 7
jne 0x824b95
mov al, 0x88
jmp 0x824ba5
cmp al, 0xa
jne 0x824ba3
cmp dword [ebp + 0xc], 0
jne 0x824ba3
mov al, 0x7e
jmp 0x824ba5
mov al, 0x7f
mov ecx, dword [esp + 0x24]
mov byte [edi], al
mov dword [edi + 4], esi
mov edx, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
mov eax, dword [ecx + 0x48]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x48]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x18], eax
mov dword [edx + ecx*4 + 0x1c], esi
setne cl
or cl, 0x7e
mov byte [esi + 8], cl
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.00980459
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret