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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, ecx
mov ebp, dword [esp + 0x30]
mov ecx, dword [ecx]
cmp dword [esp + 0x34], 0
mov esi, edx
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
je 0x826eaf
mov eax, dword [esi + 0x1c]
cmp eax, dword [esp + 0x38]
je 0x826eaf
cmp byte [ebp + 0x24], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
js 0x826c4b
mov ecx, ebx
call fcn.007f1720
mov esi, dword [esp + 4]
mov edi, eax
mov edx, 0x86
mov ecx, esi
push eax
push dword [esp + 0x3c]
call fcn.007c57e0
add esp, 8
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edx, 0x1f
push edi
push 0
push dword [esp + 0x10]
call fcn.007c5800
add esp, 0xc
mov ecx, ebx
mov edx, edi
call fcn.007f0bc0
jmp 0x826eab
mov ecx, ebp
call fcn.00787030
movzx ecx, word [eax + 0x32]
mov esi, dword [ebx + 0x2c]
mov edi, eax
mov dword [esp + 0x18], ebx
lea edx, [esi + 1]
add esi, ecx
test ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x2c], esi
mov esi, dword [esp + 4]
mov dword [esp], edx
je 0x826cac
xor ebp, ebp
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x34]
movsx edx, word [eax + ebp*2]
call fcn.007f0f30
mov ecx, dword [esp]
cwde
mov edx, 0x59
lea ebx, [ebp + ecx]
mov ecx, esi
push ebx
push eax
push dword [esp + 0x40]
call fcn.007c5800
add esp, 0xc
inc ebp
cmp ebp, dword [esp + 0x14]
jne 0x826c78
mov edx, fcn.0078ccf0
xor eax, eax
movzx edi, byte [0xbb2ca7]
mov ebp, esi
mov esi, dword [esp + 0x10]
mov ebx, dword [esp]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edi, eax
mov edi, dword [esp + 0x14]
jb 0x826e5e
mov al, byte [0xbb2ca7]
xor ecx, ecx
cmp edx, 1
mov ah, 1
seta cl
mov ebx, ecx
not ebx
lea ecx, [ebx + ecx*2]
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb2ca7], ah
jne 0x826ced
mov ecx, fcn.0078ccf0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
not ebx
lea edx, [ebx + edx*2]
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x826d65
mov ebx, dword [esp]
xor eax, eax
cmp ecx, 1
seta al
mov edx, eax
not edx
lea eax, [edx + eax*2]
movzx edx, byte [0xbb2ca7]
and al, 7
movzx eax, al
bt edx, eax
jae 0x826d40
jmp 0x826e5e
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbb2ca7]
mov ebx, dword [esp]
seta al
mov ecx, eax
not ecx
lea eax, [ecx + eax*2]
and al, 7
movzx eax, al
bt edx, eax
jb 0x826e34
mov eax, fcn.0078ccf0
xor ecx, ecx
mov ebx, edi
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 0xaeb0cef7
lea ecx, [eax + ecx*2 + 0x210]
mov eax, dword [0xbb2c90]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb2c90], eax
not eax
imul edx, eax
mov eax, dword [str.1_ZNau_n]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [str.1_ZNau_n], eax
or edi, edx
not eax
mov edx, dword [0xbb2c98]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb2c98], edx
or edi, eax
not edx
mov eax, dword [0xbb2c9c]
imul edx, edi
lea edi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb2c9c], eax
or edi, edx
not eax
mov dl, 1
imul eax, edi
mov edi, ebx
mov ebx, dword [esp]
shl dl, cl
xor dword [0xbb2ca0], eax
or byte [0xbb2ca7], dl
mov eax, fcn.0078ccf0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
not eax
lea ecx, [eax + ecx*2]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb2ca7], al
mov ecx, ebp
mov edx, 0x1e
push edi
push ebx
push 0
push dword [esp + 0x14]
call fcn.007826e0
add esp, 0x10
mov edi, eax
mov ecx, ebp
mov edx, 0x44
push 0xffffffffffffffff
push 0xbb2c90
push 0
push 2
push 0xb
call fcn.007ebd50
add esp, 0x14
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.007f0b40
mov ecx, ebp
mov edx, edi
call fcn.007ebd40
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x14]
push 0
call fcn.007f4270
add esp, 4
mov dword [esp], eax
movzx eax, word [ebp + 0x2a]
test ax, ax
jle 0x826efa
xor edi, edi
mov ecx, dword [ebp + 4]
lea edx, [edi + edi*4]
cmp byte [ecx + edx*4 + 0xd], 0x45
jne 0x826ef2
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 4]
mov edx, 0x53
add eax, edi
push eax
call fcn.007edd80
add esp, 4
movzx eax, word [ebp + 0x2a]
inc edi
movsx ecx, ax
cmp edi, ecx
jl 0x826eca
mov edx, dword [esp]
mov ecx, ebx
push esi
push 2
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.007da610
add esp, 0x10
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret