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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x5c1ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x5c2035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.005c1e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x5c1fc5
mov edi, 0x5dc8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x5c2035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.005c1e00
add edi, 4
add esp, 0xc
cmp edi, 0x5dc8c0
jb 0x5c2000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x5c2070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.005c8082
mov esi, eax
add esp, 8
test esi, esi
je 0x5c2107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5c2102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.005c7946
add esp, 8
test eax, eax
je 0x5c20e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x5c20e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.005c7946
add esp, 8
test eax, eax
jne 0x5c20c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x5c2102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x5c2f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d79fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x5c3002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.005c6dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x5c3002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005be6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.005c720b
push 0x10
call fcn.005c71d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x5c2fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005b31c0
jmp 0x5c2fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.005c2b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x5c2ff0
mov ecx, edi
call fcn.005b32c0
push edi
call fcn.005c71c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5c3021
inc ebx
cmp ebx, 0x20
jb 0x5c2f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x5c4250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8808
push 0x5c8288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x5c4329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5c4329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005c71d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x5c4329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x5c4329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x5c432c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005c4351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c4d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5c4d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x5c4d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5c4d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5c4d94
push eax
push esi
call fcn.005c720b
add esp, 8
pop esi
ret 0x10

Function at 0x5c4da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5c4e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5c4e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5dd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005c6dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x5c4dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x5c4e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5c4ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x5c4eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5dd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005c6dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x5c4eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x5c4e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x5c5000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5c5131
push esi
call fcn.005c8145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.005b7080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5c5131
push 0
push ebp
call fcn.005b73a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.005b7260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5c508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005b72f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5c5121
push 0x5dd918
push edi
call fcn.005c63f0
push eax
push ebx
push esi
call fcn.005c4f60
push 0x5dd8f8
push edi
call fcn.005c63f0
push eax
push ebx
push esi
call fcn.005c4f60
push 0x5dd8d8
push edi
call fcn.005c63f0
push eax
push ebx
push esi
call fcn.005c4f60
push 0x5dd8c0
push edi
call fcn.005c63f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.005c4f60
push 0x5dd8a0
push edi
call fcn.005c63f0
push eax
push ebx
push esi
call fcn.005c4f60
push 0x5dd888
push edi
call fcn.005c63f0
push eax
push ebx
push esi
call fcn.005c4f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5c61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005c6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005c6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005c6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005c6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5c6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5c6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5d887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5c6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5c6c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40162d
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov eax, dword [0x40b818]
test eax, eax
je 0x40163d
push eax
call fcn.004030e8
pop ecx
mov eax, dword [0x40b81c]
test eax, eax
je 0x40164d
push eax
call fcn.004030e8
pop ecx
mov eax, dword [0x40b820]
test eax, eax
je 0x40165d
push eax
call fcn.004030e8
pop ecx
mov eax, dword [0x40b824]
test eax, eax
je 0x40166d
push eax
call fcn.004030e8
pop ecx
mov eax, dword [0x40b828]
test eax, eax
je 0x40167d
push eax
call fcn.004030e8
pop ecx
mov eax, dword [0x40b82c]
test eax, eax
je 0x40168d
push eax
call fcn.004030e8
pop ecx
jmp fcn.00401526
Function at 0x401692
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
push ebx
push edi
push 0x40921d
push dword [0x40b820]
call fcn.00402ff0
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x110]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push 0x80
push 3
push ebx
push 1
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 8], edi
jne 0x401700
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x7d5
call fcn.00401019
pop ecx
xor eax, eax
jmp 0x4018d7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffffffffffffffc
push edi
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push dword [ebp - 4]
call sub.WSOCK32.dll_ntohl
cmp eax, 0x8675309
jne 0x40175e
push 2
push ebx
push 0xfffffffffffffff8
push dword [ebp - 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 4]
call sub.WSOCK32.dll_ntohl
cmp eax, 0x400
mov dword [ebp - 4], eax
jbe 0x40176f
movzx eax, word [0x40b834]
add eax, 0xbb9
jmp 0x4018c4
push 2
push ebx
push 0xfffffffffffffff8
pop ecx
sub ecx, eax
push ecx
push dword [ebp - 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x510]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 0x510]
call sub.WSOCK32.dll_ntohs
cmp ax, 1
mov word [0x40b808], ax
jb 0x4018b8
cmp ax, 2
ja 0x4018b8
mov eax, dword [ebp - 0x50e]
push eax
mov dword [ebp - 4], eax
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [0x40b824]
call fcn.00402ff0
lea eax, [ebp - 0x50a]
push eax
push dword [0x40b818]
call fcn.00402ff0
lea eax, [ebp - 0x50a]
push eax
call fcn.00403190
lea esi, [ebp + eax - 0x509]
push esi
push dword [0x40b81c]
call fcn.00402ff0
push esi
call fcn.00403190
add esp, 0x20
cmp word [0x40b808], 2
lea esi, [esi + eax + 1]
jne 0x40186b
push esi
push dword [0x40b820]
call fcn.00402ff0
push esi
call fcn.00403190
lea esi, [esi + eax + 1]
xor eax, eax
mov ax, word [esi]
add esp, 0xc
mov word [0x40b834], ax
push eax
call sub.WSOCK32.dll_ntohs
mov word [0x40b834], ax
push 0x200
push dword [0x40b82c]
movzx eax, ax
add eax, 0xbbc
push eax
push dword [0x40b814]
inc esi
inc esi
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
push dword [0x40b828]
call fcn.00402ff0
push esi
call fcn.00403190
lea esi, [esi + eax + 1]
xor eax, eax
mov ax, word [esi]
add esp, 0xc
mov word [0x40b810], ax
push eax
call sub.WSOCK32.dll_ntohs
mov word [0x40b810], ax
xor eax, eax
mov ax, word [esi + 2]
mov word [0x40b80c], ax
push eax
call sub.WSOCK32.dll_ntohs
xor ebx, ebx
mov word [0x40b80c], ax
inc ebx
jmp 0x4018cb
movzx eax, word [0x40b834]
add eax, 0xbba
push eax
call fcn.00401019
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x401db8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push dword [ebp + 8]
call fcn.00403190
pop ecx
mov ecx, eax
xor eax, eax
cmp cx, ax
mov word [ebp - 0x40], ax
mov word [ebp - 0x3e], 0xc0c1
mov word [ebp - 0x3c], 0xc181
mov word [ebp - 0x3a], 0x140
mov word [ebp - 0x38], 0xc301
mov word [ebp - 0x36], 0x3c0
mov word [ebp - 0x34], 0x280
mov word [ebp - 0x32], 0xc241
mov word [ebp - 0x30], 0xc601
mov word [ebp - 0x2e], 0x6c0
mov word [ebp - 0x2c], 0x780
mov word [ebp - 0x2a], 0xc741
mov word [ebp - 0x28], 0x500
mov word [ebp - 0x26], 0xc5c1
mov word [ebp - 0x24], 0xc481
mov word [ebp - 0x22], 0x440
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], 0xcc01
mov word [ebp - 0x1c], 0xd801
mov word [ebp - 0x1a], 0x1400
mov word [ebp - 0x18], 0xf001
mov word [ebp - 0x16], 0x3c00
mov word [ebp - 0x14], 0x2800
mov word [ebp - 0x12], 0xe401
mov word [ebp - 0x10], 0xa001
mov word [ebp - 0xe], 0x6c00
mov word [ebp - 0xc], 0x7800
mov word [ebp - 0xa], 0xb401
mov word [ebp - 8], 0x5000
mov word [ebp - 6], 0x9c01
mov word [ebp - 4], 0x8801
mov word [ebp - 2], 0x4600
jbe 0x401eb9
mov edx, dword [ebp + 8]
push esi
push edi
movzx esi, cx
mov cl, byte [edx]
xor cl, al
movzx ecx, cl
mov edi, ecx
shr edi, 4
movzx edi, word [ebp + edi*2 - 0x20]
and ecx, 0xf
xor di, word [ebp + ecx*2 - 0x40]
movzx ax, ah
xor eax, edi
inc edx
dec esi
jne 0x401e94
pop edi
pop esi
leave
ret

Function at 0x402238
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004034d0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], edi
call fcn.004034d0
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4022bb
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov ebx, 0xfa
push ebx
push dword [ebp - 0x10]
call esi
mov edi, 0x102
jmp 0x4022a3
call fcn.00401d6b
push ebx
push dword [ebp - 0x10]
call esi
cmp eax, edi
je 0x402298
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402acf
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
call fcn.00401d6b
cmp dword [0x40b700], 0
jne 0x402c16
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040236e
add esp, 0xc
test eax, eax
je 0x402b08
cmp dword [ebp + 0x10], 0
jne 0x402c16
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00402ff0
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.00403190
add esp, 0xc
cmp byte [eax + esi], 0x5c
mov edi, 0x409200
je 0x402b4a
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00403000
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push 0x409500
push eax
call fcn.00403000
pop ecx
pop ecx
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402c13
test byte [ebp - 0x244], 0x10
je 0x402be8
cmp byte [ebp - 0x218], 0x2e
je 0x402be8
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00402ff0
lea eax, [ebp - 0x104]
push eax
call fcn.00403190
add esp, 0xc
cmp byte [eax + esi], 0x5c
je 0x402bc1
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00403000
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00403000
push 0
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00402acf
add esp, 0x14
call fcn.00401d6b
cmp dword [0x40b700], 0
jne 0x402c0c
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402b7c
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c18
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040236e
add esp, 0xc
test eax, eax
je 0x402c3a
xor eax, eax
inc eax
leave
ret
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00402ff0
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.00403190
add esp, 0xc
cmp byte [eax + esi], 0x5c
mov edi, 0x409200
je 0x402c7c
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00403000
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push 0x409500
push eax
call fcn.00403000
pop ecx
pop ecx
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402cb1
xor eax, eax
jmp 0x402d45
test byte [ebp - 0x244], 0x10
je 0x402d1f
cmp byte [ebp - 0x218], 0x2e
je 0x402d1f
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00402ff0
lea eax, [ebp - 0x104]
push eax
call fcn.00403190
add esp, 0xc
cmp byte [eax + esi], 0x5c
je 0x402cf6
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00403000
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00403000
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00402c18
add esp, 0x10
test eax, eax
jne 0x402d4a
call fcn.00401d6b
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402cb1
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
xor esi, esi
inc esi
jmp 0x402d3c
Function at 0x402d4f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
push edi
lea eax, [ebp - 0x44]
push eax
push dword [0x40b828]
call fcn.00401ebb
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
mov byte [0x40db88], bl
call fcn.0040236e
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x402dae
push 0x409504
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00403330
cmp eax, ebx
pop ecx
pop ecx
je 0x402dae
add eax, 4
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402c18
pop ecx
pop ecx
mov edi, eax
movzx esi, word [0x40b834]
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [0x40b830]
add esi, 0xbbb
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x402f4b
mov edi, 0x200
push edi
lea eax, [ebp - 0x244]
push eax
push esi
push dword [0x40b814]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
push 0x40d940
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00402f8e
add esp, 0xc
push 0x21
push dword [0x40b82c]
lea eax, [ebp - 0x444]
push eax
push dword [0x40b830]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x402f5a
push 0x20
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.004034d0
mov eax, dword [0x40b830]
mov dword [ebp - 0x20], eax
add esp, 0xc
lea eax, [ebp - 0x244]
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x444]
push eax
movzx eax, word [0x40b834]
add eax, 0xbc1
push eax
push dword [0x40b814]
mov dword [ebp - 0x1c], ebx
call esi
lea eax, [ebp - 0x444]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
cmp eax, ebx
je 0x402f5a
lea ecx, [ebp - 0x244]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x402f5a
push 1
mov dword [0x40d8b8], ebx
mov dword [0x40b700], ebx
call fcn.00401127
lea eax, [ebp - 0x244]
push eax
movzx eax, word [0x40b834]
add eax, 0xbc2
push eax
call fcn.004010b2
push 1
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402acf
push ebx
call fcn.00401127
add esp, 0x1c
xor eax, eax
cmp dword [0x40d8b8], 1
jle 0x402f17
push ebx
push 0x401472
push dword [0x40b830]
push 0x83
push dword [0x40b814]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, dword [0x40d8b8]
jge 0x402f5a
cmp dword [0x40d8b8], ebx
je 0x402f3c
imul eax, eax, 0x104
add eax, 0x40b838
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0040236e
add esp, 0xc
mov edi, eax
jmp 0x402f3e
xor edi, edi
movzx esi, word [0x40b834]
add esi, 0xbc0
cmp edi, ebx
je 0x402dd4
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x402f55