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

Disassembly:
push 0xb4
mov eax, 0x5d8201
call fcn.00506dfb
mov edi, dword [ebp + 8]
and dword [ebp - 0xc0], 0
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push 0x60304c
mov dword [ebp - 4], 2
call fcn.0042e677
test eax, eax
jne 0x4c9740
lea eax, [ebp - 0xb8]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c9740
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0x208
push eax
lea eax, [ebp - 0xb0]
push eax
push 0
push 0
push ebx
push dword [ebp - 0xb8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xb8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4c9739
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00413f09
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], esi
jle 0x4c971d
add eax, 0xfffffff0
push eax
call fcn.00412393
pop ecx
mov ecx, dword [ebp - 0xb4]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00412ac4
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
jmp 0x4c9768
push 0x5ff6d3
mov ecx, edi
call fcn.00411dbd
mov ecx, dword [ebp - 0xb4]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
jmp 0x4c974c
push 0x5ff6dd
jmp 0x4c9745
push 0x5ff6de
mov ecx, edi
call fcn.00411dbd
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov eax, edi
call fcn.00506da5
ret

Function at 0x4c9775
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x5d8239
call fcn.00506dc7
push 4
pop eax
xor esi, esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
call fcn.00430f47
test eax, eax
mov edx, 0x100
mov ecx, esi
lea eax, [ebp - 0x10]
push eax
cmovne ecx, edx
or ecx, 0x20019
push ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c97e8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00412ac4
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00412ac4
mov eax, esi
call fcn.00506d90
ret
Function at 0x4c9b68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x30
mov eax, 0x5d831e
call fcn.00506dfb
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x30]
and dword [ebp - 0x3c], 0
push 0x600878
call fcn.00413f09
xor eax, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 1
call fcn.0041279d
push eax
lea ecx, [ebp - 0x34]
call fcn.00411d94
mov byte [ebp - 4], 2
call fcn.0041279d
push eax
lea ecx, [ebp - 0x2c]
call fcn.00411d94
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x38], esi
call fcn.00412393
pop ecx
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0049c8d1
test al, al
je 0x4c9c37
and dword [ebx + 0x10], 0
lea eax, [ebp - 0x28]
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.00418f16
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00419170
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
jmp 0x4c9ce9
push str.DATA
mov edi, 0x6833d0
push 0x616458
mov ecx, edi
call fcn.00535b1b
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4c9ca8
push esi
mov ecx, edi
call fcn.00535b1b
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c9ca1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ecx, 0x6833d0
mov edi, eax
call fcn.00535b1b
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test edi, edi
je 0x4c9ca1
test eax, eax
je 0x4c9ca1
push edi
call fcn.00419378
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0041925b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
and dword [ebx + 0x10], 0
lea eax, [ebp - 0x28]
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.00418f16
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00419170
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov eax, ebx
call fcn.00506da5
ret 4
Function at 0x4cb64d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x5d8569
call fcn.00506e69
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4cb6ca
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4cb6ca
call fcn.00461a5e
mov esi, eax
jmp 0x4cb7a1
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4cb6ed
call fcn.00461a5e
jmp 0x4cb794
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x4cb6e3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4cb71d
mov esi, 0x8007000e
jmp 0x4cb796
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004605fc
jmp 0x4cb743
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x4cb716
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4cb6e3
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004cb512
mov esi, eax
test edi, edi
je 0x4cb7a1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4cb7ba
lea ecx, [ebp - 0x418]
call fcn.0047e80b
mov eax, esi
call fcn.00506db6
ret 0x10
Function at 0x4cc4d3
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ca248
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cc51c
push dword [ebp + 8]
call fcn.004e5952
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4cc50d
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ca248
pop ecx
pop ecx
mov esi, eax
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4cc678
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push 0xc
mov eax, 0x5d8635
call fcn.00506dc7
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4cc6a0
mov bl, 1
jmp 0x4cc779
and edi, 0x10
jne 0x4cc6ce
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0048ba90
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov esi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
call fcn.00412ac4
test esi, esi
sete al
test al, al
je 0x4cc779
call fcn.0041279d
push eax
lea ecx, [ebp - 0x10]
call fcn.00411d94
xor eax, eax
inc eax
push ebx
mov byte [ebp - 4], al
call fcn.0059f08d
mov esi, dword [ebp + 8]
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [esi - 4], 1
jle 0x4cc706
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.00412624
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
lea eax, [ebp - 0x10]
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
push 0x604f78
push eax
call fcn.00412690
mov esi, dword [ebp - 0x10]
add esp, 0x18
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4cc75d
push dword [ebp + 8]
test edi, edi
je 0x4cc74d
call fcn.004e57cb
jmp 0x4cc752
call fcn.004e5952
pop ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
movzx ebx, bl
push 1
pop eax
lea ecx, [esi - 0x10]
cmove ebx, eax
call fcn.00412ac4
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
test bl, bl
sete al
call fcn.00506d90
ret
Function at 0x4ccbc8
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 8
mov eax, 0x5d86ff
call fcn.00506dc7
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ccbf7
test al, 1
je 0x4ccbf7
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
test edi, edi
jne 0x4ccca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4ccc1b
inc edi
jmp 0x4ccca7
push dword [ebp + 8]
call fcn.004e5952
pop ecx
call fcn.0041279d
push eax
lea ecx, [ebp - 0x10]
call fcn.00411d94
push 0
mov byte [ebp - 4], 1
call fcn.0059f08d
mov esi, dword [ebp + 8]
mov ebx, eax
pop ecx
mov dword [ebp - 0x14], edx
cmp dword [esi - 4], 1
jle 0x4ccc5a
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.00412624
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
lea eax, [ebp - 0x10]
push edx
push dword [ebp - 0x14]
push ebx
push esi
push 0x605150
push eax
call fcn.00412690
mov esi, dword [ebp - 0x10]
add esp, 0x18
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4ccc9f
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov eax, edi
call fcn.00506d90
ret

Function at 0x4cd49a
Capabilities:
Query environment variable

Disassembly:
push 4
mov eax, 0x5d8885
call fcn.00506dc7
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
push 0x3e8
call fcn.00506f2d
mov esi, eax
mov dword [esp], 0x1f4
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4cd4f6
push esi
lea eax, [ebp + 0xc]
push 0x5f1ce0
push eax
call fcn.00412690
push esi
call fcn.00506f36
add esp, 0x10
lea ecx, [ebp + 0xc]
call fcn.00435d4e
mov ecx, eax
call fcn.00435c76
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00412393
mov esi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.00412ac4
mov eax, esi
call fcn.00506d90
ret 8
Function at 0x4cd9da
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4cda4f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4cda4f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4cda4f
push 0
lea eax, [ebp - 8]
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4cda58
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
jmp 0x4cda51
Function at 0x4ce00f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0056b050
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], 0x603490
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 5
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret
Function at 0x4cea8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x4ceaa0
xor eax, eax
jmp 0x4ceb69
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.004ceb6d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4ceb68
push ebx
lea ecx, [ebp - 0xc]
xor ebx, ebx
push ecx
push 2
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x14]
test eax, eax
mov eax, dword [esi]
jne 0x4ceae3
push ebx
push ebx
push ebx
push ebx
push esi
call dword [eax + 0x14]
test eax, eax
je 0x4ceaeb
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
jmp 0x4ceb67
push edi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ceb13
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x4ceb3d
push dword [ebp - 0xc]
call fcn.00506f2d
pop ecx
mov ecx, dword [esi]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push esi
call dword [ecx + 0xc]
test eax, eax
je 0x4ceb41
mov eax, dword [esi]
push esi
call dword [eax + 8]
push ebx
call fcn.00506f36
pop ecx
xor eax, eax
jmp 0x4ceb66
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d000a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x682b2c]
mov edx, dword [0x682b28]
sub eax, edx
push ebx
push esi
push edi
xor edi, edi
sar eax, 2
mov ebx, ecx
mov esi, edi
test eax, eax
je 0x4d006d
push dword [edx + esi*4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d0057
push ecx
mov ecx, esp
push 0x61ffb0
call fcn.00413f09
mov eax, dword [0x682b28]
mov ecx, ebx
push dword [eax + esi*4]
call fcn.0045ed1e
xor edi, edi
inc edi
mov ecx, dword [0x682b2c]
inc esi
mov edx, dword [0x682b28]
sub ecx, edx
sar ecx, 2
cmp esi, ecx
jb 0x4d002b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d0c81
Capabilities:
Enumerate files on windows

Disassembly:
push 0x26c
mov eax, 0x5d920b
call fcn.00506dfb
mov dword [ebp - 0x274], ecx
push 0x250
xor edi, edi
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.0056b050
mov eax, dword [0x682b14]
xor ebx, ebx
mov edx, dword [0x682b10]
add esp, 0xc
sub eax, edx
mov dword [ebp - 0x268], ebx
sar eax, 2
test eax, eax
je 0x4d0e27
mov eax, dword [edx + ebx*4]
sub eax, 0x10
push eax
call fcn.00412393
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
and dword [ebp - 4], 0
cmp dword [esi - 0xc], 0
jne 0x4d0cfe
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00412ac4
jmp 0x4d0e07
push 1
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00434d0c
mov edi, 0x5f1b04
mov byte [ebp - 4], 1
push edi
mov ecx, eax
call fcn.0042e677
mov ecx, dword [ebp - 0x26c]
test eax, eax
mov byte [ebp - 4], 0
setne bl
lea ecx, [ecx - 0x10]
call fcn.00412ac4
test bl, bl
je 0x4d0d50
push edi
lea ecx, [ebp - 0x264]
call fcn.0042e473
mov esi, dword [ebp - 0x264]
push 0x61cfd8
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.0042dfbd
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x270]
mov edi, eax
add ecx, 0xfffffff0
call fcn.00412ac4
cmp edi, 0xffffffff
je 0x4d0df2
cmp dword [0x683574], 0
jne 0x4d0deb
test byte [ebp - 0x260], 0x10
jne 0x4d0dd9
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push 0x5f1ce0
push eax
call fcn.004607c0
pop ecx
pop ecx
mov ecx, esp
push 0x61ffb0
call fcn.00413f09
mov esi, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x274]
push esi
call fcn.0045ed1e
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d0d8f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
xor edi, edi
inc edi
call fcn.00412ac4
mov ebx, dword [ebp - 0x268]
mov ecx, dword [0x682b14]
inc ebx
mov edx, dword [0x682b10]
sub ecx, edx
sar ecx, 2
mov dword [ebp - 0x268], ebx
cmp ebx, ecx
jb 0x4d0ccd
mov eax, edi
call fcn.00506da5
ret
Function at 0x4d1119
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x270
mov eax, 0x5d92e0
call fcn.00506dfb
mov dword [ebp - 0x278], ecx
mov eax, dword [0x682b08]
xor esi, esi
mov edx, dword [0x682b04]
xor edi, edi
sub eax, edx
mov dword [ebp - 0x268], esi
sar eax, 2
test eax, eax
je 0x4d136f
mov eax, dword [edx + edi*4]
sub eax, 0x10
push eax
call fcn.00412393
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
and dword [ebp - 4], 0
cmp dword [esi - 0xc], 0
je 0x4d1361
push 1
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x264]
call fcn.00434d0c
push 0x5f1b04
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0042e677
mov ecx, dword [ebp - 0x270]
test eax, eax
mov byte [ebp - 4], 0
setne bl
lea ecx, [ecx - 0x10]
call fcn.00412ac4
test bl, bl
je 0x4d11c9
push 0x5f1b04
lea ecx, [ebp - 0x264]
call fcn.0042e473
mov esi, dword [ebp - 0x264]
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.0056b050
push 0x61cfd8
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0042dfbd
add esp, 0x18
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x274]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.00412ac4
cmp ebx, 0xffffffff
je 0x4d1361
mov esi, dword [ebp - 0x278]
cmp dword [0x683574], 0
jne 0x4d1324
test byte [ebp - 0x260], 0x10
je 0x4d1304
lea eax, [ebp - 0x234]
push 0x60ce98
push eax
call fcn.0059c383
pop ecx
pop ecx
test eax, eax
je 0x4d130e
lea eax, [ebp - 0x234]
push 0x60ce9c
push eax
call fcn.0059c383
pop ecx
pop ecx
test eax, eax
je 0x4d130e
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0042dfbd
push 0x5f1b04
push eax
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 2
push eax
call fcn.0042dfbd
add esp, 0x18
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.00412ac4
push dword [ebp - 0x26c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d12f2
push ecx
mov ecx, esp
push 0x61de20
call fcn.00413f09
push dword [ebp - 0x26c]
mov ecx, esi
call fcn.0045ed1e
lea eax, [ebp - 0x26c]
mov ecx, esi
push eax
call fcn.004d1377
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov dword [ebp - 0x268], 1
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d1225
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [0x683574], 0
mov esi, dword [ebp - 0x264]
lea ecx, [esi - 0x10]
jne 0x4d1364
or dword [ebp - 4], 0xffffffff
call fcn.00412ac4
mov eax, dword [0x682b08]
inc edi
mov edx, dword [0x682b04]
sub eax, edx
sar eax, 2
cmp edi, eax
jb 0x4d1150
jmp 0x4d1369
lea ecx, [esi - 0x10]
call fcn.00412ac4
mov esi, dword [ebp - 0x268]
mov eax, esi
call fcn.00506da5
ret
Function at 0x4d1377
Capabilities:
Enumerate files on windows

Disassembly:
push 0x26c
mov eax, 0x5d9329
call fcn.00506dfb
mov dword [ebp - 0x274], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x260]
push 0x250
push 0
push eax
call fcn.0056b050
push 0x621df8
lea eax, [ebp - 0x26c]
push ebx
push eax
call fcn.0042dfbd
add esp, 0x18
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x26c]
mov edi, eax
add ecx, 0xfffffff0
call fcn.00412ac4
cmp edi, 0xffffffff
je 0x4d1571
cmp dword [0x683574], 0
jne 0x4d156a
test byte [ebp - 0x260], 0x10
jne 0x4d1554
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x264]
call fcn.00413f09
and dword [ebp - 4], 0
lea eax, [ebp - 0x270]
push 3
push eax
lea ecx, [ebp - 0x264]
call fcn.00434d0c
push eax
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00411f3a
mov ecx, dword [ebp - 0x270]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00412ac4
push 0x621e00
lea ecx, [ebp - 0x264]
call fcn.0042e69b
test eax, eax
je 0x4d14e9
push 0x621e08
lea ecx, [ebp - 0x264]
call fcn.0042e69b
test eax, eax
je 0x4d14e9
push 0x621e10
lea ecx, [ebp - 0x264]
call fcn.0042e69b
test eax, eax
je 0x4d14e9
push 0x621e18
lea ecx, [ebp - 0x264]
call fcn.0042e69b
test eax, eax
je 0x4d14e9
push 0x621e20
lea ecx, [ebp - 0x264]
call fcn.0042e69b
test eax, eax
je 0x4d14e9
push 0x621e28
lea ecx, [ebp - 0x264]
call fcn.0042e69b
test eax, eax
je 0x4d14e9
push 0x6191d8
lea ecx, [ebp - 0x264]
call fcn.0042e69b
test eax, eax
je 0x4d14e9
push 0x6191c8
lea ecx, [ebp - 0x264]
call fcn.0042e69b
test eax, eax
jne 0x4d1542
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00412393
add eax, 0x10
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x268]
push 0x5f1ce0
push eax
call fcn.004607c0
add esp, 0xc
mov ecx, esp
push 0x61ffb0
call fcn.00413f09
mov esi, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x274]
push esi
call fcn.0045ed1e
lea ecx, [esi - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x264]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d13df
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
call fcn.00506da5
ret 4

Function at 0x4d1da7
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [0x682afc]
mov edx, dword [0x682af8]
sub eax, edx
push ebx
push esi
push edi
sar eax, 2
xor edi, edi
xor esi, esi
mov ebx, ecx
test eax, eax
je 0x4d1e06
cmp dword [0x683574], 0
jne 0x4d1e04
push dword [edx + esi*4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d1ded
mov eax, dword [0x682af8]
mov ecx, ebx
lea eax, [eax + esi*4]
push eax
call fcn.004d1e0e
xor edi, edi
inc edi
mov eax, dword [0x682afc]
inc esi
mov edx, dword [0x682af8]
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x4d1dc4
jmp 0x4d1e06
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
ret