Function at 0x1004f200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [edx + 0x28]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x1004f2fc
mov eax, dword [edx]
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], ecx
xor eax, 2
or eax, dword [edx + 4]
jne 0x1004f307
mov eax, dword [edx + 8]
mov ebx, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
mov dword [esp + 0x14], edx
mov edi, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], esi
mov edx, esi
xor eax, 0x6e657261
xor esi, 0x74656462
xor edi, 0x70736575
xor edx, 0x646f7261
mov dword [esp + 0x40], edi
mov edi, ebx
xor ebx, 0x6c796765
xor edi, 0x736f6d65
mov dword [esp + 0x44], edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x4c], ebx
mov ebx, ecx
xor ecx, 0x79746573
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edx
xor ebx, 0x6e646f6d
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
cmp byte [edi], 1
jne 0x1004f354
lea esi, [esp + 0x30]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 1
mov ecx, esi
push 4
call fcn.10017fe0
add esp, 4
mov edx, dword [edi + 4]
mov ecx, esi
push dword [edi + 8]
jmp 0x1004f380
mov dword [ecx], 0
jmp 0x1004f6bc
cmp byte [edi], 1
jne 0x1004f58a
mov esi, dword [edi + 8]
test esi, esi
je 0x1004f59d
mov dword [esp + 0x14], edx
mov edx, edi
mov edi, dword [edi + 4]
mov ebx, 0xad2aca77
mov eax, 0x47985764
nop
movzx ecx, byte [edi]
mov edx, 0x1b3
imul ebx, ebx, 0x1b3
inc edi
xor ecx, eax
mov eax, ecx
shl ecx, 8
mul edx
add ecx, edx
add ebx, ecx
dec esi
jne 0x1004f330
jmp 0x1004f581
lea esi, [esp + 0x30]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov ecx, esi
push 4
call fcn.10017fe0
add esp, 4
movzx eax, byte [edi + 1]
lea edx, [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x18], eax
push 4
call fcn.10017fe0
add esp, 4
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x54]
shl edx, 0x18
mov dword [esp + 0x24], esi
or edx, dword [esp + 0x64]
mov dword [esp + 0x1c], edx
xor ecx, edx
mov edx, dword [esp + 0x58]
xor edx, esi
add eax, edi
mov esi, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
adc eax, ebx
shld esi, ebx, 0xd
shld ebx, edi, 0xd
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
xor ebx, eax
mov eax, dword [esp + 0x48]
xor esi, dword [esp + 4]
add eax, edx
mov dword [esp + 8], eax
mov eax, edx
adc edi, ecx
shrd edx, ecx, 0x10
shld eax, ecx, 0x10
mov dword [esp + 0x10], edi
xor edx, edi
mov edi, dword [esp + 4]
xor eax, dword [esp + 8]
add dword [esp + 0xc], eax
mov ecx, eax
adc edi, edx
shld ecx, edx, 0x15
shrd eax, edx, 0xb
mov edx, esi
mov dword [esp + 4], edi
xor eax, edi
xor ecx, dword [esp + 0xc]
add dword [esp + 8], esi
mov edi, dword [esp + 0x10]
adc edi, ebx
shld edx, ebx, 0x11
shrd esi, ebx, 0xf
mov ebx, dword [esp + 4]
xor edx, dword [esp + 8]
xor esi, edi
xor edi, 0xff
mov dword [esp + 0x10], edi
xor ebx, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 4]
xor ebx, dword [esp + 0x24]
add ebx, edx
mov dword [esp + 0xc], ebx
mov ebx, edx
adc edi, esi
shrd edx, esi, 0x13
shld ebx, esi, 0xd
mov dword [esp + 4], edi
xor edx, edi
mov edi, dword [esp + 8]
mov esi, ecx
xor ebx, dword [esp + 0xc]
add dword [esp + 0x10], ecx
adc edi, eax
shld esi, eax, 0x10
shrd ecx, eax, 0x10
xor esi, dword [esp + 0x10]
xor ecx, edi
mov dword [esp + 8], edi
mov edi, dword [esp + 0xc]
add dword [esp + 4], esi
mov eax, esi
adc edi, ecx
shld eax, ecx, 0x15
shrd esi, ecx, 0xb
mov ecx, ebx
mov dword [esp + 0xc], edi
xor esi, edi
xor eax, dword [esp + 4]
add dword [esp + 0x10], ebx
mov edi, dword [esp + 8]
adc edi, edx
shld ecx, edx, 0x11
shrd ebx, edx, 0xf
mov edx, dword [esp + 4]
xor ecx, dword [esp + 0x10]
xor ebx, edi
mov dword [esp + 8], edi
add edx, ecx
mov edi, ecx
adc dword [esp + 0xc], ebx
shld edi, ebx, 0xd
shrd ecx, ebx, 0x13
mov dword [esp + 4], edx
mov ebx, eax
xor edi, edx
xor ecx, dword [esp + 0xc]
add dword [esp + 8], eax
mov edx, dword [esp + 0x10]
adc edx, esi
shrd eax, esi, 0x10
shld ebx, esi, 0x10
mov dword [esp + 0x10], edx
xor eax, edx
mov edx, dword [esp + 8]
xor ebx, edx
add dword [esp + 0xc], ebx
mov esi, ebx
adc dword [esp + 4], eax
shld esi, eax, 0x15
shrd ebx, eax, 0xb
mov eax, dword [esp + 0x10]
xor ebx, dword [esp + 4]
xor esi, dword [esp + 0xc]
add edx, edi
mov dword [esp + 8], edx
mov edx, edi
adc eax, ecx
shld edx, ecx, 0x11
shrd edi, ecx, 0xf
mov ecx, dword [esp + 0xc]
xor edx, dword [esp + 8]
xor edi, eax
mov dword [esp + 0x10], eax
add ecx, edx
mov eax, edx
adc dword [esp + 4], edi
shld eax, edi, 0xd
shrd edx, edi, 0x13
mov edi, dword [esp + 0x10]
xor eax, ecx
mov ecx, dword [esp + 8]
xor edx, dword [esp + 4]
add edi, esi
adc ecx, ebx
shrd esi, ebx, 0x10
xor esi, ecx
shr esi, 0xb
add edi, eax
mov eax, edx
adc ecx, edx
shr eax, 0xf
xor eax, esi
xor eax, ecx
xor eax, edi
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
jmp 0x1004f5a3
movzx eax, byte [edi + 1]
mov ecx, edi
xor eax, 0x13f5
imul eax, eax, 0xffffbc91
jmp 0x1004f5a3
mov ax, 0x5764
mov ecx, edi
and eax, 0x7fff
mov ebx, dword [edx + 0x1c]
mov dword [esp + 0xc], 0
mov esi, eax
movzx eax, word [edx + 0x38]
mov dword [esp + 0x10], esi
movzx edi, ax
mov eax, esi
mov esi, dword [edx + 0x18]
mov edx, dword [edx + 0x20]
and eax, edi
mov dword [esp + 4], edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x14], edx
mov dl, byte [ecx + 1]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x28], edi
mov byte [esp + 0x24], dl
mov dword [esp + 0x1c], ecx
jmp 0x1004f607
mov ecx, dword [esp + 0x14]
movzx edx, byte [esp + 0x24]
cmp byte [ecx + eax + 1], dl
je 0x1004f69c
nop dword [eax]
inc dword [esp + 0xc]
inc edi
mov eax, edi
mov edi, eax
cmp eax, ebx
mov eax, 0
jae 0x1004f607
movzx eax, word [esi + edi*4]
cmp eax, 0xffff
je 0x1004f6b2
mov dword [esp + 8], eax
mov eax, esi
movzx eax, word [esi + edi*4 + 2]
mov edx, edi
mov ecx, eax
and ecx, dword [esp + 4]
sub edx, ecx
and edx, dword [esp + 4]
cmp dword [esp + 0xc], edx
ja 0x1004f6b2
cmp ax, word [esp + 0x10]
jne 0x1004f600
mov ecx, dword [esp + 8]
cmp dword [esp + 0x2c], ecx
jbe 0x1004f6c4
imul eax, ecx, 0x38
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
movzx ecx, byte [ecx + eax]
cmp cl, byte [edx]
jne 0x1004f600
test cl, cl
je 0x1004f5e9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp dword [ecx + eax + 8], edx
jne 0x1004f600
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax + 4]
cmp eax, dword [esp + 0x28]
je 0x1004f69c
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1004f600
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 8]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x1004f6bc
mov eax, dword [esp + 0x20]
mov dword [eax], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x2c]
push 0x10419498
call fcn.10008300
add esp, 4
ud2