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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x103ff58]
or dword [ebp - 0x214], 0xffffffff
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 8], ebx
mov word [ebp - 0x20c], bx
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x218], ebx
stosw word es:[edi], ax
jne 0x101916a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x10021e8
push 0x1040378
call fcn.010376ab
or eax, edx
je 0x10191e7
lea eax, [ebp - 0x20c]
push eax
call fcn.01035adb
cmp eax, ebx
mov dword [esi + 8], eax
je 0x10191e7
push ebx
push 0x80000080
push 3
push ebx
push ebx
push 0x40000000
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x214], eax
je 0x10191e7
lea eax, [ebp - 0x218]
push eax
push ebx
push esi
call fcn.01019016
test eax, eax
je 0x10191e7
push dword [ebp - 0x218]
call fcn.01035a36
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x21c], edi
je 0x10191e7
lea eax, [ebp - 0x218]
push eax
push edi
push esi
call fcn.01019016
test eax, eax
je 0x10191e7
push ebx
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x218]
push edi
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101920c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp word [ebp - 0x20c], bx
mov dword [ebp - 0x210], eax
je 0x101920c
lea eax, [ebp - 0x20c]
push eax
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x214], 0xffffffff
je 0x1019221
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call fcn.01035abf
cmp dword [ebp - 0x210], ebx
je 0x1019240
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x210], ebx
pop edi
sete al
pop ebx
call fcn.01031d91
leave
ret
Function at 0x1019680
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x103ff58]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
and dword [ebp - 0x214], esi
and dword [ebp - 0x210], esi
push edi
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [ebx + 0x1c], 2
mov word [ebp - 0x20c], si
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x218], edx
stosw word es:[edi], ax
jne 0x10196e9
mov esi, dword [ebx + 0x158]
test esi, esi
je 0x10196e9
mov eax, dword [esi + 0x80]
jmp 0x10196eb
xor eax, eax
test esi, esi
je 0x10196f4
mov edi, dword [esi + 0x34]
jmp 0x10196f7
mov edi, dword [ebx + 0x34]
test eax, eax
jne 0x101976e
test edx, edx
mov eax, edx
jne 0x1019706
mov eax, 0x1001a80
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0x1040378
call fcn.010376ab
or eax, edx
je 0x10197e4
push 0
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x10197cf
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0xc
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1019786
lea ecx, [ebp - 0x214]
push ecx
push eax
call fcn.01017e9d
test eax, eax
je 0x10197e4
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
lea eax, [esi + 0x9c]
push eax
lea eax, [ebx + 0x114]
push eax
lea eax, [esi + 0x78]
push eax
push dword [ebx + 0x30]
push dword [ebp - 0x214]
call fcn.0101958e
test eax, eax
je 0x10197e4
mov esi, dword [esi + 0x34]
test esi, esi
je 0x101973a
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.FXSTIFF.dll_MergeTiffFiles
test eax, eax
jne 0x101973a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1019759
push 0x1f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1019759

Function at 0x1019894
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103ff58]
and word [ebp - 0x20c], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x164], 0
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x101991a
lea eax, [ebp - 0x20c]
push eax
push 0x10021f8
push esi
call fcn.01019680
test eax, eax
je 0x1019916
lea eax, [ebp - 0x20c]
push eax
call fcn.01035adb
test eax, eax
mov dword [esi + 0x164], eax
jne 0x101991a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x101991d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01031d91
leave
ret 4
Function at 0x1019bee
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10000000
mov ecx, 0x10402c0
call fcn.01036987
test eax, eax
jne 0x1019c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov edi, eax
pop eax
call fcn.01032130
mov esi, esp
test esi, esi
je 0x1019c2f
push edi
push 0x10017e4
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push esi
xor esi, esi
inc esi
push 0xc0007d2c
push esi
push esi
push esi
call sub.FXSEVENT.dll_FaxLog
add esp, 0x14
xor eax, eax
jmp 0x1019cf2
push dword [ebp + 8]
call fcn.01017f1f
mov esi, 0x1040378
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1019cab
push esi
call fcn.01036052
test eax, eax
jne 0x1019cab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov ebx, eax
pop eax
call fcn.01032130
mov edi, esp
test edi, edi
je 0x1019c93
push ebx
push 0x10017e4
push edi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push edi
push esi
push 0xc0007d2b
xor esi, esi
push 2
inc esi
push esi
push esi
call sub.FXSEVENT.dll_FaxLog
add esp, 0x18
jmp 0x1019c43
xor esi, esi
inc esi
push esi
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [0x1040298], eax
jne 0x1019cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov ebx, eax
pop eax
call fcn.01032130
mov edi, esp
test edi, edi
je 0x1019cea
push ebx
push 0x10017e4
push edi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push edi
jmp 0x1019c33
mov eax, esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x101a151
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push 0x10402a4
call esi
push 0x104030c
call esi
push 0x10402c0
call esi
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x5f8]
dec dword [ebx + 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
xor eax, eax
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
lea esi, [edi + 8]
mov eax, dword [esi]
add eax, 0x5fc
push eax
call fcn.01018998
mov eax, dword [esi]
and dword [eax + 0x5f4], 0
mov eax, dword [esi]
and dword [eax + 0x5f8], 0
push dword [esi]
call fcn.0101e1c0
test eax, eax
jne 0x101a1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call fcn.01035abf
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x101a202
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x101a202
cmp dword [ebx + 0x20], edi
jne 0x101a1ee
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101a202
mov esi, ebx
call fcn.010190e1
test eax, eax
jne 0x101a202
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10402c0
call esi
push 0x104030c
call esi
push 0x10402a4
call esi
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
sete al
pop esi
leave
ret 8
Function at 0x101a4c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
xor ebx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x101a555
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x101a555
cmp edi, 0x20
jae 0x101a515
mov dword [ebp - 4], 0xd
jmp 0x101a55e
push edi
call fcn.01035a36
mov ebx, eax
cmp ebx, esi
je 0x101a555
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101a555
push edi
mov eax, ebx
call fcn.0101a354
mov edi, eax
cmp edi, esi
mov dword [ebp - 8], edi
je 0x101a555
push dword [ebp + 8]
call fcn.01035adb
cmp eax, esi
mov dword [edi + 8], eax
jne 0x101a573
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push ebx
call fcn.01035abf
mov eax, dword [ebp - 8]
push 1
xor ebx, ebx
call fcn.0101a2b5
mov dword [ebp - 8], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x101a582
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.01035abf
cmp dword [ebp - 4], esi
pop edi
pop esi
pop ebx
je 0x101a599
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x101a5a5
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x103ff58]
and dword [ebp - 0x460], 0
push 0x1040378
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push 0x1002214
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x464], eax
jne 0x101a600
xor eax, eax
inc eax
jmp 0x101a6fe
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 0x104030c
lea eax, [ebp - 0x430]
push eax
push 0x1040378
lea eax, [ebp - 0x20c]
push 0x1001a58
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.0101a4c0
mov esi, eax
test esi, esi
jne 0x101a660
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x460], 1
jmp 0x101a6c9
and dword [ebp - 0x468], 0
push 0x10402a4
call edi
push ebx
call edi
lea ecx, [esi + 0x24]
mov eax, dword [ecx]
jmp 0x101a688
mov edx, eax
mov edx, dword [edx + 8]
cmp dword [edx + 0x600], 0
mov eax, dword [eax]
je 0x101a68e
cmp eax, ecx
jne 0x101a678
jmp 0x101a698
mov dword [ebp - 0x468], 0xd
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x10402a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x468], 0
jne 0x101a647
mov eax, dword [0x1040270]
mov dword [esi], 0x104026c
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x1040270], esi
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101a60e
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 0x460], eax
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01031d91
leave
ret
Function at 0x101ce6d
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x101cee1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x590
mov dword [ebp - 4], eax
jae 0x101cec1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101cee1
push eax
call fcn.01035a36
mov edi, eax
cmp edi, ebx
je 0x101cee1
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101cee9
push edi
call fcn.01035abf
xor edi, edi
cmp esi, 0xffffffff
je 0x101cef5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
cmp edi, ebx
pop edi
pop esi
setne al
pop ebx
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x103ff58]
and dword [ebp - 0x460], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov edi, 0x1040378
push edi
lea eax, [ebp - 0x20c]
push 0x1002b44
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101d048
xor eax, eax
inc eax
jmp 0x101d0a0
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x1001a58
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101d07c
mov dword [ebp - 0x460], 1
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101d048
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 0x460], eax
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 4
Function at 0x101d80d
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x103ff58]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x18]
xor edx, edx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x220], eax
xor eax, eax
cmp esi, edx
mov word [ebp - 0x20c], dx
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x21c], edx
stosw word es:[edi], ax
je 0x101d882
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01017e9d
test eax, eax
je 0x101d8ad
lea eax, [ebp - 0x20c]
push eax
push 0x1002b64
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x21c]
call fcn.0101958e
test eax, eax
jne 0x101d8bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
jmp 0x101d912
lea eax, [ebp - 0x20c]
push eax
call fcn.0102881a
mov edi, eax
test edi, edi
mov dword [ebp - 0x214], edi
jne 0x101d8e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x210], eax
jmp 0x101d901
test esi, esi
je 0x101d8f5
push esi
call fcn.0102881a
test eax, eax
mov dword [ebp - 0x218], eax
je 0x101d8d3
add edi, dword [ebp - 0x218]
mov dword [ebp - 0x214], edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x101d924
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret 0x14

Function at 0x101da92
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x608]
push esi
push edi
xor esi, esi
push esi
push 0x10000080
push 3
push esi
push esi
push 0x40000000
push dword [eax + 0x2c]
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x101dafa
push esi
push esi
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101daee
push esi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101daee
inc esi
cmp edi, 0xffffffff
je 0x101dafa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x101dc27
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 2
jne 0x101dc52
mov eax, dword [eax + 0x158]
push dword [eax + 0xf8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x101dc54
xor eax, eax
pop ebp
ret 8
Function at 0x101f29b
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0101ce6d
test eax, eax
mov edi, dword [ebp - 4]
je 0x101f41b
push edi
call fcn.0101cf0d
test eax, eax
je 0x101f41b
push dword [edi + 0x144]
push dword [edi + 0x140]
call fcn.0101d68e
cmp eax, esi
jne 0x101f2f1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101f41b
cmp dword [edi + 0x36c], esi
jne 0x101f30f
cmp dword [edi + 0x20], 2
jne 0x101f30f
mov ecx, dword [edi + 0x148]
neg ecx
sbb ecx, ecx
and ecx, 0x3f
inc ecx
jmp 0x101f312
mov ecx, dword [edi + 0x20]
push ecx
push esi
lea ecx, [edi + 0xf8]
push ecx
push eax
push 0x1040304
call fcn.0101ec75
mov ebx, eax
cmp ebx, esi
je 0x101f41b
mov eax, dword [edi + 0x588]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebx + 0x598], eax
lea eax, [edi + 0x388]
push eax
lea eax, [ebx + 0x398]
push eax
call esi
lea eax, [edi + 0x14c]
push eax
lea eax, [ebx + 0x184]
push eax
call esi
push dword [ebp + 8]
call fcn.01035adb
cmp dword [ebp + 8], 0
mov dword [ebx + 0x2c], eax
je 0x101f37b
test eax, eax
je 0x101f41b
mov eax, dword [edi + 8]
push dword [ebx + 0x34]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
call fcn.01035abf
push dword [edi + 0x28]
call fcn.01035adb
mov dword [ebx + 0x34], eax
cmp dword [edi + 0x28], 0
je 0x101f3a4
test eax, eax
je 0x101f41b
mov eax, dword [edi + 0x148]
mov dword [ebx + 0x15c], eax
mov eax, dword [ebx + 0x608]
test ah, 2
je 0x101f3c9
mov eax, dword [ebx + 0x158]
inc dword [eax + 0xe4]
jmp 0x101f3ec
test ah, 1
je 0x101f3dc
mov eax, dword [ebx + 0x158]
inc dword [eax + 0xe0]
jmp 0x101f3ec
test al, al
jns 0x101f3ec
mov eax, dword [ebx + 0x158]
inc dword [eax + 0xe8]
cmp dword [edi + 0x36c], 0
je 0x101f440
mov dword [ebx + 0x5fc], 0xc
mov eax, dword [edi + 0x36c]
push eax
mov dword [ebx + 0x600], eax
call fcn.01035a36
test eax, eax
mov dword [ebx + 0x604], eax
jne 0x101f41f
xor esi, esi
jmp 0x101f485
mov esi, dword [edi + 0x370]
mov ecx, dword [ebx + 0x600]
add esi, edi
mov edi, eax
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 edi, dword [ebp - 4]
mov eax, dword [edi + 0x378]
mov dword [ebx + 0x388], eax
mov eax, dword [edi + 0x37c]
mov dword [ebx + 0x38c], eax
mov eax, dword [edi + 0x380]
mov dword [ebx + 0x390], eax
mov eax, dword [edi + 0x384]
mov dword [ebx + 0x394], eax
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
xor esi, esi
mov dword [ebx + 0x14], eax
inc esi
push edi
call fcn.01035abf
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x101f499
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x103ff58]
and dword [ebp - 0x460], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, 0x1040378
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push 0x1002c24
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101f4f3
xor eax, eax
inc eax
jmp 0x101f54a
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x1001a58
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.0101f29b
test eax, eax
jne 0x101f526
mov dword [ebp - 0x460], 1
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101f4f3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 0x460], eax
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret

Function at 0x101fb9f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x103ff58]
and dword [ebp - 0x460], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, 0x1040378
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push 0x1002c38
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101fbf9
xor eax, eax
inc eax
jmp 0x101fc50
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x1001a58
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.0101fa7e
test eax, eax
jne 0x101fc2c
mov dword [ebp - 0x460], 1
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101fbf9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 0x460], eax
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret
Function at 0x101ffd7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x103ff58]
and dword [ebp - 0x460], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, 0x1040378
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push 0x1002c4c
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1020031
xor eax, eax
inc eax
jmp 0x1020088
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x1001a58
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.0101fc62
test eax, eax
jne 0x1020064
mov dword [ebp - 0x460], 1
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1020031
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 0x460], eax
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01031d91
leave
ret