Function at 0x100035c0
Capabilities:
Create directory
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x1001100c]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
mov ebx, dword [esp + 0x418]
push ebp
mov ebp, dword [esp + 0x420]
push esi
push edi
mov ecx, 0x10
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
lea edi, [esp + 0x31c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
push 1
push 0
lea ecx, [esp + 0x328]
push ecx
push 0x80000001
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x100
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000363b
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003833
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.Local_AppData
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100036c7
lea edi, [esp + 0x11c]
add edi, 0xffffffff
lea ecx, [ecx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10003670
mov cx, word [0x1000de64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea edx, [esp + 0x120]
push edx
mov word [edi], cx
call esi
lea eax, [esp + 0x11c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x100036a0
mov ecx, dword [str.S2PC]
mov dl, byte [0x1000de60]
mov dword [eax], ecx
mov byte [eax + 4], dl
push 0
lea eax, [esp + 0x120]
push eax
call esi
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x11c]
mov byte [esp + eax + 0x21c], cl
add eax, 1
test cl, cl
jne 0x100036d0
lea edi, [esp + 0x21c]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x100036f0
mov cx, word [0x1000de64]
push 0x100
lea edx, [esp + 0x20]
push edx
push 0
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1c]
push 0x5c
push eax
call fcn.10005630
add esp, 8
mov byte [eax + 1], 0
call fcn.100044f0
cmp eax, 6
jl 0x10003786
xor eax, eax
jmp 0x10003740
mov cl, byte [esp + eax + 0x21c]
mov byte [esp + eax + 0x1c], cl
add eax, 1
test cl, cl
jne 0x10003740
lea eax, [esp + 0x1c]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10003760
mov ecx, dword [str.ssQScan.ini]
mov edx, dword [0x1000de54]
mov dword [eax], ecx
mov ecx, dword [0x1000de58]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x100037b4
lea eax, [esp + 0x1c]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10003790
mov edx, dword [str.ssQScan.ini]
mov ecx, dword [0x1000de54]
mov dword [eax], edx
mov edx, dword [0x1000de58]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esp + 0x1c]
push eax
push ebp
push str.PATH
push str.SAVE
call esi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.TWAIN
push 0x1000de30
call esi
mov eax, dword [esp + 0x42c]
cmp eax, 1
jne 0x100037f6
lea edx, [esp + 0x1c]
push edx
push 0x1000de2c
jmp 0x10003827
cmp eax, 2
jne 0x10003807
lea eax, [esp + 0x1c]
push eax
push 0x1000de28
jmp 0x10003827
cmp eax, 3
jne 0x10003818
lea ecx, [esp + 0x1c]
push ecx
push 0x1000de24
jmp 0x10003827
cmp eax, 4
jne 0x10003833
lea edx, [esp + 0x1c]
push edx
push str.2134
push str.SAVEFORMAT
push str.QScan
call esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10004b28
add esp, 0x410
ret