Function at 0x413344
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
add edx, 0x54
push ebx
mov ebx, dword [esp + 0x24]
add ecx, 0x208
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [ebx + 0x35]
xor esi, 0x3bb3
mov dword [esp + 0x10], eax
push edi
mov edi, ebx
mov dword [esp + 0x18], edx
xor edi, 0x6b7
mov dword [esp + 0x2c], ecx
xor ebx, 0x659
mov dword [esp + 0x10], edi
lea eax, [esi + 0x3929]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], esi
cmp ecx, eax
jl 0x4133f0
cmp dword [ebp + 0xac], 0xa334
ja 0x4133bb
mov eax, 0x13d5cb
sub eax, dword [0x513c34]
add dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x120]
xor eax, dword [0x513cd8]
mov ecx, dword [ebp + 0x4c]
sub ecx, eax
add ecx, 0xb41e3
xor ecx, 0xc167f
mov dword [ebp + 0x4c], ecx
mov eax, dword [0x513c3c]
add eax, 0x1eba87
add eax, dword [ebp + 0x98]
mov dword [0x513c3c], eax
mov eax, esi
xor eax, 0x3e04
cmp edi, eax
je 0x4135db
mov eax, dword [ebp + 0x124]
xor edi, edi
mov ecx, dword [0x513c88]
sub eax, 0x13889f
push eax
add ecx, 0x193e11
push ecx
push dword [0x513c3c]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [eax + 0x4800]
mov eax, dword [0x462934]
mov dword [eax + 0xcc], ecx
mov eax, dword [0x462934]
mov ecx, dword [eax + 0xf4]
mov eax, dword [ebp + 0xdc]
add ecx, 0x194be1
add eax, ecx
mov dword [ebp + 0x84], eax
mov eax, dword [ebp + 0xcc]
mov dword [ebp + 0xb8], eax
mov eax, dword [ebp + 0xe8]
sub eax, 0xb278a
mov dword [0x513d0c], eax
mov ecx, dword [ebp + 0x108]
mov eax, dword [0x462934]
sub ecx, 0x3b1c99fa
mov dword [eax + 0x80], ecx
mov dword [0x513ca4], 0x4226d8
mov ecx, dword [0x462934]
mov edx, dword [ebp + 0x124]
mov eax, dword [ecx + 0xb4]
mov esi, dword [edi + eax]
add edi, 4
mov eax, dword [ecx + 0x20]
add dword [ebp + 0x48], eax
mov ecx, dword [ebp + 0xe0]
mov eax, dword [ebp + 0xac]
add ecx, 0xffffffb8
add eax, ecx
add dword [ebp + 0x1c], eax
mov eax, dword [0x462934]
mov eax, dword [eax + 0x114]
xor eax, edx
sub eax, 0x1388c2
xor dword [ebp + 0x5c], eax
mov eax, dword [0x462934]
mov eax, dword [eax + 0x20]
sub eax, dword [ebp + 0x70]
inc eax
add dword [ebp + 0x98], eax
mov ecx, dword [0x462934]
mov eax, dword [ecx + 0x34]
xor eax, edx
sub eax, 0x1388dd
imul eax, dword [ecx + 0xa0]
mov dword [ecx + 0xa0], eax
mov eax, dword [ebp + 0x10c]
sub eax, dword [ebp + 0x7c]
mov ebx, dword [ebp + 0x80]
add eax, 0x18c93f
xor dword [ebp + 0x48], eax
mov eax, dword [0x462934]
imul ebx, esi
mov ecx, dword [eax + 0xb8]
mov eax, dword [ebp + 0x84]
mov edx, ebx
shr edx, 8
mov byte [ecx + eax], dl
inc dword [ebp + 0x84]
mov ecx, dword [0x462934]
mov eax, dword [ecx + 0xdc]
add eax, dword [ebp + 0x70]
xor eax, 0x38
add dword [0x513c68], eax
mov eax, dword [ebp + 0x90]
xor eax, dword [ebp + 0x48]
add dword [0x513cb4], eax
mov eax, dword [ebp + 0xf4]
xor eax, 0xffe6b3e8
add dword [ecx + 0x108], eax
mov eax, dword [0x462934]
mov ecx, dword [eax + 0xb8]
mov eax, dword [ebp + 0x84]
mov byte [ecx + eax], bl
inc dword [ebp + 0x84]
mov eax, dword [ebp + 0xa0]
xor dword [ebp + 0x120], eax
mov eax, dword [0x462934]
mov eax, dword [eax + 0x68]
sub eax, dword [ebp + 0x118]
add eax, 0x2571e5
xor dword [ebp + 0x34], eax
mov eax, dword [0x513c10]
inc eax
imul eax, dword [ebp + 0xac]
mov dword [ebp + 0xac], eax
cmp edi, 0x2b5d8
jl 0x413494
jmp 0x4137e7
mov ecx, dword [0x462934]
mov esi, dword [ebp + 0x60]
mov dword [esp + 0x3c], esi
mov eax, dword [ecx + 0xd8]
xor eax, 0x3ddb
sub eax, dword [ecx + 0xfc]
cmp esi, eax
jb 0x4136c1
mov esi, dword [esp + 0x2c]
mov eax, esi
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, esi
imul eax, edi
mov dword [esp + 0x20], eax
jmp 0x41361c
mov esi, dword [esp + 0x2c]
mov eax, dword [ecx + 0xdc]
mov ecx, dword [ebp + 0x6c]
xor eax, 0x3f23
mov edx, dword [ebp + 0x78]
xor ecx, dword [0x513c84]
or edx, dword [esp + 0x28]
sub ecx, dword [esp + 0x30]
add edx, dword [esp + 0x30]
mov edi, dword [ebp + 0xfc]
or edi, dword [esp + 0x1c]
imul ebx, eax, 0x39fc
mov eax, dword [ebp + 0x120]
add eax, 0xffffc546
add esi, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
or eax, 0x3f23
push eax
push ecx
push edx
push dword [0x462934]
push esi
push edi
push ebx
call fcn.00403b70
add esp, 0x1c
mov dword [esp + 0x28], eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x462934]
mov edx, dword [esp + 0x3c]
add edx, 2
mov dword [esp + 0x3c], edx
mov eax, dword [ecx + 0xd8]
xor eax, 0x3ddb
sub eax, dword [ecx + 0xfc]
cmp edx, eax
jae 0x413618
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x114]
xor eax, edx
mov dword [esp + 0x3c], edx
cmp edx, eax
je 0x4137d2
mov esi, ebx
lea eax, [ebx - 0x399d]
xor esi, 0x3fbc
mov dword [esp + 0x20], esi
mov edx, dword [ebp + 0xa8]
mov ecx, eax
mov eax, dword [ebp + 0x20]
or edx, ebx
imul eax, dword [0x513c50]
xor ecx, dword [0x513bfc]
sub edx, dword [0x513c98]
push esi
or eax, ebx
push eax
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x1c]
push ecx
push 0
push eax
push 0x513bf0
push edx
call fcn.00411ce5
mov ecx, dword [ebp + 0x18]
mov edx, eax
mov eax, dword [0x462934]
imul ecx, dword [esp + 0x2c]
mov edi, dword [0x513c58]
add edi, edx
mov esi, dword [eax + 0x7c]
xor edi, 0x39fc
mov eax, dword [eax + 0x34]
xor esi, ebx
sub eax, edx
xor esi, 0x3ddb
xor eax, dword [ebp + 0x120]
push eax
push ecx
push 0x513bf0
push esi
push 0
push edi
call fcn.00413344
mov ecx, dword [0x513bfc]
mov edx, dword [ebp + 0x5c]
xor ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x44]
xor ecx, ebx
mov esi, dword [ebp + 0x6c]
xor edx, edi
or edx, dword [esp + 0x5c]
xor esi, dword [ebp + 0x78]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x88]
imul eax, dword [ebp + 0xbc]
push ebp
or eax, 0x3f31
push eax
push ecx
push edx
push esi
call fcn.0040452d
mov ecx, dword [ebp + 0x114]
add esp, 0x48
xor ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
add eax, 3
mov dword [esp + 0x3c], eax
cmp eax, ecx
lea eax, [ebx - 0x399d]
jne 0x4136e7
mov ecx, dword [ebp + 0x120]
sub ecx, edi
imul ecx, dword [0x513cb0]
mov dword [0x513cb0], ecx
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret