Function at 0x40765b
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
lea eax, [edx - 0xa37]
push esi
lea ebx, [ecx + 0xfe3]
mov dword [esp + 0x10], eax
push edi
mov edi, ecx
mov dword [esp + 0x28], ebx
lea eax, [edx - 0x2e37]
mov ecx, edx
mov dword [esp + 0x20], eax
lea esi, [edx - 0x9d2]
xor edi, 0xd83
mov dword [esp + 0x10], esi
add eax, 0x2a8c
mov dword [esp + 0x1c], edi
add ebp, 0xfffffba0
xor ecx, 0x18c5
cmp ebx, eax
je 0x4079e7
mov eax, edi
xor eax, 0x17b
cmp ebp, eax
je 0x407969
mov esi, dword [esp + 0x24]
xor edi, edi
mov ecx, dword [0x93113c]
mov eax, dword [ecx + 0x90]
mov ebx, dword [eax + edi]
add edi, 4
imul ebx, dword [ecx + 0x64]
mov eax, dword [esi + 0xa4]
sub eax, dword [ecx + 0xa8]
inc eax
imul eax, dword [ecx + 8]
mov edx, ebx
shr edx, 0x18
mov dword [ecx + 8], eax
mov ecx, dword [0x976910]
mov eax, dword [0x97692c]
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [0x976910]
mov eax, dword [esi]
add eax, 0x204449
shr edx, 0x10
imul eax, dword [esi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [0x93113c]
mov ecx, dword [eax + 0x78]
mov eax, dword [0x97692c]
mov byte [eax + ecx], dl
mov edx, ebx
mov eax, dword [0x93113c]
shr edx, 8
inc dword [eax + 0x78]
mov eax, dword [0x93113c]
mov ecx, dword [eax + 0x94]
mov eax, dword [eax + 0x78]
mov byte [ecx + eax], dl
mov eax, dword [0x93113c]
inc dword [eax + 0x78]
mov eax, dword [esi + 0x18]
xor eax, dword [0x9768e4]
sub eax, 0xd44e24
imul eax, dword [0x976900]
mov dword [0x976900], eax
mov eax, dword [0x97693c]
sub eax, dword [0x9768b8]
inc eax
imul eax, dword [esi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [0x93113c]
mov ecx, dword [eax + 0x94]
mov eax, dword [eax + 0x78]
mov byte [ecx + eax], bl
mov eax, dword [0x93113c]
inc dword [eax + 0x78]
mov eax, dword [0x9768f0]
add dword [0x976950], eax
mov eax, dword [0x9768d4]
add eax, 0xfffe7f10
add eax, dword [esi + 0x20]
or dword [esi + 0x80], eax
mov eax, dword [esi + 0xb8]
xor eax, dword [0x9768c0]
xor eax, 0xe235d404
add dword [esi + 0x3c], eax
mov ecx, dword [0x93113c]
mov eax, dword [ecx + 8]
dec eax
xor dword [ecx + 0xa4], eax
mov edx, dword [0x93113c]
mov eax, dword [0x976898]
add eax, 0xff7a05f0
add eax, dword [edx + 0x60]
mov dword [0x976898], eax
mov eax, dword [esi + 0x4c]
sub eax, dword [esi]
sub eax, 0x2c5bdd
add dword [edx + 0xd0], eax
cmp edi, 0x7938
jl 0x4076d1
mov eax, dword [esp + 0x1c]
add eax, 0x9d1
push eax
lea eax, [ebp - 0x6af]
push eax
mov eax, ebp
xor eax, 0x525
push eax
mov eax, dword [esp + 0x2c]
xor eax, 0x270f
push eax
mov eax, dword [esp + 0x20]
xor eax, 0x1b3
push eax
lea eax, [ebp + 0x45e]
push eax
push esi
call fcn.00409096
add esp, 0x1c
xor edi, edi
mov eax, dword [0x93113c]
mov ecx, dword [esi + 0x94]
mov eax, dword [eax + 0xa8]
add eax, dword [esi + 0x28]
xor eax, 0xe22fc81a
add dword [esi + 0x60], eax
mov eax, dword [esi + 0x90]
mov ebx, dword [edi + eax]
add edi, 4
imul ebx, dword [esi + 0x64]
mov eax, dword [esi + 0x78]
mov edx, ebx
shr edx, 8
mov byte [ecx + eax], dl
inc dword [esi + 0x78]
mov eax, dword [0x93113c]
mov ecx, dword [esi + 0x60]
sub ecx, 0x85fa10
add dword [eax], ecx
mov ecx, dword [0x9768b8]
mov edx, dword [0x93113c]
add ecx, 0xff7a05f0
mov eax, dword [0x9768f8]
add eax, ecx
add dword [edx + 0x4c], eax
mov ecx, dword [0x93113c]
mov eax, dword [esi + 0x80]
xor eax, 0x8a53da
add dword [ecx + 0xb8], eax
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x94]
mov byte [ecx + eax], bl
inc dword [esi + 0x78]
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x20]
mov eax, dword [0x93113c]
xor ecx, 0xe22fc81a
add dword [eax], ecx
mov ecx, dword [esi + 0xdc]
sub ecx, dword [esi + 0x20]
mov eax, dword [0x93113c]
sub ecx, 0x10
imul ecx, dword [eax]
mov dword [eax], ecx
mov ecx, dword [0x93113c]
mov eax, dword [esi + 0x20]
add dword [ecx + 0x28], eax
cmp edi, 0xd590
jl 0x407858
mov ebx, dword [esp + 0x28]
mov dword [esi + 0x64], 1
push dword [0x93113c]
lea eax, [ebx - 0xafb]
push eax
lea eax, [ebp + 0xaab]
xor ebp, 0x1c7e
push eax
mov eax, dword [esp + 0x28]
add eax, 0x460
push eax
mov eax, dword [esp + 0x30]
xor eax, 0x1bc1
push ebp
push eax
call fcn.00408e74
add esp, 0x18
jmp 0x4079e7
mov ebp, dword [esp + 0x24]
imul eax, dword [ebp + 0x60], 0x353e
xor eax, dword [esp + 0x14]
cmp esi, eax
jne 0x4079e7
mov edx, dword [0x93113c]
lea eax, [ecx + 0x3034]
cmp dword [edx + 0x68], eax
je 0x4079e7
imul eax, dword [0x9768a8], 0x2fa9
mov ecx, dword [edx + 0x44]
add eax, dword [0x9768f4]
push eax
lea eax, [ecx - 0x2fa9]
xor ecx, edi
push eax
mov eax, dword [edx + 0x7c]
add eax, edi
push eax
mov eax, dword [0x9768b8]
or eax, edi
add eax, dword [edx + 0x70]
push eax
mov eax, dword [ebp + 0x84]
sub eax, dword [edx]
push eax
imul eax, ecx, 0x2e37
push eax
push 0x976898
call fcn.0040ab89
mov ecx, dword [0x976964]
add esp, 0x1c
xor ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
xor ebx, 0x12f2
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret