joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cbbe0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100cbc75
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x100cbc2f
call fcn.100e07f0
test eax, eax
je 0x100cbc2f
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100cbc1c
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x100cbc1c
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x100cbc28
add edi, ebx
mov ebx, 0x10004
jmp 0x100cbc31
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x100cbe30
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x100cbc75
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x100cbc64
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x100cbca0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x100cbcb4
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100cbd00
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x100ce050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100ce114
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x100ce0a0
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100ce10d
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100ce10d
lea edx, [esp + 0xc]
test edx, edx
je 0x100ce10d
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100ce0e8
push eax
lea eax, [esp + 0x10]
push eax
push 0x10236e60
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
xor esi, esi
jmp 0x100ce11c
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp ebx, eax
jbe 0x100ce11c
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
xor esi, esi
jmp 0x100ce11c
mov esi, 0x57
jmp 0x100ce11c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x10281e18], esi
je 0x100ce12d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret

Function at 0x100ce240
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100ce304
lea ecx, [esp + 0xc]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x100ce290
mov word [eax], 0
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100ce2fd
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100ce2fd
lea edx, [esp + 0xc]
test edx, edx
je 0x100ce2fd
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100ce2d8
push eax
lea eax, [esp + 0x10]
push eax
push 0x10236e60
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
xor esi, esi
jmp 0x100ce30c
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp ebx, eax
jbe 0x100ce30c
lea edx, [esp + 0xc]
push edx
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
xor esi, esi
jmp 0x100ce30c
mov esi, 0x57
jmp 0x100ce30c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x10281e18], esi
je 0x100ce31d
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x100ce330
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101ea2e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
call sub.MFC42u.DLL_CString::CString_2
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push 0x104
push eax
mov dword [esp + 0x434], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100ce447
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x100ce3c5
mov word [eax], bx
lea edx, [esp + 0x21c]
test edx, edx
je 0x100ce440
lea eax, [esp + 0x14]
test eax, eax
je 0x100ce440
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x100ce40f
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x10236e60
lea edx, [esp + 0x228]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x100ce44d
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x104
jae 0x100ce43c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x21c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x100ce44d
mov eax, 0x57
jmp 0x100ce44d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x10281e18], eax
je 0x100ce45f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100ce470
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov esi, dword [esp + 0x434]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.10071014
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x100ce570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100ce617
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100ce610
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100ce610
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x100ce610
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100ce5eb
lea edx, [esp + 0xc]
push eax
push edx
push 0x10236e60
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
xor esi, esi
jmp 0x100ce61f
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp ebx, eax
jbe 0x100ce61f
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
xor esi, esi
jmp 0x100ce61f
mov esi, 0x57
jmp 0x100ce61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x10281e18], esi
je 0x100ce630
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret

Function at 0x100ce740
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100ce7e7
mov edi, dword [esp + 0x218]
test edi, edi
je 0x100ce7e0
mov ebx, dword [esp + 0x21c]
test ebx, ebx
je 0x100ce7e0
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x100ce7e0
mov eax, dword [esp + 0x220]
mov esi, 0x7a
test eax, eax
je 0x100ce7bb
lea edx, [esp + 0xc]
push eax
push edx
push 0x10236e60
push ebx
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
xor esi, esi
jmp 0x100ce7ef
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp ebx, eax
jbe 0x100ce7ef
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
xor esi, esi
jmp 0x100ce7ef
mov esi, 0x57
jmp 0x100ce7ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
mov dword [0x10281e18], esi
je 0x100ce800
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x208
ret
Function at 0x100ce820
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x101ea335
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
call sub.MFC42u.DLL_CString::CString_2
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push 0x104
push eax
mov dword [esp + 0x434], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x100ce920
lea ecx, [esp + 0x21c]
test ecx, ecx
je 0x100ce919
lea edx, [esp + 0x14]
test edx, edx
je 0x100ce919
mov eax, dword [esp + 0x438]
mov esi, 0x7a
cmp eax, ebx
je 0x100ce8e8
push eax
lea eax, [esp + 0x18]
push eax
push 0x10236e60
lea ecx, [esp + 0x228]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
xor esi, esi
mov eax, esi
jmp 0x100ce926
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, 0x104
jae 0x100ce915
lea eax, [esp + 0x14]
lea ecx, [esp + 0x21c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
xor esi, esi
mov eax, esi
jmp 0x100ce926
mov eax, 0x57
jmp 0x100ce926
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
mov dword [0x10281e18], eax
je 0x100ce938
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100ce949
lea edx, [esp + 0x21c]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42u.DLL_CString::operator_1
mov esi, dword [esp + 0x434]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.10071014
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], bl
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x100d2e80
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x410
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.ALLUSERSPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jbe 0x100d2fc0
cmp eax, 0x104
jae 0x100d2fc0
push ebp
lea ecx, [esp + 8]
push esi
push ecx
call fcn.100cd3c0
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x100d2f46
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x214]
push 0x104
lea eax, [esp + 0x10]
push edx
push eax
call fcn.100cd080
lea ecx, [esp + 0x220]
push ecx
call ebp
mov esi, eax
add esp, 0x10
cmp esi, 0x104
jge 0x100d2f46
lea edx, [esp + 0x214]
push esi
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov word [esp + esi*2 + 0xc], 0
mov edi, dword [esp + 0x420]
test edi, edi
je 0x100d2fb1
mov esi, dword [esp + 0x424]
test esi, esi
je 0x100d2fb1
lea ecx, [esp + 0xc]
test ecx, ecx
je 0x100d2fb1
mov eax, dword [esp + 0x428]
test eax, eax
je 0x100d2f94
lea edx, [esp + 0xc]
push eax
push edx
push 0x10236e60
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov eax, 1
pop esi
pop ebp
pop edi
add esp, 0x410
ret
lea eax, [esp + 0xc]
push eax
call ebp
add esp, 4
cmp esi, eax
jbe 0x100d2fb1
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret

Function at 0x100d4680
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x100d46a1
push 0x57
mov dword [0x10281e18], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x100d46d2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d46d2
test al, 0x10
jne 0x100d46d2
test al, 1
je 0x100d469c
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call edi
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x100d65b0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jne 0x100d65cc
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call dword [sym.imp.MSVCRT.dll_strncpy]
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x100d6652
cmp byte [esp + 0x10], 0x5c
jne 0x100d6652
cmp byte [esp + 0x11], 0x5c
jne 0x100d6652
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea edx, [esp + 0x12]
push 0x5c
push edx
call esi
add esp, 8
test eax, eax
je 0x100d66d1
inc eax
push 0x5c
push eax
call esi
add esp, 8
mov esi, eax
test esi, esi
je 0x100d66d1
lea eax, [esp + 0x10]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100d6694
test bl, 1
je 0x100d6683
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 0xfffffffe
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x100d6707
cmp ebx, 0xffffffff
je 0x100d669d
test edi, edi
jne 0x100d66ac
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x100d6707
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x100d6656
test ebp, ebp
je 0x100d6707
mov ebx, dword [esp + 0x118]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100d66fc
test al, 0x10
jne 0x100d6707
test al, 1
je 0x100d66ef
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x100d6707
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x100d6720
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
jne 0x100d673c
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call edi
lea edx, [esp + 0x24]
mov esi, eax
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x18
cmp eax, 2
jbe 0x100d67c2
mov eax, 0x5c
cmp word [esp + 0x10], ax
jne 0x100d67c2
cmp word [esp + 0x12], ax
jne 0x100d67c2
push eax
lea eax, [esp + 0x18]
push eax
call edi
add esp, 8
test eax, eax
je 0x100d684b
add eax, 2
push 0x5c
push eax
call edi
add esp, 8
mov esi, eax
test esi, esi
je 0x100d684b
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100d680a
test bl, 1
je 0x100d67f9
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100d6881
cmp ebx, 0xffffffff
je 0x100d6813
test edi, edi
jne 0x100d6822
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x100d6881
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x100d67ca
test ebp, ebp
je 0x100d6881
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d6876
test al, 0x10
jne 0x100d6881
test al, 1
je 0x100d6869
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100d6881
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x100d6c80
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
test ebx, ebx
push edi
jne 0x100d6cb4
push 0x57
mov dword [0x10281e18], 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d6cdb
test al, 0x10
jne 0x100d6e4f
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100d6e4f
mov ecx, 0x81
lea edi, [esp + 0x12]
mov word [esp + 0x10], ax
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, 1
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call edi
lea edx, [esp + 0x24]
mov esi, eax
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x18
cmp eax, 2
jbe 0x100d6d6b
mov eax, 0x5c
cmp word [esp + 0x10], ax
jne 0x100d6d6b
cmp word [esp + 0x12], ax
jne 0x100d6d6b
push eax
lea eax, [esp + 0x18]
push eax
call edi
add esp, 8
test eax, eax
je 0x100d6df4
add eax, 2
push 0x5c
push eax
call edi
add esp, 8
mov esi, eax
test esi, esi
je 0x100d6df4
lea ecx, [esp + 0x10]
mov word [esi], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov edi, ebx
and edi, 0x10
jne 0x100d6db3
test bl, 1
je 0x100d6da2
mov edx, ebx
lea eax, [esp + 0x10]
and edx, 0xfffffffe
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
je 0x100d6e2c
cmp ebx, 0xffffffff
je 0x100d6dbc
test edi, edi
jne 0x100d6dcb
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
je 0x100d6e2c
mov word [esi], 0x5c
add esi, 2
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x100d6d73
test ebp, ebp
je 0x100d6e2c
mov ebx, dword [esp + 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d6e1d
test al, 0x10
jne 0x100d6e28
test al, 1
je 0x100d6e12
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100d6e2c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, eax
test ebp, ebp
jne 0x100d6e4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [0x10281e18], eax
je 0x100d6e42
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
mov eax, dword [esp + 0x220]
test eax, eax
je 0x100d6e62
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
Function at 0x100d72a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x26c]
push ebp
mov ebp, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
mov eax, 0x1f3
push ebx
sub eax, ebp
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x100d72e9
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x25c
ret
push edi
mov edi, 1
mov eax, dword [ebx]
test al, 0x10
mov dword [esp + 0x14], eax
je 0x100d745b
cmp word [ebx + 0x2c], 0x2e
lea ecx, [ebx + 0x2c]
jne 0x100d7325
mov ax, word [ebx + 0x2e]
test ax, ax
je 0x100d742b
cmp ax, 0x2e
jne 0x100d7325
cmp word [ebx + 0x30], 0
je 0x100d742b
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
add esp, 4
lea eax, [ebx + 1]
cmp ecx, eax
jb 0x100d7424
mov ecx, dword [esp + 0x278]
mov word [esi + ebp*2 - 2], 0
lea eax, [ecx + 0x2c]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
mov al, byte [esp + 0x284]
add esp, 8
test al, 0x10
je 0x100d7380
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
push eax
push 0
push esi
call dword [esp + 0x290]
mov edi, eax
test edi, edi
je 0x100d73e7
test byte [esp + 0x27c], 0x40
jne 0x100d73e7
lea ecx, [ebx + ebp]
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea edx, [ebx + ebp + 1]
lea eax, [esi + ecx*2]
mov ecx, 0x93
mov word [eax - 2], 0x5c
mov word [eax], 0x2a
xor eax, eax
mov word [esi + edx*2], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x284]
mov ecx, dword [esp + 0x280]
push eax
mov eax, dword [esp + 0x280]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call fcn.100d72a0
add esp, 0x18
mov edi, eax
test byte [esp + 0x27c], 0x20
je 0x100d7417
test edi, edi
je 0x100d7417
mov edx, dword [esp + 0x284]
mov eax, dword [esp + 0x14]
push edx
add ebx, ebp
push eax
push 0
push esi
mov word [esi + ebx*2 - 2], 0
call dword [esp + 0x290]
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
mov word [esi + ebp*2], 0
mov ebx, dword [esp + 0x278]
test edi, edi
je 0x100d7443
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100d72ef
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret
mov ecx, dword [esp + 0x284]
lea edx, [ebx + 0x2c]
push ecx
push eax
push edx
push esi
mov word [esi + ebp*2 - 4], 0
call dword [esp + 0x290]
mov word [esi + ebp*2 - 4], 0x5c
mov edi, eax
mov word [esi + ebp*2 - 2], 0x2a
jmp 0x100d742b