Function at 0x403e99
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov edi, eax
lea ecx, [eax - 0x720]
lea esi, [eax - 0x36]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x2c]
xor edi, 0x4bb
mov ebx, eax
mov dword [esp + 0x10], edi
xor ebx, 0x3f31
lea edx, [eax + 0x37]
lea ebp, [eax - 0x3f31]
mov dword [esp + 0x24], edx
lea eax, [ecx + 0x2a9]
cmp edx, eax
jle 0x4040bf
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
cmp eax, dword [0x513c68]
je 0x403efe
mov dword [esi + 0xb4], 0x489d90
jmp 0x403f15
mov eax, dword [0x462934]
mov eax, dword [eax + 0x90]
add eax, dword [esi + 0x98]
or dword [esi + 0x114], eax
xor edi, edi
mov eax, dword [esi + 0xb4]
push 0x37
mov ecx, dword [edi + eax]
add edi, 4
mov eax, dword [esi + 0x90]
imul eax, dword [esi + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [0x462934]
mov edx, dword [eax + 0x80]
mov eax, dword [0x513cf8]
sub eax, dword [esi + 0xe8]
xor eax, 0xfffdbbad
imul edx, ecx
add dword [esi + 0x7c], eax
mov eax, dword [esi + 0x70]
dec eax
add dword [esi + 0x44], eax
mov eax, dword [0x462934]
mov ecx, dword [esi + 0xb8]
mov eax, dword [eax + 0x124]
sub eax, 0x1388de
imul eax, dword [esi + 0x120]
mov dword [esi + 0x120], eax
mov eax, dword [0x513c74]
mov byte [eax + ecx], dl
inc dword [0x513c74]
mov ecx, dword [esi + 0xdc]
xor ecx, dword [esi + 0x10c]
pop eax
sub eax, ecx
add dword [esi + 0x90], eax
mov eax, dword [0x462934]
push 0x1d
mov ecx, dword [eax + 0x34]
mov eax, dword [0x513c38]
dec eax
add eax, ecx
imul eax, dword [esi + 0xdc]
mov dword [esi + 0xdc], eax
mov eax, dword [0x462934]
mov ecx, dword [eax + 0xa0]
sub ecx, dword [eax + 0x120]
or dword [esi + 0xe0], ecx
mov ecx, dword [esi + 0x114]
mov eax, ecx
xor eax, 0x1d
sub dword [esi + 0x118], eax
pop eax
sub eax, ecx
sub eax, dword [esi + 0x20]
add dword [esi + 0xc4], eax
mov edx, dword [0x462934]
mov eax, dword [0x513cd0]
mov ecx, dword [0x513c60]
add eax, 0xb2d11
sub ecx, dword [edx + 0xe8]
add eax, ecx
mov dword [0x513cd0], eax
mov eax, dword [edx + 0x44]
xor eax, dword [esi + 0xd8]
sub eax, 0x13ffca
imul eax, dword [edx + 0x78]
mov dword [edx + 0x78], eax
cmp edi, 0x86940
jl 0x403f17
mov eax, dword [esi + 0xa0]
add ebp, 0x3aba
mov edi, dword [esp + 0x10]
cmp eax, dword [esi + 0x98]
je 0x404065
mov eax, dword [0x462934]
mov eax, dword [eax + 0x110]
xor eax, 0xed4bfb63
mov dword [esi + 0x80], eax
push 0x513bf0
mov eax, ebp
xor edi, 0x610
xor eax, 0x5d2
push eax
lea eax, [ebx + 0x3f68]
xor ebx, 0x3cc2
push eax
mov eax, dword [esp + 0x30]
push ebx
add eax, 0xfffffe73
push eax
lea eax, [ebp - 0xbe]
push edi
push eax
call fcn.0041274f
mov ecx, dword [0x462934]
add esp, 0x1c
mov eax, dword [ecx + 0x48]
sub eax, 0x410c0f48
xor dword [ecx + 0x80], eax
xor ebp, 0x761
jmp 0x40414a
mov ecx, dword [0x462934]
imul eax, dword [ecx + 0x48], 0x3f68
or eax, dword [ecx + 0x98]
cmp edi, eax
ja 0x404137
mov esi, dword [esp + 0x20]
lea eax, [ebx - 0x39fc]
imul eax, dword [0x513c84]
add edx, eax
mov eax, dword [esi + 0x78]
xor eax, ebp
mov dword [esp + 0x24], edx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x24]
and eax, ebx
sub dword [esi + 0x114], eax
mov eax, ecx
imul eax, edi
add ecx, 0x3d9a
push eax
mov eax, dword [esp + 0x18]
or eax, 0x3716
add eax, 0x36fc
push eax
mov eax, dword [0x462934]
or ecx, dword [eax + 0xfc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x40414a
sub edi, dword [ecx + 0x78]
xor ebx, esi
push ebx
sub edi, 0x39fc
push edi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
pop ecx
ret