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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0xc]
mov dword [ebp - 4], ecx
cmp ecx, eax
ja 0x4049e4
or eax, 0xffffffff
call fcn.004300b0
jmp 0x4049f2
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426af0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
inc eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
jb 0x404a03
mov ecx, dword [esi]
jmp 0x404a05
mov ecx, esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 4]
push edx
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404a3e
mov dword [edi], ebx
mov dword [edi + 4], ebx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], ebx
jb 0x404a2e
mov esi, dword [esi]
xor ecx, ecx
mov eax, edi
pop edi
mov word [esi], cx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404a5c
or eax, 0xffffffff
call fcn.004300b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426af0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468516
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, dword [ebp + 8]
mov dword [edi], ecx
xor edx, edx
lea eax, [edi + 8]
lea ecx, [edi + 0xc]
lea esi, [edi + 0x10]
mov dword [edi + 4], edx
mov dword [eax], edx
mov dword [ecx], edx
xor ebx, ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edx
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ecx
mov word [esi], bx
lea ebx, [edi + 0x2c]
mov dword [ebp - 4], edx
mov dword [ebx], edx
mov dword [ebp - 0x18], ebx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
push edx
push edx
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push edx
push edx
push edx
push edx
push edx
mov byte [ebp - 4], 1
mov ecx, dword [edi]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x20], 0
jne 0x404b19
mov dword [edi], 0
jmp 0x404bb8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
inc ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x404b32
or eax, 0xffffffff
call fcn.004300b0
jmp 0x404b43
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426af0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, ebx
call fcn.00404520
cmp dword [esi + 0x14], 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jb 0x404b69
mov eax, dword [esi]
jmp 0x404b6b
mov eax, esi
mov edx, dword [edi + 0x30]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov edx, dword [edi + 4]
push ebx
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404b9d
or eax, 0xffffffff
call fcn.004300b0
jmp 0x404bae
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426af0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.00404520
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404cb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
jne 0x404ce2
push 0x47b9c8
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], str.d:products_adx.net.9common_source_adxbootstrapperclicktwice.downloaderRegistryKey.h_501__:_ensure:__k___failed
call fcn.00453410
mov eax, dword [edi + 0x20]
lea esi, [edi + 0x10]
cmp ecx, eax
ja 0x404cf6
or eax, 0xffffffff
call fcn.004300b0
jmp 0x404d04
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426af0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
lea ebx, [edi + 0x2c]
mov ecx, ebx
mov dword [ebp - 0xc], ebx
call fcn.00404520
mov eax, dword [edi + 4]
inc eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
jb 0x404d25
mov ecx, dword [esi]
jmp 0x404d27
mov ecx, esi
lea edx, [ebp - 4]
push edx
mov edx, dword [edi + 0x30]
push edx
push ebx
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x404d85
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x404d57
mov esi, dword [esi]
xor ecx, ecx
mov word [esi], cx
mov eax, dword [edi + 0x34]
mov ebx, dword [edi + 0x30]
cmp ebx, eax
je 0x404db5
mov esi, eax
sub esi, eax
push esi
push eax
push ebx
call fcn.0044f260
add esp, 0xc
add esi, ebx
mov dword [edi + 0x34], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x10]
inc ecx
cmp ecx, eax
ja 0x404d9a
or eax, 0xffffffff
call fcn.004300b0
jmp 0x404dab
mov ebx, ecx
sub ebx, eax
mov edi, esi
call fcn.00426af0
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, ebx
call fcn.00404520
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409e20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, eax
xor eax, eax
xor esi, esi
mov ecx, 0x20000004
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 8], eax
je 0x409eab
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.0041bc90
test al, al
je 0x409e99
push 2
push 8
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x409ea3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
lea edi, [ebx + 0x118]
mov edx, str.Failed_to_create_well_known_SID.
mov dword [ebx + 0x120], eax
call fcn.004011b0
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x409e99
call esi
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 8]
mov ecx, 0x20000005
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
mov ecx, edi
call section..text
test eax, eax
jns 0x409ee0
push edi
push str.Failed_to_reset_the_ACL_on_cached_file:__ls.
lea edi, [ebx + 0x118]
mov dword [ebx + 0x120], eax
call fcn.00428bb0
add esp, 8
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x409f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40f450
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 4], ebx
mov eax, SysReAllocStringLen
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov byte [ebp - 4], 1
call fcn.00401110
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
je 0x40f4d6
cmp eax, ebx
je 0x40f4d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
push edx
push 0xf003f
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, esi
mov dword [ebp - 0x34], 0xf003f
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f500
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00430450
cmp edi, ebx
jne 0x40f57a
mov edx, dword [0x484034]
mov eax, dword [edx + 0xc]
mov ecx, 0x484034
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
push ecx
push str.vsbootstrapper__d
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00428bb0
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
add esp, 8
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f57a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f59d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x40f5b0
cmp dword [ebp - 0x3c], eax
je 0x40f5b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x40f5c2
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044ee8c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 4
Function at 0x411030
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x4110b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x16c], eax
test eax, eax
jne 0x411099
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x120], eax
test eax, eax
je 0x411081
push edi
push eax
lea edi, [esi + 0x118]
push str.Failed_to_start_the_pipe_thread._Error:__d.
call fcn.00428bb0
xor eax, eax
add esp, 8
cmp dword [esi + 0x16c], eax
pop edi
setne al
ret
push ebx
lea eax, [esi + 0x118]
push str.Failed_to_start_the_pipe_thread.
push eax
mov ebx, 0x20
call fcn.00401320
pop ebx
xor eax, eax
cmp dword [esi + 0x16c], eax
setne al
ret

Function at 0x4116c0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46761b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x487e64
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [0x4878a4]
push 0x487e64
call ebx
test edi, edi
je 0x4117c7
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [ebp - 0x414], eax
mov dword [ebp - 4], 0
mov eax, dword [0x487908]
mov ecx, dword [0x487e5c]
push eax
push ecx
push 0x47397c
lea edi, [ebp - 0x414]
call fcn.00428bb0
add esp, 0xc
push 0x487e64
call esi
push 0x487e64
mov byte [0x487872], 1
call ebx
push 0x2710
lea edx, [ebp - 0x418]
push edx
push 0x400
lea eax, [ebp - 0x410]
push eax
push str.Exit
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 0x414]
lea ecx, [eax + eax + 2]
push ecx
push str.Exit
push esi
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4117c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret
Function at 0x413b10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4683f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413c6c
cmp byte [ebx + 0x12f], 0
je 0x413c6c
mov eax, dword [ebx + 0xac]
cmp dword [eax - 0xc], 0
je 0x413c6c
mov ecx, dword [ebx + 0xa8]
cmp dword [ecx - 0xc], 0
je 0x413c6c
push ecx
mov edx, esp
mov dword [ebp - 0x10], esp
push edx
mov ecx, 0x4776a8
call fcn.00401110
mov dword [ebp - 4], 0
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.004267f0
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0041c720
mov esi, 1
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x413bda
push 0x80004005
call fcn.00401670
mov eax, dword [ebx + 0xac]
push ecx
push eax
call fcn.0044febf
add esp, 8
test eax, eax
jne 0x413c46
mov ecx, dword [ebx + 0xa8]
call fcn.00448c00
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
test eax, eax
jne 0x413c46
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10], 0x1e
push 0x3e8
call ebx
mov eax, dword [edi]
push 0
push 0
push 0
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.004267f0
add eax, 0x10
mov dword [esi], eax
call fcn.004197d0
test al, al
je 0x413c46
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x413c10
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
cmp dword [ebp - 0x18], eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418860
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x806]
push ecx
mov word [ebp - 0x808], ax
call fcn.004534e0
mov edx, dword [ebp + 8]
xor eax, eax
push edx
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.0044fc40
push 0x44
lea ecx, [ebp - 0x860]
push 0
push ecx
call fcn.004534e0
add esp, 0x24
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x860]
push ecx
push 0
push 0
push 0x4000020
push 0
push 0
mov edx, 1
mov word [ebp - 0x830], dx
push 0
lea edx, [ebp - 0x808]
push edx
push 0
mov dword [ebp - 0x860], 0x44
mov dword [ebp - 0x834], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x418939
cmp byte [ebp + 0xc], 0
je 0x418939
mov eax, dword [ebp - 0x818]
push 0x2710
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 0x818]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41894c
push eax
call esi
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x418959
push eax
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 8
Function at 0x4196b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
xor ecx, ecx
mov edi, 0x400
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044db1c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x419745
lea esp, [esp]
lea eax, [ebp - 4]
push eax
lea ecx, [edi*4]
push ecx
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4197b0
mov ecx, dword [ebp - 4]
shr ecx, 2
mov dword [ebp - 0x14], ecx
cmp ecx, edi
jb 0x419751
push ebx
call fcn.0044f5e8
add edi, 0x400
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044db1c
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4196f0
pop edi
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4197b9
lea ebx, [ebx]
mov edx, dword [ebx + eax*4]
mov dword [ebp - 0x10], edx
test edx, edx
je 0x4197a6
mov edi, dword [esi + 4]
call fcn.0042cdd0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
test eax, eax
je 0x419781
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov dword [esi + 0x10], ecx
mov dword [eax + 4], edi
mov dword [eax], 0
mov ecx, dword [esi + 4]
inc dword [esi + 8]
test ecx, ecx
je 0x41979b
mov dword [ecx], eax
jmp 0x41979d
mov dword [esi], eax
mov ecx, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, ecx
jb 0x419760
jmp 0x4197b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4197c6
push ebx
call fcn.0044f5e8
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c2e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x4846a0]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
mov dword [esp + 0x18], ecx
call fcn.004508c3
push 0x475d14
lea ecx, [esp + 0x478]
push 0x104
push ecx
call fcn.0044fc40
push edi
lea edx, [esp + 0x27c]
push 0x104
push edx
call fcn.004508c3
push 0x4776a8
lea eax, [esp + 0x288]
push 0x104
push eax
call fcn.0044fc40
add esp, 0x30
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c4e7
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x46c]
push 0x104
push ecx
call fcn.004508c3
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0xc
lea esp, [esp]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41c4d5
mov ecx, 0x4719d4
lea eax, [esp + 0x3c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c3e6
test dx, dx
je 0x41c3e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c3e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c3c0
xor eax, eax
jmp 0x41c3eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c3a0
mov ecx, 0x475d0c
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c41e
test dx, dx
je 0x41c41a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c41e
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c3f8
xor eax, eax
jmp 0x41c423
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c3a0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.0044fc40
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
je 0x41c48b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x260]
push edx
call fcn.0041c2e0
test eax, eax
je 0x41c4e0
lea eax, [esp + 0x260]
push eax
call ebx
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x264]
push 0x104
push edx
call fcn.004508c3
jmp 0x41c399
test al, 1
je 0x41c4a4
lea eax, [esp + 0x260]
push 0x80
push eax
call fcn.0044fb05
add esp, 8
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41c4e0
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.004508c3
jmp 0x41c399
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x41c500
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebx
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 4
Function at 0x41c530
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
mov edi, edx
xor ebx, ebx
call fcn.004508c3
push 0x4776a8
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.0044fc40
push edi
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.0044fc40
push esi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004508c3
push 0x4776a8
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.0044fc40
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esp, 0x3c
lea ecx, [ecx]
test ebx, ebx
jne 0x41c5ff
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x418]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c70a
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x418]
push 0x104
push edx
call fcn.004508c3
add esp, 0xc
jmp 0x41c693
lea eax, [ebp - 0x668]
push eax
push ebx
call edi
test eax, eax
je 0x41c6fd
mov ecx, 0x4719d4
lea eax, [ebp - 0x63c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c646
test dx, dx
je 0x41c642
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c646
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c620
xor eax, eax
jmp 0x41c64b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c5c0
mov ecx, 0x475d0c
lea eax, [ebp - 0x63c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c686
test dx, dx
je 0x41c682
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c686
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c660
xor eax, eax
jmp 0x41c68b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c5c0
lea ecx, [ebp - 0x63c]
push ecx
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0044fc40
add esp, 0xc
test byte [ebp - 0x668], 0x10
je 0x41c5c0
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x487980
call fcn.0041c2e0
test eax, eax
je 0x41c703
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004508c3
add esp, 0xc
jmp 0x41c5c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ee97
mov esp, ebp
pop ebp
ret