Function at 0x4047ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4f7004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, 0xfffffff
push esi
push edi
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebx]
mov edi, dword [ebx + 0x14]
mov ecx, dword [ebx + 8]
and edi, edx
mov dword [ebp - 0x10], eax
and ecx, edx
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
mov al, byte [ebx + 0xc]
mov byte [ebp - 5], al
mov eax, dword [ebx + 0x10]
and eax, edx
mov dword [ebp - 0x2c], ecx
lea ecx, [edi + 0x400000]
mov dword [ebp - 0x48], edi
push eax
mov dword [ebp - 0x34], ecx
call fcn.0040143a
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], esi
test eax, eax
je 0x404ad5
mov ecx, eax
mov ebx, edi
and ecx, 7
not ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x44], ebx
jne 0x404833
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edx
jmp 0x40497c
mov esi, dword [ebp - 0xc]
mov edx, esi
mov ecx, dword [ebp - 0x10]
xor edx, edi
mov eax, ecx
ror edx, 0x11
shr eax, 0x10
imul edx, eax
mov dword [ebp - 0x1c], eax
mov eax, edi
ror eax, 0x14
xor edx, eax
movzx eax, si
xor edx, ebx
movzx ebx, cx
mov esi, edx
mov dword [ebp - 0x3c], ebx
sub esi, eax
mov eax, edx
rol esi, 2
imul esi, ebx
shr eax, 0xa
mov ebx, dword [ebp - 0xc]
xor esi, eax
xor esi, edi
mov edi, dword [ebp - 0xc]
shr edi, 0x10
mov ecx, esi
xor ecx, dword [ebp - 0x10]
mov eax, esi
ror ecx, 2
imul ecx, edi
ror eax, 0xf
mov dword [ebp - 0x20], edi
sub ecx, eax
xor ecx, edx
mov eax, ecx
mov edx, ecx
xor eax, edi
ror edx, 1
movzx edi, bx
imul eax, edi
xor edx, eax
xor edx, esi
mov esi, ebx
movzx eax, si
mov edi, edx
xor edi, eax
mov esi, dword [ebp - 0x10]
rol edi, 3
mov eax, edx
imul edi, dword [ebp - 0x1c]
ror eax, 0x1d
sub edi, eax
xor edi, ecx
mov ecx, edi
mov eax, edi
xor ecx, dword [ebp - 0x20]
imul ecx, dword [ebp - 0x3c]
shr eax, 0xa
add ecx, eax
xor ecx, edx
sub esi, ecx
mov eax, ecx
ror esi, 6
imul esi, dword [ebp - 0x20]
ror eax, 1
sub esi, eax
xor esi, edi
mov edi, ebx
mov edx, esi
movzx eax, di
not edx
ror edx, 1
add edx, eax
imul edx, dword [ebp - 0x20]
xor edx, ecx
mov ecx, edx
xor ecx, edi
ror ecx, 0x1d
imul ecx, dword [ebp - 0x1c]
mov eax, edx
xorps xmm0, xmm0
ror eax, 4
add ecx, eax
movlpd qword [ebp - 0x58], xmm0
xor ecx, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x18], ecx
xor ecx, dword [ebp - 0x10]
sub edi, ecx
mov ecx, dword [ebp - 0x38]
xor edi, edx
mov edx, ecx
mov dword [ebp - 0x14], edi
lea edi, [ebp - 0x58]
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
sub edx, 1
jne 0x404928
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x18]
xor dword [ebp - 0x18], eax
lea edx, [edx + ecx]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x54]
xor dword [ebp - 0x14], eax
mov dword [ebp - 0x48], eax
push 8
pop eax
sub eax, ecx
je 0x40495b
mov byte [edx], 0
inc edx
sub eax, 1
jne 0x404952
mov esi, dword [ebp - 0x28]
lea edi, [ebp - 0x18]
mov ebx, esi
mov edx, ecx
mov al, byte [edi]
inc edi
mov byte [ebx], al
inc ebx
sub edx, 1
jne 0x404965
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edx
lea edi, [ecx + esi]
mov edx, eax
mov dword [ebp - 0x1c], edi
shr edx, 3
mov dword [ebp - 0x3c], edx
test edx, edx
je 0x404acc
mov eax, dword [ebp - 0x10]
sub ecx, edi
movzx edx, ax
mov esi, eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0xc]
movzx ebx, dx
mov dword [ebp - 0x30], ebx
mov ebx, edx
shr ebx, 0x10
shr esi, 0x10
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x34], ecx
mov edi, dword [ecx + edi]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], edi
mov ebx, dword [ecx + ebx + 4]
mov ecx, ebx
xor ecx, eax
mov dword [ebp - 0x54], ebx
xor edx, ecx
mov eax, ecx
ror edx, 0x11
imul edx, esi
ror eax, 0x14
xor edx, eax
xor edx, edi
xor edx, dword [ebp - 0x40]
mov esi, edx
mov eax, edx
sub esi, dword [ebp - 0x30]
rol esi, 2
imul esi, dword [ebp - 0x38]
shr eax, 0xa
xor esi, eax
xor esi, ecx
mov ecx, esi
mov eax, esi
xor ecx, dword [ebp - 0x10]
ror ecx, 2
imul ecx, dword [ebp - 0x24]
ror eax, 0xf
sub ecx, eax
mov eax, dword [ebp - 0x24]
xor ecx, edx
xor eax, ecx
mov edx, ecx
imul eax, dword [ebp - 0x30]
ror edx, 1
xor edx, eax
xor edx, esi
mov esi, edx
mov eax, edx
xor esi, dword [ebp - 0x30]
rol esi, 3
imul esi, dword [ebp - 0x20]
ror eax, 0x1d
sub esi, eax
xor esi, ecx
mov ecx, dword [ebp - 0x24]
xor ecx, esi
mov eax, esi
imul ecx, dword [ebp - 0x38]
shr eax, 0xa
add ecx, eax
xor ecx, edx
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov eax, ecx
ror edx, 6
imul edx, dword [ebp - 0x24]
ror eax, 1
sub edx, eax
xor edx, esi
mov esi, edx
not esi
ror esi, 1
add esi, dword [ebp - 0x30]
imul esi, dword [ebp - 0x24]
xor esi, ecx
mov ecx, esi
mov eax, esi
xor ecx, dword [ebp - 0xc]
ror ecx, 0x1d
imul ecx, dword [ebp - 0x20]
ror eax, 4
add ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, edx
mov edx, ecx
xor edx, dword [ebp - 0x44]
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x18], edx
sub eax, ecx
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x1c]
xor eax, esi
xor eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
mov dword [edi], edx
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], eax
add edi, 8
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x1c], edi
jne 0x4049c2
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov al, byte [esi + eax - 1]
mov ebx, dword [ebp - 0x4c]
jmp 0x404ad8
mov al, byte [ebp - 5]
cmp al, byte [ebp - 5]
je 0x404ae2
call fcn.0040116e
mov eax, dword [ebx + 0x1c]
and eax, 0xfffffff
je 0x404b07
push 4
mov dword [ebp - 0x4c], 0x400000
lea edx, [ebp - 0x4c]
pop ecx
lea edi, [eax + esi]
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x404afc
mov eax, dword [ebx + 0x18]
and eax, 0xfffffff
je 0x404b16
call fcn.00460150
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00401678
mov eax, esi
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00448363
leave
ret