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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
or dword [ebp - 8], 0xffffffff
push ebx
xor ebx, ebx
push edi
xor eax, eax
cmp dword [esi + 8], ebx
mov word [ebp - 0x21c], bx
mov ecx, 0x81
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
stosw word es:[edi], ax
jne 0x101733b
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x10021c0
push 0x103c308
call fcn.01033406
or eax, edx
je 0x10173a0
lea eax, [ebp - 0x21c]
push eax
call fcn.01031b6b
cmp eax, ebx
mov dword [esi + 8], eax
je 0x10173a0
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 - 8], eax
je 0x10173a0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
call fcn.0101720b
test eax, eax
je 0x10173a0
push dword [ebp - 0xc]
call fcn.01031ae1
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x10173a0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
call fcn.0101720b
test eax, eax
je 0x10173a0
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10173c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp word [ebp - 0x21c], bx
mov dword [ebp - 4], eax
je 0x10173c2
lea eax, [ebp - 0x21c]
push eax
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 8], 0xffffffff
je 0x10173d1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.01031b59
cmp dword [ebp - 4], ebx
je 0x10173e7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], ebx
pop edi
sete al
pop ebx
leave
ret
Function at 0x10177af
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor edx, edx
xor eax, eax
mov word [ebp - 0x210], dx
mov ecx, 0x81
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x1c], 2
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
jne 0x10177f8
mov esi, dword [edi + 0x158]
cmp esi, edx
je 0x10177f8
mov eax, dword [esi + 0x80]
jmp 0x10177fa
xor eax, eax
cmp esi, edx
je 0x1017803
mov ebx, dword [esi + 0x34]
jmp 0x1017806
mov ebx, dword [edi + 0x34]
cmp eax, edx
jne 0x101786a
mov eax, dword [ebp + 0xc]
cmp eax, edx
jne 0x1017816
mov eax, 0x1001ab0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
push 0x103c308
call fcn.01033406
or eax, edx
je 0x10178cf
push 0
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x10178be
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [esi + 0x34]
cmp eax, edx
je 0x101787f
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.01016247
test eax, eax
je 0x10178cf
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0xc]
lea eax, [esi + 0x9c]
push eax
lea eax, [edi + 0x114]
push eax
lea eax, [esi + 0x78]
push eax
push dword [edi + 0x30]
push dword [ebp - 8]
call fcn.010176c6
test eax, eax
je 0x10178cf
mov esi, dword [esi + 0x34]
test esi, esi
je 0x1017847
push esi
lea eax, [ebp - 0x210]
push eax
call sub.FXSTIFF.dll_MergeTiffFiles
test eax, eax
jne 0x1017847
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1017860
push 0x1f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1017860

Function at 0x101795f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
cmp dword [esi + 0x164], 0
mov ecx, 0x81
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x10179db
lea eax, [ebp - 0x208]
push eax
push 0x10021d0
push esi
call fcn.010177af
test eax, eax
je 0x10179d7
lea eax, [ebp - 0x208]
push eax
call fcn.01031b6b
test eax, eax
mov dword [esi + 0x164], eax
jne 0x10179db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10179de
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x1017c91
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10000000
mov ecx, 0x103c250
call fcn.010328b4
test eax, eax
jne 0x1017ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov edi, eax
pop eax
call fcn.0102e8e0
mov esi, esp
test esi, esi
je 0x1017cd0
push edi
push 0x1001814
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 0x1017d93
push dword [ebp + 8]
call fcn.010162b8
mov esi, 0x103c308
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1017d4c
push esi
call fcn.0103202c
test eax, eax
jne 0x1017d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov ebx, eax
pop eax
call fcn.0102e8e0
mov edi, esp
test edi, edi
je 0x1017d34
push ebx
push 0x1001814
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 0x1017ce4
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 [0x103c228], eax
jne 0x1017d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x18
mov ebx, eax
pop eax
call fcn.0102e8e0
mov edi, esp
test edi, edi
je 0x1017d8b
push ebx
push 0x1001814
push edi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push edi
jmp 0x1017cd4
mov eax, esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10181be
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
push 0x103c234
mov esi, eax
mov dword [esp + 0x14], ebx
call edi
push 0x103c29c
call edi
mov ebp, 0x103c250
push ebp
call edi
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x5f8]
dec dword [esi + 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov dword [edi], ebx
mov dword [edi + 4], ebx
lea ebx, [edi + 8]
mov eax, dword [ebx]
push 0
add eax, 0x5fc
push eax
call fcn.01016c50
mov eax, dword [ebx]
and dword [eax + 0x5f4], 0
mov eax, dword [ebx]
and dword [eax + 0x5f8], 0
push dword [ebx]
call fcn.0101c00c
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x101823e
call ebx
mov dword [esp + 0x10], eax
push edi
call fcn.01031b59
xor edi, edi
cmp dword [esp + 0x1c], edi
je 0x1018270
mov eax, dword [esi + 8]
cmp eax, edi
je 0x1018270
cmp dword [esi + 0x20], edi
jne 0x1018261
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1018270
call fcn.010172cf
test eax, eax
jne 0x1018270
call ebx
mov dword [esp + 0x10], eax
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebp
call esi
push 0x103c29c
call esi
push 0x103c234
call esi
xor eax, eax
cmp dword [esp + 0x10], edi
pop edi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret 8
Function at 0x1018512
Capabilities:
Get file size
Read file on windows

Disassembly:
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 edi, edi
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 0x10185a5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10185a5
cmp ebx, 0x20
jae 0x1018565
mov dword [ebp - 4], 0xd
jmp 0x10185ae
push ebx
call fcn.01031ae1
mov edi, eax
cmp edi, esi
je 0x10185a5
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10185a5
push ebx
mov eax, edi
call fcn.010183ac
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 8], ebx
je 0x10185a5
push dword [ebp + 8]
call fcn.01031b6b
cmp eax, esi
mov dword [ebx + 8], eax
jne 0x10185c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call fcn.01031b59
mov ebx, dword [ebp - 8]
push 1
xor edi, edi
call fcn.0101831a
mov dword [ebp - 8], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x10185d2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.01031b59
cmp dword [ebp - 4], esi
pop edi
pop esi
pop ebx
je 0x10185e9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x10185f0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x464
and dword [esp], 0
push 0x103c308
lea eax, [esp + 0x10]
push 0x10021ec
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x214]
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x1018637
xor eax, eax
inc eax
jmp 0x1018722
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, 0x103c234
mov ebx, 0x103c29c
lea eax, [esp + 0x250]
push eax
push 0x103c308
lea eax, [esp + 0x24]
push 0x1001a88
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
call fcn.01018512
mov esi, eax
test esi, esi
jne 0x1018696
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], 1
jmp 0x10186f1
and dword [esp + 0x18], 0
push ebp
call edi
push ebx
call edi
lea ecx, [esi + 0x24]
mov eax, dword [ecx]
jmp 0x10186b8
mov edx, eax
mov edx, dword [edx + 8]
cmp dword [edx + 0x600], 0
mov eax, dword [eax]
je 0x10186be
cmp eax, ecx
jne 0x10186a8
jmp 0x10186c6
mov dword [esp + 0x18], 0xd
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x18], 0
jne 0x1018681
mov eax, dword [0x103c200]
mov dword [esi], 0x103c1fc
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x103c200], esi
lea eax, [esp + 0x224]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101864b
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
cmp dword [esp + 0xc], eax
pop esi
pop ebp
sete al
pop ebx
add esp, 0x464
ret
Function at 0x101ae27
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push dword [esp + 0x30]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x101ae97
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x590
jae 0x101ae78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101ae97
push ebx
call fcn.01031ae1
mov edi, eax
cmp edi, ebp
je 0x101ae97
push ebp
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ae9f
push edi
call fcn.01031b59
xor edi, edi
cmp esi, 0xffffffff
je 0x101aeab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
xor eax, eax
cmp edi, ebp
pop edi
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push dword [ebp + 8]
mov edi, 0x103c308
push edi
lea eax, [ebp - 0x20c]
push 0x1002b1c
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 0x101afe3
xor eax, eax
inc eax
jmp 0x101b035
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x1001a88
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x101b014
mov dword [ebp - 4], 1
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101afe3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101b747
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
cmp esi, ebx
mov word [ebp - 0x214], bx
mov ecx, 0x81
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
stosw word es:[edi], ax
je 0x101b78b
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.01016247
test eax, eax
je 0x101b7af
lea eax, [ebp - 0x214]
push eax
push 0x1002b3c
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.010176c6
test eax, eax
jne 0x101b7ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x101b7fe
lea eax, [ebp - 0x214]
push eax
call fcn.01025c30
test eax, eax
mov dword [ebp - 4], eax
jne 0x101b7d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x101b7eb
test esi, esi
je 0x101b7e8
push esi
call fcn.01025c30
mov ebx, eax
test ebx, ebx
je 0x101b7cd
add dword [ebp - 4], ebx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
jne 0x101b807
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x101b93b
Capabilities:
Write file on windows

Disassembly:
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 0x101b9a1
push esi
push esi
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101b995
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 0x101b995
inc esi
cmp edi, 0xffffffff
je 0x101b9a1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 4

Function at 0x101bab0
Capabilities:
Compare security identifiers

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1c], 2
jne 0x101bad8
mov eax, dword [eax + 0x158]
push dword [eax + 0xf8]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x101bada
xor eax, eax
ret 8
Function at 0x101c896
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov ebx, 0x103c29c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0xc]
call fcn.0101b593
mov esi, eax
test esi, esi
je 0x101c943
cmp dword [esi + 0x24], 0
jne 0x101c943
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
and dword [esi], 0
and dword [esi + 4], 0
push dword [0x103c28c]
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
cmp dword [esp + 0x14], 0
je 0x101c8ea
call fcn.0101bc3d
mov eax, dword [esi + 0x2c]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x101c8fb
push eax
call edi
mov eax, dword [esi + 0x164]
test eax, eax
je 0x101c908
push eax
call edi
mov eax, dword [esi + 0x34]
test eax, eax
je 0x101c912
push eax
call edi
push 0x103c290
call fcn.0101acc3
push esi
push dword [esi + 0x158]
call fcn.0101c446
cmp dword [esp + 0x14], 1
pop edi
jne 0x101c93b
push dword [esp + 0xc]
push 1
call fcn.010269b3
push 1
push esi
call fcn.0101c6fa
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop esi
inc eax
pop ebx
ret 0xc
Function at 0x101d02a
Capabilities:
Delete file

Disassembly:
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.0101ae27
test eax, eax
mov edi, dword [ebp - 4]
je 0x101d1a8
push edi
call fcn.0101aec0
test eax, eax
je 0x101d1a8
push dword [edi + 0x144]
push dword [edi + 0x140]
call fcn.0101b5d8
cmp eax, esi
jne 0x101d07e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101d1a8
cmp dword [edi + 0x36c], esi
jne 0x101d09c
cmp dword [edi + 0x20], 2
jne 0x101d09c
mov ecx, dword [edi + 0x148]
neg ecx
sbb ecx, ecx
and ecx, 0x3f
inc ecx
jmp 0x101d09f
mov ecx, dword [edi + 0x20]
push ecx
push esi
lea ecx, [edi + 0xf8]
push ecx
push eax
push 0x103c294
call fcn.0101ca5c
mov ebx, eax
cmp ebx, esi
je 0x101d1a8
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.01031b6b
cmp dword [ebp + 8], 0
mov dword [ebx + 0x2c], eax
je 0x101d108
test eax, eax
je 0x101d1a8
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.01031b59
push dword [edi + 0x28]
call fcn.01031b6b
mov dword [ebx + 0x34], eax
cmp dword [edi + 0x28], 0
je 0x101d131
test eax, eax
je 0x101d1a8
mov eax, dword [edi + 0x148]
mov dword [ebx + 0x15c], eax
mov eax, dword [ebx + 0x608]
test ah, 2
je 0x101d156
mov eax, dword [ebx + 0x158]
inc dword [eax + 0xe4]
jmp 0x101d179
test ah, 1
je 0x101d169
mov eax, dword [ebx + 0x158]
inc dword [eax + 0xe0]
jmp 0x101d179
test al, al
jns 0x101d179
mov eax, dword [ebx + 0x158]
inc dword [eax + 0xe8]
cmp dword [edi + 0x36c], 0
je 0x101d1cd
mov dword [ebx + 0x5fc], 0xc
mov eax, dword [edi + 0x36c]
push eax
mov dword [ebx + 0x600], eax
call fcn.01031ae1
test eax, eax
mov dword [ebx + 0x604], eax
jne 0x101d1ac
xor esi, esi
jmp 0x101d212
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.01031b59
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x101d221
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, 0x103c308
push edi
lea eax, [ebp - 0x20c]
push 0x1002bfc
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 0x101d26e
xor eax, eax
inc eax
jmp 0x101d2bf
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x1001a88
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.0101d02a
test eax, eax
jne 0x101d29e
mov dword [ebp - 4], 1
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101d26e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101d833
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, 0x103c308
push edi
lea eax, [ebp - 0x20c]
push 0x1002c10
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 0x101d880
xor eax, eax
inc eax
jmp 0x101d8d1
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x1001a88
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.0101d719
test eax, eax
jne 0x101d8b0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101d880
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101dbd1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, 0x103c308
push edi
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 0x101dc1e
xor eax, eax
inc eax
jmp 0x101dc6f
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x1001a88
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.0101d8d6
test eax, eax
jne 0x101dc4e
mov dword [ebp - 4], 1
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101dc1e
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
pop edi
pop esi
pop ebx
leave
ret