Function at 0x40765b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ebx
push ebp
lea eax, [ecx + 0x79f]
mov ebp, edx
push esi
lea esi, [edx - 0x2fa8]
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x2c]
lea eax, [ecx + 0x998]
mov edx, ecx
mov dword [esp + 0x2c], eax
xor ebp, 0x2fa8
mov dword [esp + 0x14], esi
add eax, 0x880
mov dword [esp + 0x20], ebp
lea ebx, [ecx + 0xad1]
add edi, 0xffffffe1
xor edx, 0x3a19
mov dword [esp + 0x10], ebx
cmp esi, eax
jg 0x4079dc
mov eax, ebp
xor eax, 0x25d6
cmp edi, eax
jl 0x40795e
mov esi, dword [esp + 0x28]
xor ebp, ebp
mov ecx, dword [0x93537c]
mov eax, dword [ecx + 0x90]
mov ebx, dword [eax + ebp]
add ebp, 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 [0x972e40]
mov eax, dword [0x972e5c]
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [0x972e40]
mov eax, dword [esi]
add eax, 0x204449
shr edx, 0x10
imul eax, dword [esi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [0x93537c]
mov ecx, dword [eax + 0x78]
mov eax, dword [0x972e5c]
mov byte [eax + ecx], dl
mov edx, ebx
mov eax, dword [0x93537c]
shr edx, 8
inc dword [eax + 0x78]
mov eax, dword [0x93537c]
mov ecx, dword [eax + 0x94]
mov eax, dword [eax + 0x78]
mov byte [ecx + eax], dl
mov eax, dword [0x93537c]
inc dword [eax + 0x78]
mov eax, dword [esi + 0x18]
xor eax, dword [0x972e14]
sub eax, 0xd44e24
imul eax, dword [0x972e30]
mov dword [0x972e30], eax
mov eax, dword [0x972e6c]
sub eax, dword [0x972de8]
inc eax
imul eax, dword [esi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [0x93537c]
mov ecx, dword [eax + 0x94]
mov eax, dword [eax + 0x78]
mov byte [ecx + eax], bl
mov eax, dword [0x93537c]
inc dword [eax + 0x78]
mov eax, dword [0x972e20]
add dword [0x972e80], eax
mov eax, dword [0x972e04]
add eax, 0xfffe7f10
add eax, dword [esi + 0x20]
or dword [esi + 0x80], eax
mov eax, dword [esi + 0xb8]
xor eax, dword [0x972df0]
xor eax, 0xe235d404
add dword [esi + 0x3c], eax
mov ecx, dword [0x93537c]
mov eax, dword [ecx + 8]
dec eax
xor dword [ecx + 0xa4], eax
mov edx, dword [0x93537c]
mov eax, dword [0x972dc8]
add eax, 0xff7a05f0
add eax, dword [edx + 0x60]
mov dword [0x972dc8], eax
mov eax, dword [esi + 0x4c]
sub eax, dword [esi]
sub eax, 0x2c5bdd
add dword [edx + 0xd0], eax
cmp ebp, 0x78e4
jl 0x4076cf
mov eax, dword [esp + 0x20]
add eax, 0x2400
push eax
lea eax, [edi - 0x11f9]
push eax
mov eax, edi
xor eax, 0x938
push eax
mov eax, dword [esp + 0x38]
xor eax, 0x3f1
push eax
mov eax, dword [esp + 0x20]
xor eax, 0x1231
push eax
lea eax, [edi + 0x3f7]
push eax
push esi
call fcn.00409071
add esp, 0x1c
xor ebp, ebp
mov eax, dword [0x93537c]
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 [eax + ebp]
add ebp, 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 [0x93537c]
mov ecx, dword [esi + 0x60]
sub ecx, 0x85fa10
add dword [eax], ecx
mov ecx, dword [0x972de8]
mov edx, dword [0x93537c]
add ecx, 0xff7a05f0
mov eax, dword [0x972e28]
add eax, ecx
add dword [edx + 0x4c], eax
mov ecx, dword [0x93537c]
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 [0x93537c]
xor ecx, 0xe22fc81a
add dword [eax], ecx
mov ecx, dword [esi + 0xdc]
sub ecx, dword [esi + 0x20]
mov eax, dword [0x93537c]
sub ecx, 0x10
imul ecx, dword [eax]
mov dword [eax], ecx
mov ecx, dword [0x93537c]
mov eax, dword [esi + 0x20]
add dword [ecx + 0x28], eax
cmp ebp, 0xc918
jl 0x407856
mov eax, dword [esp + 0x20]
mov dword [esi + 0x64], 1
add eax, 0x2e56
push dword [0x93537c]
push dword [esp + 0x28]
push edi
push eax
mov eax, dword [esp + 0x3c]
xor edi, 0x35f6
xor eax, 0x1b3
push edi
push eax
call fcn.00408e4f
mov esi, dword [esp + 0x2c]
add esp, 0x18
jmp 0x4079dc
mov edi, dword [esp + 0x28]
imul eax, dword [edi + 0x60], 0x345d
xor eax, dword [esp + 0x18]
cmp ebx, eax
jne 0x4079dc
lea eax, [edx + 0x2627]
mov edx, dword [0x93537c]
cmp dword [edx + 0x68], eax
je 0x4079dc
imul eax, dword [0x972dd8], 0x353e
mov ecx, dword [edx + 0x44]
add eax, dword [0x972e24]
push eax
lea eax, [ecx - 0x322e]
xor ecx, ebp
push eax
mov eax, dword [edx + 0x7c]
add eax, ebp
push eax
mov eax, dword [0x972de8]
or eax, ebp
add eax, dword [edx + 0x70]
push eax
mov eax, dword [edi + 0x84]
sub eax, dword [edx]
push eax
imul eax, ecx, 0x345d
push eax
push 0x972dc8
call fcn.0040ab7c
mov ecx, dword [0x972e94]
add esp, 0x1c
xor ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, 0x345d
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret