Function at 0x822ae0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push esi
mov eax, dword [ecx + 0x74]
test eax, eax
cmove eax, ecx
mov eax, dword [eax + 0x104]
test eax, eax
je 0x822b07
mov esi, dword [esp + 0xc]
cmp dword [eax], edx
jne 0x822b00
cmp dword [eax + 0xc], esi
je 0x822b0d
mov eax, dword [eax + 4]
test eax, eax
jne 0x822af7
pop esi
jmp 0x822b10
pop esi
ret
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov dword [esp + 8], edx
mov edx, 0x18
mov eax, dword [0xbcbae0]
xor eax, esp
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], ecx
mov ebx, dword [ecx + 0x74]
mov ebp, dword [ecx]
test ebx, ebx
cmove ebx, ecx
mov ecx, ebp
push 0
call fcn.0077efb0
add esp, 4
xor edi, edi
test eax, eax
je 0x822f32
mov esi, eax
mov eax, dword [ebx + 0x104]
mov ecx, ebp
mov edx, 0x1c
mov dword [esi + 4], eax
mov dword [ebx + 0x104], esi
push 0
call fcn.0077efb0
add esp, 4
test eax, eax
mov dword [esi + 8], eax
je 0x822f32
mov ecx, dword [ebx + 8]
mov edx, eax
mov dword [esp + 0x10], eax
call fcn.00822f50
mov eax, esi
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x5c]
mov edx, 0x114
mov dword [esp + 0x18], eax
mov dword [eax], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], 0xffffffff
mov ecx, ebp
push 0
call fcn.0077efb0
add esp, 4
test eax, eax
je 0x822f32
mov ecx, ebx
mov ebx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], ebx
mov dword [ebx], ebp
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x74], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [ebx + 0xf0], eax
mov al, byte [esi + 8]
mov byte [ebx + 0x90], al
mov eax, dword [ecx + 0x84]
mov dword [ebx + 0x84], eax
mov al, byte [ecx + 0x19]
mov ecx, ebx
mov byte [ebx + 0x19], al
call fcn.007ebd10
test eax, eax
mov dword [esp], eax
je 0x822f1e
mov eax, dword [esi]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0xc], ebp
test eax, eax
je 0x822e16
mov edi, fcn.007f6010
mov esi, eax
xor eax, eax
movzx edx, byte [0xbb2b13]
imul edi, edi
and edi, 3
cmp edi, 3
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x822dec
mov al, byte [0xbb2b13]
mov ebp, ebx
xor edx, edx
cmp edi, 3
sete dl
mov ecx, edx
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dl, 1
or cl, 4
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb2b13], dl
jne 0x822c9c
mov ecx, fcn.007f6010
xor ebx, ebx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete bl
mov edx, ebx
xor edx, 1
lea edx, [edx + ebx*2]
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x822d16
mov ebx, ebp
xor eax, eax
cmp ecx, 3
movzx edi, byte [0xbb2b13]
sete al
mov edx, eax
xor edx, 1
lea eax, [edx + eax*2]
or al, 4
movzx eax, al
bt edi, eax
jae 0x822cf0
jmp 0x822dec
xor eax, eax
cmp ecx, 3
movzx edx, byte [0xbb2b13]
mov ebx, ebp
sete al
mov ecx, eax
xor ecx, 1
lea eax, [ecx + eax*2]
or al, 4
movzx eax, al
bt edx, eax
jb 0x822dc1
mov eax, fcn.007f6010
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 0x6fc32c39
lea ecx, [eax + ecx*2 + 0x704]
mov eax, dword [0xbb2b00]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb2b00], eax
not eax
imul edx, eax
mov eax, dword [0xbb2b04]
lea edi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb2b04], eax
or edi, edx
not eax
mov edx, dword [0xbb2b08]
imul eax, edi
lea edi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb2b08], edx
or edi, eax
not edx
mov al, 1
imul edx, edi
shl al, cl
xor dword [0xbb2b0c], edx
or byte [0xbb2b13], al
mov eax, fcn.007f6010
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
sete cl
mov eax, ecx
xor eax, 1
lea ecx, [eax + ecx*2]
mov al, 0xfe
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb2b13], al
push esi
push 0xbb2b00
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00782620
add esp, 0xc
mov ecx, dword [esp]
mov edx, 0xffffffff
push 0xfffffffffffffff9
push eax
call fcn.00782820
add esp, 8
mov esi, dword [esp + 8]
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x822e24
mov ebp, dword [esp]
xor edi, edi
jmp 0x822e7a
mov ecx, ebp
push 0
call fcn.007f0780
add esp, 4
lea ecx, [esp + 0x20]
mov edx, eax
mov esi, eax
call fcn.007f6c60
xor edi, edi
test eax, eax
je 0x822e48
mov ebp, dword [esp]
jmp 0x822e6f
cmp byte [ebp + 0x51], 0
mov ebp, dword [esp]
jne 0x822e6f
mov ebx, dword [esp + 4]
mov ecx, ebx
call fcn.007efdc0
mov edi, eax
push 0x10
push eax
push esi
push ebx
mov ebx, dword [esp + 0x24]
call fcn.007f0850
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.007c00e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [eax + 0x1c]
push dword [esp + 0x5c]
call fcn.00822f60
add esp, 4
test edi, edi
je 0x822e9e
mov ecx, ebp
mov edx, edi
call fcn.007f04f0
mov ecx, ebp
mov edx, 0x44
call fcn.007ebd30
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 4]
mov ecx, edi
call fcn.00823240
mov esi, ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp byte [ebp + 0x51], 0
jne 0x822eea
cmp dword [edi + 0x24], 0
jne 0x822eea
mov edx, dword [esp + 0x10]
add ebx, 0x60
mov ecx, esi
add edx, 4
push ebx
call fcn.00823270
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 8]
mov dword [ecx + 0x14], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0x8c]
mov dword [ecx + 0x14], eax
mov ecx, esi
call fcn.007a1e20
mov ecx, ebx
call fcn.00783660
mov ecx, ebp
mov edx, ebx
call fcn.00774f10
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00980459
mov eax, edi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret