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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12b8
call fcn.0044ba00
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x62c]
mov byte [ebp - 2], 0
call fcn.00414d0c
push dword [ebp + 0xc]
lea eax, [ebp - 0x838]
call fcn.00414d0c
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00414df3
mov byte [ebp - 3], al
lea eax, [ebp - 0x62c]
push eax
call fcn.00414cf3
add esp, 0x14
test al, al
mov esi, 0x45c808
je 0x415018
lea eax, [ebp - 0x62c]
push esi
push eax
call fcn.00448ad4
pop ecx
pop ecx
lea eax, [ebp - 0x838]
push eax
call fcn.00414cf3
test al, al
pop ecx
je 0x415038
lea eax, [ebp - 0x838]
push esi
push eax
call fcn.00448ad4
pop ecx
pop ecx
lea eax, [ebp - 0x12b8]
push eax
lea eax, [ebp - 0xc94]
push eax
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00449756
add esp, 0x14
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
mov byte [ebp - 1], 1
je 0x4151b1
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [ebp - 1], 1
jne 0x4151b1
test byte [ebp - 0xa88], 0x10
mov byte [ebp - 2], 1
jne 0x415164
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x12b8]
push eax
lea eax, [ebp - 0xc94]
push eax
lea eax, [ebp - 0xa5c]
push eax
lea esi, [ebp - 0x420]
call fcn.004151c4
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00448afe
lea eax, [ebp - 0xea0]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00448ad4
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00448ad4
mov eax, esi
push eax
call fcn.00414c9f
add esp, 0x2c
test al, al
je 0x415140
cmp byte [ebp + 0x10], 0
je 0x4151ad
mov eax, esi
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x415153
call ebx
cmp byte [ebp + 0x14], 1
lea eax, [ebp - 0x420]
jne 0x41519f
cmp byte [ebp - 3], 0
jne 0x415184
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x4151ad
lea eax, [ebp - 0xa88]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x415093
mov byte [ebp - 1], al
jmp 0x415093
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
test eax, eax
je 0x4151ad
lea eax, [ebp - 0x214]
push eax
call ebx
jmp 0x415160
push 0
push eax
lea eax, [ebp - 0x214]
push eax
call edi
jmp 0x415160
xor bl, bl
jmp 0x4151b4
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 0x4153d9
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.00448d62
dec eax
lea eax, [esi + eax*2]
cmp word [eax], 0x5c
pop ecx
jne 0x4153f5
and word [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41546e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jne 0x41541d
push 0
push esi
call ebp
test eax, eax
je 0x415422
jmp 0x415472
cmp eax, 3
jne 0x415440
push esi
call fcn.00415ecf
mov edi, eax
push 0x5c
push edi
call fcn.0044aae7
add esp, 0xc
test eax, eax
jne 0x415446
push edi
call fcn.00448a22
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret
and word [eax], 0
push ebx
push edi
call fcn.004153d9
push edi
mov bl, al
call fcn.00448a22
pop ecx
pop ecx
test bl, bl
je 0x415469
push 0
push esi
call ebp
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x415442
test al, 0x10
je 0x415440
mov al, 1
jmp 0x415442

Function at 0x415476
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.00414d0c
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.00414d0c
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4154ef
cmp byte [ebp + 0x10], al
je 0x4154eb
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x4154e7
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
lea eax, [ebp - 0x438]
push eax
call fcn.00414cf3
test al, al
pop ecx
je 0x4154eb
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00414cf3
xor ebx, ebx
test al, al
pop ecx
je 0x415520
cmp byte [ebp + 0x10], bl
jne 0x415542
xor al, al
jmp 0x4155b9
lea eax, [ebp - 0x22c]
push eax
call fcn.004153d9
test al, al
pop ecx
je 0x415519
lea eax, [ebp - 0x22c]
push eax
call fcn.00414cf3
pop ecx
test al, al
jmp 0x415517
lea eax, [ebp - 0x438]
push 0x45c808
push eax
call fcn.00448ad4
lea eax, [ebp - 0x438]
push eax
call fcn.00448d62
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
push eax
call fcn.00448d62
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
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_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x4155bc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00414d0c
push dword [ebp + 0xc]
lea eax, [ebp - 0x438]
call fcn.00414d0c
lea eax, [ebp - 0x22c]
push eax
call fcn.00414cf3
add esp, 0xc
test al, al
jne 0x4155f6
leave
ret
lea eax, [ebp - 0x438]
push ebx
push eax
call fcn.00414cf3
xor ebx, ebx
test al, al
pop ecx
je 0x415665
cmp byte [ebp + 0x10], bl
jne 0x415616
xor al, al
jmp 0x415717
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x415665
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x415665
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
setne al
jmp 0x415717
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00414df3
test al, al
pop ecx
pop ecx
je 0x4156b2
push 1
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00415476
add esp, 0xc
test al, al
je 0x41560f
lea eax, [ebp - 0x22c]
push 1
push eax
call fcn.0041571a
pop ecx
pop ecx
test al, al
jmp 0x41565d
lea eax, [ebp - 0x22c]
push eax
call fcn.00448d62
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x438]
push eax
call fcn.00448d62
mov word [ebp + eax*2 - 0x436], bx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x438]
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_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x41571a
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.00414d0c
lea eax, [ebp - 0x22c]
push eax
call fcn.00414cf3
test al, al
pop ecx
pop ecx
jne 0x415745
leave
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
lea eax, [ebp - 0x22c]
push eax
jne 0x415761
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x4157a4
call fcn.00448d62
mov word [ebp + eax*2 - 0x22a], bx
lea eax, [ebp - 0x22c]
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_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret
Function at 0x41588f
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push esi
lea eax, [ebp - 0x294]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41594c
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
xor esi, esi
cmp eax, esi
je 0x41594c
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], esi
je 0x4158e8
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], esi
jne 0x4158e0
cmp edi, edx
jle 0x4158fd
push str.0.0.0.0
push dword [ebp + 8]
call fcn.00448afe
pop ecx
pop ecx
jmp 0x415945
push 4
push dword [eax + edi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.00449bc0
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00449540
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004166e8
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.00448afe
push esi
call fcn.00448a22
add esp, 0x1c
call sub.WSOCK32.dll_WSACleanup
jmp 0x41595b
push 0x45b6e0
push dword [ebp + 8]
call fcn.00448afe
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x415ac9
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x478bb4], 0
push ebx
push esi
mov ebx, eax
je 0x415b32
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 0x415b2e
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
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 0x415b34
xor eax, eax
jmp 0x415b74
xor esi, esi
cmp byte [0x478bb5], 0
je 0x415b51
test bl, 4
je 0x415b51
push esi
push 0x415b78
xor ebx, 4
call dword [sym.imp.USER32.dll_EnumWindows]
cmp ebx, 0x20
je 0x415b65
cmp ebx, 0x40
je 0x415b65
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x415b74
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 0x415bb2
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x415bd1
push 0x1388
push dword [esp + 8]
call fcn.00415b8f
test al, al
pop ecx
pop ecx
jne 0x415bed
push 1
jmp 0x415bd3
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 0x415e3a
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
test edi, edi
push esi
jl 0x415ecc
jne 0x415e4f
push 0
jmp 0x415ec6
mov al, byte [0x478bb5]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x415ec5
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x415ec5
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 [0x461700]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00457c24
cmp eax, edi
jb 0x415e7c
jmp 0x415ecc
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x422dfe
lea eax, [ebp - 0x224]
push 0x45c804
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x422dec
lea eax, [ebp - 0x224]
push 0x45f484
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x422dec
push dword [ebp + 0x10]
lea eax, [ebp - 0x224]
push dword [ebp + 0xc]
push eax
call fcn.00414a70
add esp, 0xc
test al, al
je 0x422e12
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x422da5
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x422e19
mov al, 1
jmp 0x422eaf
xor bl, bl
jmp 0x422ea6
lea eax, [ebp - 0x250]
push eax
push 0x45f48c
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x422ea4
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x250], 0x10
je 0x422e92
lea eax, [ebp - 0x224]
push 0x45c804
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x422e92
lea eax, [ebp - 0x224]
push 0x45f484
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x422e92
lea eax, [ebp - 0x224]
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.00422d7e
test al, al
je 0x422e12
push 0x45f484
call esi
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x422e34
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 0x4244ff
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xa2c]
push eax
mov esi, 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x424675
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push str.___s
push eax
call fcn.00448d78
lea eax, [ebp - 0x20c]
push eax
call fcn.00448d62
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20e], 0x5c
jne 0x42458d
lea eax, [ebp - 0x20c]
push eax
call fcn.00448d62
cmp word [ebp + eax*2 - 0x210], 0x3a
pop ecx
je 0x42458d
lea eax, [ebp - 0x20c]
push eax
call fcn.00448d62
pop ecx
mov word [ebp + eax*2 - 0x20e], bx
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4245a4
cmp byte [ebp + 0x10], bl
je 0x424674
push edi
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4245d4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
jmp 0x424673
push 0x14
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00449010
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x824], 0xa0000003
call fcn.00448d62
shl eax, 1
mov word [ebp - 0x81a], ax
mov eax, dword [ebp - 0x81a]
add eax, 2
mov word [ebp - 0x818], ax
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00449187
mov eax, dword [ebp - 0x81a]
add esp, 0x1c
push ebx
add eax, 0xc
mov word [ebp - 0x820], ax
lea ecx, [ebp - 4]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x824]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
push edi
jne 0x42466a
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4245c4
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4252df
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x425310
xor al, al
jmp 0x42542d
push edi
lea eax, [ebp - 0x22c]
push 0x45c804
push eax
call fcn.00448c09
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
pop ecx
pop ecx
je 0x42536e
lea eax, [ebp - 0x22c]
push 0x45f484
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x42536e
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x425390
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x425311
push ebx
call edi
cmp byte [ebp + 0x14], 0
jne 0x425397
mov al, 1
jmp 0x42542c
xor bl, bl
jmp 0x425425
lea eax, [ebp - 0x258]
push eax
push 0x45f48c
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x425423
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x42540f
lea eax, [ebp - 0x22c]
push 0x45c804
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x42540f
mov ebx, 0x45f484
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x42540f
lea eax, [ebp - 0x22c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004252df
test al, al
je 0x425390
push ebx
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4253b3
mov bl, 1
push dword [ebp - 4]
call edi
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x425f38
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.00416a9d
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x20]
call fcn.00416aeb
push 0x45f48c
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416d89
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x426097
mov edi, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp - 0x10]
call fcn.0041fce3
cmp eax, 1
je 0x426092
cmp eax, 0xb
jne 0x425fb0
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x425f90
lea eax, [ebp - 0x244]
push 0x45c804
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x426078
lea eax, [ebp - 0x244]
push 0x45f484
push eax
call fcn.00448c09
test eax, eax
pop ecx
pop ecx
je 0x426078
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.00416ddf
lea eax, [ebp - 0x244]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416d89
test byte [ebp - 0x270], 0x10
je 0x426050
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x42601c
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x426078
push 0x45c0ac
or eax, 0xffffffff
lea ecx, [ebp - 0xc]
call fcn.00416d89
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.00425f38
cmp al, bl
mov byte [ebp + 0xb], al
je 0x426096
jmp 0x426078
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
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 0x426078
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x425f90
jmp 0x426096
mov byte [ebp + 0xb], 0
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x20]
call fcn.00448a22
push dword [ebp - 0xc]
call fcn.00448a22
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
pop esi
leave
ret 0x18
Function at 0x42f289
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0
push dword [ebp + 0xc]
mov word [esi], 2
call fcn.00416735
pop ecx
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.00448a22
cmp edi, 0xffffffff
pop ecx
jne 0x42f2bc
xor ecx, ecx
push 0
inc ecx
jmp 0x42f2e3
cmp dword [ebp + 0x10], 0
mov dword [esi + 4], edi
jle 0x42f2de
cmp dword [ebp + 0x10], 0xffff
jg 0x42f2de
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x42f2ed
push 0
push 2
pop ecx
mov eax, dword [ebp + 8]
call fcn.0042124a
xor al, al
pop edi
pop ebx
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.00416a7d
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, SysReAllocString
push edi
call esi
test eax, eax
je 0x430147
mov esi, 0x80004002
jmp 0x430225
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x430219
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], 0x1fe
call fcn.00416b9f
lea eax, [ebp - 0x78]
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00416d89
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x430204
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x27c]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4301fb
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x27c], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x27c]
push eax
call fcn.00448a27
test eax, eax
pop ecx
pop ecx
jne 0x4301fb
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x430219
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x430147
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00448a22
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret