Function at 0x402c70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4262e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x436050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edx, str.GR2_XOR_Encrypter_By_CONTROL_2024
mov ecx, 0x4370b8
call fcn.00407710
push eax
call fcn.00407960
push 0
call fcn.0040fad0
push eax
call fcn.0040d732
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 1
jle 0x40321e
mov edx, dword [esi + 4]
mov ecx, edx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d00
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.00405fc0
lea edx, [ebp - 0x80]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00401e90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
push 4
mov dword [ebp - 0x50], 0
push str..gr2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call fcn.00405fc0
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x58]
cmp ebx, eax
jbe 0x402d66
mov edi, dword [ebp - 0x50]
mov bl, 1
jmp 0x402e5c
mov edx, eax
mov dword [ebp - 0x38], 0
sub edx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
cmp eax, edx
jb 0x4036b9
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
push ecx
add eax, edx
lea ecx, [ebp - 0x38]
push eax
call fcn.00405fc0
cmp dword [ebp - 0x3c], 0x10
lea ecx, [ebp - 0x50]
mov edi, dword [ebp - 0x50]
lea edx, [ebp - 0x38]
mov esi, dword [ebp - 0x28]
cmovae ecx, edi
cmp dword [ebp - 0x24], 0x10
cmovae edx, dword [ebp - 0x38]
cmp esi, ebx
jne 0x402e24
sub esi, 4
jb 0x402de1
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x402de6
add edx, 4
add ecx, 4
sub esi, 4
jae 0x402dd0
cmp esi, 0xfffffffc
je 0x402e1a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x402e13
cmp esi, 0xfffffffd
je 0x402e1a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x402e13
cmp esi, 0xfffffffe
je 0x402e1a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x402e13
cmp esi, 0xffffffff
je 0x402e1a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x402e1a
sbb eax, eax
or eax, 1
jmp 0x402e1c
xor eax, eax
test eax, eax
jne 0x402e24
xor bl, bl
jmp 0x402e26
mov bl, 1
mov eax, dword [ebp - 0x24]
cmp eax, 0x10
jb 0x402e5c
mov edx, dword [ebp - 0x38]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x402e52
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push ecx
push edx
call fcn.00409639
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x402e93
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x402e89
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push ecx
push edi
call fcn.00409639
add esp, 8
test bl, bl
je 0x402f45
mov edx, str.Invalid_file_type._Only_.gr2_files_can_be_processed._n
mov ecx, 0x4371a0
call fcn.00407710
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x402ede
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ed4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp edx, 0x10
jb 0x402f24
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402f1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004095f6
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x80]
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
call fcn.00402000
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cmp eax, 0x10
jbe 0x403087
cmp dword [ecx], 0x45325247
sete al
test al, al
je 0x403087
lea eax, [ebp - 0x68]
mov edx, str.decrypted_
push eax
lea ecx, [ebp - 0x50]
call fcn.004075e0
add esp, 4
mov byte [ebp - 4], 5
lea edx, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.00402b20
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub eax, edx
push eax
call fcn.00402610
add esp, 4
mov edx, str.File_decrypted_successfully._Output:
mov ecx, 0x4370b8
call fcn.00407710
cmp dword [ebp - 0x3c], 0x10
lea edx, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae edx, dword [ebp - 0x50]
mov ecx, eax
call fcn.004085e0
add esp, 4
push eax
call fcn.00407960
mov byte [ebp - 4], 5
add esp, 4
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40304c
mov edx, dword [ebp - 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40302d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x403146
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40313c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
jmp 0x40313c
lea eax, [ebp - 0x68]
mov edx, str.encrypted_
push eax
lea ecx, [ebp - 0x50]
call fcn.004075e0
add esp, 4
mov byte [ebp - 4], 7
lea edx, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.004029e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub eax, edx
push eax
call fcn.00402610
add esp, 4
mov edx, str.File_encrypted_successfully._Output:
mov ecx, 0x4370b8
call fcn.00407710
cmp dword [ebp - 0x3c], 0x10
lea edx, [ebp - 0x50]
push dword [ebp - 0x40]
cmovae edx, dword [ebp - 0x50]
mov ecx, eax
call fcn.004085e0
add esp, 4
push eax
call fcn.00407960
mov byte [ebp - 4], 7
add esp, 4
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x40304c
mov edx, dword [ebp - 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40302d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
jmp 0x40302d
push edx
push ecx
call fcn.00409639
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x403193
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x403174
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x4031cb
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4031c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp edx, 0x10
jb 0x403663
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40320f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
jmp 0x403663
lea eax, [ebp - 0x1d8]
xor esi, esi
push eax
push str...gr2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403258
mov edx, str.No_.gr2_files_found_in_current_directory.
mov ecx, 0x4370b8
call fcn.00407710
push eax
call fcn.00407960
add esp, 4
xor eax, eax
jmp 0x402f29
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x58], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403282
sub ecx, edx
lea eax, [ebp - 0x1ac]
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.00405fc0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 9
push eax
mov edx, 0x432bbc
lea ecx, [ebp - 0x98]
call fcn.004075e0
add esp, 4
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x98]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.00402000
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cmp eax, 0x10
ja 0x4032ec
xor al, al
jmp 0x4032f5
cmp dword [ecx], 0x45325247
sete al
test al, al
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x68]
push eax
je 0x403423
mov edx, str.decrypted_
call fcn.004075e0
add esp, 4
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x2c], xmm0
call fcn.00402b20
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
sub eax, edx
push eax
call fcn.00402610
add esp, 4
mov edx, str.Decrypted:
mov ecx, 0x4370b8
call fcn.00407710
cmp dword [ebp - 0x54], 0x10
lea edx, [ebp - 0x68]
push dword [ebp - 0x58]
cmovae edx, dword [ebp - 0x68]
mov ecx, eax
call fcn.004085e0
add esp, 4
mov edx, str.___
mov ecx, eax
call fcn.00407710
cmp dword [ebp - 0x6c], 0x10
lea edx, [ebp - 0x80]
push dword [ebp - 0x70]
cmovae edx, dword [ebp - 0x80]
mov ecx, eax
call fcn.004085e0
add esp, 4
push eax
call fcn.00407960
mov byte [ebp - 4], 0xc
add esp, 4
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4033e8
mov edx, dword [ebp - 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4033c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x40353f
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403535
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403535
jmp 0x4036be
mov edx, str.encrypted_
call fcn.004075e0
add esp, 4
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x44], xmm0
call fcn.004029e0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
sub eax, edx
push eax
call fcn.00402610
add esp, 4
mov edx, str.Encrypted:
mov ecx, 0x4370b8
call fcn.00407710
cmp dword [ebp - 0x54], 0x10
lea edx, [ebp - 0x68]
push dword [ebp - 0x58]
cmovae edx, dword [ebp - 0x68]
mov ecx, eax
call fcn.004085e0
add esp, 4
mov edx, str.___
mov ecx, eax
call fcn.00407710
cmp dword [ebp - 0x6c], 0x10
lea edx, [ebp - 0x80]
push dword [ebp - 0x70]
cmovae edx, dword [ebp - 0x80]
mov ecx, eax
call fcn.004085e0
add esp, 4
push eax
call fcn.00407960
mov byte [ebp - 4], 0xe
add esp, 4
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x403507
mov edx, dword [ebp - 0x3c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4034e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x6c]
cmp edx, 0x10
jb 0x40353f
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403535
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov byte [ebp - 4], 0xa
inc esi
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40358d
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40356e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x4035cb
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4035c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp edx, 0x10
jb 0x40361e
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403614
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4036be
push edx
push ecx
call fcn.00409639
add esp, 8
lea eax, [ebp - 0x1d8]
push eax
push edi
call ebx
test eax, eax
jne 0x403260
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, str.Processed
mov ecx, 0x4370b8
call fcn.00407710
push esi
mov ecx, eax
call fcn.004037f0
mov edx, str._files.
mov ecx, eax
call fcn.00407710
push eax
call fcn.00407960
add esp, 4
mov edx, str.Press_any_key_to_exit...
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x4370b8
call fcn.00407710
call fcn.0040dd1b
xor eax, eax
jmp 0x402f29
call fcn.00407450
call fcn.004107aa
int3