Function at 0x5a27c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cd7bd
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x7ef784]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2fc], eax
xor eax, eax
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2e4], eax
call fcn.005a1c40
mov dword [ebp - 0x2e0], eax
test eax, eax
jne 0x5a3086
xor esi, esi
mov dword [ebp - 0x2ec], eax
xor edi, edi
mov dword [ebp - 0x2dc], esi
mov dword [ebp - 0x2f8], esi
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0x2f0], eax
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x2d4], edi
mov dword [ebp - 0x2d0], edi
mov dword [ebp - 0x2cc], edi
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2c4], edi
call fcn.006391c8
lea ecx, [ebp - 0x2d4]
mov dword [eax + 4], edi
mov dword [ebp - 0x2d4], eax
mov dword [eax], ecx
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
call fcn.0059e040
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.004ce360
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x2e4], edx
test edx, edx
jne 0x5a28de
push str.Calloc_failure__Failed_to_convert_string_to_utf16.
push 4
call fcn.00585b00
add esp, 8
mov dword [ebp - 0x2e0], 3
jmp 0x5a2e89
mov ecx, edx
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5a28f7
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0049de00
mov edx, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2cc]
mov byte [ebp - 4], 5
lea eax, [edx + 1]
cmp ecx, eax
ja 0x5a2940
push 1
lea ecx, [ebp - 0x2d4]
call fcn.005a22f0
mov edx, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2c8]
dec ecx
and eax, ecx
mov dword [ebp - 0x2c8], eax
add eax, edx
and ecx, eax
mov eax, dword [ebp - 0x2d0]
lea edi, [ecx*4]
cmp dword [edi + eax], 0
jne 0x5a297f
push 0x18
call fcn.006391c8
mov ecx, dword [ebp - 0x2d0]
add esp, 4
mov dword [edi + ecx], eax
mov eax, dword [ebp - 0x2d0]
mov eax, dword [edi + eax]
movups xmm0, xmmword [ebp - 0x58]
mov byte [ebp - 4], 4
push dword [ebp - 0x2e4]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [eax + 0x10], xmm0
inc dword [ebp - 0x2c4]
call fcn.00662a80
mov ecx, dword [ebp - 0x2c4]
xor edi, edi
add esp, 4
mov dword [ebp - 0x2f4], edi
test ecx, ecx
je 0x5a2d46
mov eax, dword [ebp - 0x2c8]
lea edx, [ebp - 0x2d4]
add eax, ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x2e4], eax
dec ecx
dec eax
and ecx, eax
mov eax, dword [edx + 4]
mov esi, dword [eax + ecx*4]
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0x2d8]
or eax, 1
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2e4], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x2dc], eax
mov eax, dword [eax]
inc eax
mov byte [ebp - 4], 6
push eax
call fcn.004907a0
cmp dword [esi + 0x14], 8
jb 0x5a2a2c
mov esi, dword [esi]
mov eax, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x58]
push dword [eax]
push esi
call fcn.004a21c0
push 1
push 0x71a078
lea ecx, [ebp - 0x58]
call fcn.004a21c0
push 1
push 0x73e60c
lea ecx, [ebp - 0x58]
call fcn.004a21c0
mov esi, dword [ebp - 0x2d8]
xor ecx, ecx
or esi, 2
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x2c]
movq qword [ebp - 0x2e8], xmm1
movups xmmword [ebp - 0x20], xmm0
cmp edx, 8
jb 0x5a2ad1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5a2abb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a30a3
push edx
push ecx
call fcn.006391f8
movups xmm0, xmmword [ebp - 0x20]
add esp, 8
movq xmm1, qword [ebp - 0x2e8]
mov edx, dword [ebp - 0x44]
and esi, 0xfffffffe
movq qword [ebp - 0x30], xmm1
mov dword [ebp - 0x2d8], esi
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x40], xmm0
cmp edx, 8
jb 0x5a2b21
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5a2b17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a30a3
push edx
push ecx
call fcn.006391f8
add esp, 8
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0x2c4]
dec eax
mov edx, dword [ebp - 0x2cc]
add ecx, eax
mov eax, dword [ebp - 0x2d0]
dec edx
and edx, ecx
push dword [eax + edx*4]
lea eax, [ebp - 0x2d4]
push eax
call fcn.005a21b0
mov eax, dword [ebp - 0x2c8]
add esp, 8
sub dword [ebp - 0x2c4], 1
mov ecx, 0
cmove eax, ecx
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5a2e0d
mov edx, 0x7171f4
lea ecx, [ebp - 0x294]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x5a2bc6
test ax, ax
je 0x5a2bc2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x5a2bc6
add ecx, 4
add edx, 4
test ax, ax
jne 0x5a2ba0
xor eax, eax
jmp 0x5a2bcb
sbb eax, eax
or eax, 1
test eax, eax
je 0x5a2d00
mov ecx, 0x71a148
lea eax, [ebp - 0x294]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5a2c06
test dx, dx
je 0x5a2c02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5a2c06
add eax, 4
add ecx, 4
test dx, dx
jne 0x5a2be0
xor eax, eax
jmp 0x5a2c0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x5a2d00
test byte [ebp - 0x2c0], 0x10
jne 0x5a2d00
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x294]
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5a2c40
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.0049de00
mov byte [ebp - 4], 7
cmp edi, dword [ebp - 0x2ec]
je 0x5a2ca0
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
mov edx, 7
movups xmmword [edi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
add edi, 0x18
mov dword [ebp - 0x2f4], edi
jmp 0x5a2cc5
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x2f8]
call fcn.004bee60
mov eax, dword [ebp - 0x2f0]
mov edi, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2ec], eax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x5a2d00
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5a2cf6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a30a3
push edx
push ecx
call fcn.006391f8
add esp, 8
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5a2b90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x5a2dd9
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2c4]
test ecx, ecx
jne 0x5a29c1
mov esi, dword [ebp - 0x2f8]
mov dword [ebp - 0x2dc], esi
cmp esi, edi
je 0x5a2e8f
nop
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x5a2d5a
mov eax, dword [esi]
push eax
call fcn.004ce3c0
mov edx, eax
add esp, 4
mov dword [ebp - 0x2d8], edx
test edx, edx
je 0x5a2e6f
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x2e4], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a2d90
sub ecx, dword [ebp - 0x2e4]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0049dd10
mov ecx, dword [ebp - 0x2fc]
mov byte [ebp - 4], 8
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x5a2e1d
movups xmm0, xmmword [ebp - 0x28]
mov edx, 0xf
mov byte [ebp - 0x28], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
add dword [ecx + 4], 0x18
jmp 0x5a2e2a
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR:Error_while_iterating_through_slstore:_error_code__d
push 2
call fcn.00585b00
mov esi, dword [ebp - 0x2f8]
add esp, 0xc
mov dword [ebp - 0x2e0], 0x31c
mov dword [ebp - 0x2dc], esi
jmp 0x5a2e89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_while_iterating_through_slstore:_error_code__d.
push 4
jmp 0x5a2ded
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.0049d1d0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x5a2e5f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5a2e55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a30a3
push edx
push ecx
call fcn.006391f8
add esp, 8
push dword [ebp - 0x2d8]
call fcn.00662a80
add esp, 4
jmp 0x5a2e7e
push str.Failed_to_convert_utf16_to_utf8.
push 4
call fcn.00585b00
add esp, 8
add esi, 0x18
cmp esi, edi
jne 0x5a2d50
mov ecx, dword [ebp - 0x2c4]
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x5a2ec9
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5a2eb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a30a3
push edx
push ecx
call fcn.006391f8
mov ecx, dword [ebp - 0x2c4]
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 8
jb 0x5a2f1b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5a2f0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a30a3
push edx
push ecx
call fcn.006391f8
mov ecx, dword [ebp - 0x2c4]
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test ecx, ecx
je 0x5a2f8b
mov eax, dword [ebp - 0x2c8]
nop dword [eax]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x2cc]
dec eax
and ecx, eax
mov eax, dword [ebp - 0x2d0]
push dword [eax + ecx*4]
lea eax, [ebp - 0x2d4]
push eax
call fcn.005a21b0
mov ecx, dword [ebp - 0x2c4]
add esp, 8
mov eax, dword [ebp - 0x2c8]
sub ecx, 1
mov edx, 0
mov dword [ebp - 0x2c4], ecx
cmove eax, edx
mov dword [ebp - 0x2c8], eax
test ecx, ecx
jne 0x5a2f40
mov esi, dword [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2d0]
test esi, esi
je 0x5a2fc4
nop dword [eax + eax]
mov eax, dword [ecx + esi*4 - 4]
dec esi
test eax, eax
je 0x5a2fba
push 0x18
push eax
call fcn.006391f8
mov ecx, dword [ebp - 0x2d0]
add esp, 8
test esi, esi
jne 0x5a2fa0
mov esi, dword [ebp - 0x2cc]
test ecx, ecx
je 0x5a2ff3
shl esi, 2
mov eax, ecx
cmp esi, 0x1000
jb 0x5a2fe9
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a30a3
push esi
push ecx
call fcn.006391f8
add esp, 8
mov eax, dword [ebp - 0x2d4]
push 8
push eax
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2d4], 0
call fcn.006391f8
mov esi, dword [ebp - 0x2dc]
add esp, 8
test esi, esi
je 0x5a3080
lea eax, [ebp - 0x2f8]
push eax
push edi
push esi
call fcn.004bec90
mov ecx, dword [ebp - 0x2ec]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x5a3076
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a30a3
push ecx
push esi
call fcn.006391f8
add esp, 8
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret 4
call fcn.00657f14
int3