Function at 0x405e45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
push ebx
lea eax, [ebp - 0x198]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0xffffffff
push esi
push edi
push 0x41e47c
push eax
call sub.MSVCRT20.dll_strcpy
add esp, 8
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0xffffffff
lea eax, [ebp - 3]
mov ecx, esi
push eax
call fcn.00405708
test eax, eax
je 0x40602f
cmp byte [ebp - 3], 1
jne 0x406036
lea eax, [ebp - 2]
mov ecx, esi
push eax
call fcn.00405708
test eax, eax
je 0x40603d
cmp byte [ebp - 2], 0
mov dword [ebp - 0x14], edi
jbe 0x405f6a
push 2
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.00405770
test eax, eax
je 0x406044
movzx eax, byte [ebp - 0x34]
cmp eax, 2
je 0x405efd
cmp eax, 4
je 0x40604b
cmp eax, 0x11
je 0x405f1a
jmp 0x405f5a
movzx eax, byte [ebp - 0x33]
push eax
lea ecx, [ebp - 0x198]
push ecx
mov ecx, esi
call fcn.00405770
test eax, eax
je 0x406291
jmp 0x405f55
xor edi, edi
cmp byte [ebp - 0x33], 0
jbe 0x405f4c
lea eax, [ebp - 1]
mov ecx, esi
push eax
call fcn.00405708
test eax, eax
je 0x406291
test ebx, ebx
jge 0x405f43
cmp byte [ebp - 1], 0x85
jne 0x405f43
movzx ebx, byte [ebp - 1]
movzx eax, byte [ebp - 0x33]
inc edi
cmp eax, edi
jg 0x405f22
test ebx, ebx
jge 0x405f55
mov ebx, 0xfffffffe
mov edi, 1
movzx eax, byte [ebp - 2]
inc dword [ebp - 0x14]
cmp eax, dword [ebp - 0x14]
jg 0x405ecf
cmp ebx, 0xfffffffe
je 0x40626f
mov byte [ebp - 0x34], 1
mov byte [ebp - 0x33], 0
test edi, edi
je 0x405f83
mov byte [ebp - 0x33], 1
test ebx, ebx
jl 0x405f8a
inc byte [ebp - 0x33]
push 2
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.004056b0
test eax, eax
je 0x406291
test ebx, ebx
jl 0x405fc6
push 3
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov byte [ebp - 0x34], 0x11
mov byte [ebp - 0x33], 1
mov byte [ebp - 0x32], bl
call fcn.004056b0
test eax, eax
je 0x406291
mov dword [ebp - 0x18], ebx
test edi, edi
je 0x405e8b
xor edi, edi
inc edi
call dword [sym.imp.MSVCRT20.dll_rand]
cdq
xor eax, edx
sub eax, edx
and eax, 0x3f
xor eax, edx
sub eax, edx
cmp edi, 0x40
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwyxz0123456789_]
mov byte [ebp + edi - 0x99], al
jl 0x405fd0
push 2
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
mov byte [ebp - 0x34], 3
mov byte [ebp - 0x33], 0x40
call fcn.004056b0
test eax, eax
je 0x406291
push 0x40
lea eax, [ebp - 0x98]
push eax
mov ecx, esi
call fcn.004056b0
test eax, eax
jne 0x405e8b
jmp 0x406291
xor eax, eax
jmp 0x4062ca
xor eax, eax
jmp 0x4062ca
xor eax, eax
jmp 0x4062ca
xor eax, eax
jmp 0x4062ca
movzx eax, byte [ebp - 0x33]
inc eax
push eax
call dword [sym.imp.MSVCRT20.dll_malloc]
add esp, 4
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x406080
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
jmp 0x406289
movzx eax, byte [ebp - 0x33]
push eax
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.00405770
test eax, eax
jne 0x4060b2
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
jmp 0x406289
cmp dword [ebp - 0x18], 0
jge 0x4060d7
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
jmp 0x406289
mov ecx, esi
call fcn.00405855
lea ecx, [ebp - 0x198]
push ecx
push eax
call fcn.00404d7f
add esp, 8
mov edi, eax
test edi, edi
je 0x406122
push edi
call sub.MSVCRT20.dll_strlen
add esp, 4
inc eax
push eax
call dword [sym.imp.MSVCRT20.dll_malloc]
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x406122
push edi
push ebx
call sub.MSVCRT20.dll_strcpy
add esp, 8
mov eax, 1
mov dword [ebp - 0x20], ebx
jmp 0x406124
xor eax, eax
test eax, eax
jne 0x406147
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
jmp 0x406289
cmp dword [ebp - 0x18], 0x85
je 0x40616f
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
jmp 0x406289
push 0x14
call dword [sym.imp.MSVCRT20.dll_malloc]
add esp, 4
mov edi, eax
test edi, edi
je 0x4061b2
push edi
lea ecx, [ebp - 0x98]
push dword [ebp - 0x20]
push 0x40
push ecx
call fcn.0041a0e0
add esp, 0x10
test eax, eax
jne 0x4061a8
mov ecx, 0x10
mov eax, 1
mov dword [ebp - 0x24], edi
jmp 0x4061b7
push edi
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x4061da
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
jmp 0x406289
movzx eax, byte [ebp - 0x33]
cmp eax, ecx
je 0x406201
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
jmp 0x406289
push ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call sub.MSVCRT20.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x406253
mov ebx, 1
xor eax, eax
push 5
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0x14], bl
mov ecx, esi
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], al
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], al
call fcn.004056b0
lea ecx, [ebp - 0x198]
push ecx
mov ecx, esi
call fcn.0040555e
push 2
mov ecx, esi
call fcn.004059ff
mov dword [ebp - 0x28], ebx
jmp 0x406291
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
jmp 0x406289
mov eax, 1
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], al
push ecx
mov ecx, esi
call fcn.004056b0
cmp dword [ebp - 0x1c], 0
je 0x4062a3
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x4062b5
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x4062c7
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT20.dll_free]
add esp, 4
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret