Function at 0x10054e70
Capabilities:
Encode data using xor
Hash data using fnv
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
push 0x4dc6f586
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x20763906
push eax
lea eax, [esp + 0x28]
push eax
call fcn.101700c0
mov esi, dword [0x102b2594]
mov eax, dword [eax + 4]
test eax, eax
je 0x10054ec6
cmp eax, esi
je 0x10054ec6
lea eax, [esp + 0x1c]
push eax
call fcn.1016fcd0
mov dword [0x102b16b4], eax
test eax, eax
jne 0x10054f0a
mov esi, dword [0x102b2594]
jmp 0x10054ed0
mov dword [0x102b16b4], 0
push 0xab4a9652
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x5bb28d73
push eax
lea eax, [esp + 0x28]
push eax
call fcn.101700c0
mov eax, dword [eax + 4]
test eax, eax
je 0x10054f12
cmp eax, esi
je 0x10054f12
lea eax, [esp + 0x1c]
push eax
call fcn.1016fcd0
mov dword [0x102b16b4], eax
test eax, eax
je 0x10054f1c
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x102b16b4], 0
push 0
push 0x102383a2
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xf
call fcn.1000d310
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SoftwareDiscordModulesdiscord_game_sdk
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10054fe0
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 2
push str.Path_x86
push 0
push dword [esp + 0x30]
call esi
test eax, eax
jne 0x10054fe0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10054fe0
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.10024f70
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push eax
push 0
push 2
push str.Path_x86
push 0
push dword [esp + 0x30]
call esi
test eax, eax
je 0x10054fe0
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x40], 0
cmovae eax, dword [esp + 0x30]
mov byte [eax], 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x40], 0
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x50], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [esp + 0x60], xmm0
je 0x10055226
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10055226
cmp dword [esp + 0x64], 0x10
lea edx, [esp + 0x50]
mov esi, dword [esp + 0x60]
cmovae edx, dword [esp + 0x50]
setae byte [esp + 0x16]
or edi, 0xffffffff
test esi, esi
je 0x1005506e
lea eax, [esi - 1]
mov ecx, edi
cmp eax, edi
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x1005506a
nop dword [eax + eax]
cmp ecx, edx
je 0x1005506e
dec ecx
cmp byte [ecx], 0x5c
jne 0x10055060
sub ecx, edx
jmp 0x10055071
or ecx, 0xffffffff
inc ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0xf
cmp esi, ecx
jb 0x10055267
sub esi, ecx
lea eax, [esp + 0x50]
cmp esi, 0xffffffff
cmovb edi, esi
cmp byte [esp + 0x16], 0
push edi
cmovne eax, dword [esp + 0x54]
add eax, ecx
lea ecx, [esp + 0x34]
push eax
call fcn.1000d310
cmp dword [esp + 0x44], 0x10
lea edi, [esp + 0x30]
mov esi, 0x811c9dc5
cmovae edi, dword [esp + 0x30]
setae byte [esp + 0x17]
test edi, edi
je 0x100550f6
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100550d6
sub ecx, edx
xor edx, edx
test ecx, ecx
je 0x100550f6
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x100550e5
push dword [esp + 0x18]
lea ecx, [esp + 0x74]
mov dword [esp + 0x20], esi
push esi
call fcn.10170790
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
call fcn.1016fd30
mov ecx, dword [eax]
mov eax, dword [esi]
add ecx, 0xc
mov dword [esp + 0x18], ecx
mov dword [ecx], eax
lea edi, [ecx + 0x18]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x14]
add esi, 0x18
mov dword [ecx + 0x14], eax
cmp edi, esi
je 0x10055181
mov ecx, edi
call fcn.10170500
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov esi, dword [esp + 0x20]
lea edi, [ecx + 0x24]
add esi, 0x24
cmp edi, esi
je 0x100551ba
mov ecx, edi
call fcn.1003ef20
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [esp + 0x94]
call fcn.1003ef20
lea ecx, [esp + 0x88]
call fcn.10170500
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.1016fd30
mov byte [esp + 0x16], 1
mov eax, dword [eax]
add eax, 0xc
cmp byte [esp + 0x17], 0
mov dword [0x102b16b4], eax
je 0x1005522b
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005521a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005526c
push ecx
push edx
call fcn.101e1f2f
add esp, 8
jmp 0x1005522b
mov byte [esp + 0x16], 0
mov edx, dword [esp + 0x64]
cmp edx, 0x10
jb 0x1005525d
mov ecx, dword [esp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10055253
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005526c
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov al, byte [esp + 0x16]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100184d0
call fcn.101e6db2
int3