joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c30
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x940
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
push ebx
push ebp
mov ebp, dword [esp + 0x94c]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42449c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407db1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x150]
push edx
push ebp
push str._s__s
push eax
call fcn.004143bf
add esp, 0x10
mov esi, 0x423714
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407d04
test cl, cl
je 0x407d00
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407d04
add eax, 2
add esi, 2
test cl, cl
jne 0x407ce0
xor eax, eax
jmp 0x407d09
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407d96
mov esi, 0x424490
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407d3e
test cl, cl
je 0x407d3a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407d3e
add eax, 2
add esi, 2
test cl, cl
jne 0x407d1a
xor eax, eax
jmp 0x407d43
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407d96
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
jne 0x407d64
lea ecx, [esp + 0x150]
push ecx
call fcn.00407c30
add esp, 4
jmp 0x407d96
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407d96
lea eax, [esp + 0x150]
push eax
call ebx
push eax
lea ecx, [esp + 0x558]
push str.DeleteFile_Failed__d_:_s:_n
push ecx
call fcn.004143bf
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407cbc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x940
ret
Function at 0x408be0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x280
push 0x42e0e4
call fcn.00404f60
mov al, byte [0x42e8fc]
add esp, 4
test al, al
jne 0x408c0b
push 0x200
push 0x42e8fc
call sub.WSOCK32.dll_gethostname
call fcn.00405ad0
push eax
push str._s_jobs
push 0x42dee4
call fcn.004143bf
lea eax, [esp + 0x8c]
push eax
push str.SDI_BPS_JOBS_DIR
call fcn.004025e0
add esp, 0x14
test eax, eax
je 0x408c5e
push 0x42e8fc
call fcn.00405ac0
lea ecx, [esp + 0x84]
push eax
push ecx
push str._s__s__s
push 0x42dee4
call fcn.004143bf
add esp, 0x14
push 0x42dee4
call fcn.004025a0
push 0x42dee4
call fcn.00402820
add esp, 8
test eax, eax
jne 0x408c86
push 0x42dee4
call fcn.00402840
add esp, 4
mov al, byte [0x42e2e4]
test al, al
jne 0x408cb2
push 0x42e2e4
push str.SDI_SERVER_CFG_DIR
call fcn.004025e0
add esp, 8
test eax, eax
jne 0x408cb2
push str.BPS_is_not_properly_configured
call fcn.00402ca0
add esp, 4
push 0x42e2e4
call fcn.004025a0
mov al, byte [0x42e4e4]
add esp, 4
test al, al
jne 0x408ceb
push 0x42e4e4
push str.SDI_BIN
call fcn.004025e0
add esp, 8
test eax, eax
jne 0x408ceb
push str.BPS_is_not_properly_configured
call fcn.00402ca0
add esp, 4
push 0x42e4e4
call fcn.004025a0
push 0x42dce4
push str.SDI_SERVER_PLOT
call fcn.004025e0
add esp, 0xc
test eax, eax
jne 0x408d2d
mov edx, dword [str.bpsplot.exe]
mov eax, dword [0x42462c]
mov ecx, dword [0x424630]
mov dword [0x42dce4], edx
mov dword [0x42dce8], eax
mov dword [0x42dcec], ecx
push 0x42dee4
push str._s_nesting
push 0x42e6e4
call fcn.004143bf
push 0x42e6e4
call fcn.004025a0
push 0x42e6e4
call fcn.00402820
add esp, 0x14
test eax, eax
jne 0x408d69
push 0x42e6e4
call fcn.00402840
add esp, 4
cmp dword [0x424474], 0xffffffff
jne 0x408dab
lea edx, [esp]
mov byte [esp], 0
push edx
push str.SDI_SERVER_CLEAN_DIR
call fcn.004025e0
add esp, 8
test eax, eax
je 0x408da1
lea eax, [esp]
push eax
call fcn.0041449c
add esp, 4
mov dword [0x424474], eax
jmp 0x408dab
mov dword [0x424474], 1
push 0x42e2e4
push str._s_server_config
push 0x42c6e4
call fcn.004143bf
push 0x42c6c8
push 0x42c6e4
call fcn.00413930
add esp, 0x294
ret

Function at 0x409f40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x254
lea eax, [esp + 0x54]
push 0x42e4e4
push str._s_pm_bps_executor.exe
push eax
call fcn.004143bf
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp]
lea eax, [esp + 0x10]
push edx
push eax
push 0x42dee4
push 0
push 0x48
push 0
push 0
lea ecx, [esp + 0x70]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409faf
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 4]
push eax
call esi
pop esi
add esp, 0x254
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x254
ret
Function at 0x40a0c0
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, dword [0x42fd28]
xor eax, eax
cmp ecx, eax
je 0x40a0dc
mov eax, dword [esp + 4]
push eax
call fcn.0040a0a0
add esp, 4
xor eax, eax
ret
mov ecx, dword [esp + 4]
push 0x42f340
push 2
mov dword [0x42fd28], 1
mov dword [0x42f8d8], 0xffffffff
mov dword [0x42f8dc], eax
mov dword [0x42f8e0], eax
mov dword [0x42f8e8], eax
mov dword [0x42f8ec], eax
mov dword [0x42f8f0], eax
mov dword [0x42f8f4], eax
mov dword [0x42f920], ecx
call sub.WSOCK32.dll_WSAStartup
mov edx, dword [0x42f920]
push edx
push str.client_init:_WSAStartup_hMainDlg___x__n
call fcn.00402a90
add esp, 8
mov eax, 1
ret

Function at 0x40a260
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [0x42f8dc]
push esi
test eax, eax
push edi
je 0x40a273
mov eax, dword [0x42f8d8]
pop edi
pop esi
ret
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, 0x42f928
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [0x42f4d0], ecx
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [0x42f8d8], eax
jne 0x40a2c1
call sub.WSOCK32.dll_WSAGetLastError
pop edi
or eax, 0xffffffff
pop esi
ret
mov dx, word [0x42f4d0]
mov word [0x42eb10], 2
push edx
call sub.WSOCK32.dll_htons
push 0x42f928
mov word [0x42eb12], ax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40a31c
push 0x42f928
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40a3ed
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
mov edi, 0x42eb14
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40a321
mov dword [0x42eb14], eax
mov eax, dword [0x42f8d8]
push 0x10
push 0x42eb10
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
mov eax, dword [0x42f8d8]
je 0x40a3e7
test eax, eax
je 0x40a3e7
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push ecx
push 0x42eb20
push eax
call sub.WSOCK32.dll_getsockname
mov eax, dword [0x42f8d8]
lea edx, [esp + 0xc]
push edx
push 0x42f8f0
push 0x1002
mov esi, 4
push 0xffff
push eax
mov dword [0x42f8dc], 1
mov dword [esp + 0x20], esi
call sub.WSOCK32.dll_getsockopt
mov edx, dword [0x42f8d8]
lea ecx, [esp + 0xc]
push ecx
push 0x42f8f4
push 0x1001
push 0xffff
push edx
mov dword [esp + 0x20], esi
call sub.WSOCK32.dll_getsockopt
mov ecx, dword [0x42f8f0]
mov eax, 0x400
test ecx, ecx
jg 0x40a3cb
mov dword [0x42f8f0], eax
mov ecx, dword [0x42f8f4]
test ecx, ecx
jg 0x40a3da
mov dword [0x42f8f4], eax
call fcn.0040a1b0
mov eax, dword [0x42f8d8]
pop edi
pop esi
ret
push eax
call sub.WSOCK32.dll_closesocket
pop edi
or eax, 0xffffffff
pop esi
ret
Function at 0x40ac70
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x42f8d8]
sub esp, 0x400
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
jne 0x40ac91
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
mov ebp, dword [esp + 0x414]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40acc3
mov ebx, dword [esp + 0x418]
lea eax, [esp + 0x10]
push ebx
push ebp
push str._s__s
push eax
call fcn.004143bf
add esp, 0x10
jmp 0x40aced
mov ebx, dword [esp + 0x418]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push 0x42360c
push ecx
call fcn.0041467a
xor esi, esi
add esp, 8
cmp eax, esi
mov dword [0x42f908], eax
jne 0x40ad17
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret
mov eax, dword [0x42f8f4]
mov dword [0x42f8e8], esi
push eax
mov dword [0x42f8e0], eax
call fcn.00414c90
mov dword [0x42f8ec], eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [0x42f918], esi
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00414c90
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [0x42f90c], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00414c90
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [0x42f910], edx
push 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x42f908]
mov ecx, dword [esp + 0x430]
push edx
mov dword [0x42f914], ecx
call fcn.00414f4d
mov eax, dword [0x42f908]
push eax
call fcn.00414dca
mov ecx, dword [0x42f908]
push 0
push 0
push ecx
mov dword [0x42f91c], eax
call fcn.00414f4d
mov edx, dword [0x42f910]
mov eax, dword [0x42f91c]
mov ecx, dword [0x42f8e0]
push edx
mov edx, dword [0x42f914]
push eax
mov eax, dword [0x42f8ec]
push ecx
push edx
push str.sendfile_inet__d__d__d___s_
push eax
call fcn.004143bf
mov edi, dword [0x42f8ec]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x40
repne scasb al, byte es:[edi]
push eax
push eax
not ecx
push 0x40aab0
mov dword [0x42f918], ecx
mov dword [0x42f8dc], 9
call fcn.00415b6c
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret
Function at 0x40b030
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x42f8d8]
sub esp, 0x400
cmp eax, 0xffffffff
push esi
jne 0x40b04b
xor eax, eax
pop esi
add esp, 0x400
ret
mov eax, dword [esp + 0x40c]
mov esi, dword [esp + 0x408]
push eax
push esi
lea ecx, [esp + 0xc]
push str._s__s
push ecx
call fcn.004143bf
lea edx, [esp + 0x14]
push 0x423608
push edx
call fcn.0041467a
add esp, 0x18
mov dword [0x42f908], eax
test eax, eax
jne 0x40b08d
pop esi
add esp, 0x400
ret
mov eax, dword [0x42f8f0]
push edi
push eax
mov dword [0x42f8e8], 0
mov dword [0x42f8e0], eax
call fcn.00414c90
mov dword [0x42f8ec], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [0x42f918], 0
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00414c90
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [0x42f90c], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x41c]
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00414c90
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov dword [0x42f910], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x418]
and ecx, 3
cmp eax, 0xffffffff
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x42f910]
mov edx, dword [0x42f8e0]
push ecx
mov dword [0x42f914], eax
push edx
je 0x40b166
push eax
mov eax, dword [0x42f8ec]
push str.getfile_inet__d__d__s
push eax
call fcn.004143bf
add esp, 0x14
jmp 0x40b179
mov eax, dword [0x42f8ec]
push str.getfile_inet_system__d__s
push eax
call fcn.004143bf
add esp, 0x10
mov edi, dword [0x42f8ec]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
push eax
push eax
not ecx
push 0x40ae60
mov dword [0x42f918], ecx
mov dword [0x42f8dc], 0xa
call fcn.00415b6c
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x400
ret

Function at 0x40b240
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x354
lea eax, [esp + 0x154]
push esi
mov esi, dword [esp + 0x360]
push esi
push str._s_sdi_nt_server_queue
push eax
call fcn.004143bf
add esp, 0xc
lea ecx, [esp + 0x158]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x40b2cc
mov edx, dword [esp + 0x35c]
lea eax, [esp + 0x58]
push edx
push str._s_bpserver.exe__nogui__noservice
push eax
call fcn.004143bf
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push 0
push 8
push 0
push 0
lea ecx, [esp + 0x74]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
add esp, 0x354
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x354
ret
Function at 0x40b7b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x540
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
push ebx
push ebp
push esi
push edi
mov edi, 0x42fd34
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._session_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40b92b
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x150]
push edx
push 0x42fd34
push str._s__s
push eax
call fcn.004143bf
add esp, 0x10
mov esi, 0x423714
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b884
test cl, cl
je 0x40b880
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b884
add eax, 2
add esi, 2
test cl, cl
jne 0x40b860
xor eax, eax
jmp 0x40b889
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b914
mov esi, 0x424490
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b8be
test cl, cl
je 0x40b8ba
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b8be
add eax, 2
add esi, 2
test cl, cl
jne 0x40b89a
xor eax, eax
jmp 0x40b8c3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b914
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
jne 0x40b914
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x430134
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040b410
test eax, eax
je 0x40b914
call fcn.0040b4a0
push 0x430134
call fcn.0040b940
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
call ebx
test eax, eax
jne 0x40b838
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x540
ret
Function at 0x40b940
Capabilities:
Delete file
Enumerate files on windows
Print debug messages

Disassembly:
sub esp, 0x944
push ebx
push esi
push edi
mov edi, dword [esp + 0x954]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42449c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
je 0x40bb3c
push ebp
mov eax, dword [esp + 0x958]
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x15c]
push str._s__s
push ecx
call fcn.004143bf
add esp, 0x10
mov esi, 0x423714
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ba1b
test cl, cl
je 0x40ba17
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ba1b
add eax, 2
add esi, 2
test cl, cl
jne 0x40b9f3
xor eax, eax
jmp 0x40ba20
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bb20
mov esi, 0x424490
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ba59
test cl, cl
je 0x40ba55
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ba59
add eax, 2
add esi, 2
test cl, cl
jne 0x40ba31
xor eax, eax
jmp 0x40ba5e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bb20
mov eax, dword [esp + 0x14]
and eax, 0x10
cmp al, 0x10
jne 0x40ba86
lea ecx, [esp + 0x154]
push ecx
call fcn.0040bb50
add esp, 4
jmp 0x40bb20
mov edx, dword [0x430940]
xor ebp, ebp
mov esi, dword [edx]
test esi, esi
je 0x40bad6
mov edi, edx
lea eax, [esp + 0x40]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x40babe
test cl, cl
je 0x40baba
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x40babe
add eax, 2
add esi, 2
test cl, cl
jne 0x40ba9a
xor eax, eax
jmp 0x40bac3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bad2
mov esi, dword [edi + 4]
add edi, 4
inc ebp
test esi, esi
jne 0x40ba96
mov edi, dword [esp + 0x10]
cmp dword [edx + ebp*4], 0
jne 0x40bb20
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40bb20
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x55c]
push str._DeleteFile_Failed__d_:_s:_n
push ecx
call fcn.004143bf
add esp, 0x10
lea edx, [esp + 0x554]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b9c8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x944
ret
Function at 0x40bb50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Print debug messages

Disassembly:
sub esp, 0x940
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
push ebx
push ebp
mov ebp, dword [esp + 0x94c]
push esi
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42449c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bcdf
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x150]
push edx
push ebp
push str._s__s
push eax
call fcn.004143bf
add esp, 0x10
mov esi, 0x423714
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bc24
test cl, cl
je 0x40bc20
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bc24
add eax, 2
add esi, 2
test cl, cl
jne 0x40bc00
xor eax, eax
jmp 0x40bc29
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bcc4
mov esi, 0x424490
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bc5e
test cl, cl
je 0x40bc5a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bc5e
add eax, 2
add esi, 2
test cl, cl
jne 0x40bc3a
xor eax, eax
jmp 0x40bc63
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bcc4
mov eax, dword [esp + 0x10]
and eax, 0x10
cmp al, 0x10
jne 0x40bc84
lea ecx, [esp + 0x150]
push ecx
call fcn.0040bb50
add esp, 4
jmp 0x40bcc4
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40bcc4
lea eax, [esp + 0x150]
push eax
call ebx
push eax
lea ecx, [esp + 0x558]
push str.DeleteFile_Failed__d_:_s:_n
push ecx
call fcn.004143bf
add esp, 0x10
lea edx, [esp + 0x550]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bbdc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x940
ret