Function at 0x130341b0
Capabilities:
Enumerate files on windows
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x5a0
mov ecx, dword [eax]
push ebx
xor ebx, ebx
push ebp
push esi
cmp ecx, ebx
push edi
jne 0x130345e3
mov ebp, dword [esp + 0x5b4]
cmp ebp, ebx
je 0x130345e3
cmp byte [ebp], 0
je 0x130345e3
mov cl, byte [0x1305f250]
xor eax, eax
mov byte [esp + 0x60], cl
mov ecx, 0x40
lea edi, [esp + 0x61]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.13034090
add esp, 0xc
mov dword [esp + 0x2c], ebx
jmp 0x1303423a
mov ebp, dword [esp + 0x5b4]
mov eax, dword [esp + 0x5b8]
cmp dword [eax], ebx
jne 0x130345e3
push 0x5c
push ebp
call fcn.13026d40
add esp, 8
test eax, eax
jne 0x13034335
cmp dword [esp + 0x2c], ebx
jne 0x13034278
lea ecx, [esp + 0x60]
push 0x104
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x1303431f
lea edx, [esp + 0x40]
push edx
push 0x20019
push ebx
push str.softwareGator.comGatordyn
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1303431f
lea eax, [esp + 0x18]
lea ecx, [esp + 0x60]
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.AppPath
push eax
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x40]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x130345e3
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x5f], 0x5c
je 0x1303431f
mov edi, 0x13053e30
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x60]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x60]
push 0x5c
push eax
call fcn.13026100
add esp, 8
cmp eax, ebx
lea edx, [eax + 1]
jne 0x13034339
lea edx, [esp + 0x60]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0x5c
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 + 0x64]
push ecx
call fcn.13026100
add esp, 8
mov ebp, eax
lea edx, [esp + 0x164]
lea eax, [esp + 0x60]
push edx
push eax
inc ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x44], eax
je 0x130345bb
xor eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edi, [esp + 0x190]
or ecx, 0xffffffff
xor eax, eax
push 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebp
lea eax, [esp + 0x68]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x13034519
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x64]
push edx
push eax
call fcn.13034090
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call fcn.13034180
add esp, 0x1c
test eax, eax
jne 0x13034465
lea edx, [esp + 0x48]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x17c]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.13034120
add esp, 0x10
test eax, eax
je 0x13034519
lea edi, [esp + 0x60]
lea edx, [esp + 0x4ac]
jmp 0x130344fc
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
push ebx
push edx
push eax
call fcn.13034180
add esp, 0x10
cmp eax, 1
jg 0x130344be
lea ecx, [esp + 0x50]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x17c]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.13034120
add esp, 0x10
test eax, eax
je 0x13034519
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
lea edi, [esp + 0x60]
lea edx, [esp + 0x2a4]
jmp 0x130344fc
lea ecx, [esp + 0x58]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x17c]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.13034120
add esp, 0x10
test eax, eax
je 0x13034519
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x3a8]
or ecx, 0xffffffff
xor eax, eax
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]
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x164]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x130343bc
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x34]
xor ebp, ebp
cmp eax, ebp
je 0x130345fe
mov ecx, dword [esp + 0x5b8]
mov edx, dword [esp + 0x24]
lea edi, [esp + 0x4ac]
mov dword [esp + 0x34], ebp
mov dword [ecx], eax
mov eax, dword [esp + 0x5bc]
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov edx, dword [esp + 0x5c0]
xor eax, eax
mov dword [edx], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x130634d0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
je 0x130345aa
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x130345b9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
mov ecx, dword [esp + 0x5b4]
push 0x5c
push ecx
call fcn.13026d40
add esp, 8
test eax, eax
jne 0x130345e3
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 2
mov dword [esp + 0x2c], eax
jl 0x13034233
mov edx, dword [esp + 0x5b8]
xor eax, eax
pop edi
pop esi
mov ecx, dword [edx]
pop ebp
cmp ecx, ebx
pop ebx
setne al
add esp, 0x5a0
ret
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x13034655
mov ecx, dword [esp + 0x5b8]
mov edx, dword [esp + 0x5bc]
lea edi, [esp + 0x2a4]
mov dword [esp + 0x10], ebp
mov dword [ecx], eax
mov ecx, dword [esp + 0x5c0]
mov eax, dword [esp + 0x30]
mov dword [edx], ebx
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x130634d0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x130345aa
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x130345b9
mov ecx, dword [esp + 0x5b8]
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x3a8]
mov dword [ecx], eax
mov eax, dword [esp + 0x5bc]
mov ecx, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x5c0]
xor eax, eax
mov dword [edx], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x130634d0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x130345b9