joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d2b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472c03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004660ec
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046b788
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046cca4
test eax, eax
je 0x43d3cc
mov ecx, dword [esp + 0x3c]
call fcn.0046b7b5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d390
push edi
mov ecx, esi
call fcn.00468e13
mov ecx, esi
call fcn.0043d530
cmp dword [esp + 0x38], 1
jne 0x43d3c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468f4e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43fdf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fe23
push esi
call fcn.00442ef0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fe1c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43fea9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fe92
mov eax, dword [esi + 8]
test eax, eax
je 0x43fe47
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43fe8e
cmp eax, 2
je 0x43fe92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43fe3a
cmp eax, 3
je 0x43fe6d
cmp eax, 1
jne 0x43fe3a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43fe3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43fe3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043fed0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43feb8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043fed0
add esp, 4
pop esi
ret

Function at 0x44b220
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44b286
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44b286
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44b267
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44bdc0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044bf10
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44bde0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44bdc1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044bf10
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44bde0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44be10
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44be67
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44be7d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044bea0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44bea0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44bf30
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 0x44bf79
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 0x44c3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473130
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.0044bfa0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c020
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c020
lea ecx, [esi + 0xc]
call fcn.00464ac6
lea ecx, [esi + 0x10]
call fcn.00464ac6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044e850
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044e850
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044e850
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00464b3b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00464b3b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d098
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473358
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44d0a8
call fcn.0044d5c0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44d18b
cmp byte [edi], 0
je 0x44d18b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d0cd
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044bdc0
test eax, eax
jne 0x44d0ed
push 0x493468
lea ecx, [esi + 0x38]
call fcn.00464c78
jmp 0x44d18b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044be10
test eax, eax
jne 0x44d11c
mov ecx, esi
call fcn.0044bf10
push edi
add esi, 0x38
push 0x493444
push esi
call fcn.00462ad7
add esp, 0xc
jmp 0x44d18b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044de40
test eax, eax
je 0x44d184
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044d260
test eax, eax
jne 0x44d1a0
push edi
lea eax, [esi + 0x38]
push 0x493420
push eax
call fcn.00462ad7
add esp, 0xc
mov ecx, esi
call fcn.0044d5c0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44d248
mov ecx, dword [0x493b58]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00462ad7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044bec0
test eax, eax
jne 0x44d20a
push 0x493404
lea ecx, [esi + 0x38]
call fcn.00464c78
jmp 0x44d21a
push 0xfa
mov ecx, esi
call fcn.0044de40
test eax, eax
jne 0x44d237
mov ecx, esi
call fcn.0044d5c0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00464b3b
jmp 0x44d18b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00464b3b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4501f0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45023a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x450269
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4502ab
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x466ee2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466f1a
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.00464f96
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464f6e
jmp 0x466f26
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4685d0
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 0x468612
call fcn.0046e149
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468612
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x468609
xor eax, eax
jmp 0x46861a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468620
pop edi
pop esi
pop ebx
ret 4

Function at 0x46e679
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 0x46e6a7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e6c5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e5df
jmp 0x46e6c5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e6c5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e5df
test edi, edi
mov eax, edi
jne 0x46e6af
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002dd0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x1001cc50]
xor eax, esp
mov dword [esp + 0x10c], eax
call fcn.100059a0
lea eax, [esp]
push eax
mov eax, dword [0x1001dbcc]
or eax, 0xf003f
push eax
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002f2f
push ebx
push esi
mov esi, dword [esp + 0x11c]
push edi
push str..DEFAULT
push esi
call fcn.10002f50
push 0x105
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.10006cf0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [esp + 0x24]
add esp, 0x14
mov edi, 1
push 0x105
push eax
push 0
push dword [esp + 0x18]
call ebx
test eax, eax
jne 0x10002f22
lea eax, [esp + 0x10]
push str._Classes
push eax
call fcn.10007750
add esp, 8
test eax, eax
je 0x10002ea9
mov ecx, str._Classes
jmp 0x10002e80
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002ea0
test dl, dl
je 0x10002e9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002ea0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002e80
xor eax, eax
jmp 0x10002ea5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10002ef2
lea ecx, [esp + 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002eb0
sub ecx, edx
cmp ecx, 9
jb 0x10002ef2
lea eax, [esp + 0x10]
push eax
push 0x10014e74
push esi
call fcn.10004a10
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.10002f50
add esp, 0x14
test eax, eax
je 0x10002ef2
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
push esi
call fcn.10002700
add esp, 0xc
push 0x105
lea eax, [esp + 0x14]
push 0
push eax
call fcn.10006cf0
add esp, 0xc
lea ecx, [esp + 0x10]
mov eax, edi
inc edi
push 0x105
push ecx
push eax
push dword [esp + 0x18]
call ebx
test eax, eax
je 0x10002e60
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor eax, eax
xor ecx, esp
call fcn.10006cd8
add esp, 0x110
ret 4
Function at 0x100031a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001cc50]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov edi, dword [esp + 0x114]
lea eax, [esp + 9]
push 0x103
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.10006cf0
push 0x10014a28
push edi
call fcn.100075d0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10003224
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, edi
mov ecx, esi
lea eax, [esp + 0xc]
sub ecx, edi
push ecx
push edi
push eax
call fcn.100074a0
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call ebx
lea eax, [esi + 1]
push 0x10014a28
push eax
call fcn.100075d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x100031f0
pop ebx
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.10006cd8
add esp, 0x108
ret

Function at 0x10003240
Capabilities:
Copy file
Set current directory

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push str.CallingCard_srv.exe
push str.CallingCard.exe
call esi
push 0
push str.CallingCardRC.exe
push str.CallingCard.exe
call esi
push 0
push str.CallingCard_srv.exe.manifest
push str.CallingCard.exe.manifest
call esi
push str.CallingCard.exe.manifest
call fcn.10004750
mov esi, eax
add esp, 4
test esi, esi
je 0x100032b8
push 1
push 1
push 1
push str.uiAccess_true_
push str.uiAccess_false_
push esi
call fcn.10001ae0
push esi
push str.CallingCardRC.exe.manifest
call fcn.10004fa0
push esi
call fcn.10006b32
add esp, 0x24
xor eax, eax
pop esi
ret

Function at 0x100034d0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x34c
mov eax, dword [0x1001cc50]
xor eax, esp
mov dword [esp + 0x348], eax
push ebx
mov ebx, dword [esp + 0x354]
lea eax, [esp + 0x248]
push edi
push ebx
push 0x104
push eax
call fcn.10007232
push 0x10014f04
lea eax, [esp + 0x25c]
push 0x104
push eax
call fcn.10007287
add esp, 0x18
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000354d
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.10006cd8
add esp, 0x34c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x10003560
test byte [esp + 0x10], 0x10
jne 0x100035d1
push 0x103
lea eax, [esp + 0x155]
mov byte [esp + 0x154], 0
push 0
push eax
call fcn.10006cf0
push ebx
lea eax, [esp + 0x160]
push 0x104
push eax
call fcn.10007232
push 0x10014a3c
lea eax, [esp + 0x16c]
push 0x104
push eax
call fcn.10007287
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x178]
push 0x104
push eax
call fcn.10007287
add esp, 0x30
lea eax, [esp + 0x150]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
push edi
call esi
test eax, eax
jne 0x10003560
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x358]
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.10006cd8
add esp, 0x34c
ret
Function at 0x10003610
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x254
mov eax, dword [0x1001cc50]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x258]
push eax
lea eax, [esp + 0x150]
push 0x104
push eax
call fcn.10007232
lea ecx, [esp + 0x158]
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x10003650
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003650
sub ecx, edx
je 0x1000367f
cmp byte [esp + ecx + 0x14b], 0x5c
je 0x1000367f
push 0x10014a3c
lea eax, [esp + 0x150]
push 0x104
push eax
call fcn.10007287
add esp, 0xc
lea ecx, [esp + 0x14c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003690
sub ecx, edx
lea eax, [esp + 0x14c]
add eax, ecx
lea ecx, [esp + 0x250]
push esi
sub ecx, eax
mov dword [esp + 4], eax
push 0x10014e84
lea eax, [esp + 0x154]
mov dword [esp + 0x10], ecx
push 0x104
push eax
call fcn.10007287
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 8], esi
cmp esi, 0xffffffff
je 0x10003785
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esp + 0x48], 0x2e
jne 0x1000371a
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x1000377e
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.10007232
add esp, 0xc
test byte [esp + 0x1c], 0x10
je 0x1000374a
lea eax, [esp + 0x15c]
push 1
push eax
call fcn.10003610
add esp, 8
jmp 0x10003771
mov esi, 0xa
nop
lea eax, [esp + 0x15c]
dec esi
push eax
call ebx
call ebp
cmp eax, 5
jne 0x1000376d
push 0x1f4
call edi
test esi, esi
jne 0x10003750
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
call eax
test eax, eax
jne 0x10003705
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x260], 0
mov eax, dword [esp + 4]
pop esi
mov byte [eax], 0
je 0x100037bf
push 0x80
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.10006cd8
add esp, 0x254
ret
Function at 0x100037e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x670
mov eax, dword [0x1001cc50]
xor eax, esp
mov dword [esp + 0x66c], eax
mov eax, dword [esp + 0x674]
push eax
lea eax, [esp + 0x260]
push 0x208
push eax
call fcn.10007acd
lea ecx, [esp + 0x268]
add esp, 0xc
lea edx, [ecx + 2]
jmp 0x10003820
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003820
sub ecx, edx
sar ecx, 1
je 0x10003856
cmp word [esp + ecx*2 + 0x25a], 0x5c
je 0x10003856
push 0x10014b58
lea eax, [esp + 0x260]
push 0x208
push eax
call fcn.100079b3
add esp, 0xc
lea ecx, [esp + 0x25c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003860
sub ecx, edx
lea eax, [esp + 0x25c]
sar ecx, 1
push esi
push 0x10014e88
push 0x208
lea eax, [eax + ecx*2]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x268]
sub eax, ecx
mov ecx, 0x208
sar eax, 1
sub ecx, eax
lea eax, [esp + 0x268]
push eax
mov dword [esp + 0x18], ecx
call fcn.100079b3
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 8], esi
cmp esi, 0xffffffff
je 0x10003965
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp word [esp + 0x48], 0x2e
jne 0x100038fb
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1000395e
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.10007acd
add esp, 0xc
test byte [esp + 0x1c], 0x10
je 0x1000392b
lea eax, [esp + 0x26c]
push 1
push eax
call fcn.100037e0
add esp, 8
jmp 0x10003951
mov esi, 0xa
lea eax, [esp + 0x26c]
dec esi
push eax
call ebx
call ebp
cmp eax, 5
jne 0x1000394d
push 0x1f4
call edi
test esi, esi
jne 0x10003930
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
call eax
test eax, eax
jne 0x100038e5
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 4]
xor ecx, ecx
pop esi
mov word [eax], cx
cmp dword [esp + 0x678], ecx
je 0x100039a0
push 0x80
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x66c]
xor ecx, esp
call fcn.10006cd8
add esp, 0x670
ret