Function at 0x10008330
Capabilities:
Enumerate files on windows
Enumerate files recursively
Persist via lnk shortcut
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd04
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
test esi, esi
je 0x10008cd9
cmp byte [esi], 0
je 0x10008cd9
cmp byte [ebp + 0x1c], 0
lea edx, [ebp - 0x670]
mov ecx, str..dll
mov eax, str..lnk
cmovne ecx, eax
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10008390
lea eax, [ebp - 0x670]
push eax
push esi
lea eax, [ebp - 0xd10]
push 0x10086e28
push eax
call fcn.100173c0
push esi
lea eax, [ebp - 0xac8]
push str._s
push eax
call fcn.100173c0
push 0x140
lea eax, [ebp - 0x3c0]
push 0
push eax
call fcn.10020640
add esp, 0x28
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x10008405
lea eax, [ebp - 0x3c0]
push eax
lea eax, [ebp - 0xac8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100084d5
test byte [ebp - 0x3c0], 0x10
je 0x100084b8
mov edx, 0x10086e38
lea ecx, [ebp - 0x394]
nop dword [eax]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10008440
test al, al
je 0x1000843c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10008440
add ecx, 2
add edx, 2
test al, al
jne 0x10008420
xor eax, eax
jmp 0x10008445
sbb eax, eax
or eax, 1
test eax, eax
je 0x100084b8
mov ecx, 0x10086e3c
lea eax, [ebp - 0x394]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008474
test dl, dl
je 0x10008470
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008474
add eax, 2
add ecx, 2
test dl, dl
jne 0x10008454
xor eax, eax
jmp 0x10008479
sbb eax, eax
or eax, 1
test eax, eax
je 0x100084b8
lea eax, [ebp - 0x394]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xbec]
push str._s_s
push eax
call fcn.100173c0
add esp, 0x10
lea eax, [ebp - 0xbec]
mov ecx, edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.10008330
lea eax, [ebp - 0x3c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100083e1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
mov dword [ebp - 0x24], esi
nop dword [eax + eax]
cmp esi, 0xffffffff
jne 0x10008507
lea eax, [ebp - 0x3c0]
push eax
lea eax, [ebp - 0xd10]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
je 0x10008cd9
lea eax, [ebp - 0x670]
push eax
push 0
push 0
lea eax, [ebp - 0x394]
push 0
push eax
call fcn.100449a1
lea eax, [ebp - 0x670]
push str..dll
push eax
call fcn.100439a6
add esp, 0x1c
test eax, eax
je 0x10008554
lea eax, [ebp - 0x670]
push str..lnk
push eax
call fcn.100439a6
add esp, 8
test eax, eax
jne 0x10008cbc
xor eax, eax
mov dword [ebp - 0x78], 0
push 0x208
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x280]
push eax
call fcn.10020640
lea eax, [ebp - 0x394]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x280]
push str._s_s
push eax
call fcn.100173c0
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x280]
add esp, 0x1c
mov byte [ebp - 0x15], 0
mov ecx, edi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10012e90
mov esi, dword [ebp - 0x5c]
cmp byte [esi + 0xd], 0
jne 0x100085e4
lea eax, [esi + 0xe]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.100439a6
add esp, 8
test eax, eax
js 0x100085e4
cmp esi, dword [edi]
je 0x100085e4
add esi, 0xe
mov byte [ebp - 0x15], 1
mov ecx, 0x83
lea edi, [ebp - 0x280]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0x18]
cmp dword [edi + 4], 0
je 0x1000868f
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x394]
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008620
sub ecx, edx
lea eax, [ebp - 0x394]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.1000f950
or dword [ebp - 0x2c], 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [edi]
mov ecx, edi
push eax
call fcn.10013840
mov edi, dword [ebp - 0x68]
cmp byte [edi + 0xd], 0
jne 0x10008682
cmp dword [edi + 0x22], 0xf
lea ecx, [edi + 0xe]
jbe 0x10008669
mov ecx, dword [ecx]
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
push ecx
cmova eax, dword [ebp - 0x44]
push eax
call fcn.100439a6
add esp, 8
test eax, eax
jns 0x10008687
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
mov byte [ebp - 0xd], 1
cmp edi, esi
jne 0x10008693
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x2c]
test al, 1
je 0x100086d4
mov ecx, dword [ebp - 0x30]
and eax, 0xfffffffe
mov dword [ebp - 0x2c], eax
cmp ecx, 0xf
jbe 0x100086d4
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100086ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008cf0
push ecx
push edx
call fcn.1001d914
add esp, 8
cmp byte [ebp - 0x15], 0
mov edi, dword [ebp - 0x1c]
jne 0x10008c4e
mov eax, dword [edi + 8]
test eax, eax
je 0x100086f6
lea ecx, [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea ecx, [ebp - 0x280]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008700
sub ecx, edx
movzx ecx, cx
mov eax, ecx
mov dword [ebp - 0x4c], eax
test cx, cx
je 0x10008c4e
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 2
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x10]
call esi
push 0
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x4c]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [ebp + 0x10]
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x10]
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x10]
call esi
cmp byte [edi + 0x3bc], 0
lea eax, [ebp - 0x78]
push ecx
push 0
push eax
lea eax, [ebp - 0x280]
mov ecx, edi
push eax
je 0x100087c6
call fcn.10007bf0
mov ecx, 0x4000
mov word [ebp - 0x74], ax
cmp ax, cx
je 0x1000879b
test ax, ax
jne 0x100087df
push ecx
push 0
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10007a10
mov ecx, 0x4000
cmp ax, cx
je 0x100087d9
test ax, ax
je 0x100087d9
or eax, 0x2000
jmp 0x100087db
call fcn.10007bf0
mov ecx, 0x4000
mov word [ebp - 0x74], ax
cmp ax, cx
jne 0x100087df
xor eax, eax
mov word [ebp - 0x74], ax
push 1
push 0
push 0xfffffffffffffffa
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x10]
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x10]
call esi
mov eax, dword [ebp - 0x74]
and eax, 0x1fff
cmp eax, 4
je 0x1000882d
cmp eax, 8
je 0x1000882d
cmp eax, 0x400
jne 0x10008c4e
push 0x124
lea eax, [ebp - 0x794]
push 0
push eax
call fcn.10020640
mov edi, dword [edi + 0xc]
lea eax, [ebp - 0x280]
add esp, 0xc
lea ecx, [ebp - 0x550]
lea esi, [edi + 8]
add edi, 0xc
push edi
push eax
mov dword [ebp - 0x58], esi
call fcn.100016a0
mov ecx, edi
mov dword [ebp - 4], 1
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008870
sub ecx, edx
movzx eax, cx
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x20]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x14]
add edi, 0x40
push eax
push 4
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea esi, [ebp - 0x280]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x100088e0
sub esi, ecx
mov dword [ebp - 0x28], esi
cmp esi, 0x7fffffff
ja 0x10008ceb
cmp esi, 0xf
ja 0x1000891f
push esi
lea eax, [ebp - 0x280]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
push eax
call fcn.1001fe60
mov byte [ebp + esi - 0x44], 0
jmp 0x1000896d
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x10008931
mov esi, 0x7fffffff
jmp 0x1000893c
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], esi
call fcn.10013e80
mov ecx, dword [ebp - 0x50]
mov esi, eax
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x280]
push eax
push esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x30], ecx
call fcn.1001fe60
mov eax, dword [ebp - 0x28]
mov byte [esi + eax], 0
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 0x3c8
mov byte [ebp - 4], 2
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x100089a5
movups xmm0, xmmword [ebp - 0x44]
mov byte [ebp - 0x44], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [eax + 0x10], xmm0
mov eax, 0xf
add dword [ecx + 4], 0x18
jmp 0x100089b2
lea edx, [ebp - 0x44]
push edx
push eax
call fcn.10013680
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 1
cmp eax, 0xf
jbe 0x100089e9
mov edx, dword [ebp - 0x44]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x100089df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008cf0
push ecx
push edx
call fcn.1001d914
add esp, 8
mov esi, dword [ebp - 0x58]
mov esi, dword [esi]
test esi, esi
jle 0x10008bc9
add esi, 0xffffffff
js 0x10008b07
nop
mov cl, byte [edi]
movsx ax, cl
movzx eax, ax
mov dword [ebp - 0x20], eax
test cl, cl
je 0x10008b07
movsx eax, cl
inc edi
push eax
lea eax, [ebp - 0x794]
push edi
push eax
call fcn.10043a80
movsx eax, word [ebp - 0x20]
add esp, 0xc
add edi, eax
push ecx
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x794], 0
mov eax, dword [edi]
add edi, 4
test dword [ebp - 0x74], 0x2000
push eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x280]
mov dword [ebp - 0x48], 0
push eax
je 0x10008a6e
call fcn.10007a10
mov ecx, 0x2000
or ax, cx
jmp 0x10008a73
call fcn.10007bf0
movzx ecx, ax
movzx eax, cx
mov dword [ebp - 0x48], eax
mov eax, 0x4000
cmp cx, ax
je 0x10008afe
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x14]
push eax
movsx eax, word [ebp - 0x20]
push eax
lea eax, [ebp - 0x794]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0xd], 0
jne 0x10008afe
push dword [ebp - 0x54]
lea eax, [ebp - 0x794]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x550]
push eax
call fcn.100017e0
sub esi, 1
jns 0x10008a00
mov edx, dword [ebp - 0x3c8]
mov eax, edx
mov ecx, dword [ebp - 0x3cc]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xc4ec4ec5
test eax, eax
je 0x10008bd5
mov dword [ebp - 0x28], 0
jle 0x10008bd5
xor edi, edi
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x9a4]
push 0
push eax
lea esi, [ecx + edi]
call fcn.10020640
mov ax, word [esi + 0x60]
add esp, 0xc
mov word [ebp - 0x798], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x79c], eax
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x4f0]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x9a5], cl
test cl, cl
jne 0x10008b70
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x550]
push eax
push esi
lea eax, [ebp - 0x9a4]
push eax
call fcn.10007dd0
mov edx, dword [ebp - 0x3c8]
add edi, 0x68
mov ecx, dword [ebp - 0x3cc]
mov eax, edx
mov esi, dword [ebp - 0x28]
sub eax, ecx
sar eax, 3
inc esi
imul eax, eax, 0xc4ec4ec5
mov dword [ebp - 0x28], esi
cmp esi, eax
jl 0x10008b40
jmp 0x10008bd5
mov edx, dword [ebp - 0x3c8]
mov ecx, dword [ebp - 0x3cc]
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, edx
je 0x10008bed
mov dword [ebp - 0x3c8], ecx
test ecx, ecx
je 0x10008c4b
mov eax, dword [ebp - 0x3c4]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xc4ec4ec5
imul edx, eax, 0x68
mov eax, ecx
cmp edx, 0x1000
jb 0x10008c23
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008cf0
push edx
push ecx
call fcn.1001d914
add esp, 8
mov dword [ebp - 0x3cc], 0
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3c4], 0
mov edi, dword [ebp - 0x1c]
cmp byte [ebp - 0xd], 0
jne 0x10008cb9
test dword [ebp - 0x74], 0x1fff
jbe 0x10008c83
cmp dword [ebp - 0x78], 0
je 0x10008cb9
lea eax, [ebp - 0x394]
push 0x2e
push eax
call fcn.1001f400
add esp, 8
test eax, eax
je 0x10008c7b
mov byte [eax], 0
cmp byte [ebp + 0x1c], 0
je 0x10008ca1
jmp 0x10008c89
cmp byte [ebp + 0x1c], 0
jne 0x10008cb9
lea eax, [ebp - 0x394]
push 0x2e
push eax
call fcn.1001f400
add esp, 8
test eax, eax
je 0x10008ca1
mov byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x394]
mov ecx, edi
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10007dd0
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x3c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100084e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18
call fcn.10001160
call fcn.10046430
int3