Function at 0x486d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79f0d1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1788
call fcn.00790c80
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x1798], edi
mov dword [ebp - 0x1744], edi
mov dword [ebp - 0x1744], edi
xorps xmm0, xmm0
movq qword [ebp - 0x12a0], xmm0
mov dword [ebp - 0x1298], 0
mov dword [ebp - 0x12a0], 0
mov dword [ebp - 0x129c], 0
mov dword [ebp - 0x1298], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x173c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0
mov dword [ebp - 0x1790], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1794], eax
call dword [sym.imp.imagehlp.dll_SymGetOptions]
or eax, 6
push eax
call dword [sym.imp.imagehlp.dll_SymSetOptions]
push 1
push 0
push dword [ebp - 0x173c]
call dword [sym.imp.imagehlp.dll_SymInitialize]
test eax, eax
jne 0x486e11
mov ecx, dword [ebp - 0x12a0]
mov eax, edi
mov dword [edi], ecx
mov ecx, dword [ebp - 0x129c]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x1298]
mov dword [edi + 8], ecx
jmp 0x487765
push 0x108
lea eax, [ebp - 0x1434]
mov byte [ebp - 4], 1
mov ecx, 0xb3
lea edi, [ebp - 0x1700]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x1648]
add esp, 0xc
mov dword [ebp - 0x1434], eax
mov eax, dword [ebp - 0x164c]
mov dword [ebp - 0x1414], eax
mov eax, dword [ebp - 0x163c]
mov dword [ebp - 0x1428], 3
mov dword [ebp - 0x1430], 0
mov dword [ebp - 0x1408], 3
mov dword [ebp - 0x1410], 0
mov dword [ebp - 0x13f8], 3
mov dword [ebp - 0x1404], eax
mov dword [ebp - 0x1400], 0
call fcn.00424580
test eax, eax
sete byte [ebp - 0x171e]
xor edi, edi
mov esi, dword [ebp - 0x173c]
mov dword [ebp - 0x175c], edi
cmp edi, 0x64
jae 0x48773c
push 0
push dword [sym.imp.imagehlp.dll_SymGetModuleBase64]
lea eax, [ebp - 0x1700]
push dword [sym.imp.imagehlp.dll_SymFunctionTableAccess64]
push 0
push eax
lea eax, [ebp - 0x1434]
push eax
push dword [ebp - 0x1790]
push esi
push 0x14c
call dword [sym.imp.imagehlp.dll_StackWalk64]
test eax, eax
je 0x48773c
mov eax, 0x10
mov byte [ebp - 0x171d], 1
mov dword [ebp - 0x178c], eax
xor ecx, ecx
mov dword [ebp - 0x1788], 0xdf00f2
mov dword [ebp - 0x1784], 0xc700c5
mov dword [ebp - 0x1780], 0xc100c3
mov dword [ebp - 0x177c], 0xde00d8
mov dword [ebp - 0x1778], 0xdf0091
mov dword [ebp - 0x1774], 0xd000dc
mov dword [ebp - 0x1770], 0xda00c0
mov dword [ebp - 0x176c], 0xe500d2
mov dword [ebp - 0x1768], 0xb9
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1788], ax
inc ecx
mov eax, dword [ebp - 0x178c]
cmp ecx, eax
jb 0x486f70
xor ecx, ecx
mov word [ebp + eax*2 - 0x1788], cx
lea eax, [ebp - 0x1788]
mov edi, dword [ebp - 0x1434]
mov dword [ebp - 0x1754], eax
mov eax, dword [ebp - 0x1430]
push eax
push edi
push esi
mov dword [ebp - 0x1758], edi
mov dword [ebp - 0x1750], eax
call dword [sym.imp.imagehlp.dll_SymGetModuleBase64]
mov esi, eax
mov ecx, esi
or ecx, edx
je 0x486ff0
push 0x104
lea eax, [ebp - 0x29c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
lea ecx, [ebp - 0x29c]
cmove ecx, dword [ebp - 0x1754]
mov dword [ebp - 0x1754], ecx
movzx eax, byte [ebp - 0x171d]
xor ecx, ecx
cmp esi, dword [ebp - 0x1794]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1764], xmm0
cmovne eax, ecx
mov dword [ebp - 0x1740], ecx
test al, al
je 0x4870c7
push 0x1c
lea eax, [ebp - 0x171c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x1718]
mov ecx, edi
cdq
sub ecx, eax
mov dword [ebp - 0x1748], ecx
mov ecx, dword [ebp - 0x1750]
sbb ecx, edx
xor esi, esi
mov dword [ebp - 0x174c], ecx
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x1740], esi
movzx edx, word [ecx + 0x14]
movzx eax, word [ecx + 6]
add edx, ecx
xor ecx, ecx
mov dword [ebp - 0x1744], eax
cmp cx, ax
jae 0x4870c7
add edx, 0x28
mov ecx, dword [edx]
cmp ecx, dword [edx - 8]
mov edi, dword [edx - 4]
cmovbe ecx, dword [edx - 8]
xor eax, eax
add ecx, edi
adc eax, eax
cmp dword [ebp - 0x174c], 0
jb 0x4870b0
ja 0x487096
cmp dword [ebp - 0x1748], edi
jb 0x4870b0
cmp dword [ebp - 0x174c], eax
jb 0x487366
ja 0x4870b0
cmp dword [ebp - 0x1748], ecx
jbe 0x487366
inc esi
add edx, 0x28
cmp si, word [ebp - 0x1744]
jb 0x487071
mov dword [ebp - 0x1740], 0
mov edx, dword [ebp - 0x1764]
mov edi, dword [ebp - 0x1760]
mov eax, 6
mov dword [ebp - 0x1730], 0x9a008c
mov dword [ebp - 0x1734], eax
xor ecx, ecx
mov dword [ebp - 0x172c], 0xc00093
mov dword [ebp - 0x1728], 0xd600c1
mov dword [ebp - 0x1724], 0xaf
nop dword [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1730], ax
inc ecx
mov eax, dword [ebp - 0x1734]
cmp ecx, eax
jb 0x487110
xor ecx, ecx
push edi
mov word [ebp + eax*2 - 0x1730], cx
lea eax, [ebp - 0x1730]
push edx
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00487c10
add esp, 0x10
mov dword [ebp - 0x12a8], 0
xor eax, eax
mov dword [ebp - 0x12a4], 7
lea ecx, [ebp - 0x12b8]
mov word [ebp - 0x12b8], ax
push eax
push 0x7cf388
call fcn.004044f0
xor ecx, ecx
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movlpd qword [ebp - 0x12c0], xmm0
cmp byte [ebp - 0x171e], cl
je 0x487386
movaps xmm0, xmmword [0x7e5f10]
mov dword [ebp - 0x1738], 0x13
movups xmmword [ebp - 0x1734], xmm0
mov dword [ebp - 0x1724], 0xbc8f8ccb
nop dword [eax + eax]
lea eax, [ecx - 0x57]
xor byte [ebp + ecx - 0x1734], al
inc ecx
mov eax, dword [ebp - 0x1738]
cmp ecx, eax
jb 0x4871c0
mov byte [ebp + eax - 0x1734], 0
xor ecx, ecx
mov dword [ebp - 0x171c], 0xb
mov dword [ebp - 0x1718], 0xc800ed
mov dword [ebp - 0x1714], 0xc400cc
mov dword [ebp - 0x1710], 0xc200c8
mov dword [ebp - 0x170c], 0x9e00df
mov dword [ebp - 0x1708], 0xde00d5
mov dword [ebp - 0x1704], 0xb400df
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1718], ax
inc ecx
mov eax, dword [ebp - 0x171c]
cmp ecx, eax
jb 0x487230
xor ecx, ecx
mov word [ebp + eax*2 - 0x1718], cx
lea eax, [ebp - 0x1718]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x1734]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4874b7
lea ecx, [ebp - 0x125c]
mov dword [ebp - 0x125c], 0x20
push ecx
lea ecx, [ebp - 0x12c0]
mov dword [ebp - 0x1244], 0x7d0
push ecx
push dword [ebp - 0x1750]
push dword [ebp - 0x1758]
push dword [ebp - 0x173c]
call eax
test eax, eax
je 0x4874b7
lea ecx, [ebp - 0x1240]
mov dword [ebp - 0x1728], 0
mov dword [ebp - 0x1724], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x1738], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4872d8
sub ecx, edx
lea eax, [ebp - 0x1240]
push ecx
push eax
lea ecx, [ebp - 0x1738]
call fcn.00407ab0
lea eax, [ebp - 0x1738]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1718]
push eax
call fcn.004057b0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x12b8]
cmp eax, esi
je 0x48734b
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x12b8], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x12a8], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x1718]
call fcn.00404490
lea ecx, [ebp - 0x1738]
call fcn.00407a10
jmp 0x4874b7
mov edx, dword [ebp - 0x1748]
sub edx, edi
movzx esi, si
mov edi, dword [ebp - 0x174c]
sbb edi, 0
inc esi
mov dword [ebp - 0x1740], esi
jmp 0x4870d3
movaps xmm0, xmmword [0x7e5380]
mov eax, 0xc
mov dword [ebp - 0x1734], eax
movups xmmword [ebp - 0x1730], xmm0
nop
lea eax, [ecx - 0x57]
xor byte [ebp + ecx - 0x1730], al
inc ecx
mov eax, dword [ebp - 0x1734]
cmp ecx, eax
jb 0x4873a0
mov byte [ebp + eax - 0x1730], 0
xor ecx, ecx
mov dword [ebp - 0x171c], 0xb
mov dword [ebp - 0x1718], 0xc800ed
mov dword [ebp - 0x1714], 0xc400cc
mov dword [ebp - 0x1710], 0xc200c8
mov dword [ebp - 0x170c], 0x9e00df
mov dword [ebp - 0x1708], 0xde00d5
mov dword [ebp - 0x1704], 0xb400df
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x1718], ax
inc ecx
mov eax, dword [ebp - 0x171c]
cmp ecx, eax
jb 0x487410
xor ecx, ecx
mov word [ebp + eax*2 - 0x1718], cx
lea eax, [ebp - 0x1718]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x1730]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4874b7
lea ecx, [ebp - 0x1294]
mov dword [ebp - 0x1294], 0x58
push ecx
lea ecx, [ebp - 0x12c0]
mov dword [ebp - 0x1244], 0x7d0
push ecx
push dword [ebp - 0x1750]
push dword [ebp - 0x1758]
push dword [ebp - 0x173c]
call eax
test eax, eax
je 0x4874b7
lea ecx, [ebp - 0x1240]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487495
sub ecx, edx
lea eax, [ebp - 0x1240]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x12b8]
call fcn.004044f0
xor eax, eax
mov dword [ebp - 0x1310], 0
mov dword [ebp - 0x130c], 7
mov word [ebp - 0x1320], ax
mov dword [ebp - 0x12f8], eax
mov dword [ebp - 0x12f4], 7
mov word [ebp - 0x1308], ax
mov dword [ebp - 0x12e0], eax
mov dword [ebp - 0x12dc], 7
mov word [ebp - 0x12f0], ax
mov dword [ebp - 0x12c8], eax
mov dword [ebp - 0x12c4], 7
mov word [ebp - 0x12d8], ax
mov esi, dword [ebp - 0x1754]
mov ecx, esi
mov eax, dword [ebp - 0x1740]
mov edi, dword [ebp - 0x175c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x1328], eax
lea edx, [ecx + 2]
mov eax, dword [ebp - 0x12c0]
mov dword [ebp - 0x132c], edi
mov dword [ebp - 0x1324], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487550
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1320]
call fcn.004044f0
mov ecx, esi
mov dword [ebp - 0x1728], 0
xor eax, eax
mov dword [ebp - 0x1724], 7
mov word [ebp - 0x1738], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487590
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1738]
call fcn.004044f0
lea edx, [ebp - 0x1738]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1718]
call fcn.0041de00
mov esi, eax
lea eax, [ebp - 0x1308]
cmp eax, esi
je 0x4875fe
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x1308], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x12f8], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x1718]
call fcn.00404490
lea ecx, [ebp - 0x1738]
mov byte [ebp - 4], 4
call fcn.00404490
lea ecx, [ebp - 0x94]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487621
sub ecx, edx
lea eax, [ebp - 0x94]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x12f0]
call fcn.004044f0
cmp dword [ebp - 0x12a4], 8
lea eax, [ebp - 0x12b8]
push dword [ebp - 0x12a8]
cmovae eax, dword [ebp - 0x12b8]
lea ecx, [ebp - 0x12d8]
push eax
call fcn.004044f0
mov esi, dword [ebp - 0x129c]
cmp dword [ebp - 0x1298], esi
je 0x4876e8
mov eax, dword [ebp - 0x132c]
lea ecx, [esi + 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x1328]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1324]
mov dword [esi + 8], eax
lea eax, [ebp - 0x1320]
push eax
mov dword [ebp - 0x1744], esi
call fcn.00404120
lea eax, [ebp - 0x1308]
mov byte [ebp - 4], 6
lea ecx, [esi + 0x24]
push eax
call fcn.00404120
lea eax, [ebp - 0x12f0]
mov byte [ebp - 4], 7
lea ecx, [esi + 0x3c]
push eax
call fcn.00404120
lea eax, [ebp - 0x12d8]
mov byte [ebp - 4], 8
lea ecx, [esi + 0x54]
push eax
call fcn.00404120
add dword [ebp - 0x129c], 0x6c
jmp 0x4876fb
lea eax, [ebp - 0x132c]
push eax
push esi
lea ecx, [ebp - 0x12a0]
call fcn.00487c40
lea ecx, [ebp - 0x12d8]
call fcn.00404490
lea ecx, [ebp - 0x12f0]
call fcn.00404490
lea ecx, [ebp - 0x1308]
call fcn.00404490
lea ecx, [ebp - 0x1320]
call fcn.00404490
lea ecx, [ebp - 0x12b8]
mov byte [ebp - 4], 1
call fcn.00404490
inc edi
jmp 0x486ea8
push esi
call dword [sym.imp.imagehlp.dll_SymCleanup]
mov ecx, dword [ebp - 0x1798]
mov eax, dword [ebp - 0x12a0]
mov dword [ecx], eax
mov eax, dword [ebp - 0x129c]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1298]
mov dword [ecx + 8], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret