joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6510
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18c
lea eax, [esp]
mov dword [esp], 0
push eax
push 3
push 0
push str..txt
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4b6545
or eax, 0xffffffff
add esp, 0x18c
ret
push esi
push edi
push str.txtfile
call fcn.004fa6c0
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov esi, eax
lea edx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x24], 1
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x94]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push edx
call edi
test eax, eax
jne 0x4b65d7
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x20]
push str.txtfile
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4b65f3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x18c
ret

Function at 0x4b6610
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18c
lea eax, [esp]
mov dword [esp], 0
push eax
push 3
push 0
push str..reg
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4b6645
or eax, 0xffffffff
add esp, 0x18c
ret
push esi
push edi
push str.regfile
call fcn.004fa6c0
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov esi, eax
lea edx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x24], 1
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x94]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push edx
call edi
test eax, eax
jne 0x4b66d7
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x20]
push str.regfile
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4b66f3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x18c
ret
Function at 0x4b6710
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18c
lea eax, [esp]
mov dword [esp], 0
push eax
push 3
push 0
push 0x516878
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4b6745
or eax, 0xffffffff
add esp, 0x18c
ret
push esi
push edi
push str.dllfile
call fcn.004fa6c0
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov esi, eax
lea edx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x24], 1
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x94]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push edx
call edi
test eax, eax
jne 0x4b67d7
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x20]
push str.dllfile
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4b67f3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x18c
ret

Function at 0x4b6810
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18c
lea eax, [esp]
mov dword [esp], 0
push eax
push 3
push 0
push str..cmd
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4b6845
or eax, 0xffffffff
add esp, 0x18c
ret
push esi
push edi
push str.cmdfile
call fcn.004fa6c0
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
mov esi, eax
lea edx, [esp + 0x94]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x24], 1
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x94]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push edx
call edi
test eax, eax
jne 0x4b68d7
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push eax
push 0x50d39c
push ecx
call fcn.004f175f
lea edx, [esp + 0x20]
push str.cmdfile
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4b68f3
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x18c
ret
Function at 0x4b6a60
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x254]
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
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
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b6b47
mov esi, dword [esp + 0x258]
test byte [esp + 0x110], 0x10
je 0x4b6b2a
cmp byte [esp + 0x13c], 0x2e
je 0x4b6b2a
lea edx, [esp + 0x13c]
push edx
push ebx
push 0x50e0ec
push esi
call fcn.004f175f
add esp, 0x10
inc ebp
add esi, 0x100
cmp ebp, 0xfa
je 0x4b6b47
lea eax, [esp + 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b6af0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
mov ecx, dword [esp + 0x25c]
push edi
mov dword [ecx], ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret

Function at 0x4b6b70
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
mov ecx, 0x40
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x254]
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
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
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b6c57
mov esi, dword [esp + 0x258]
test byte [esp + 0x110], 0x10
je 0x4b6c3a
cmp byte [esp + 0x13c], 0x2e
je 0x4b6c3a
lea edx, [esp + 0x13c]
push edx
push ebx
push 0x50e0ec
push esi
call fcn.004f175f
add esp, 0x10
inc ebp
add esi, 0x100
cmp ebp, 0x80
je 0x4b6c57
lea eax, [esp + 0x110]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b6c00
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
mov ecx, dword [esp + 0x25c]
push edi
mov dword [ecx], ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x240
ret
Function at 0x4b6f10
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x258]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
xor ebp, ebp
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..tmp
or ecx, 0xffffffff
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
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b700b
mov esi, dword [esp + 0x25c]
test byte [esp + 0x114], 0x10
jne 0x4b6fee
cmp byte [esp + 0x140], 0x2e
je 0x4b6fee
lea edx, [esp + 0x140]
push edx
push ebx
push str._s_s
push esi
call fcn.004f175f
add esp, 0x10
inc ebp
add esi, 0x100
cmp ebp, 0xfa
je 0x4b700b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xfa
mov dword [esp + 0x10], eax
je 0x4b700b
lea eax, [esp + 0x114]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b6fa4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
mov ecx, dword [esp + 0x260]
push edi
mov dword [ecx], ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x244
ret
Function at 0x4b7030
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
mov eax, dword [esp + 0x250]
push ebx
push ebp
push esi
push edi
mov dword [eax], 0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x258]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4b712b
mov ebx, dword [esp + 0x25c]
cmp byte [esp + 0x140], 0x2e
je 0x4b710e
lea edi, [esp + 0x140]
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
inc ecx
add ebx, 0x100
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x114]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b70d1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebp, 0xffffffff
mov edx, dword [esp + 0x260]
mov ecx, dword [esp + 0x10]
push ebp
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x244
ret
Function at 0x4b7150
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [esp + 0x254]
push ebx
push ebp
xor edx, edx
push esi
push edi
mov dword [eax], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x25c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], edx
rep movsb byte es:[edi], byte [esi]
mov edi, 0x529364
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], edx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b7261
mov ebp, dword [esp + 0x260]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x4b7236
lea edi, [esp + 0x144]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
inc ecx
add ebp, 0x100
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x64
mov dword [esp + 0x14], eax
jg 0x4b7261
lea ecx, [esp + 0x118]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4b71ef
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebx, 0xffffffff
mov eax, dword [esp + 0x264]
mov edx, dword [esp + 0x10]
push ebx
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0x248
ret
Function at 0x4b7290
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbfd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
push 0x80
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x18], eax
push 0x1f4
call fcn.004f266a
add esp, 4
mov ebx, eax
mov dword [ebp - 0x24], 0x100
mov dword [ebp - 0x20], 1
push 0x200
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004ae740
add esp, 4
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call fcn.004fa6c0
mov ecx, dword [ebp - 0x14]
add esp, 4
add ecx, 0x100
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x124]
push eax
push str._s_s
push edx
call fcn.004f175f
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x318]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x124]
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, [ebp - 0x1c]
push ecx
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b73d2
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ebx
push ecx
push 0
push 0x5142f8
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b73d2
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x318]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5142f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
push eax
call fcn.004f265f
add esp, 4
push ebx
call fcn.004f265f
mov ecx, dword [ebp - 0x14]
add esp, 4
push ecx
call fcn.004f265f
add esp, 4
lea edx, [ebp - 0x318]
push edx
call fcn.004fa6c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc9a0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x264]
mov dword [esp + 0x1d0], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x1d4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1d0]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
push edx
call fcn.004f2beb
lea eax, [esp + 0x14]
lea ecx, [esp + 0x268]
push eax
push str._s.scr
push ecx
call fcn.004f175f
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x10
lea edx, [esp + 0x90]
lea eax, [esp + 0x264]
push edx
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4bcac8
mov ebp, dword [esp + 0x468]
test byte [esp + 0x90], 0x10
jne 0x4bcaab
cmp byte [esp + 0xbc], 0x2e
je 0x4bcaab
lea ecx, [esp + 0xbc]
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x10]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [esp + 0x36c]
push str._s_s
push eax
call fcn.004f175f
lea ecx, [esp + 0x374]
push 0xff
push ecx
push ebp
call fcn.004f27c0
add esp, 0x1c
inc esi
add ebp, 0x100
cmp esi, 0xf8
je 0x4bcac8
lea edx, [esp + 0x90]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bca41
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
push ecx
call fcn.004f2beb
lea edx, [esp + 0x14]
lea eax, [esp + 0x268]
push edx
push str._s.scr
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [esp + 0x90]
lea edx, [esp + 0x264]
push ecx
push edx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4bcbb5
mov eax, dword [esp + 0x468]
mov edi, esi
shl edi, 8
add edi, eax
test byte [esp + 0x90], 0x10
jne 0x4bcb98
cmp byte [esp + 0xbc], 0x2e
je 0x4bcb98
lea eax, [esp + 0xbc]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x368]
push eax
push str._s_s
push edx
call fcn.004f175f
lea eax, [esp + 0x374]
push 0xff
push eax
push edi
call fcn.004f27c0
add esp, 0x1c
inc esi
add edi, 0x100
cmp esi, 0xf9
je 0x4bcbb5
lea ecx, [esp + 0x90]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bcb2e
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebp, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x46c]
push str.c:endpcache
mov dword [edx], esi
call fcn.004f2beb
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret
Function at 0x4bcbf0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x264]
mov dword [esp + 0x1d0], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x1d4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1d0]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x10]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x10]
push edx
call fcn.004f2beb
lea eax, [esp + 0x14]
lea ecx, [esp + 0x268]
push eax
push 0x529934
push ecx
call fcn.004f175f
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x10
lea edx, [esp + 0x90]
lea eax, [esp + 0x264]
push edx
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4bcd18
mov ebp, dword [esp + 0x468]
test byte [esp + 0x90], 0x10
jne 0x4bccfb
cmp byte [esp + 0xbc], 0x2e
je 0x4bccfb
lea ecx, [esp + 0xbc]
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x10]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [esp + 0x36c]
push str._s_s
push eax
call fcn.004f175f
lea ecx, [esp + 0x374]
push 0xff
push ecx
push ebp
call fcn.004f27c0
add esp, 0x1c
inc esi
add ebp, 0x100
cmp esi, 0xf8
je 0x4bcd18
lea edx, [esp + 0x90]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bcc91
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
push ecx
call fcn.004f2beb
lea edx, [esp + 0x14]
lea eax, [esp + 0x268]
push edx
push 0x529934
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [esp + 0x90]
lea edx, [esp + 0x264]
push ecx
push edx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4bce05
mov eax, dword [esp + 0x468]
mov edi, esi
shl edi, 8
add edi, eax
test byte [esp + 0x90], 0x10
jne 0x4bcde8
cmp byte [esp + 0xbc], 0x2e
je 0x4bcde8
lea eax, [esp + 0xbc]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x368]
push eax
push str._s_s
push edx
call fcn.004f175f
lea eax, [esp + 0x374]
push 0xff
push eax
push edi
call fcn.004f27c0
add esp, 0x1c
inc esi
add edi, 0x100
cmp esi, 0xf9
je 0x4bce05
lea ecx, [esp + 0x90]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bcd7e
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebp, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x46c]
push str.c:endpcache
mov dword [edx], esi
call fcn.004f2beb
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret