joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e8a
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x320]
mov byte [ebp - 2], 0
call fcn.00414be4
push dword [ebp + 0xc]
lea eax, [ebp - 0x428]
call fcn.00414be4
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00414cd4
mov byte [ebp - 3], al
lea eax, [ebp - 0x320]
push eax
call fcn.00414bcb
add esp, 0x14
test al, al
mov esi, str..
je 0x414ef3
lea eax, [ebp - 0x320]
push esi
push eax
call fcn.004489f0
pop ecx
pop ecx
lea eax, [ebp - 0x428]
push eax
call fcn.00414bcb
test al, al
pop ecx
je 0x414f13
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.004489f0
pop ecx
pop ecx
lea eax, [ebp - 0x988]
push eax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.00449745
add esp, 0x14
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
je 0x41508c
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp byte [ebp - 1], 1
jne 0x41508c
test byte [ebp - 0x568], 0x10
mov byte [ebp - 2], 1
jne 0x41503f
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x988]
push eax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x53c]
push eax
lea esi, [ebp - 0x218]
call fcn.0041509f
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004489e0
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004489f0
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004489f0
mov eax, esi
push eax
call fcn.00414b77
add esp, 0x2c
test al, al
je 0x41501b
cmp byte [ebp + 0x10], 0
je 0x415088
mov eax, esi
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov eax, esi
push eax
je 0x41502e
call ebx
cmp byte [ebp + 0x14], 1
lea eax, [ebp - 0x218]
jne 0x41507a
cmp byte [ebp - 3], 0
jne 0x41505f
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x415088
lea eax, [ebp - 0x568]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x414f6e
mov byte [ebp - 1], al
jmp 0x414f6e
push 0
push eax
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x415088
lea eax, [ebp - 0x110]
push eax
call ebx
jmp 0x41503b
push 0
push eax
lea eax, [ebp - 0x110]
push eax
call edi
jmp 0x41503b
xor bl, bl
jmp 0x41508f
mov bl, byte [ebp - 2]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x415295
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call fcn.00448e50
dec eax
add eax, esi
cmp byte [eax], 0x5c
pop ecx
jne 0x4152ae
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x415326
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x4152d6
push 0
push esi
call ebp
test eax, eax
je 0x4152db
jmp 0x41532a
cmp eax, 3
jne 0x4152f9
push esi
call fcn.00415d3b
mov edi, eax
push 0x5c
push edi
call fcn.0044aab0
add esp, 0xc
test eax, eax
jne 0x4152ff
push edi
call fcn.0044896c
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
push ebx
push edi
mov byte [eax], 0
call fcn.00415295
push edi
mov bl, al
call fcn.0044896c
pop ecx
pop ecx
test bl, bl
je 0x415321
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x4152fb
test al, 0x10
je 0x4152f9
mov al, 1
jmp 0x4152fb

Function at 0x41532e
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x230]
call fcn.00414be4
push dword [ebp + 0xc]
lea eax, [ebp - 0x128]
call fcn.00414be4
pop ecx
pop ecx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4153a7
cmp byte [ebp + 0x10], al
je 0x4153a3
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x41539f
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov al, 1
leave
ret
xor al, al
leave
ret
lea eax, [ebp - 0x230]
push eax
call fcn.00414bcb
test al, al
pop ecx
je 0x4153a3
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.00414bcb
xor ebx, ebx
test al, al
pop ecx
je 0x4153d8
cmp byte [ebp + 0x10], bl
jne 0x4153fa
xor al, al
jmp 0x41546f
lea eax, [ebp - 0x128]
push eax
call fcn.00415295
test al, al
pop ecx
je 0x4153d1
lea eax, [ebp - 0x128]
push eax
call fcn.00414bcb
pop ecx
test al, al
jmp 0x4153cf
lea eax, [ebp - 0x230]
push str..
push eax
call fcn.004489f0
lea eax, [ebp - 0x230]
push eax
call fcn.00448e50
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
push eax
call fcn.00448e50
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], eax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x415472
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.00414be4
push dword [ebp + 0xc]
lea eax, [ebp - 0x230]
call fcn.00414be4
lea eax, [ebp - 0x128]
push eax
call fcn.00414bcb
add esp, 0xc
test al, al
jne 0x4154ac
leave
ret
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00414bcb
xor ebx, ebx
test al, al
pop ecx
je 0x41551b
cmp byte [ebp + 0x10], bl
jne 0x4154cc
xor al, al
jmp 0x4155cb
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x41551b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x41551b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
jmp 0x4155cb
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00414cd4
test al, al
pop ecx
pop ecx
je 0x415568
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0041532e
add esp, 0xc
test al, al
je 0x4154c5
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.004155ce
pop ecx
pop ecx
test al, al
jmp 0x415513
lea eax, [ebp - 0x128]
push eax
call fcn.00448e50
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.00448e50
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x4155ce
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push dword [ebp + 8]
lea eax, [ebp - 0x128]
call fcn.00414be4
lea eax, [ebp - 0x128]
push eax
call fcn.00414bcb
test al, al
pop ecx
pop ecx
jne 0x4155f9
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x128]
push eax
jne 0x415615
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x415657
call fcn.00448e50
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x415739
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
lea eax, [ebp - 0x294]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4157c3
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4157c3
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x41578c
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x415783
cmp esi, edx
jle 0x415797
push str.0.0.0.0
jmp 0x4157b2
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00449ac0
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 8]
call fcn.004489e0
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
push 0x45a5dc
push dword [ebp + 8]
call fcn.004489e0
pop ecx
pop ecx
leave
ret

Function at 0x41593b
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x46d9ac], 0
push ebx
push esi
mov ebx, eax
je 0x4159a4
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4159a0
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4159a6
xor eax, eax
jmp 0x4159e6
xor esi, esi
cmp byte [0x46d9ad], 0
je 0x4159c3
test bl, 4
je 0x4159c3
push esi
push 0x4159ea
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x4159d7
cmp ebx, 0x40
je 0x4159d7
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4159e6
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call sub.KERNEL32.dll_SetSystemPowerState
pop esi
pop ebx
leave
ret

Function at 0x415a24
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x415a43
push 0x1388
push dword [esp + 8]
call fcn.00415a01
test al, al
pop ecx
pop ecx
jne 0x415a5f
push 1
jmp 0x415a45
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret
Function at 0x415ca6
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x415d38
jne 0x415cbb
push 0
jmp 0x415d32
mov al, byte [0x46d9ad]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x415d31
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x415d31
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x28]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x28]
fdiv qword [ebp - 0x30]
fmul qword [0x45de18]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0045659c
cmp eax, edi
jb 0x415ce8
jmp 0x415d38
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret

Function at 0x422d19
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x422d99
lea eax, [ebp - 0x114]
push 0x45b214
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x422d87
lea eax, [ebp - 0x114]
push 0x45ca90
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x422d87
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.0041494d
add esp, 0xc
test al, al
je 0x422dad
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422d40
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x422db4
mov al, 1
jmp 0x422e4a
xor bl, bl
jmp 0x422e41
lea eax, [ebp - 0x140]
push eax
push 0x45ca94
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x422e3f
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [ebp - 0x140], 0x10
je 0x422e2d
lea eax, [ebp - 0x114]
push 0x45b214
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x422e2d
lea eax, [ebp - 0x114]
push 0x45ca90
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x422e2d
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00422d19
test al, al
je 0x422dad
push 0x45ca90
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x422dcf
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42448f
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x518]
push eax
mov esi, 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x424607
push ebx
push edi
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x108]
push str.___s
push eax
call fcn.00448edb
lea eax, [ebp - 0x108]
lea edi, [ebp - 0x108]
push eax
dec edi
call fcn.00448e50
add esp, 0x10
xor ebx, ebx
cmp byte [eax + edi], 0x5c
jne 0x42451e
lea eax, [ebp - 0x108]
push eax
call fcn.00448e50
pop ecx
lea ecx, [ebp - 0x108]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x42451e
lea eax, [ebp - 0x108]
push eax
call fcn.00448e50
pop ecx
mov byte [eax + edi], bl
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x424535
cmp byte [ebp + 0x10], bl
je 0x4245f8
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4245ef
push 0x14
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00449140
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x414], 0xa0000003
call fcn.00448e50
shl eax, 1
mov word [ebp - 0x40a], ax
mov eax, dword [ebp - 0x40a]
add esp, 0x10
add eax, 2
push esi
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x404]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x40a]
push ebx
add eax, 0xc
mov word [ebp - 0x410], ax
lea ecx, [ebp - 4]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x414]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push edi
jne 0x4245fc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x424605
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x425254
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x148
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x60], ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0x64], ebx
jne 0x425287
xor al, al
jmp 0x4253a4
push edi
lea eax, [ebp - 0xb4]
push 0x45b214
push eax
call fcn.00448c50
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
pop ecx
pop ecx
je 0x4252e5
lea eax, [ebp - 0xb4]
push 0x45ca90
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x4252e5
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x78]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x425307
lea eax, [ebp - 0xe0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x425288
push ebx
call edi
cmp byte [ebp + 0x7c], 0
jne 0x42530e
mov al, 1
jmp 0x4253a3
xor bl, bl
jmp 0x42539c
lea eax, [ebp - 0xe0]
push eax
push 0x45ca94
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x64], eax
je 0x42539a
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [ebp - 0xe0], 0x10
je 0x425386
lea eax, [ebp - 0xb4]
push 0x45b214
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x425386
mov ebx, 0x45ca90
lea eax, [ebp - 0xb4]
push ebx
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x425386
lea eax, [ebp - 0xb4]
push eax
call esi
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x60]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebp + 0x70]
call fcn.00425254
test al, al
je 0x425307
push ebx
call esi
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42532a
mov bl, 1
push dword [ebp + 0x64]
call edi
mov al, bl
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x425eb2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.00416898
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x20]
call fcn.004168de
push 0x45ca94
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416b57
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x426011
mov edi, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp - 0x10]
call fcn.0041fc67
cmp eax, 1
je 0x42600c
cmp eax, 0xb
jne 0x425f2a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x425f0a
lea eax, [ebp - 0x134]
push 0x45b214
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x425ff2
lea eax, [ebp - 0x134]
push 0x45ca90
push eax
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
je 0x425ff2
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00416ba6
lea eax, [ebp - 0x134]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416b57
test byte [ebp - 0x160], 0x10
je 0x425fca
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x425f96
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x425ff2
push 0x45ac08
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416b57
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.00425eb2
cmp al, bl
mov byte [ebp + 0xb], al
je 0x426010
jmp 0x425ff2
mov eax, dword [ebp - 0x140]
mov edx, dword [ebp - 0x144]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x425ff2
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x425f0a
jmp 0x426010
mov byte [ebp + 0xb], 0
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0044896c
push dword [ebp - 0xc]
call fcn.0044896c
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0x18
Function at 0x42f0f7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0xc]
mov word [esi], 2
call fcn.00415d3b
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044896c
cmp edi, 0xffffffff
pop ecx
jne 0x42f127
xor ecx, ecx
push 0
inc ecx
jmp 0x42f14e
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], edi
jle 0x42f149
cmp dword [ebp + 0x10], 0xffff
jg 0x42f149
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42f158
push 0
push 2
pop ecx
mov eax, dword [ebp + 8]
call fcn.004211df
xor al, al
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x42ff74
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0041687b
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, connect
push edi
call esi
test eax, eax
je 0x42ffc7
mov esi, 0x80004002
jmp 0x4300b6
lea eax, [ebp - 0x2c]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4300aa
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x54], 0
push str.interface_
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 0xff
call fcn.00416988
lea eax, [ebp - 0x54]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00416b57
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x24]
push edi
call esi
test eax, eax
jne 0x430095
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x158]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43008c
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov byte [ebp + eax - 0x158], 0
lea eax, [ebp - 0x158]
push eax
call fcn.00448971
test eax, eax
pop ecx
pop ecx
jne 0x43008c
lea eax, [ebp - 0x54]
push eax
or eax, 0xffffffff
call fcn.00416512
pop ecx
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.0044896c
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x4300aa
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x42ffc7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x24]
call fcn.0044896c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret