Function at 0x821cb0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov al, byte [esp + 0x60]
mov ebp, dword [esp + 0x68]
mov bl, byte [esp + 0x64]
mov esi, edx
mov byte [esp + 5], al
mov al, byte [esp + 0x5c]
mov byte [esp + 7], al
movzx eax, word [esp + 0x58]
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 8]
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call fcn.007efdc0
cmp byte [esi + 0x24], 0
mov edi, eax
mov bh, 0x20
jns 0x821d16
mov bh, 0x1d
test bl, bl
mov byte [esp + 4], bl
jne 0x821d3b
movsx eax, word [esp + 0x16]
mov ecx, dword [esp]
movzx edx, bh
push eax
push dword [esp + 0x24]
push edi
push dword [esp + 0x1c]
call fcn.007826e0
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov edx, esi
push 0
push 0
call fcn.00821470
add esp, 8
cmp dword [esp + 0x18], 0
mov dword [esp + 0x24], edi
jne 0x821d69
test eax, eax
jne 0x821d69
mov dword [esp + 8], 0
jmp 0x821e9a
mov byte [esp + 6], bh
mov dword [esp + 0x1c], ebp
mov edi, dword [esp + 0xc]
movzx eax, byte [esp + 5]
mov edx, dword [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x2c], eax
push eax
push esi
push 3
push 0
push 0
call fcn.00822320
add esp, 0x14
mov ecx, edi
mov edx, esi
mov dword [esp + 0x28], eax
call fcn.008223a0
mov ebp, dword [edi + 0x2c]
mov ebx, eax
mov edx, 0x4d
lea eax, [ebp + 1]
mov dword [esp + 8], eax
movsx eax, word [esi + 0x2a]
mov ecx, dword [esp]
lea eax, [ebp + eax + 1]
mov dword [edi + 0x2c], eax
push dword [esp + 8]
push dword [esp + 0x24]
call fcn.007c57e0
add esp, 8
movzx eax, word [esi + 0x2a]
test ax, ax
jle 0x821e1d
or ebx, dword [esp + 0x28]
add ebp, 2
xor edi, edi
cmp ebx, 0xffffffff
je 0x821df1
cmp edi, 0x1f
ja 0x821e15
bt ebx, edi
jae 0x821e15
movsx edx, di
mov ecx, esi
call fcn.007edca0
mov ecx, dword [esp]
cwde
mov edx, esi
add eax, ebp
push eax
push edi
push dword [esp + 0x18]
call fcn.007f0be0
add esp, 0xc
movzx eax, word [esi + 0x2a]
inc edi
movsx ecx, ax
cmp edi, ecx
jl 0x821de2
mov edi, dword [esp]
mov ecx, edi
call fcn.007f2430
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ebp, eax
mov ecx, ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
push dword [esp + 0x10]
push esi
push 1
push 0
push 0x7e
call fcn.00822490
add esp, 0x1c
mov ecx, edi
call fcn.007f2430
cmp ebp, eax
mov ebp, dword [esp + 0x1c]
jge 0x821e84
movsx eax, word [esp + 0x16]
movzx edx, byte [esp + 6]
mov ecx, dword [esp]
push eax
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x1c]
call fcn.007826e0
add esp, 0x10
mov ebp, 0xffffffff
mov ecx, ebx
mov edx, esi
push 0
push 0
push 0
push dword [esp + 0x14]
call fcn.008224f0
add esp, 0x10
cmp dword [esi + 0xc], 0
jne 0x8220d6
mov edi, dword [esp + 0xc]
mov edx, esi
mov dword [esp + 0x1c], ebp
mov ecx, edi
push ebp
push 0
push dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.00822960
add esp, 0x10
xor eax, eax
cmp byte [esp + 7], 0
mov ecx, dword [esp]
mov edx, 0x7a
setne al
push eax
push ebx
call fcn.007c57e0
add esp, 8
cmp byte [edi + 0x12], 0
mov bl, byte [esp + 4]
je 0x822085
mov eax, 0x78d610
mov edx, 3
movzx ecx, byte [0xbb2af3]
sub edx, eax
mov eax, edx
xor eax, 0x78d610
sete al
xor al, 5
add al, 0x24
and al, 7
movzx eax, al
bt ecx, eax
jb 0x822072
mov al, byte [0xbb2af3]
mov ecx, edx
mov ah, 1
xor ecx, 0x78d610
sete cl
xor cl, 5
add cl, 0x24
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb2af3], ah
jne 0x821f22
mov edx, 0x78d610
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, 0x78d610
sete dl
xor dl, 5
add dl, 0x24
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x821f9b
mov eax, ecx
movzx edx, byte [0xbb2af3]
xor eax, 0x78d610
sete al
xor al, 5
add al, 0x24
and al, 7
movzx eax, al
bt edx, eax
jae 0x821f77
jmp 0x822072
xor ecx, 0x78d610
movzx ecx, byte [0xbb2af3]
sete al
xor al, 5
add al, 0x24
and al, 7
movzx eax, al
bt ecx, eax
jb 0x822047
mov eax, 0x78d610
mov edx, 3
xor ecx, ecx
mov bl, byte [esp + 4]
sub edx, eax
mov eax, dword [0xbb2ae0]
xor edx, 0x78d610
sete cl
xor ecx, 0x5bff702d
add ecx, 0x1024
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb2ae0], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb2ae4]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb2ae4], eax
or edi, edx
not eax
mov edx, dword [0xbb2ae8]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb2ae8], edx
or edi, eax
not edx
mov al, 1
imul edx, edi
shl al, cl
xor dword [0xbb2aec], edx
or byte [0xbb2af3], al
mov eax, 0x78d610
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, 0x78d610
sete cl
xor cl, 5
add cl, 0x24
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb2af3], al
push 0xbb2ae0
push dword [esi]
call fcn.00777e00
add esp, 8
test eax, eax
jne 0x822094
mov ecx, dword [esp]
mov edx, esi
push 0xfffffffffffffffa
call fcn.007ec2f0
add esp, 4
test bl, bl
je 0x8220a5
mov ecx, dword [esp]
mov edx, 4
call fcn.00782720
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x8220c4
cmp eax, dword [esp + 0x10]
je 0x8220c4
mov ecx, dword [esp]
mov edx, 0x7a
push eax
call fcn.007edd80
add esp, 4
mov ecx, dword [esp]
xor edx, edx
cmp bl, 2
sete dl
add edx, edx
call fcn.00782720
mov ebp, dword [esp + 0xc]
mov edx, esi
mov ecx, ebp
push 0
push 0
mov edi, dword [esp + 0x10]
push edi
push 0
call fcn.00822a70
add esp, 0x10
mov ebx, dword [esp + 0x24]
movzx eax, byte [esp + 5]
mov edx, dword [esp + 0x18]
mov ecx, ebp
push ebx
push eax
push edi
push esi
push 2
push 0
push 0x7e
call fcn.00822490
add esp, 0x1c
mov ecx, dword [esp]
mov edx, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007f04f0