joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401760
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004024e0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004024e0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4017c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40606c]
test esi, esi
jle 0x4018e0
mov eax, dword [0x406070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4017f4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401877
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4017e0
mov dword [esp], ebx
call fcn.004021c0
mov edi, eax
test eax, eax
je 0x401907
mov eax, dword [0x406070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402300
mov edx, dword [0x406070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4018e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401870
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401880
add dword [0x40606c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401760
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4017fe
mov eax, dword [0x406070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401760
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401760
lea esi, [esi]
nop
Function at 0x401e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406080]
sub esp, 4
test ebx, ebx
je 0x401e85
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x401e7e
test eax, eax
jne 0x401e7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e60
mov dword [esp], 0x406088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4021c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021e5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4021f0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021e5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402238
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40222e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40223a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402220
xor eax, eax
pop ebx
pop esi
ret

Function at 0x1169a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1169a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x34cb6cbf
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x27773ecf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10097d9
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [reloc.msvcrt.dll___p__fmode]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
lea ecx, reloc.msvcrt.dll___p__fmode
push ecx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], esi
mov dword [ebp - reloc.msvcrt.dll___p__fmode], esi
call dword [sym.imp.msvcrt.dll__wsplitpath]
lea eax, reloc.msvcrt.dll___p__fmode
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 0x1c
cmp eax, esi
jne 0x1009825
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea eax, reloc.msvcrt.dll___p__fmode
jmp 0x100982f
lea ecx, reloc.msvcrt.dll___p__fmode
push ecx
add eax, 2
push 0x1001a40
push eax
call dword [sym.imp.msvcrt.dll_swscanf]
add esp, 0xc
test eax, eax
je 0x1009856
mov eax, dword [ebp - reloc.msvcrt.dll___p__fmode]
mov dword [edi], eax
mov eax, dword [ebp - reloc.msvcrt.dll___p__fmode]
mov dword [edi + 4], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01031d91
leave
ret 8
Function at 0x1009bda
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [reloc.msvcrt.dll___p__fmode]
push esi
push edi
mov edi, 0x104163c
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, 0x104
push esi
push dword [0x10415c0]
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
lea eax, reloc.msvcrt.dll___p__fmode
push dword [ebp + 8]
push 0x1001a40
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push esi
push 0x1001a4c
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x1009c29
cmp eax, esi
jbe 0x1009c2d
push 0x80004005
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1009c39
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call fcn.01035adb
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01031d91
leave
ret 8

Function at 0x100e11a
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
test eax, eax
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
je 0x100e0a6
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
jmp 0x100e0a8
xor eax, eax
lea ebx, [eax + 0x30]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100e0bc
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
jmp 0x100e0be
xor eax, eax
add ebx, eax
mov eax, dword [esi + 0x1c]
add eax, 0x28
je 0x100e0d2
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
jmp 0x100e0d4
xor eax, eax
add ebx, eax
mov eax, dword [esi + 0x1c]
add eax, 0x640
je 0x100e0ea
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
jmp 0x100e0ec
xor eax, eax
add ebx, eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100e0ff
push eax
call edi
pop ecx
lea eax, [eax + eax + 2]
jmp 0x100e101
xor eax, eax
mov esi, dword [esi + 0x40]
add ebx, eax
test esi, esi
je 0x100e114
push esi
call edi
pop ecx
lea eax, [eax + eax + 2]
jmp 0x100e116
xor eax, eax
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret 4
Function at 0x100f156
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [reloc.msvcrt.dll___p__fmode]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
mov eax, dword [ebp + 0x18]
mov esi, 0x104163c
push esi
mov edi, ecx
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 0x104
push ebx
lea eax, [edi + edi*4]
push dword [eax*8 + 0x10415c0]
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x100f1bc
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009b92
mov esi, eax
test esi, esi
jne 0x100f210
jmp 0x100f1d3
cmp edi, 1
jne 0x100f20a
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x100f1de
call fcn.01023d5b
mov edi, eax
test edi, edi
jne 0x100f1de
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100f273
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01009c4c
mov esi, eax
test esi, esi
jne 0x100f202
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.01035abf
mov eax, esi
jmp 0x100f273
push edi
call fcn.01035abf
jmp 0x100f210
mov esi, dword [ebp - reloc.msvcrt.dll___p__fmode]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x100f220
push reloc.KERNEL32.dll_GetCurrentThread
pop edi
jmp 0x100f26b
xor edi, edi
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], edi
je 0x100f237
push esi
push dword [ebp - 0x410]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - reloc.msvcrt.dll___p__fmode], edi
je 0x100f26b
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [ebp - 0x414]
push edi
push edi
push esi
call dword [sym.imp.msvcrt.dll__wsplitpath]
add esp, 0x14
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call fcn.01035abf
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x14
Function at 0x10155eb
Capabilities:
Get file size
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [reloc.msvcrt.dll___p__fmode]
push esi
xor esi, esi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, esi
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
jne 0x1015584
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101564a
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
push 0x100
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [esi + 0x103f3b0]
push dword [ebp - 0x208]
call ebx
test eax, eax
je 0x101565a
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
call fcn.01035a36
test eax, eax
mov dword [esi + reloc.msvcrt.dll___p__fmode], eax
je 0x1015655
lea ecx, reloc.msvcrt.dll___p__fmode
push ecx
push eax
call edi
add esi, 0x10
cmp esi, 0xd0
pop ecx
pop ecx
jb 0x1015592
xor esi, esi
push 0x100
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [esi + 0x103f090]
push dword [ebp - 0x208]
call ebx
test eax, eax
je 0x101565a
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
call fcn.01035a36
test eax, eax
mov dword [esi + reloc.msvcrt.dll___p__fmode], eax
je 0x1015655
lea ecx, reloc.msvcrt.dll___p__fmode
push ecx
push eax
call edi
add esi, 0x10
cmp esi, 0x320
pop ecx
pop ecx
jb 0x10155ef
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01031d91
leave
ret
push reloc.ADVAPI32.dll_RevertToSelf
pop ebx
jmp 0x1015662
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edi, edi
lea esi, reloc.msvcrt.dll___p__fmode
push dword [esi]
call fcn.01035abf
and dword [esi], 0
add edi, 0x10
cmp edi, 0xd0
jb 0x1015664
xor edi, edi
lea esi, reloc.msvcrt.dll___p__fmode
push dword [esi]
call fcn.01035abf
and dword [esi], 0
add edi, 0x10
cmp edi, 0x320
jb 0x1015681
mov eax, ebx
jmp 0x1015648
Function at 0x1017d49
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [reloc.msvcrt.dll___p__fmode]
and dword [ebp - reloc.msvcrt.dll___p__fmode], 0
and dword [ebp - reloc.msvcrt.dll___p__fmode], 0
push esi
push edi
mov esi, ecx
push 0x1c
mov dword [ebp - 4], eax
xor eax, eax
test edx, edx
pop ecx
lea edi, reloc.msvcrt.dll___p__fmode
rep stosd dword es:[edi], eax
mov dword [ebp - reloc.msvcrt.dll___p__fmode], 1
mov edi, edx
jne 0x1017d89
mov edi, reloc.KERNEL32.dll_GetStartupInfoW
and word [ebp - 0x20c], 0
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [esi + 8]
push 0
push dword [esi + 4]
call fcn.010376ce
test eax, eax
jne 0x1017db0
xor esi, esi
jmp 0x1017e71
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push esi
call fcn.01017bdc
call fcn.01017b04
xor esi, esi
cmp eax, esi
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
je 0x1017e71
lea eax, reloc.msvcrt.dll___p__fmode
push eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push esi
push esi
call fcn.010357d2
test eax, eax
jne 0x1017da9
push 0x104
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push edi
push 0x1040378
call fcn.010376ab
or eax, edx
je 0x1017da9
push 2
pop eax
cmp word [ebp - 0x474], ax
jne 0x1017e18
mov dword [ebp - reloc.msvcrt.dll___p__fmode], eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
push dword [ebp + 8]
lea eax, reloc.msvcrt.dll___p__fmode
push dword [ebp - 0x490]
push dword [ebp - 0x48c]
push eax
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call fcn.01035855
test eax, eax
lea eax, reloc.msvcrt.dll___p__fmode
je 0x1017e56
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1017e71
push 0x103
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcsncpy]
and word [ebx + 0x206], 0
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 0x48c]
call fcn.01035abf
lea eax, reloc.msvcrt.dll___p__fmode
push eax
call fcn.01017bb4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.01031d91
leave
ret 4
Function at 0x1018ab1
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
imul eax, eax, 0x44
push ebx
push esi
push edi
push eax
call fcn.01035a36
mov edi, eax
test edi, edi
mov dword [ebp + 0xc], edi
je 0x1018af3
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx]
jmp 0x1018ac9
mov eax, esi
mov eax, dword [eax + 8]
mov esi, dword [esi]
add eax, 0x114
push eax
push edi
call fcn.010189ce
test eax, eax
je 0x1018af3
add edi, 0x44
cmp esi, ebx
jne 0x1018aaf
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x1018ae7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [eax], 0
call fcn.01035abf
jmp 0x1018ad5

Function at 0x1019050
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
lea ecx, [ecx + eax*8 + 0x18]
mov dword [ebp - 4], ecx
jne 0x101903c
xor eax, eax
inc eax
jmp 0x10190d2
mov eax, dword [ebp + 0x10]
cmp dword [eax], ecx
jb 0x10190d0
and dword [ebp + 8], 0
push esi
push edi
xor eax, eax
push 8
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [edx + 0x20]
lea ecx, [edx + 0x24]
mov dword [ebx + 0x14], eax
mov dword [ebx], reloc.msvcrt.dll___p__fmode
mov eax, dword [ecx]
cmp eax, ecx
je 0x1019096
lea ecx, [ebx + 0x18]
inc dword [ebp + 8]
mov esi, eax
mov esi, dword [esi + 8]
mov edi, dword [esi + 8]
mov eax, dword [eax]
mov dword [ecx], edi
mov esi, dword [esi + 0xc]
mov dword [ecx + 4], esi
lea esi, [edx + 0x24]
add ecx, 8
cmp eax, esi
jne 0x1019077
cmp dword [edx + 0x18], 0
je 0x10190c6
mov eax, dword [edx + 0x14]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
lea eax, [eax*8 + 0x18]
mov dword [ebx + 0x10], eax
mov ecx, dword [edx + 0x14]
mov esi, dword [edx + 0x18]
lea edi, [eax + ebx]
mov eax, ecx
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 [ebp - 4]
xor eax, eax
pop edi
inc eax
pop esi
jmp 0x10190d2
xor eax, eax
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
pop ebx
leave
ret 0xc
Function at 0x1019264
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, eax
mov eax, dword [esi + 0x20]
lea eax, [eax + eax*2]
push edi
shl eax, 2
push eax
call fcn.01035a36
mov edi, eax
test edi, edi
mov dword [ebp - 8], edi
jne 0x1019294
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 4], eax
call fcn.01035abf
jmp 0x10192cc
add esi, 0x24
mov ecx, dword [esi]
cmp ecx, esi
je 0x10192db
push reloc.ADVAPI32.dll_EnumDependentServicesW
lea eax, [edi + 8]
pop edi
push ebx
mov edx, ecx
mov ecx, dword [ecx]
mov dword [eax - 8], edi
mov ebx, dword [edx + 8]
mov ebx, dword [ebx + reloc.msvcrt.dll___p__fmode]
mov dword [eax - 4], ebx
mov edx, dword [edx + 8]
mov edx, dword [edx + reloc.msvcrt.dll___p__fmode]
mov dword [eax], edx
add eax, edi
cmp ecx, esi
jne 0x10192a4
mov edi, dword [ebp - 8]
pop ebx
cmp dword [ebp - 4], 0
je 0x10192db
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10195be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
xor eax, eax
push edi
push 0x20
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x64], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x6c], edx
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x70], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x74], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x4c], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 4]
mov dword [ebp - 0x40], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x3c], edx
mov edx, dword [eax + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0x24]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0x1c]
xor esi, esi
lea ecx, [ebp - 0x80]
inc esi
mov dword [ebp - 0x80], 0x80
mov dword [ebp - 4], eax
call fcn.01017d42
test eax, eax
jne 0x1019672
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x1019f75
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea esi, [ebx + ebx*2]
push edi
shl esi, 2
push esi
call fcn.01035a36
mov edi, eax
test edi, edi
mov dword [ebp + 0xc], edi
jne 0x1019f38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1019f8b
and dword [ebp - 8], 0
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
jbe 0x1019f8b
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add esi, 8
test edi, edi
mov dword [esi - 8], 0xc
mov dword [esi - 4], edi
je 0x1019fb1
push edi
call fcn.01035a36
test eax, eax
mov dword [esi], eax
jne 0x1019fb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.010188f2
and dword [ebp + 0xc], 0
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
je 0x1019fa5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
leave
ret 0xc
and dword [esi], 0
inc dword [ebp - 8]
add esi, 0xc
cmp dword [ebp - 8], ebx
jb 0x1019f5b
jmp 0x1019f8b