Function at 0x406555
Capabilities:
Encode data using xor

Disassembly:
test ebx, ebx
je 0x41f2a3
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x31c], eax
je 0x41f2a3
test eax, eax
jle 0x41f2a3
xor eax, eax
lea ebx, [ebx]
lea edx, [eax + 1]
imul edx, edx, 0x1ab
xor dx, word [eax*2 + 0x58b484]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 0xa
jl 0x401cd5
jmp 0x41f290
push ebp
mov ebp, esp
sub esp, 0x330
jmp 0x42a2ca
sub eax, dword [ebp - 0x320]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
je 0x4082f8
cmp dword [esi + 0x14], 0
jle 0x4082f8
add ebx, dword [ebx]
mov edx, dword [ebp - 0x310]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x310], eax
test eax, eax
jne 0x42a31b
test ebx, ebx
je 0x543d4a
mov esi, dword [ebp - 0x324]
jmp 0x4f7048
xor eax, eax
lea edx, [eax + 1]
imul edx, edx, 0x6210
xor dx, word [eax*2 + 0x58b448]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 0xd
jl 0x40b193
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x20c]
jmp 0x44c796
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [edi + 0x22c]
test eax, eax
je 0x4082e4
cmp byte [eax + 0x14], 0
je 0x4082e4
mov edx, dword [esi + 4]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x320], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f2c9
jmp 0x4082d2
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x318], eax
mov eax, dword [edi + 0x260]
mov dword [ebp - 0x324], ecx
mov ecx, dword [edi + 0x1e0]
xor ebx, ebx
mov dword [ebp - 0x310], ecx
mov dword [edi + 0x40298], 2
test eax, eax
je 0x42a313
mov ebx, dword [eax + 0x28]
add ebx, eax
test ecx, ecx
je 0x543d4a
mov edx, dword [ebp - 0x310]
jmp 0x4aa11c
add esp, 0x18
mov dword [ebp - 0x32c], eax
mov dword [edi + 0x40298], 8
test eax, eax
je 0x44c7b4
test ebx, ebx
je 0x4a54aa
cmp byte [ebp - 0xd], 0
jne 0x4a54aa
mov edx, dword [ebp - 0x314]
cmp dword [edx + 0x14], 0
jle 0x4a54aa
mov eax, dword [ebp - 0x330]
mov ecx, dword [esi + 0x1c]
inc dword [ebp - 0x31c]
mov dword [eax], ecx
mov dword [eax + 4], 0
add eax, 8
mov dword [ebp - 0x330], eax
push 0x4a54aa
ret
imul edx, edx, 0x2e79
xor dx, word [eax*2 + 0x58b49c]
inc eax
mov word [ebp + eax*2 - 0x30e], dx
cmp eax, 0xc
jl 0x44f4fb
mov eax, dword [ebp - 0x310]
mov ecx, dword [ebp - 0x324]
imul eax, eax, 0x2048
lea edx, [eax + ecx + 8]
push edx
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x10c]
jmp 0x4531ce
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005481a9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
je 0x56c828
lea esp, [esp]
lea edx, [eax + 1]
imul edx, edx, 0x6256
push 0x56c808
ret
jl 0x56c828
mov edx, dword [esi]
push edx
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x30c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005481a9
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov edi, edi
lea edx, [eax + 1]
jmp 0x446096
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005481a9
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x22c]
mov dword [edi + 0x40298], 9
test eax, eax
je 0x577780
cmp byte [eax + 0x14], 0
je 0x577780
cmp dword [esi + 4], 0
je 0x577780
mov edx, dword [esi + 8]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x320], ecx
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a54e7
sub eax, dword [ebp - 0x320]
jmp 0x577774
mov esi, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x314], esi
cmp dword [esi + 0x14], ecx
jle 0x4e9a42
mov ecx, dword [ebp - 0x318]
mov dword [edi + 0x40298], 3
mov eax, dword [esi]
push eax
call fcn.004652bf
mov ecx, eax
add esp, 4
mov dword [edi + 0x40298], 4
test ecx, ecx
jne 0x4e9a42
mov ecx, dword [esi]
push eax
push ecx
mov ecx, dword [ebp - 0x318]
call fcn.0042b588
mov ecx, eax
add esp, 8
test ecx, ecx
jmp 0x4e9a3c
je 0x40b191
test ebx, ebx
je 0x4e9a81
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x4e9a81
cdq
push 0x100
mov dword [ebx + 0x14], edx
lea edx, [ebx + 0x18]
push edx
push 0x100
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], 0
mov eax, dword [esi]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x31c], 0
jmp 0x4fb176
mov dword [ebp - 0x310], eax
cmp dword [esi], eax
jle 0x543d4a
add esi, 0x2048
mov edi, edi
mov ecx, dword [ebp - 0x318]
lea edi, [esi - 0x2040]
push edi
call fcn.004652bf
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4f7097
mov ecx, dword [ebp - 0x318]
push eax
push edi
call fcn.0042b588
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x44f4f7
mov eax, dword [esi]
cdq
push 0x100
jmp 0x54eada
test eax, eax
je 0x401cae
lea ecx, [ebx + 0x218]
mov dword [ebp - 0x330], ecx
jmp 0x4fb195
mov dword [edi + 0x40298], 6
mov esi, dword [eax]
mov dword [edi + 0x40298], 7
mov byte [ebp - 0x10c], 0
mov byte [ebp - 0xd], 0
mov eax, dword [esi + 4]
push 0
test eax, eax
jmp 0x571aea
mov eax, dword [ebp - 0x310]
mov ecx, dword [ebp - 0x324]
add ebx, dword [ebx]
inc eax
add esi, 0x2048
mov dword [ebp - 0x310], eax
cmp eax, dword [ecx]
jl 0x4f705e
mov eax, 1
push 0x40b17e
ret
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x18]
push eax
push 0x100
push edi
push 0
push 0
mov dword [ebx + 0x14], edx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi]
cdq
mov dword [ebx + 0x14], edx
xor edx, edx
mov dword [ebx + 0x10], eax
cmp dword [esi], edx
jle 0x543d27
lea ecx, [ebx + 0x218]
lea eax, [esi - 0x1f40]
push 0x543d0a
ret
lea ecx, [eax + 1]
imul ecx, ecx, 0x4c37
xor cx, word [eax*2 + 0x58b474]
inc eax
mov word [ebp + eax*2 - 0x30e], cx
cmp eax, 7
jmp 0x44f4a6
je 0x571b0f
lea edx, [ebp - 0x10c]
push edx
mov edx, dword [ebp - 0x318]
push 0
push eax
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax]
push ecx
push edx
jmp 0x571b2b
mov ecx, dword [esi]
mov edx, dword [ebp - 0x314]
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp - 0x318]
push 0
push eax
push ecx
call fcn.005390e3
jmp 0x442104
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x32c]
mov ecx, dword [ebp - 0x328]
mov dword [edi + 0x40298], 0xa
mov edx, dword [esi + 0xc]
mov dword [edx], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x328], eax
mov dword [edi + 0x40298], 0xc
jmp dword [0x5777b5]