Function at 0x4049f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0xe0
lea eax, [ebp - 0xe0]
call fcn.00404f80
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x10
jl 0x404f6f
mov eax, dword [ebp + 8]
push ebx
shr ecx, 4
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor esi, dword [ebp - 0x38]
xor ecx, dword [ebp - 0x40]
xor edx, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x40]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], 9
lea esi, [ebp - 0x20]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
movzx edx, byte [eax + 0x18]
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 0x15]
mov byte [ebp + 0x10], cl
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 0x12]
mov byte [ebp + 0x11], cl
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 0xf]
mov byte [ebp + 0x12], cl
movzx ecx, byte [edx + 0x413470]
mov byte [ebp + 0x13], cl
mov edx, dword [ebp + 0x10]
xor edx, dword [edi - 4]
sub edi, 0x10
mov ebx, edx
mov dword [ebp + 0x10], edx
mov ecx, edx
shr edx, 8
shr ebx, 0x10
movzx edx, dl
movzx ebx, bl
mov dword [ebp - 8], edx
mov dword [ebp - 4], ebx
movzx ebx, byte [ebp + 0x10]
movzx ebx, byte [ebx + 0x418e58]
xor bl, byte [edx + 0x418f58]
mov edx, dword [ebp - 4]
xor bl, byte [edx + 0x419058]
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x419158]
shr ecx, 0x18
xor bl, byte [ecx + 0x419158]
mov byte [eax + 0x18], bl
mov ebx, dword [ebp - 8]
xor dl, byte [ebx + 0x418e58]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x418f58]
mov ebx, dword [ebp - 8]
xor dl, byte [ecx + 0x419058]
mov byte [eax + 0x19], dl
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x419058]
xor dl, byte [ebx + 0x419158]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x418e58]
mov ebx, dword [ebp - 8]
xor dl, byte [ecx + 0x418f58]
mov byte [eax + 0x1a], dl
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x418f58]
xor dl, byte [ebx + 0x419058]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x419158]
xor dl, byte [ecx + 0x418e58]
movzx ecx, byte [eax + 0x14]
mov byte [eax + 0x1b], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 0x11]
mov byte [ebp + 0x10], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 0xe]
mov byte [ebp + 0x11], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 0xb]
mov byte [ebp + 0x12], dl
movzx edx, byte [ecx + 0x413470]
mov byte [ebp + 0x13], dl
mov edx, dword [ebp + 0x10]
xor edx, dword [edi + 8]
mov ecx, edx
mov ebx, edx
shr ecx, 0x18
mov dword [ebp + 0x10], edx
shr ebx, 0x10
shr edx, 8
movzx edx, dl
mov dword [ebp - 8], edx
movzx ebx, bl
mov dword [ebp - 4], ebx
movzx ebx, byte [ebp + 0x10]
movzx ebx, byte [ebx + 0x418e58]
xor bl, byte [edx + 0x418f58]
mov edx, dword [ebp - 4]
xor bl, byte [edx + 0x419058]
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x419158]
xor bl, byte [ecx + 0x419158]
mov byte [eax + 0x14], bl
mov ebx, dword [ebp - 8]
xor dl, byte [ebx + 0x418e58]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x418f58]
mov ebx, dword [ebp - 8]
xor dl, byte [ecx + 0x419058]
mov byte [eax + 0x15], dl
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x419058]
xor dl, byte [ebx + 0x419158]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x418e58]
mov ebx, dword [ebp - 8]
xor dl, byte [ecx + 0x418f58]
mov byte [eax + 0x16], dl
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x418f58]
xor dl, byte [ebx + 0x419058]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x419158]
xor dl, byte [ecx + 0x418e58]
movzx ecx, byte [eax + 0x10]
mov byte [eax + 0x17], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 0xd]
mov byte [ebp + 0x10], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 0xa]
mov byte [ebp + 0x11], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 7]
mov byte [ebp + 0x12], dl
movzx edx, byte [ecx + 0x413470]
mov byte [ebp + 0x13], dl
mov edx, dword [ebp + 0x10]
xor edx, dword [edi + 4]
mov ebx, edx
shr ebx, 0x10
mov dword [ebp + 0x10], edx
movzx ebx, bl
mov ecx, edx
mov dword [ebp - 4], ebx
movzx ebx, byte [ebp + 0x10]
movzx ebx, byte [ebx + 0x418e58]
shr edx, 8
movzx edx, dl
xor bl, byte [edx + 0x418f58]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
xor bl, byte [edx + 0x419058]
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x419158]
shr ecx, 0x18
xor bl, byte [ecx + 0x419158]
mov byte [eax + 0x10], bl
mov ebx, dword [ebp - 8]
xor dl, byte [ebx + 0x418e58]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x418f58]
mov ebx, dword [ebp - 8]
xor dl, byte [ecx + 0x419058]
mov byte [eax + 0x11], dl
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x419058]
xor dl, byte [ebx + 0x419158]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x418e58]
xor dl, byte [ecx + 0x418f58]
mov ebx, dword [ebp - 8]
mov byte [eax + 0x12], dl
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x418f58]
xor dl, byte [ebx + 0x419058]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x419158]
xor dl, byte [ecx + 0x418e58]
movzx ecx, byte [eax + 0xc]
mov byte [eax + 0x13], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 9]
mov byte [ebp + 0x10], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 6]
mov byte [ebp + 0x11], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 3]
mov byte [ebp + 0x12], dl
movzx edx, byte [ecx + 0x413470]
mov byte [ebp + 0x13], dl
mov edx, dword [ebp + 0x10]
xor edx, dword [edi]
mov ebx, edx
mov dword [ebp + 0x10], edx
shr ebx, 0x10
mov ecx, edx
movzx ebx, bl
shr edx, 8
movzx edx, dl
mov dword [ebp - 4], ebx
movzx ebx, byte [ebp + 0x10]
movzx ebx, byte [ebx + 0x418e58]
xor bl, byte [edx + 0x418f58]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
xor bl, byte [edx + 0x419058]
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x419158]
shr ecx, 0x18
xor bl, byte [ecx + 0x419158]
mov byte [eax + 0xc], bl
mov ebx, dword [ebp - 8]
xor dl, byte [ebx + 0x418e58]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x418f58]
mov ebx, dword [ebp - 8]
xor dl, byte [ecx + 0x419058]
mov byte [eax + 0xd], dl
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x419058]
xor dl, byte [ebx + 0x419158]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x418e58]
mov ebx, dword [ebp - 8]
xor dl, byte [ecx + 0x418f58]
mov byte [eax + 0xe], dl
movzx edx, byte [ebp + 0x10]
movzx edx, byte [edx + 0x418f58]
xor dl, byte [ebx + 0x419058]
mov ebx, dword [ebp - 4]
xor dl, byte [ebx + 0x419158]
xor dl, byte [ecx + 0x418e58]
mov ecx, dword [ebp - 0x14]
dec ecx
mov byte [eax + 0xf], dl
mov dword [ebp - 0x14], ecx
test ecx, ecx
jg 0x404a55
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [eax], ecx
mov ecx, dword [eax + 0x18]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
movzx edx, cl
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 0x15]
mov byte [eax + 0x18], cl
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 0x12]
mov byte [eax + 0x19], cl
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 0xf]
mov byte [eax + 0x1a], cl
movzx ecx, byte [edx + 0x413470]
mov edx, dword [edi - 4]
mov byte [eax + 0x1b], cl
xor dword [eax + 0x18], edx
movzx ecx, byte [eax + 0x14]
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 0x11]
mov byte [eax + 0x14], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 0xe]
mov byte [eax + 0x15], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 0xb]
mov byte [eax + 0x16], dl
movzx edx, byte [ecx + 0x413470]
mov ecx, dword [edi - 8]
mov byte [eax + 0x17], dl
xor dword [eax + 0x14], ecx
movzx edx, byte [eax + 0x10]
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 0xd]
mov byte [eax + 0x10], cl
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 0xa]
mov byte [eax + 0x11], cl
movzx ecx, byte [edx + 0x413470]
movzx edx, byte [eax + 7]
mov byte [eax + 0x12], cl
movzx ecx, byte [edx + 0x413470]
mov edx, dword [edi - 0xc]
mov byte [eax + 0x13], cl
xor dword [eax + 0x10], edx
movzx ecx, byte [eax + 0xc]
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 9]
mov byte [eax + 0xc], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 6]
mov byte [eax + 0xd], dl
movzx edx, byte [ecx + 0x413470]
movzx ecx, byte [eax + 3]
mov byte [eax + 0xe], dl
movzx edx, byte [ecx + 0x413470]
mov ecx, dword [edi - 0x10]
mov byte [eax + 0xf], dl
xor dword [eax + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [eax], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jne 0x404a22
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret