Function at 0x7c81b653
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x7c8856cc]
and dword [ebp - 0x63c], 0
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, 0xfffffffc
push esi
mov dword [ebp - 4], eax
push edi
jne 0x7c83843c
lea eax, [ebx - 1]
and eax, ebx
test al, 3
jne 0x7c83843c
mov ecx, dword [ebp + 8]
test ecx, 0xfff00000
jne 0x7c838435
call fcn.7c8304d6
test eax, eax
je 0x7c838435
test bl, 1
je 0x7c848936
cmp dword [0x7c885670], 0
mov edi, dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov ebx, dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov esi, 0x7c885360
jne 0x7c81b6fb
push esi
call edi
cmp dword [0x7c885670], 0
jne 0x7c81b6f8
push 0x20019
push 0x7c81b1e4
push 0x7c81b118
push 0x7c885670
call fcn.7c81aec6
test eax, eax
jne 0x7c84893e
push esi
call ebx
cmp dword [0x7c88538c], 0
jne 0x7c81b734
push esi
call edi
cmp dword [0x7c88538c], 0
jne 0x7c81b731
push 0x20019
push 0x7c81b1ac
push 0x7c81b118
push 0x7c88538c
call fcn.7c81aec6
test eax, eax
jne 0x7c848950
push esi
call ebx
cmp dword [0x7c885038], 0
jne 0x7c81b76d
push esi
call edi
cmp dword [0x7c885038], 0
jne 0x7c81b76a
push 0x20019
push 0x7c81b180
push 0x7c81b118
push 0x7c885038
call fcn.7c81aec6
test eax, eax
jne 0x7c848950
push esi
call ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 8
push 0x10
push dword [ebp + 8]
call sym.KERNEL32.dll_NlsConvertIntegerToString
test eax, eax
jne 0x7c838435
lea eax, [ebp - 0x634]
xor edi, edi
push edi
mov dword [ebp - 0x638], eax
mov esi, 0x214
push esi
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [0x7c885670]
call fcn.7c83045b
test eax, eax
jne 0x7c848962
mov eax, dword [ebp - 0x638]
cmp dword [eax + 0xc], 2
jbe 0x7c81b859
mov ecx, dword [eax + 8]
add ecx, eax
push ecx
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x640]
push eax
push 0x10
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToInteger]
test eax, eax
jne 0x7c81b859
cmp dword [ebp - 0x640], edi
je 0x7c81b859
push edi
lea eax, [ebp - 0x420]
push esi
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x644]
push dword [0x7c885038]
call fcn.7c83045b
test eax, eax
jne 0x7c81b859
mov ecx, dword [ebp - 0x638]
cmp dword [ecx + 0xc], 2
jbe 0x7c81b859
mov eax, dword [ecx + 8]
add eax, ecx
cmp word [eax], 0x31
jne 0x7c81b859
cmp word [eax + 2], di
jne 0x7c81b859
mov dword [ebp - 0x63c], 1
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.7c8097aa
leave
ret 8
sub ah, dl
ja 0x7c83841f
movd esp, mm2
or edi, 0xffffff88
lodsb al, byte [esi]
mov cl, 0x73
add eax, edx
or byte [edi], ah
sub esi, dword [eax + 0x72]
fdiv qword [eax + 0x13739f08]
sti
add dword [edi], edx
pop ds
xchg esp, eax
xchg dword [eax + ecx*8 - 0x75e3613], edx
enter 0xffffffffffffc9ed, 0xffffffffffffffa1
clc
lodsd eax, dword [esi]
sahf
les eax, [ecx]
push edx
jns 0x7c8489d5
int 0xa8
adc bh, byte es:[0x5561f643]
mul byte [ecx + 0x55]
mov edx, 0x33c8278
clc
pop ecx
into
daa
or dl, byte [eax + 0x262f72b7]
invalid
cmp ecx, edx
and ah, byte [edx]
mov cs, word [esi + ebp*4 + 0x7e5c7a30]
mov al, byte [0x18b934a7]
inc edi
cld