joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4712d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x471319
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x471790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a2070
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00471340
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004713c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004713c0
lea ecx, [esi + 0xc]
call fcn.0048ffe0
lea ecx, [esi + 0x10]
call fcn.0048ffe0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00472950
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00472950
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00472950
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00490055
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00490055
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x472d70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a22b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.00476b2a
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.004900c3
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.0048d44d
mov eax, dword [eax]
push 0x8b8e38
push eax
call fcn.0047efe4
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.00490055
test bl, bl
je 0x472df0
push 0x8b8e38
lea ecx, [esp + 0xc]
call fcn.00490431
push 0x8b8e34
lea ecx, [esp + 0xc]
call fcn.00490431
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00476bed
test eax, eax
je 0x472eb4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.00476e0d
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x472e70
lea ecx, [esp + 0x18]
call fcn.00476dd4
test eax, eax
jne 0x472e70
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00476edc
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.00472d70
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x472ea5
lea ecx, [esp + 0x18]
call fcn.00476dd4
test eax, eax
jne 0x472eaa
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x472eaa
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00476edc
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.00490055
test edi, edi
jne 0x472e20
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.00476ba3
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.00490055
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00476b67
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x472fb0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a22e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x8b9ba8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004901de
push str..
lea ecx, [esp + 0x10]
call fcn.00490431
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x473053
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.00490055
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00490055
xor eax, eax
jmp 0x473198
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x8b8e58
push edx
call fcn.0047efe4
add esp, 8
test eax, eax
je 0x473149
lea eax, [esp + 0x48]
push 0x8b8e54
push eax
call fcn.0047efe4
add esp, 8
test eax, eax
je 0x473149
test ebp, ebp
jne 0x4730b5
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.0047f093
add esp, 8
test eax, eax
je 0x473149
push esi
lea ecx, [esp + 0x14]
call fcn.004901de
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00490458
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.00490431
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4730f5
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x473117
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.00472fb0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x473149
test edi, edi
je 0x47313e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.0047f093
add esp, 8
test eax, eax
jne 0x47313e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.004731c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x473063
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.00490055
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.00490055
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x4731c0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a22fb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.0047f8a0
mov eax, dword [0x8b9ba8]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004901de
push 0x5c
lea ecx, [esp + 8]
call fcn.00490458
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.00490431
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x473266
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.00490055
xor eax, eax
jmp 0x4732e3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x4732c1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x4732b3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x47328d
jmp 0x4732c1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.00490055
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x473300
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
je 0x473430
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
push eax
push 0x40000
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x47341f
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x47341f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x47341a
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x20019
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x47341f
push eax
push eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ebp
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x47341f
push 0x105
call fcn.0048fd96
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x473411
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x10]
push 0x105
push esi
push edi
push edx
call ebx
test eax, eax
jne 0x473401
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 1
push eax
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00473300
jmp 0x473408
cmp eax, 0x103
je 0x473411
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jb 0x4733d7
push esi
call fcn.0048fdbf
add esp, 4
mov ebp, 1
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x473430
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
add esp, 0x14
ret 0x10

Function at 0x49246f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4924a7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004904fc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004904d4
jmp 0x4924b3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x493b66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x493ba8
call fcn.0049a44b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x493ba8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x493b9f
xor eax, eax
jmp 0x493bb0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00493bb6
pop edi
pop esi
pop ebx
ret 4
Function at 0x49a97b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49a9a9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a9c7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a8e1
jmp 0x49a9c7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a9c7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a8e1
test edi, edi
mov eax, edi
jne 0x49a9b1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4a5b94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x90900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4a5c2c
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x4a5c0c
xor eax, eax
push ebp
push 0x4a5c05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4a5c48
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5c0c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x90900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x90900c], ax
mov esp, ebp
pop ebp
ret
Function at 0x4a70f8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push CountClipboardFormats
push reloc.WS2_32.dll_accept
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x4a717b
lea eax, [ebp - 8]
push eax
push DrawIconEx
push 0
push CountClipboardFormats
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
je 0x4a717b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push CreateIconFromResourceEx
push reloc.WS2_32.dll_accept
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x4a7204
xor eax, eax
push ebp
push DrawFrameControl
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004a6f40
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x4a71e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4a7364
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
je 0x4a71e2
mov byte [ebp - 0x12], 0
mov byte [ebp - DrawFocusRectxe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7204
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.dll_GetThreadLocale
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4a731e
cmp byte [ebp - 0xd], 0
jne GetNextDlgTabItem
cmp byte [ebp - 0x12], 0
je 0x4a731e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4a7264
dec ebx
cmp byte [ebx], 0x2e
je 0x4a7273
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4a7263
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4a731e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4a72b0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4a731e
cmp byte [ebp - 0xd], 0
je 0x4a731e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4a731e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a93b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4a93e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call reloc.KERNEL32.dll_SetLastError
jmp 0x4a93f2
mov eax, ebx
mov edx, esi
call fcn.004a6750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a93fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x4a941d
mov al, byte [esp]
jmp 0x4a941f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4aa4d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4aa538
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004a6940
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GetACP
mov edx, eax
pop eax
call fcn.004a8684
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa53f
lea eax, [ebp - 0xc]
call fcn.004a66fc
ret
Function at 0x4ac630
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x358], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x148]
xor eax, eax
push ebp
push 0x4ac847
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x24d]
mov edx, edi
call fcn.004a87ec
xor edx, edx
push ebp
push 0x4ac81c
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
lea eax, [ebp - 0x358]
mov edx, edi
call fcn.004a68d4
lea eax, [ebp - 0x358]
mov edx, 0x4ac864
call fcn.004a6974
mov eax, dword [ebp - 0x358]
call fcn.004a6b54
push eax
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4ac6d9
mov ecx, 0xab4
mov edx, 0x4ac870
mov eax, 0x4ac8ac
call fcn.004a66dc
cmp dword [ebp - 8], 0xffffffff
jne 0x4ac6ee
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004a6160
jmp 0x4ac823
mov al, 1
jmp 0x4ac7f7
lea eax, [ebp - 0x458]
lea edx, [esi + 0x2c]
call fcn.004a5830
lea eax, [ebp - 0x458]
mov edx, 0x4ac8c0
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004a56f4
je 0x4ac7e7
lea eax, [ebp - 0x45c]
lea edx, [esi + 0x2c]
call fcn.004a68d4
mov eax, dword [ebp - 0x45c]
mov edx, 0x4ac8cc
call fcn.004a6ab0
je 0x4ac7e7
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.004a87ec
test byte [esi], 0x10
je 0x4ac7c2
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.004a8848
push 0xffffffffffffffff
lea eax, [ebp - 0x352]
push eax
call dword [0x90f9a8]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
test ebx, ebx
je 0x4ac7e7
lea edx, [ebp - 0x24d]
lea eax, [ebp - 0x352]
call fcn.004a87ec
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.004a8848
mov edx, 0x4ac8d0
lea eax, [ebp - 0x352]
call fcn.004a8848
push ebx
lea eax, [ebp - 0x352]
push eax
call fcn.004ac630
mov dword [ebp - 4], eax
jmp 0x4ac7e7
lea edx, [esi + 0x2c]
lea eax, [ebp - 0x352]
call fcn.004a8848
push 0
lea eax, [ebp - 0x352]
push eax
call dword [0x90f9a8]
cmp eax, 1
sbb eax, eax
inc eax
test al, al
push esi
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4ac6f5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac823
cmp dword [ebp - 8], 0xffffffff
je 0x4ac81b
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac84e
lea eax, [ebp - 0x45c]
call fcn.004a66fc
lea eax, [ebp - 0x358]
call fcn.004a66fc
ret
Function at 0x10011bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1007f9b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.10074980
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10014360
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10011c14
jmp dword [ecx*4 + 0x10011d7c]
mov al, byte [esi]
test al, al
je 0x10011c42
cmp al, 0x20
je 0x10011c2e
cmp al, 0xa1
jne 0x10011c42
cmp byte [esi + 1], al
jne 0x10011c42
test al, 0x80
je 0x10011c3a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10011c42
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10011c21
test ecx, ecx
je case.default.0x10011c14
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10011c14
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10011c88
cmp dl, 0xa1
jne 0x10011c7c
cmp byte [eax + 1], 0xa1
jne 0x10011c7c
test ecx, ecx
jne 0x10011c74
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10011c9c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10011cb6
jmp 0x10011c9c
cmp dl, 0x20
jne 0x10011c9a
test ecx, ecx
jne 0x10011c93
mov edi, eax
mov ecx, 1
jmp 0x10011c9c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10011c5c
cmp ecx, 1
jne case.default.0x10011c14
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10011c14
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10011c14
mov al, byte [esi]
test al, al
je 0x10011d0e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10011cf4
mov cl, byte [esi + 1]
test cl, cl
je 0x10011d0e
cmp al, 0xa1
jne 0x10011ce4
cmp cl, al
je 0x10011cf1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10014630
inc esi
jmp 0x10011d06
cmp al, 0x20
je 0x10011d06
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10014670
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10011ccd
push 0
lea ecx, [esp + 0x14]
call fcn.10014670
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10027f60
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10011d41
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10089888
call fcn.10014560
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10074912
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret