Function at 0x4aa2cb
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esi + 4]
xor eax, eax
test ecx, ecx
je 0x4240dc
lea esp, [esp]
lea edx, [eax + 1]
imul edx, edx, 0x6256
xor dx, word [eax*2 + 0x56a464]
inc eax
mov word [ebp + eax*2 - 0x30e], dx
cmp eax, 7
jl 0x4240b3
push ecx
jmp 0x4c1a85
lea ecx, [eax + 1]
imul ecx, ecx, 0x4c37
xor cx, word [eax*2 + 0x56a474]
inc eax
mov word [ebp + eax*2 - 0x30e], cx
cmp eax, 7
jl 0x4240dc
jmp 0x4c1a82
call fcn.0052df32
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov edi, edi
lea edx, [eax + 1]
imul edx, edx, 0x2e79
xor dx, word [eax*2 + 0x56a49c]
inc eax
mov word [ebp + eax*2 - 0x30e], dx
cmp eax, 0xc
jl 0x43d7d9
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
jmp 0x46957a
mov eax, dword [edi + 0x22c]
test eax, eax
je 0x50c4bc
cmp byte [eax + 0x14], 0
je 0x50c4bc
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 0x447019
jmp 0x50c4aa
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x31c], 0
test eax, eax
je 0x4b1434
lea ecx, [ebx + 0x218]
mov dword [ebp - 0x330], ecx
jmp 0x545c6c
mov eax, dword [edi + 0x22c]
mov dword [edi + 0x40298], 9
test eax, eax
je 0x4687f5
cmp byte [eax + 0x14], 0
je 0x4687f5
cmp dword [esi + 4], 0
je 0x4687f5
mov edx, dword [esi + 8]
mov eax, edx
jmp dword [0x45bba2]
lea ecx, [ebx + 0x218]
lea eax, [esi - 0x1f40]
lea esp, [esp]
mov edi, dword [eax]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
inc edx
add eax, 8
add ecx, 8
cmp edx, dword [esi]
jl 0x45fe42
mov eax, dword [ebp - 0x310]
mov ecx, dword [ebp - 0x324]
add ebx, dword [ebx]
inc eax
add esi, 0x2048
jmp 0x527596
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
test eax, eax
jne 0x545c71
jmp 0x4b142e
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x10c]
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.0052df32
mov esp, ebp
pop ebp
ret 4
test eax, eax
je 0x48d4fb
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 0x48d517
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.00405939
add esp, 0x18
jmp 0x4ec81a
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
jmp 0x4bdbbe
mov esi, dword [ebp - 0x314]
test ebx, ebx
je 0x446ff3
mov eax, dword [esi + 0x14]
cmp dword [ebp - 0x31c], eax
je 0x446ff3
test eax, eax
jle 0x446ff3
xor eax, eax
lea ebx, [ebx]
lea edx, [eax + 1]
imul edx, edx, 0x1ab
xor dx, word [eax*2 + 0x56a484]
inc eax
mov word [ebp + eax*2 - 0x10e], dx
cmp eax, 0xa
jl 0x4b145b
jmp dword [0x4b1484]
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 0x4bdbf7
mov ebx, dword [eax + 0x28]
add ebx, eax
test ecx, ecx
je 0x5275a4
mov edx, dword [ebp - 0x310]
mov esi, dword [edx]
xor ecx, ecx
mov dword [ebp - 0x314], esi
cmp dword [esi + 0x14], ecx
jle 0x54c385
mov ecx, dword [ebp - 0x318]
jmp dword [0x4bdc24]
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
jmp 0x43d7ca
push edi
call fcn.00408963
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x43d7d5
mov eax, dword [esi]
cdq
push 0x100
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 0x45fe5b
jmp 0x45fe32
mov dword [ebp - 0x32c], eax
mov dword [edi + 0x40298], 8
test eax, eax
je 0x4240a2
test ebx, ebx
je 0x45bb68
cmp byte [ebp - 0xd], 0
jne 0x45bb68
mov edx, dword [ebp - 0x314]
cmp dword [edx + 0x14], 0
jle 0x45bb68
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
jmp dword [0x4ec87c]
sub eax, dword [ebp - 0x320]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
test ebx, ebx
je 0x50c4d0
cmp dword [esi + 0x14], 0
jle 0x50c4d0
add ebx, dword [ebx]
mov edx, dword [ebp - 0x310]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x310], eax
test eax, eax
jne 0x4bdbff
test ebx, ebx
je 0x5275a4
mov esi, dword [ebp - 0x324]
mov dword [ebp - 0x310], eax
cmp dword [esi], eax
jle 0x5275a4
jmp 0x532eaa
mov dword [ebp - 0x310], eax
cmp eax, dword [ecx]
jl 0x532eb2
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0052df32
mov esp, ebp
pop ebp
ret 4
add esi, 0x2048
mov edi, edi
mov ecx, dword [ebp - 0x318]
lea edi, [esi - 0x2040]
push edi
call fcn.00402a57
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4df3bd
mov ecx, dword [ebp - 0x318]
push eax
jmp 0x4df3aa
jmp 0x545c77
mov eax, dword [ebp - 0x328]
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
jmp 0x48d4d4
test ebx, ebx
je 0x456629
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x456629
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
jmp dword [0x54c3be]