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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov edi, dword [esp + 0x4c]
xor ebx, ebx
test edi, edi
je 0x8278ad
cmp dword [ecx + 0x108], 0
jne 0x8278ad
cmp dword [edi + 0x40], 0
jne 0x8278ad
mov eax, dword [ecx]
mov ebp, ecx
mov esi, edx
mov dword [esp + 0x20], eax
call fcn.008065e0
test eax, eax
jne 0x8278ad
cmp dword [esi + 0x38], 0
mov dword [esp + 0x14], ebp
jne 0x8278ad
mov ebp, dword [esp + 0x50]
cmp ebp, 0xb
jne 0x826f9f
cmp word [esi + 0x28], 0
js 0x826f9a
movzx ebp, byte [esi + 0x32]
cmp ebp, 0xb
jne 0x826f9f
mov ebp, 2
mov eax, dword [edi + 0x20]
cmp dword [eax], 1
jne 0x8278ad
cmp dword [eax + 0x1c], 0
jne 0x8278ad
cmp dword [edi + 0x24], 0
jne 0x8278ad
cmp dword [edi + 0x30], 0
jne 0x8278ad
cmp dword [edi + 0x28], 0
jne 0x8278ad
cmp dword [edi + 0x3c], 0
jne 0x8278ad
cmp dword [edi + 0x34], 0
jne 0x8278ad
test byte [edi + 4], 1
jne 0x8278ad
mov ecx, dword [edi + 0x1c]
cmp dword [ecx], 1
jne 0x8278ad
mov ecx, dword [ecx + 4]
cmp byte [ecx], 0xb1
jne 0x8278ad
mov ecx, dword [esp + 0x14]
add eax, 8
xor ebx, ebx
xor edx, edx
push eax
call fcn.00800830
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
je 0x8278ad
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
cmp eax, dword [esi + 0x1c]
jne 0x827045
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x48]
cmp eax, dword [esi + 0x48]
je 0x8278ad
mov eax, dword [esp + 0xc]
mov al, byte [eax + 0x24]
xor al, byte [esi + 0x24]
js 0x8278ad
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x38], 0
jne 0x8278ad
mov eax, dword [esp + 0xc]
cmp dword [eax + 0xc], 0
jne 0x8278ad
movzx eax, word [esi + 0x2a]
mov ecx, dword [esp + 0xc]
cmp ax, word [ecx + 0x2a]
jne 0x8278ad
movzx ecx, word [esi + 0x28]
mov edx, dword [esp + 0xc]
cmp cx, word [edx + 0x28]
jne 0x8278ad
test ax, ax
jle 0x8271cb
mov dword [esp + 8], 0
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 8]
lea eax, [eax*4]
mov dword [esp + 4], ecx
lea ebx, [eax + eax*4]
movzx eax, word [edx + ebx + 0x10]
movzx ecx, word [ecx + ebx + 0x10]
mov dword [esp], ebx
and eax, 0x60
and ecx, 0x60
cmp ax, cx
jne 0x8278ab
mov edi, edx
test ax, ax
je 0x82710c
mov eax, dword [esp + 4]
mov ecx, dword [esp]
xor ebx, ebx
mov edx, dword [eax + ecx + 4]
mov eax, ecx
xor ecx, ecx
push 0xffffffffffffffff
push dword [edi + eax + 4]
call fcn.007f1c20
add esp, 8
test eax, eax
jne 0x8278ad
mov edx, dword [esp]
mov ecx, dword [esp + 4]
movzx eax, byte [edi + edx + 0xd]
cmp al, byte [ecx + edx + 0xd]
jne 0x8278ab
mov eax, dword [esp + 4]
mov ecx, dword [esp]
push dword [eax + ecx + 8]
push dword [edi + ecx + 8]
call fcn.00777e00
add esp, 8
test eax, eax
jne 0x8278ab
mov eax, dword [esp + 8]
lea eax, [eax + eax*4]
cmp byte [edi + eax*4 + 0xc], 0
je 0x82715e
mov ecx, dword [esp + 4]
cmp byte [ecx + eax*4 + 0xc], 0
je 0x8278ab
cmp dword [esp + 8], 0
je 0x8271b2
mov eax, dword [esp]
lea eax, [edi + eax + 0x10]
movzx eax, word [eax]
and eax, 0x60
test ax, ax
jne 0x8271b2
mov ebx, dword [esp]
mov ecx, dword [esp + 4]
mov eax, dword [edi + ebx + 4]
mov ecx, dword [ecx + ebx + 4]
test eax, eax
sete dl
test ecx, ecx
sete dh
xor dh, dl
jne 0x8278ab
test eax, eax
je 0x8271b2
push dword [ecx + 8]
push dword [eax + 8]
call fcn.009803a0
add esp, 8
test eax, eax
jne 0x8278ab
mov eax, dword [esp + 8]
movsx edi, word [esi + 0x2a]
mov edx, eax
inc edx
cmp edx, edi
mov ecx, edx
mov dword [esp + 8], edx
jl 0x8270a6
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 8], eax
jne 0x8271df
mov dword [esp], 0
jmp 0x82725e
xor ebx, ebx
mov dword [esp], 0
mov eax, dword [esp + 8]
mov ecx, 1
cmp byte [eax + 0x36], 0
mov eax, dword [esp]
cmovne eax, ecx
mov dword [esp], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
mov edi, eax
test eax, eax
je 0x8278ad
mov ecx, dword [esp + 8]
mov edx, edi
call fcn.00827d90
test eax, eax
jne 0x827225
mov eax, edi
mov eax, dword [edi + 0x14]
jmp 0x827205
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 8]
cmp eax, dword [ecx + 0x2c]
jne 0x82724f
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x48]
cmp eax, dword [esi + 0x48]
jne 0x82724f
mov ecx, 0x19b
call fcn.0078cc10
test eax, eax
je 0x8278ad
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [esp + 8], eax
jne 0x8271e8
mov edx, dword [esi + 0x18]
test edx, edx
je 0x827280
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x18]
push 0xffffffffffffffff
call fcn.007f2030
add esp, 4
xor ebx, ebx
test eax, eax
jne 0x8278ad
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x24]
test dword [ecx + 0x20], 0x4000
je 0x82729c
xor ebx, ebx
cmp dword [esi + 0x10], 0
jne 0x8278ad
xor ebx, ebx
test al, 1
jne 0x8278ad
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x48]
call fcn.007825f0
mov edi, dword [esp + 0x14]
mov ebx, eax
mov ecx, edi
call fcn.007ebd10
mov ecx, edi
mov edx, ebx
mov dword [esp + 4], eax
mov dword [esp + 0x30], ebx
call fcn.007f31f0
mov eax, dword [edi + 0x28]
mov edx, dword [esp + 0x54]
mov ebx, esi
lea ecx, [eax + 1]
mov dword [esp + 0x18], eax
lea eax, [eax + 2]
mov dword [esp + 0x10], ecx
mov dword [edi + 0x28], eax
mov ecx, edi
push esi
call fcn.008278c0
add esp, 4
mov ecx, edi
mov dword [esp + 8], eax
call fcn.007f1720
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.007f1720
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov ecx, edi
push 0x61
push esi
push dword [esp + 0x5c]
call fcn.007ebf70
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], 0
test byte [eax + 0x18], 4
jne 0x827392
cmp word [esi + 0x28], 0
jns 0x827350
cmp dword [esp], 0
jne 0x82735e
mov eax, dword [esi + 8]
test eax, eax
je 0x827356
jmp 0x82735e
cmp dword [esp], 0
jne 0x82735e
lea eax, [ebp - 1]
cmp eax, 2
jb 0x827392
mov edi, dword [esp + 4]
mov edx, 0x25
mov ecx, edi
push 0
push dword [esp + 0x14]
call fcn.007c57e0
add esp, 8
mov ecx, edi
mov edx, 0xb
mov ebx, eax
call fcn.007ebd30
mov ecx, edi
mov edx, ebx
mov dword [esp + 0x2c], eax
call fcn.007ebd40
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x24], 0
js 0x827531
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, edi
push 0x60
push dword [esp + 0x10]
push dword [esp + 0x38]
call fcn.007ebf70
add esp, 0xc
mov ecx, dword [esp + 4]
mov edx, 0x25
push 0
push edi
call fcn.007c57e0
add esp, 8
cmp word [esi + 0x28], 0
mov dword [esp + 0x28], eax
js 0x827446
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x1c]
mov edx, 0x7f
mov ecx, edi
push eax
mov ebx, eax
push dword [esp + 0x1c]
call fcn.007c57e0
add esp, 8
mov dword [esp], eax
mov ecx, edi
mov edx, 0x20
push ebx
push 0
push dword [esp + 0x18]
call fcn.007c5800
add esp, 0xc
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov edx, ebp
mov ecx, ebx
push esi
call fcn.008268f0
add esp, 4
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.007ebd40
mov edx, dword [esp + 8]
mov ecx, ebx
push dword [esp + 0x1c]
call fcn.00827d60
add esp, 4
jmp 0x827485
cmp dword [esi + 8], 0
jne 0x827469
mov eax, dword [esp + 0x20]
test byte [eax + 0x18], 8
jne 0x827469
mov ecx, dword [esp + 4]
mov edx, 0x78
push dword [esp + 0x1c]
push dword [esp + 0x14]
jmp 0x82747a
mov ecx, dword [esp + 4]
mov edx, 0x7f
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.007c57e0
add esp, 8
mov dword [esp], eax
mov ecx, dword [esp + 4]
mov edx, 0x7e
push 1
push dword [esp + 0x28]
push dword [esp + 0x20]
call fcn.007c5800
add esp, 0xc
mov eax, dword [esp + 0x20]
mov di, 0x29
test byte [eax + 0x18], 4
je 0x8274c7
mov ecx, dword [esp + 4]
mov edx, 0x81
push dword [esp + 0x10]
call fcn.007edd80
add esp, 4
mov di, 0x39
mov ebx, dword [esp + 4]
mov edx, 0x79
mov ecx, ebx
push 0xfffffffffffffffa
push esi
push dword [esp + 0x24]
push dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
push ebp
call fcn.007ebd50
add esp, 0x14
movzx edx, di
mov ecx, ebx
call fcn.00782720
mov ecx, ebx
mov edx, 5
push dword [esp]
mov edi, dword [esp + 0x1c]
push edi
call fcn.007c57e0
add esp, 8
mov ecx, ebx
mov edx, 0x74
push 0
push edi
call fcn.007c57e0
add esp, 8
mov ecx, ebx
mov edx, 0x74
push 0
push ebp
call fcn.007c57e0
add esp, 8
jmp 0x82756b
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
mov ecx, edi
push dword [esi]
push 1
push dword [esi + 0x1c]
call fcn.007ec020
add esp, 0xc
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
mov ecx, edi
push dword [eax]
push 0
push dword [eax + 0x1c]
call fcn.007ec020
add esp, 0xc
mov dword [esp + 0x28], 0
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 8], eax
je 0x82782f
mov eax, dword [esp + 0xc]
mov dword [esp], 0
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x8275a2
mov ecx, dword [esp + 8]
mov edx, ebp
call fcn.00827d90
test eax, eax
je 0x8278b7
mov dword [esp], ebp
mov edi, dword [esp + 4]
mov edx, 0x60
mov ecx, edi
push dword [esp + 0x30]
mov ebp, dword [esp + 4]
push dword [ebp + 0x2c]
mov ebx, dword [esp + 0x20]
push ebx
call fcn.007c5800
add esp, 0xc
mov esi, dword [esp + 0x14]
mov edx, ebp
mov ecx, esi
call fcn.007ec100
mov ecx, edi
mov edx, 0x61
push dword [esp + 0x54]
mov ebp, dword [esp + 0xc]
push dword [ebp + 0x2c]
push dword [esp + 0x18]
call fcn.007c5800
add esp, 0xc
mov ecx, esi
mov edx, ebp
call fcn.007ec100
mov ecx, edi
mov edx, 1
call fcn.00782720
mov ecx, edi
mov edx, 0x25
push 0
push ebx
call fcn.007c57e0
add esp, 8
mov esi, eax
mov ecx, edi
mov edx, 0x7e
push 1
push dword [esp + 0x28]
push ebx
call fcn.007c5800
add esp, 0xc
mov eax, dword [esp + 0x20]
xor ebx, ebx
test byte [eax + 0x18], 4
je 0x827799
mov eax, dword [esp]
movzx ebp, word [eax + 0x34]
test ebp, ebp
je 0x82777a
mov eax, dword [esp]
xor ebx, ebx
mov eax, dword [eax + 0x20]
mov dword [esp], eax
mov edx, fcn.007b0a20
movzx ecx, byte [0xbac233]
imul edx, edx
and edx, 3
cmp edx, 3
sete al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x82775a
mov al, byte [0xbac233]
cmp edx, 3
mov ah, 1
sete cl
or cl, 4
add cl, 4
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbac233], ah
jne 0x827688
cmp edx, 3
movzx eax, al
sete cl
or cl, 4
add cl, 4
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x8276e4
cmp edx, 3
movzx ecx, byte [0xbac233]
sete al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jae 0x8276c7
jmp 0x82775a
cmp edx, 3
movzx ecx, byte [0xbac233]
sete al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x82773e
xor ecx, ecx
cmp edx, 3
mov eax, dword [str.2_p0]
sete cl
or ecx, 0x713e5e6c
add ecx, 0x204
mov edi, ecx
xor eax, ecx
shr edi, 0x1f
mov dword [str.2_p0], eax
not eax
or edi, ecx
and cl, 7
imul edi, eax
mov ah, 1
xor dword [0xbac22c], edi
shl ah, cl
or byte [0xbac233], ah
cmp edx, 3
mov al, 0xfe
sete cl
or cl, 4
add cl, 4
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbac233], al
mov eax, dword [esp]
push dword [eax + ebx*4]
push str.2_p0
call fcn.00777e00
add esp, 8
test eax, eax
jne 0x82777a
inc ebx
cmp ebx, ebp
jb 0x827659
cmp ebx, ebp
je 0x827782
xor ebx, ebx
jmp 0x827799
mov ecx, dword [esp + 4]
mov edx, 0x81
push dword [esp + 0x10]
call fcn.007edd80
add esp, 4
mov bl, 0x10
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x24], 0
jns 0x8277b5
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x38]
and eax, 3
cmp eax, 2
sete al
or bl, al
mov edi, dword [esp + 4]
mov edx, 0x83
mov ecx, edi
push dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
push ebp
call fcn.007c57e0
add esp, 8
or bl, 8
mov ecx, edi
movzx edx, bl
call fcn.00782720
mov eax, esi
mov ecx, edi
mov edx, 5
inc eax
push eax
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.007c57e0
add esp, 8
mov ecx, edi
mov edx, esi
call fcn.007ebd40
mov ecx, edi
mov edx, 0x74
push 0
push ebx
call fcn.007c57e0
add esp, 8
mov ecx, edi
mov edx, 0x74
push 0
push ebp
call fcn.007c57e0
add esp, 8
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x14]
jmp 0x82756e
cmp dword [esp + 0x28], 0
je 0x827843
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x28]
call fcn.007ebd40
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, esi
call fcn.007f0bc0
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.007f0bc0
cmp dword [esp + 0x2c], 0
jne 0x82786b
mov ebx, 1
jmp 0x8278ad
mov ecx, dword [esp + 0x14]
call fcn.00822130
mov esi, dword [esp + 4]
mov edx, 0x44
mov ecx, esi
push 0
push 0
call fcn.007c57e0
add esp, 8
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.007ebd40
mov ecx, esi
mov edx, 0x74
push 0
push dword [esp + 0x14]
call fcn.007c57e0
add esp, 8
xor ebx, ebx
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebp, dword [ebp + 0x14]
jmp 0x827588