Function at 0x411c12
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43e338
call fcn.0043b810
sub esp, 0x74
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], ebx
lea ecx, [eax + 0xc4]
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x6c], ebx
call fcn.0043b630
mov ecx, 0x8000
mov dword [ebp - 4], ebx
call fcn.0043b400
cmp eax, ebx
mov dword [ebp - 0x14], eax
setne al
cmp al, bl
jne 0x411c72
push str.Can_not_allocate_memory
lea ecx, [esi + 0x8c]
call fcn.004048ae
mov byte [esi + 0x98], 1
jmp 0x411df4
lea edi, [esi + 4]
mov dword [ebp - 0x24], ebx
mov ecx, edi
mov dword [ebp - 0x20], ebx
call fcn.0041137f
push 0x3020800
mov edx, 0xfd2
lea ecx, [ebp - 0x3c]
call fcn.0040bf13
push 0x453138
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004032f7
lea ecx, [ebp - 0x58]
call fcn.004031db
push 3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004034f8
lea eax, [esi + 0x7c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.00411398
test al, al
je 0x411dc3
cmp byte [ebp - 0xd], bl
je 0x411e0b
mov eax, dword [ebp - 0x60]
shr eax, 4
test al, 1
jne 0x411d06
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
add dword [ebp - 0x24], eax
adc dword [ebp - 0x20], ecx
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x48]
call fcn.004036cc
mov ecx, dword [esi]
push eax
add ecx, 0xc8
mov byte [ebp - 4], 4
call fcn.00404141
push dword [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0042690e
mov edi, dword [esi]
pop ecx
add edi, 0xc8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x20]
push edi
mov dword [edi + 0x24], eax
mov dword [edi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi]
push ebx
push ebx
add ecx, 0xc8
call fcn.00423c78
push dword [ebp - 0x30]
cmp eax, ebx
mov dword [esi + 0x78], eax
jne 0x411ddc
call fcn.0042690e
push dword [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0042690e
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004031db
push 3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004034f8
lea eax, [esi + 0x7c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 4]
jmp 0x411cda
lea eax, [ebp - 0x30]
lea ecx, [esi + 0x80]
push eax
mov byte [esi + 0x98], 1
call fcn.0040328e
push dword [ebp - 0x30]
call fcn.0042690e
push dword [ebp - 0x58]
call fcn.0042690e
push dword [ebp - 0x3c]
call fcn.0042690e
add esp, 0xc
mov ecx, dword [ebp - 0x14]
call fcn.0043b420
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp - 0x30]
call fcn.0042690e
push dword [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0042690e
mov edi, dword [esi]
pop ecx
pop ecx
add edi, 0xc8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x28], ebx
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x20]
push edi
mov dword [edi + 0x24], eax
mov dword [edi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [esi + 4]
mov ecx, edi
call fcn.0041137f
lea ecx, [ebp - 0x58]
call fcn.004031db
push 3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004034f8
lea eax, [esi + 0x7c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x80]
push eax
mov ecx, edi
call fcn.00411398
test al, al
je 0x41204a
cmp byte [ebp - 0xd], bl
je 0x41208d
mov eax, dword [ebp - 0x60]
or edi, 0xffffffff
shr eax, 4
test al, 1
je 0x411eb7
add dword [esi + 0x60], 1
adc dword [esi + 0x64], ebx
jmp 0x411f7e
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x30]
lea edx, [esi + 8]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.004036cc
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00429db1
push dword [ebp - 0x48]
mov byte [ebp - 4], 7
neg al
sbb al, al
inc al
mov byte [ebp - 0xe], al
call fcn.0042690e
cmp byte [ebp - 0xe], bl
pop ecx
jne 0x412062
add dword [esi + 0x58], 1
mov ecx, dword [esi]
lea eax, [ebp - 0x30]
push eax
adc dword [esi + 0x5c], ebx
add ecx, 0xc8
call fcn.00404141
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push 0x8000
push dword [ebp - 0x14]
call fcn.00429df9
test al, al
je 0x412062
cmp dword [ebp - 0x1c], ebx
je 0x411f6b
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, edi
call fcn.0043b3b0
mov edi, eax
mov eax, dword [ebp - 0x1c]
add dword [esi + 0x68], eax
mov ecx, dword [esi]
adc dword [esi + 0x6c], ebx
push dword [esi + 0x6c]
add ecx, 0xc8
push dword [esi + 0x68]
call fcn.00423c78
cmp eax, ebx
mov dword [esi + 0x78], eax
jne 0x412081
jmp 0x411f12
mov eax, edi
lea ecx, [ebp - 0x18]
not eax
add dword [esi + 0x70], eax
mov byte [ebp - 4], 6
call fcn.00429b88
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jle 0x411fd6
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov edx, edi
mov cx, word [eax]
mov eax, 0xff
movzx ecx, cl
and edx, eax
xor edx, ecx
mov ecx, edi
shr ecx, 8
mov edi, dword [edx*4 + 0x455900]
mov edx, dword [ebp - 0x18]
xor edi, ecx
xor ecx, ecx
mov cl, byte [edx + 1]
mov edx, edi
movzx ecx, cl
add dword [ebp - 0x18], 2
and edx, eax
xor ecx, edx
shr edi, 8
mov eax, dword [ecx*4 + 0x455900]
xor edi, eax
dec dword [ebp - 0x20]
jne 0x411f8e
push dword [esi + 0x6c]
mov ecx, dword [esi]
not edi
push dword [esi + 0x68]
add dword [esi + 0x74], edi
add ecx, 0xc8
call fcn.00423c78
push dword [ebp - 0x30]
cmp eax, ebx
mov dword [esi + 0x78], eax
jne 0x412090
call fcn.0042690e
push dword [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0042690e
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004031db
push 3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004034f8
lea eax, [esi + 0x7c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 4]
jmp 0x411e88
lea eax, [ebp - 0x30]
lea ecx, [esi + 0x80]
push eax
mov byte [esi + 0x98], 1
call fcn.0040328e
jmp 0x41208d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x7c], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 0x80]
mov byte [esi + 0x98], 1
call fcn.0040328e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00429b88
push dword [ebp - 0x30]
call fcn.0042690e
push dword [ebp - 0x58]
jmp 0x411de4