Function at 0x10001850
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
sub esp, 0x664
push ebx
push esi
lea eax, [esp + 8]
push edi
push eax
push 1
push 0
mov edi, ecx
mov ebx, 0x104
push str.SoftwareMicrosoftwindowscurrentversionuninstall_thunder
push 0x80000002
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001aff
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x42c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.UninstallString
push ecx
call esi
test eax, eax
jne 0x10001af4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x328]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.InstallLocation
push eax
mov dword [esp + 0x28], ebx
call esi
test eax, eax
je 0x100018f1
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x10001af9
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1024
push 0x100050f4
push 0x100050d0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x10001ae8
lea edi, [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x32c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x124]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x120]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x10001aad
mov edi, str._bin_thunder_download_history.txt
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x20]
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [edx + 1]
and ecx, 3
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
rep movsb byte es:[edi], byte [esi]
mov edi, str.thunder_download_history.txt.bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x534]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
je 0x10001a25
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x124]
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, str.configpeerID.properties
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x228]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x228]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.peerid.bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x534]
push ecx
push edx
call ebp
cmp eax, 0xffffffff
pop ebp
je 0x10001aad
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x120]
push 0
lea ecx, [esp + 0x228]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x42c]
push edx
mov ecx, edi
call fcn.10002110
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftwindowscurrentversionuninstall_thunder
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001af4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call fcn.10001b20
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x664
ret