Function at 0x406030
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541686
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x358
mov eax, dword [0x57906c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 4], 0
lea edx, [ebx + 8]
cmp dword [ebx + 0x1c], 8
push dword [ebx + 0x18]
cmovae edx, dword [ebx + 8]
call fcn.0040d6a0
add esp, 4
push eax
call fcn.0040a810
xor eax, eax
mov dword [ebp - 0x74], 0
add esp, 4
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
push 0x20a
mov byte [ebp - 4], 2
call fcn.004c6794
add esp, 4
mov esi, eax
push 0x20a
push 0
push esi
call fcn.00516f30
add esp, 0xc
lea ecx, [ebx + 8]
cmp dword [ebx + 0x1c], 8
cmovae ecx, dword [ebx + 8]
push 0xffffffffffffffff
push ecx
push 0x104
push esi
call fcn.0051f6fb
mov eax, dword [edi + 0x10]
push 0xc
mov dword [ebp - 0x2f8], eax
call fcn.004c63be
mov ecx, dword [ebp - 0x2f8]
mov edx, eax
add esp, 0x14
mov dword [edx + 4], esi
mov dword [edx], 0
mov dword [edx + 8], 0
mov eax, dword [ecx + 8]
test eax, eax
je 0x406147
mov eax, dword [ecx]
mov dword [eax], edx
mov eax, dword [ecx]
mov dword [edx + 8], eax
mov eax, dword [ecx + 8]
inc eax
mov dword [ecx], edx
mov dword [ecx + 8], eax
nop dword [eax]
mov edi, dword [edi + 0x10]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406916
mov eax, dword [edi]
push 0xc
push eax
mov esi, dword [eax + 4]
mov dword [ebp - 0x2f8], esi
cmp ecx, 1
jne 0x40617e
call fcn.004c6786
mov dword [edi], 0
jmp 0x406194
mov esi, dword [eax + 8]
call fcn.004c6786
mov dword [esi], 0
mov dword [edi], esi
mov esi, dword [ebp - 0x2f8]
mov ecx, esi
add esp, 8
dec dword [edi + 8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4061a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x9c]
call fcn.00409010
mov ecx, esi
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4061d5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x6c]
call fcn.00409010
push ecx
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x368]
call fcn.0040a8c0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x84]
cmp eax, esi
je 0x40623e
mov ecx, eax
call fcn.00408fb0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x368]
call fcn.00408fb0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00408fb0
cmp dword [ebp - 0x70], 8
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2fc], eax
cmp eax, 0xffffffff
jne 0x406298
push dword [ebp - 0x2f8]
call fcn.004c61be
mov edi, dword [ebp - 0x2f4]
add esp, 4
jmp 0x406150
mov esi, dword [ebp - 0x2fc]
nop
test byte [ebp - 0x2f0], 0x10
je 0x40646b
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x18], 7
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4062d0
sub eax, edx
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.00409010
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
cmp edi, 8
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmovae ecx, eax
cmp edx, 1
jne 0x406341
mov esi, edx
mov edx, 0x566f28
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40633b
add ecx, 2
add edx, 2
sub esi, 1
jne 0x406311
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00408fb0
mov edi, dword [ebp - 0x2f4]
jmp 0x4068e0
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
cmp edi, 8
lea ecx, [ebp - 0x2c]
cmovae ecx, eax
cmp edx, 2
jne 0x406380
mov esi, edx
mov edx, 0x566f2c
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x406380
add ecx, 2
add edx, 2
sub esi, 1
jne 0x406356
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00408fb0
mov edi, dword [ebp - 0x2f4]
jmp 0x4068e0
push 0x566f34
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x368]
call fcn.0040a960
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.0040ab50
add esp, 4
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 7
call fcn.00408fb0
mov eax, dword [ebp - 0x44]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c6794
mov ecx, dword [ebp - 0x44]
add esp, 4
mov esi, eax
lea ecx, [ecx*2 + 4]
push ecx
push 0
push esi
call fcn.00516f30
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x54]
add esp, 0xc
cmp dword [ebp - 0x40], 8
cmovae ecx, dword [ebp - 0x54]
inc eax
push ecx
push eax
push esi
call fcn.0051f2c4
mov edi, dword [ebp - 0x2f4]
add esp, 0xc
mov edi, dword [edi + 0x10]
push 0xc
call fcn.004c63be
mov ecx, eax
add esp, 4
mov dword [ecx + 4], esi
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x406446
mov eax, dword [edi]
mov dword [eax], ecx
mov eax, dword [edi]
mov dword [ecx + 8], eax
mov eax, dword [edi + 8]
mov dword [edi], ecx
inc eax
lea ecx, [ebp - 0x54]
mov dword [edi + 8], eax
call fcn.00408fb0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00408fb0
mov edi, dword [ebp - 0x2f4]
jmp 0x4068e0
mov edi, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x58], 7
inc dword [edi + 0x14]
xor eax, eax
mov word [ebp - 0x6c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406491
sub ecx, edx
lea eax, [ebp - 0x2c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00409010
push 0x566f34
lea edx, [ebp - 0x9c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x368]
call fcn.0040a960
add esp, 4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.0040ab50
add esp, 4
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 0xb
call fcn.00408fb0
sub esp, 0x18
lea eax, [ebp - 0x54]
mov ecx, esp
push eax
call fcn.00407940
lea eax, [ebp - 0x2c]
push eax
call fcn.00406960
cmp dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
jne 0x406571
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x406546
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40653c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406959
push edx
push ecx
call fcn.004c6786
add esp, 8
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408fb0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00408fb0
jmp 0x4068e6
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x348]
push 0
mov byte [ebp - 0x350], 0
call fcn.00408390
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x368]
cmovae edx, dword [ebp - 0x54]
call fcn.00420e60
mov esi, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x308]
mov byte [ebp - 0x310], 0
xorps xmm0, xmm0
push dword [ebp - 0x310]
movq qword [ebp - 0x308], xmm0
call fcn.00407fc0
push 0x18
mov byte [ebp - 0x310], 3
call fcn.004c63be
mov edi, eax
mov dword [ebp - 0x308], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x304], esi
sub esp, 0x14
mov byte [ebp - 4], 0x10
mov ecx, esp
push 6
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.object
mov byte [ecx], 0
call fcn.004092d0
lea ecx, [ebp - 0x350]
call fcn.0040c6d0
mov cl, byte [eax]
mov byte [eax], 3
mov edx, dword [eax + 0xc]
mov byte [ebp - 0x334], cl
mov byte [ebp - 0x310], cl
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov dword [ebp - 0x308], ecx
mov dword [ebp - 0x304], edx
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x308]
push dword [ebp - 0x334]
call fcn.00407fc0
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x354]
cmp edx, 0x10
jb 0x4066c7
mov ecx, dword [ebp - 0x368]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4066bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406959
push edx
push ecx
call fcn.004c6786
add esp, 8
mov byte [ebp - 0x320], 0
lea ecx, [ebp - 0x318]
push dword [ebp - 0x320]
xorps xmm0, xmm0
movq qword [ebp - 0x318], xmm0
call fcn.00407fc0
xorps xmm0, xmm0
mov byte [ebp - 0x320], 3
push 0x18
movlpd qword [ebp - 0x38], xmm0
call fcn.004c63be
mov edi, eax
add esp, 4
lea eax, [ebp - 0x39]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x12
mov ecx, edi
push 0xf
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
push str.Ransomware20241
mov byte [edi], 0
call fcn.004092d0
mov dword [ebp - 0x318], edi
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push 8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.campaign
mov byte [ecx], 0
call fcn.004092d0
lea ecx, [ebp - 0x350]
call fcn.0040c6d0
mov esi, eax
mov eax, dword [ebp - 0x314]
mov cl, byte [esi]
mov byte [esi], 3
mov edx, dword [esi + 0xc]
mov byte [ebp - 0x338], cl
mov byte [ebp - 0x320], cl
mov ecx, dword [esi + 8]
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x314], edx
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x318]
push dword [ebp - 0x338]
call fcn.00407fc0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x2c]
xorps xmm0, xmm0
mov byte [ebp - 0x330], 0
lea ecx, [ebp - 0x330]
movq qword [ebp - 0x328], xmm0
call fcn.0040ebe0
sub esp, 0x18
mov byte [ebp - 4], 0x15
mov ecx, esp
push 4
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.hash
mov byte [ecx], 0
call fcn.004092d0
lea ecx, [ebp - 0x350]
call fcn.0040c6d0
movzx ecx, byte [ebp - 0x330]
mov esi, eax
mov dl, byte [esi]
mov byte [esi], cl
mov ecx, dword [esi + 8]
mov byte [ebp - 0x33c], dl
mov byte [ebp - 0x330], dl
mov eax, dword [ebp - 0x328]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x324]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x328], ecx
mov dword [ebp - 0x324], edx
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x328]
push dword [ebp - 0x33c]
call fcn.00407fc0
mov edi, dword [ebp - 0x2f4]
lea eax, [ebp - 0x350]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.00407510
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x348]
push dword [ebp - 0x350]
call fcn.00407fc0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4068ba
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4068b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406959
push edx
push ecx
call fcn.004c6786
add esp, 8
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00408fb0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00408fb0
mov esi, dword [ebp - 0x2fc]
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4062a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x2f8]
call fcn.004c61be
add esp, 4
jmp 0x406150
lea ecx, [ebp - 0x9c]
call fcn.00408fb0
lea ecx, [ebp - 0x84]
call fcn.00408fb0
lea ecx, [ebx + 8]
call fcn.00408fb0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c61ad
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
call fcn.0051f5dc
int3