Function at 0x1004d840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, edx
movsd xmm0, qword [ecx]
mov edx, dword [ecx + 0x10]
movsd xmm1, qword [ecx + 8]
mov ecx, dword [eax + 0x10]
movsd xmm2, qword [eax + 8]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [eax]
mov dword [esp + 0xc0], ecx
mov ecx, esi
mov dword [esp + 0x38], edx
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0xb8], xmm2
movsd qword [esp + 0xb0], xmm0
call fcn.1004e220
mov eax, dword [esi]
mov dword [esp + 0x18], esi
xor eax, 2
or eax, dword [esi + 4]
jne 0x1004d99c
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov edi, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], esi
xor eax, 0x6e657261
xor edi, 0x70736575
mov dword [esp + 0x78], edi
mov edi, ecx
xor ecx, 0x6c796765
xor edi, 0x736f6d65
mov dword [esp + 0x7c], edi
mov edi, edx
mov dword [esp + 0x84], ecx
mov ecx, esi
xor edx, 0x79746573
xor esi, 0x74656462
mov dword [esp + 0x80], eax
xor edi, 0x6e646f6d
xor ecx, 0x646f7261
cmp byte [esp + 0x28], 1
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], esi
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
jne 0x1004d9f8
lea esi, [esp + 0x68]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 1
mov ecx, esi
push 4
call fcn.10018260
add esp, 4
mov edx, dword [esp + 0x2c]
mov ecx, esi
push dword [esp + 0x30]
jmp 0x1004da25
mov al, byte [esp + 0x28]
cmp al, 1
mov byte [esp + 7], al
jne 0x1004dc01
mov esi, dword [esp + 0x30]
mov byte [esp + 7], 1
test esi, esi
je 0x1004e1cd
mov edi, dword [esp + 0x2c]
mov ebx, 0xad2aca77
mov ecx, 0x47985764
nop dword [eax + eax]
mov eax, ecx
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
mov ecx, eax
jne 0x1004d9d0
jmp 0x1004dbfb
lea esi, [esp + 0x68]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0
mov ecx, esi
push 4
call fcn.10018260
add esp, 4
movzx eax, byte [esp + 0x29]
lea edx, [esp + 0x40]
mov ecx, esi
mov dword [esp + 0x40], eax
push 4
call fcn.10018260
add esp, 4
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x7c]
shl edx, 0x18
xor esi, edi
mov dword [esp + 0x14], edi
mov edi, eax
or edx, dword [esp + 0x9c]
mov dword [esp + 0x64], edx
xor ecx, edx
mov edx, dword [esp + 0x78]
add edx, eax
mov dword [esp + 8], edx
mov edx, dword [esp + 0x8c]
adc ebx, edx
shld edi, edx, 0xd
shld edx, eax, 0xd
mov eax, dword [esp + 0x80]
mov dword [esp], ebx
xor edx, ebx
mov ebx, dword [esp + 8]
xor edi, ebx
add eax, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x84]
adc eax, ecx
mov dword [esp + 0x1c], eax
mov eax, esi
shrd esi, ecx, 0x10
shld eax, ecx, 0x10
xor esi, dword [esp + 0x1c]
xor eax, dword [esp + 0xc]
add dword [esp], eax
mov ecx, eax
adc ebx, esi
shld ecx, esi, 0x15
shrd eax, esi, 0xb
mov esi, edi
xor eax, ebx
xor ecx, dword [esp]
add dword [esp + 0xc], edi
adc dword [esp + 0x1c], edx
shld esi, edx, 0x11
shrd edi, edx, 0xf
mov edx, ebx
mov ebx, dword [esp + 0x14]
xor esi, dword [esp + 0xc]
xor edx, dword [esp + 0x64]
xor dword [esp], ebx
mov ebx, dword [esp + 0x1c]
xor edi, ebx
xor ebx, 0xff
add dword [esp], esi
adc edx, edi
mov dword [esp + 8], edx
mov edx, esi
shrd esi, edi, 0x13
shld edx, edi, 0xd
xor esi, dword [esp + 8]
mov edi, ecx
xor edx, dword [esp]
add ebx, ecx
adc dword [esp + 0xc], eax
shld edi, eax, 0x10
shrd ecx, eax, 0x10
xor edi, ebx
xor ecx, dword [esp + 0xc]
add dword [esp + 8], edi
mov eax, edi
adc dword [esp], ecx
shld eax, ecx, 0x15
shrd edi, ecx, 0xb
mov ecx, edx
xor edi, dword [esp]
xor eax, dword [esp + 8]
add ebx, edx
adc dword [esp + 0xc], esi
shld ecx, esi, 0x11
shrd edx, esi, 0xf
xor ecx, ebx
xor edx, dword [esp + 0xc]
add dword [esp + 8], ecx
mov esi, ecx
adc dword [esp], edx
shld esi, edx, 0xd
shrd ecx, edx, 0x13
mov edx, eax
xor ecx, dword [esp]
xor esi, dword [esp + 8]
add dword [esp + 0xc], eax
adc ebx, edi
shld edx, edi, 0x10
shrd eax, edi, 0x10
xor edx, dword [esp + 0xc]
xor eax, ebx
add dword [esp], edx
mov edi, edx
adc dword [esp + 8], eax
shld edi, eax, 0x15
shrd edx, eax, 0xb
mov eax, esi
xor edx, dword [esp + 8]
xor edi, dword [esp]
add dword [esp + 0xc], esi
adc ebx, ecx
shld eax, ecx, 0x11
shrd esi, ecx, 0xf
mov ecx, eax
xor esi, ebx
xor ecx, dword [esp + 0xc]
add dword [esp], ecx
mov eax, ecx
adc dword [esp + 8], esi
shld eax, esi, 0xd
shrd ecx, esi, 0x13
mov esi, dword [esp + 0xc]
xor eax, dword [esp]
xor ecx, dword [esp + 8]
add ebx, edi
adc esi, edx
shrd edi, edx, 0x10
xor edi, esi
shr edi, 0xb
add ebx, eax
mov al, byte [esp + 0x28]
adc esi, ecx
shr ecx, 0xf
xor ecx, edi
xor ecx, esi
xor ecx, ebx
mov byte [esp + 7], al
mov esi, dword [esp + 0x18]
jmp 0x1004dc11
movzx eax, byte [esp + 0x29]
xor eax, 0x13f5
imul ecx, eax, 0xffffbc91
movzx eax, word [esi + 0x38]
and ecx, 0x7fff
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x18]
mov dword [esp], 0
mov dword [esp + 8], ecx
movzx edx, ax
mov eax, ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x1c], edx
and eax, edx
lea edx, [esi + 0x20]
mov dword [esp + 0x58], edx
mov dl, byte [esp + 0x29]
mov byte [esp + 0x23], dl
mov edx, dword [esi + 0x28]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x20]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xa8], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov edx, edi
mov dword [esp + 0xac], esi
jmp 0x1004dc9a
mov eax, dword [esp + 0x14]
movzx edx, byte [esp + 0x23]
mov ecx, dword [esp + 0x60]
cmp byte [eax + ecx + 1], dl
je 0x1004dd59
nop dword [eax]
inc dword [esp]
mov edx, dword [esp + 0x64]
inc edi
mov eax, edi
mov edi, eax
cmp eax, edx
mov eax, 0
jae 0x1004dc9a
movzx esi, word [ebx + edi*4]
cmp esi, 0xffff
je 0x1004de60
mov eax, ebx
mov edx, edi
movzx eax, word [ebx + edi*4 + 2]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xc], edx
mov ecx, edi
and ecx, eax
sub edx, ecx
and edx, edi
cmp edx, dword [esp]
jb 0x1004dfac
cmp ax, word [esp + 8]
mov edi, dword [esp + 0xc]
jne 0x1004dc90
cmp dword [esp + 0x24], esi
jbe 0x1004e1d6
mov eax, dword [esp + 0x14]
movzx edx, byte [esp + 7]
imul ecx, esi, 0x38
cmp byte [eax + ecx], dl
jne 0x1004dc90
cmp byte [esp + 7], 1
mov dword [esp + 0x60], ecx
jne 0x1004dc72
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0x60]
cmp dword [eax + ecx + 8], edx
jne 0x1004dc90
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx + 4]
cmp eax, dword [esp + 0xa8]
je 0x1004dd59
push dword [esp + 0xac]
push dword [esp + 0xac]
push eax
call sub.VCRUNTIME140.dll_memcmp
mov ecx, dword [esp + 0x6c]
add esp, 0xc
test eax, eax
jne 0x1004dc90
mov eax, dword [esp + 0xc0]
movsd xmm0, qword [esp + 0xb0]
movsd xmm1, qword [esp + 0xb8]
mov edx, dword [esp + 0x24]
mov ebx, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
movsd qword [esp + 0x70], xmm1
movsd qword [esp + 0x68], xmm0
cmp dword [eax + ecx + 0x28], 1
jne 0x1004dda5
mov edi, dword [esp + 0x18]
mov edx, dword [eax + ebx + 0x2c]
mov ecx, edi
call fcn.1004eab0
mov edx, dword [edi + 0x28]
cmp edx, esi
jbe 0x1004e20d
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
movsd xmm0, qword [eax + ebx + 0x14]
movsd xmm1, qword [eax + ebx + 0x1c]
movsd qword [esp + 0xe8], xmm1
movsd qword [esp + 0xe0], xmm0
mov dl, byte [eax + ebx + 0x27]
mov cl, byte [eax + ebx + 0x24]
mov byte [esp + 0x12], dl
movzx edx, word [eax + ebx + 0x25]
mov word [esp + 0x10], dx
mov edx, dword [esp + 0x78]
mov dword [eax + ebx + 0x24], edx
mov edx, dword [esp + 0x5c]
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
movsd qword [eax + ebx + 0x1c], xmm1
movsd qword [eax + ebx + 0x14], xmm0
movsd xmm0, qword [esp + 0xe0]
movsd xmm1, qword [esp + 0xe8]
cmp byte [esp + 0x28], 0
mov al, byte [esp + 0x12]
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm0
mov byte [edx + 0x10], cl
movzx ecx, word [esp + 0x10]
mov byte [edx + 0x13], al
mov word [edx + 0x11], cx
je 0x1004e1c5
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x34]
push dword [esp + 0x30]
push dword [esp + 0x30]
push ecx
call dword [eax + 4]
add esp, 0xc
jmp 0x1004e1c5
movsd xmm0, qword [esp + 0x28]
movsd xmm1, qword [esp + 0x30]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xc0]
movsd qword [esp + 0xd0], xmm1
movsd qword [esp + 0xc8], xmm0
movsd xmm0, qword [esp + 0xb0]
movsd xmm1, qword [esp + 0xb8]
cmp ebx, 0x7fff
mov dword [esp + 0xd8], eax
mov dword [esp + 0x50], ecx
movsd qword [esp + 0x48], xmm1
movsd qword [esp + 0x40], xmm0
ja 0x1004e1eb
mov eax, dword [esp + 0xd8]
movsd xmm1, qword [esp + 0xd0]
movsd xmm0, qword [esp + 0xc8]
movsd xmm2, qword [esp + 0x40]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x78], eax
movsd qword [esp + 0x70], xmm1
mov eax, dword [esp + 0x50]
movsd xmm1, qword [esp + 0x48]
movsd qword [esp + 0x68], xmm0
movsd qword [esp + 0x7c], xmm2
mov dword [esp + 0x8c], eax
movsd qword [esp + 0x84], xmm1
mov eax, ebx
cmp ebx, dword [esi + 0x24]
jne 0x1004df34
mov ecx, dword [esp + 0x58]
mov edx, 1
call fcn.1004ea00
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x28]
movsd xmm0, qword [esp + 0x88]
mov edx, dword [esp + 0x14]
imul eax, eax, 0x38
mov ecx, dword [esp + 8]
movsd qword [edx + eax + 0x20], xmm0
movsd xmm0, qword [esp + 0x80]
movsd qword [edx + eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [edx + eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
movsd qword [edx + eax + 8], xmm1
movsd qword [edx + eax], xmm0
mov dword [edx + eax + 0x28], 0
mov word [edx + eax + 0x34], cx
inc dword [esi + 0x28]
mov edx, dword [esi + 0x1c]
cmp edi, edx
jae 0x1004e204
mov eax, dword [esi + 0x18]
mov word [eax + edi*4], bx
mov word [eax + edi*4 + 2], cx
jmp 0x1004e174
mov esi, dword [esp + 0x18]
cmp dword [esp], 0x1ff
movsd xmm0, qword [esp + 0x28]
movsd xmm1, qword [esp + 0x30]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
seta bh
xor eax, 2
or eax, dword [esi + 4]
mov eax, dword [esp + 0x38]
movsd qword [esp + 0xd0], xmm1
movsd qword [esp + 0xc8], xmm0
mov dword [esp + 0x50], ecx
movsd xmm0, qword [esp + 0xb0]
movsd xmm1, qword [esp + 0xb8]
mov ecx, dword [esp + 8]
setne bl
cmp edx, 0x7fff
mov dword [esp + 0xd8], eax
movsd qword [esp + 0x48], xmm1
movsd qword [esp + 0x40], xmm0
ja 0x1004e1eb
mov eax, dword [esp + 0xd8]
movsd xmm1, qword [esp + 0xd0]
movsd xmm0, qword [esp + 0xc8]
movsd xmm2, qword [esp + 0x40]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x78], eax
movsd qword [esp + 0x70], xmm1
mov eax, dword [esp + 0x50]
movsd xmm1, qword [esp + 0x48]
movsd qword [esp + 0x68], xmm0
movsd qword [esp + 0x7c], xmm2
mov dword [esp + 0x8c], eax
movsd qword [esp + 0x84], xmm1
mov eax, edx
cmp edx, dword [esi + 0x24]
jne 0x1004e0a1
mov ecx, dword [esp + 0x58]
mov edx, 1
call fcn.1004ea00
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x28]
movsd xmm0, qword [esp + 0x88]
mov edx, dword [esp + 0x14]
imul eax, eax, 0x38
and bh, bl
mov byte [esp + 0x1c], bh
movsd qword [edx + eax + 0x20], xmm0
movsd xmm0, qword [esp + 0x80]
movsd qword [edx + eax + 0x18], xmm0
movsd xmm0, qword [esp + 0x78]
movsd qword [edx + eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x68]
movsd xmm1, qword [esp + 0x70]
movsd qword [edx + eax + 8], xmm1
movsd qword [edx + eax], xmm0
mov dword [edx + eax + 0x28], 0
mov word [edx + eax + 0x34], cx
inc dword [esi + 0x28]
mov dword [esp], 0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, edi
cmp edi, edx
mov edi, 0
jae 0x1004e110
movzx edi, word [eax + esi*4]
cmp di, 0xffff
je 0x1004e13f
inc dword [esp]
shl ecx, 0x10
movzx ebx, bx
or ebx, ecx
movzx ecx, word [eax + esi*4 + 2]
mov dword [eax + esi*4], ebx
inc esi
mov ebx, edi
mov edi, esi
jmp 0x1004e110
mov word [eax + esi*4], bx
mov word [eax + esi*4 + 2], cx
mov cl, byte [esp + 0x1c]
cmp dword [esp], 0x80
setb al
not cl
test cl, al
mov ecx, dword [esp + 0x18]
jne 0x1004e174
mov eax, dword [ecx + 4]
or eax, dword [ecx]
jne 0x1004e174
mov dword [ecx + 4], 0
mov dword [ecx], 1
movzx eax, word [esp + 0x40]
movsd xmm1, qword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
movsd xmm0, qword [esp + 0x68]
mov word [esp + 0x10], ax
mov al, byte [esp + 0x42]
movsd qword [esp + 0xe8], xmm1
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
movsd qword [esp + 0xe0], xmm0
mov byte [ecx + 0x10], 2
mov byte [esp + 0x12], al
movzx eax, word [esp + 0x10]
mov dl, byte [esp + 0x12]
mov word [ecx + 0x11], ax
mov byte [ecx + 0x13], dl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov cx, 0x5764
jmp 0x1004dbfb
mov edx, dword [esp + 0x24]
mov ecx, esi
push 0x10397f24
call fcn.10008590
add esp, 4
ud2
mov ecx, str.header_map_at_capacity
mov edx, 0x16
push 0x10397f14
call fcn.1004d820
add esp, 4
ud2
mov ecx, edi
push 0x10397f44
jmp 0x1004e1e1
mov ecx, esi
push 0x10397f34
jmp 0x1004e1e1