Function at 0x832790
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 0x83310d
cmp dword [ecx + 0x108], 0
jne 0x83310d
cmp dword [edi + 0x40], 0
jne 0x83310d
mov eax, dword [ecx]
mov ebp, ecx
mov esi, edx
mov dword [esp + 0x20], eax
call fcn.00811e40
test eax, eax
jne 0x83310d
cmp dword [esi + 0x38], 0
mov dword [esp + 0x14], ebp
jne 0x83310d
mov ebp, dword [esp + 0x50]
cmp ebp, 0xb
jne 0x8327ff
cmp word [esi + 0x28], 0
js 0x8327fa
movzx ebp, byte [esi + 0x32]
cmp ebp, 0xb
jne 0x8327ff
mov ebp, 2
mov eax, dword [edi + 0x20]
cmp dword [eax], 1
jne 0x83310d
cmp dword [eax + 0x1c], 0
jne 0x83310d
cmp dword [edi + 0x24], 0
jne 0x83310d
cmp dword [edi + 0x30], 0
jne 0x83310d
cmp dword [edi + 0x28], 0
jne 0x83310d
cmp dword [edi + 0x3c], 0
jne 0x83310d
cmp dword [edi + 0x34], 0
jne 0x83310d
test byte [edi + 4], 1
jne 0x83310d
mov ecx, dword [edi + 0x1c]
cmp dword [ecx], 1
jne 0x83310d
mov ecx, dword [ecx + 4]
cmp byte [ecx], 0xb1
jne 0x83310d
mov ecx, dword [esp + 0x14]
add eax, 8
xor ebx, ebx
xor edx, edx
push eax
call fcn.0080c090
add esp, 4
test eax, eax
mov dword [esp + 0xc], eax
je 0x83310d
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
cmp eax, dword [esi + 0x1c]
jne 0x8328a5
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x48]
cmp eax, dword [esi + 0x48]
je 0x83310d
mov eax, dword [esp + 0xc]
mov al, byte [eax + 0x24]
xor al, byte [esi + 0x24]
js 0x83310d
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x38], 0
jne 0x83310d
mov eax, dword [esp + 0xc]
cmp dword [eax + 0xc], 0
jne 0x83310d
movzx eax, word [esi + 0x2a]
mov ecx, dword [esp + 0xc]
cmp ax, word [ecx + 0x2a]
jne 0x83310d
movzx ecx, word [esi + 0x28]
mov edx, dword [esp + 0xc]
cmp cx, word [edx + 0x28]
jne 0x83310d
test ax, ax
jle 0x832a2b
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 0x83310b
mov edi, edx
test ax, ax
je 0x83296c
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.007fd4a0
add esp, 8
test eax, eax
jne 0x83310d
mov edx, dword [esp]
mov ecx, dword [esp + 4]
movzx eax, byte [edi + edx + 0xd]
cmp al, byte [ecx + edx + 0xd]
jne 0x83310b
mov eax, dword [esp + 4]
mov ecx, dword [esp]
push dword [eax + ecx + 8]
push dword [edi + ecx + 8]
call fcn.00783700
add esp, 8
test eax, eax
jne 0x83310b
mov eax, dword [esp + 8]
lea eax, [eax + eax*4]
cmp byte [edi + eax*4 + 0xc], 0
je 0x8329be
mov ecx, dword [esp + 4]
cmp byte [ecx + eax*4 + 0xc], 0
je 0x83310b
cmp dword [esp + 8], 0
je 0x832a12
mov eax, dword [esp]
lea eax, [edi + eax + 0x10]
movzx eax, word [eax]
and eax, 0x60
test ax, ax
jne 0x832a12
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 0x83310b
test eax, eax
je 0x832a12
push dword [ecx + 8]
push dword [eax + 8]
call fcn.00989f30
add esp, 8
test eax, eax
jne 0x83310b
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 0x832906
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 8], eax
jne 0x832a3f
mov dword [esp], 0
jmp 0x832abe
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 0x83310d
mov ecx, dword [esp + 8]
mov edx, edi
call fcn.008335f0
test eax, eax
jne 0x832a85
mov eax, edi
mov eax, dword [edi + 0x14]
jmp 0x832a65
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 8]
cmp eax, dword [ecx + 0x2c]
jne 0x832aaf
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x48]
cmp eax, dword [esi + 0x48]
jne 0x832aaf
mov ecx, 0x19b
call fcn.00798510
test eax, eax
je 0x83310d
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [esp + 8], eax
jne 0x832a48
mov edx, dword [esi + 0x18]
test edx, edx
je 0x832ae0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x18]
push 0xffffffffffffffff
call fcn.007fd8b0
add esp, 4
xor ebx, ebx
test eax, eax
jne 0x83310d
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x24]
test dword [ecx + 0x20], 0x4000
je 0x832afc
xor ebx, ebx
cmp dword [esi + 0x10], 0
jne 0x83310d
xor ebx, ebx
test al, 1
jne 0x83310d
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x48]
call fcn.0078dee0
mov edi, dword [esp + 0x14]
mov ebx, eax
mov ecx, edi
call fcn.007f7590
mov ecx, edi
mov edx, ebx
mov dword [esp + 4], eax
mov dword [esp + 0x30], ebx
call fcn.007fea70
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.00833120
add esp, 4
mov ecx, edi
mov dword [esp + 8], eax
call fcn.007fcfa0
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.007fcfa0
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov ecx, edi
push 0x61
push esi
push dword [esp + 0x5c]
call fcn.007f77f0
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], 0
test byte [eax + 0x18], 4
jne 0x832bf2
cmp word [esi + 0x28], 0
jns 0x832bb0
cmp dword [esp], 0
jne 0x832bbe
mov eax, dword [esi + 8]
test eax, eax
je 0x832bb6
jmp 0x832bbe
cmp dword [esp], 0
jne 0x832bbe
lea eax, [ebp - 1]
cmp eax, 2
jb 0x832bf2
mov edi, dword [esp + 4]
mov edx, 0x25
mov ecx, edi
push 0
push dword [esp + 0x14]
call fcn.007d10d0
add esp, 8
mov ecx, edi
mov edx, 0xb
mov ebx, eax
call fcn.007f75b0
mov ecx, edi
mov edx, ebx
mov dword [esp + 0x2c], eax
call fcn.007f75c0
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x24], 0
js 0x832d91
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.007f77f0
add esp, 0xc
mov ecx, dword [esp + 4]
mov edx, 0x25
push 0
push edi
call fcn.007d10d0
add esp, 8
cmp word [esi + 0x28], 0
mov dword [esp + 0x28], eax
js 0x832ca6
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.007d10d0
add esp, 8
mov dword [esp], eax
mov ecx, edi
mov edx, 0x20
push ebx
push 0
push dword [esp + 0x18]
call fcn.007d10f0
add esp, 0xc
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov edx, ebp
mov ecx, ebx
push esi
call fcn.00832150
add esp, 4
mov edx, dword [esp + 0x34]
mov ecx, edi
call fcn.007f75c0
mov edx, dword [esp + 8]
mov ecx, ebx
push dword [esp + 0x1c]
call fcn.008335c0
add esp, 4
jmp 0x832ce5
cmp dword [esi + 8], 0
jne 0x832cc9
mov eax, dword [esp + 0x20]
test byte [eax + 0x18], 8
jne 0x832cc9
mov ecx, dword [esp + 4]
mov edx, 0x78
push dword [esp + 0x1c]
push dword [esp + 0x14]
jmp 0x832cda
mov ecx, dword [esp + 4]
mov edx, 0x7f
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.007d10d0
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.007d10f0
add esp, 0xc
mov eax, dword [esp + 0x20]
mov di, 0x29
test byte [eax + 0x18], 4
je 0x832d27
mov ecx, dword [esp + 4]
mov edx, 0x81
push dword [esp + 0x10]
call fcn.007f9600
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.007f75d0
add esp, 0x14
movzx edx, di
mov ecx, ebx
call fcn.0078e010
mov ecx, ebx
mov edx, 5
push dword [esp]
mov edi, dword [esp + 0x1c]
push edi
call fcn.007d10d0
add esp, 8
mov ecx, ebx
mov edx, 0x74
push 0
push edi
call fcn.007d10d0
add esp, 8
mov ecx, ebx
mov edx, 0x74
push 0
push ebp
call fcn.007d10d0
add esp, 8
jmp 0x832dcb
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
mov ecx, edi
push dword [esi]
push 1
push dword [esi + 0x1c]
call fcn.007f78a0
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.007f78a0
add esp, 0xc
mov dword [esp + 0x28], 0
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 8], eax
je 0x83308f
mov eax, dword [esp + 0xc]
mov dword [esp], 0
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x832e02
mov ecx, dword [esp + 8]
mov edx, ebp
call fcn.008335f0
test eax, eax
je 0x833117
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.007d10f0
add esp, 0xc
mov esi, dword [esp + 0x14]
mov edx, ebp
mov ecx, esi
call fcn.007f7980
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.007d10f0
add esp, 0xc
mov ecx, esi
mov edx, ebp
call fcn.007f7980
mov ecx, edi
mov edx, 1
call fcn.0078e010
mov ecx, edi
mov edx, 0x25
push 0
push ebx
call fcn.007d10d0
add esp, 8
mov esi, eax
mov ecx, edi
mov edx, 0x7e
push 1
push dword [esp + 0x28]
push ebx
call fcn.007d10f0
add esp, 0xc
mov eax, dword [esp + 0x20]
xor ebx, ebx
test byte [eax + 0x18], 4
je 0x832ff9
mov eax, dword [esp]
movzx ebp, word [eax + 0x34]
test ebp, ebp
je 0x832fda
mov eax, dword [esp]
xor ebx, ebx
mov eax, dword [eax + 0x20]
mov dword [esp], eax
mov edx, fcn.007bc330
movzx ecx, byte [0xbb3b93]
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 0x832fba
mov al, byte [0xbb3b93]
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 [0xbb3b93], ah
jne 0x832ee8
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 0x832f44
cmp edx, 3
movzx ecx, byte [0xbb3b93]
sete al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jae 0x832f27
jmp 0x832fba
cmp edx, 3
movzx ecx, byte [0xbb3b93]
sete al
or al, 4
add al, 4
and al, 7
movzx eax, al
bt ecx, eax
jb 0x832f9e
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 [0xbb3b8c], edi
shl ah, cl
or byte [0xbb3b93], 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 [0xbb3b93], al
mov eax, dword [esp]
push dword [eax + ebx*4]
push str.2_p0
call fcn.00783700
add esp, 8
test eax, eax
jne 0x832fda
inc ebx
cmp ebx, ebp
jb 0x832eb9
cmp ebx, ebp
je 0x832fe2
xor ebx, ebx
jmp 0x832ff9
mov ecx, dword [esp + 4]
mov edx, 0x81
push dword [esp + 0x10]
call fcn.007f9600
add esp, 4
mov bl, 0x10
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x24], 0
jns 0x833015
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.007d10d0
add esp, 8
or bl, 8
mov ecx, edi
movzx edx, bl
call fcn.0078e010
mov eax, esi
mov ecx, edi
mov edx, 5
inc eax
push eax
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.007d10d0
add esp, 8
mov ecx, edi
mov edx, esi
call fcn.007f75c0
mov ecx, edi
mov edx, 0x74
push 0
push ebx
call fcn.007d10d0
add esp, 8
mov ecx, edi
mov edx, 0x74
push 0
push ebp
call fcn.007d10d0
add esp, 8
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x14]
jmp 0x832dce
cmp dword [esp + 0x28], 0
je 0x8330a3
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x28]
call fcn.007f75c0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, esi
call fcn.007fc440
mov edx, dword [esp + 0x24]
mov ecx, esi
call fcn.007fc440
cmp dword [esp + 0x2c], 0
jne 0x8330cb
mov ebx, 1
jmp 0x83310d
mov ecx, dword [esp + 0x14]
call fcn.0082d970
mov esi, dword [esp + 4]
mov edx, 0x44
mov ecx, esi
push 0
push 0
call fcn.007d10d0
add esp, 8
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.007f75c0
mov ecx, esi
mov edx, 0x74
push 0
push dword [esp + 0x14]
call fcn.007d10d0
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 0x832de8