joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100db0e1
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x18
mov eax, 0x1014a8ee
call fcn.101018e5
mov edi, ecx
mov dword [ebp - 0x24], edi
mov esi, 0x10152f84
push esi
lea ecx, [edi + 4]
call fcn.10001cbf
push esi
mov ecx, edi
call fcn.10001cbf
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x100db13a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x100db1e6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x100db151
cmp edi, ebx
je 0x100db133
push edi
jmp 0x100db12d
inc eax
push eax
mov byte [ebp - 4], 1
call fcn.10100af4
pop ecx
mov esi, eax
mov dword [ebp - 4], ebx
jmp 0x100db175
cmp esi, ebx
je 0x100db14a
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x18], ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100db199
push esi
call fcn.10101095
pop ecx
jmp 0x100db14a
mov eax, dword [ebp - 0x18]
mov byte [eax + esi], bl
push ebx
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x14], ebx
call fcn.100e1533
add esp, 0x10
cmp dword [ebp - 0x14], ebx
mov byte [ebp + 0xb], bl
je 0x100db1c8
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
call fcn.100daef8
mov byte [ebp + 0xb], al
push dword [ebp - 0x14]
call fcn.10101095
push esi
call fcn.10101095
cmp edi, ebx
pop ecx
pop ecx
je 0x100db1e3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
call fcn.1010198a
ret 4
Function at 0x100db42e
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x10
mov eax, 0x1014a944
call fcn.101018b2
xor esi, esi
cmp dword [ebp + 8], esi
je 0x100db4a2
cmp dword [ebp + 0xc], esi
jle 0x100db4a2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
push esi
call fcn.100e1421
add esp, 0x14
cmp dword [ebp - 0x10], esi
je 0x100db4a2
cmp dword [ebp - 0x14], esi
jle 0x100db4a2
lea ecx, [ebp - 0x1c]
call fcn.100d829c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.100d8437
push dword [ebp - 0x10]
mov edi, eax
call fcn.10101095
cmp edi, esi
pop ecx
jne 0x100db4aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100d82a2
xor eax, eax
call fcn.1010198a
ret
lea eax, [ebp + 8]
push 0x10165738
push eax
call fcn.100dfa91
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x100db50e
push 0x1015a88c
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], esi
call fcn.101035c0
add esp, 0xc
cmp dword [ebp - 0x18], esi
je 0x100db4f4
push dword [ebp - 0x18]
push 1
push dword [ebp - 0x14]
push edi
call fcn.10103ca7
push dword [ebp - 0x18]
call fcn.10103005
add esp, 0x14
push 0x10
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_LoadImageW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call fcn.101026fe
pop ecx
lea ecx, [ebp + 8]
call fcn.100015d9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100d82a2
mov eax, esi
jmp 0x100db4a4

Function at 0x100dba04
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
push esi
push edi
xor esi, esi
push esi
push esi
jmp 0x100dba84
mov eax, dword [ebp - 4]
test eax, eax
je 0x100dbab6
inc eax
push eax
call fcn.10100af4
mov edi, eax
test edi, edi
pop ecx
je 0x100dba91
mov eax, dword [ebp - 4]
inc eax
push eax
push 0
push edi
call fcn.101027c0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100dba95
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
lea edx, [ecx + esi]
cmp edx, eax
mov dword [ebp - 0xc], edx
ja 0x100dba9e
mov eax, dword [ebp + 0xc]
push ecx
add esi, eax
push edi
push esi
call fcn.10102a40
mov esi, dword [ebp - 0xc]
push edi
call fcn.10101095
add esp, 0x10
push 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x100dba19
xor eax, eax
jmp 0x100dbab9
push edi
call fcn.10101095
pop ecx
jmp 0x100dbab6
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add esi, eax
push edi
push esi
call fcn.10102a40
push edi
call fcn.10101095
add esp, 0x10
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100dc8e1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x70], 2
jne 0x100dc924
cmp dword [ebp - 0x7c], 5
jne 0x100dc924
cmp dword [ebp - 0x78], 0
jne 0x100dc924
xor eax, eax
inc eax
jmp 0x100dc926
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.101018a3
add ebp, 0x98
leave
ret

Function at 0x100dc995
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
lea eax, [ebp - 0x80]
push eax
xor esi, esi
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x70], 2
jne 0x100dc9d1
cmp dword [ebp - 0x7c], 6
jb 0x100dc9d1
inc esi
mov ecx, dword [ebp + 0x94]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.101018a3
add ebp, 0x98
leave
ret
Function at 0x100dc9e9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x67]
push ebx
push eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
xor esi, esi
mov byte [ebp - 0x68], bl
call fcn.101027c0
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
push 8
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], bl
mov byte [ebp - 0x6e], bl
mov byte [ebp - 0x6d], bl
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100dcaf5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push ebx
push 2
push dword [ebp - 0x80]
call edi
test eax, eax
jne 0x100dca79
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100dcaf4
push dword [ebp - 0x74]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push esi
push 2
push dword [ebp - 0x80]
call edi
test eax, eax
je 0x100dcaf4
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100dcaf4
xor edi, edi
cmp dword [esi], ebx
jbe 0x100dcaf4
lea eax, [esi + 4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
push dword [eax]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100dcae3
add dword [ebp - 0x7c], 8
inc edi
cmp edi, dword [esi]
jb 0x100dcac6
jmp 0x100dcaf4
test byte [esi + edi*8 + 8], 4
je 0x100dcaf4
mov dword [ebp - 0x84], 1
pop edi
cmp dword [ebp - 0x78], ebx
je 0x100dcb03
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x100dcb0e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x84]
pop esi
xor ecx, ebp
pop ebx
call fcn.101018a3
leave
ret
Function at 0x100dd0ce
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4fb4]
mov eax, 0x5034
call fcn.10102790
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x4fb0], eax
mov eax, dword [ebp + 0x4fc0]
push ebx
mov ebx, dword [ebp + 0x4fbc]
push esi
push edi
xor edi, edi
push 0x206
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x4daa]
push edi
push eax
mov word [ebp + 0x4da8], di
call fcn.101027c0
mov esi, 0x2710
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.101027c0
push dword [ebp - 0x7c]
lea eax, [ebp + 0x4da8]
push ebx
push 0x10155274
push 0xffffffffffffffff
push 0x103
push eax
call fcn.10101c5e
add esp, 0x30
push edi
push 0x80
push 3
push edi
push 3
push 0x40000000
lea eax, [ebp + 0x4da8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
jne 0x100dd172
xor eax, eax
jmp 0x100dd1c4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push 0x40
push dword [ebp - 0x7c]
mov ebx, eax
sub ebx, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, edi
jbe 0x100dd1b8
cmp ebx, esi
lea eax, [ebp - 0x80]
push edi
push eax
lea eax, [ebp - 0x78]
jbe 0x100dd1ad
push esi
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, esi
jne 0x100dd190
jmp 0x100dd1b8
push ebx
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x4fb0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101018a3
add ebp, 0x4fb4
leave
ret

Function at 0x100dd306
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.10102790
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x4004], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x3ffe
lea eax, [ebp - 0x4002]
push 0
push eax
call fcn.101027c0
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x100dd3cf
cmp eax, 0x3fff
ja 0x100dd3cf
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100dd3cf
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x10155e24
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100dd3cf
mov esi, dword [ebp + 0x10]
push esi
push 0
push edi
call fcn.101027c0
mov eax, dword [ebp - 0x4008]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0xffffffffffffffff
dec esi
push esi
push edi
call fcn.10101c5e
xor eax, eax
add esp, 0x2c
inc eax
jmp 0x100dd3d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101018a3
leave
ret
Function at 0x100dd594
Capabilities:
Check if file exists

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100dd5d6
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov esi, ecx
test esi, esi
jne 0x100dd5d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100dd5d8
xor esi, esi
mov eax, esi
pop esi
ret

Function at 0x100dd5dc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10102790
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x1000
lea eax, [ebp - 0x1006]
push ebx
push eax
mov word [ebp - 0x1008], bx
call fcn.101027c0
add esp, 0xc
cmp word [edi], bx
mov eax, edi
je 0x100dd684
push esi
push 0x10155e24
push eax
call fcn.1010109a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x100c], esi
je 0x100dd683
sub esi, edi
sar esi, 1
cmp esi, ebx
jle 0x100dd675
push 0x1002
lea eax, [ebp - 0x1008]
push ebx
push eax
call fcn.101027c0
push esi
push edi
lea eax, [ebp - 0x1008]
push 0x800
push eax
call fcn.10103824
add esp, 0x1c
push ebx
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x100c]
add eax, 2
cmp word [eax], bx
jne 0x100dd61e
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.101018a3
leave
ret

Function at 0x100dd692
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x100dd6b6
or eax, 0xffffffff
jmp 0x100dd6e0
push esi
push eax
call fcn.10100af4
mov esi, eax
cmp esi, edi
pop ecx
je 0x100dd6dc
push esi
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x100dd6e3
push esi
call fcn.10101095
pop ecx
or eax, 0xffffffff
pop esi
pop edi
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x10155e24
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x100dd708
or edi, 0xffffffff
push esi
call fcn.10101095
pop ecx
mov eax, edi
jmp 0x100dd6df
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x100dd6fd
Function at 0x100ddaef
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.100dd2fb
test eax, eax
pop ecx
jne 0x100ddb03
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0xc], 0
je 0x100ddb2b
test eax, eax
jne 0x100ddaff
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ecx, ecx
test eax, eax
setne cl
pop esi
inc ecx
mov eax, ecx
ret
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x100de8ec
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x1014adae
call fcn.101018b2
xor esi, esi
mov dword [ebp - 0x10], esi
mov eax, dword [0x1019a028]
mov dword [ebp - 0x10], eax
push 0x104
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.10001a82
push eax
push esi
push esi
push 0x26
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10001c5b
push 0x10155e24
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.100058db
lea ecx, [ebp - 0x10]
call fcn.100015d9
mov eax, dword [ebp + 8]
call fcn.1010198a
ret

Function at 0x100de98b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x210], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.101027c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
mov ecx, esi
ja 0x100de9e5
push 0x10152f84
jmp 0x100de9ec
lea eax, [ebp - 0x20c]
push eax
call fcn.1000587e
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.101018a3
leave
ret

Function at 0x100deb14
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x1014aea6
call fcn.101018b2
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x1019a028]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.10001a82
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10001c5b
push 0x10165bfc
mov ecx, esi
call fcn.1001c185
mov eax, esi
call fcn.1010198a
ret

Function at 0x100debac
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x1014aefd
call fcn.101018b2
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x1019a028]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.10001a82
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10001c5b
push str._baidu_bar_
mov ecx, esi
call fcn.1001c185
mov eax, esi
call fcn.1010198a
ret
Function at 0x100dec06
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x660
lea ebp, [esp - 4]
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x660], eax
push 0x10
mov eax, 0x1014af20
call fcn.101018e5
mov eax, dword [ebp + 0x66c]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.1000587e
push 0x10155e24
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.1003e7b2
mov edi, 0x206
push edi
lea eax, [ebp + 0x252]
push ebx
push eax
mov word [ebp + 0x250], bx
call fcn.101027c0
push 0x10159b64
push dword [ebp - 0x14]
mov esi, 0x104
push 0x10155274
push 0xffffffffffffffff
lea eax, [ebp + 0x250]
push esi
push eax
call fcn.10101c5e
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
mov word [ebp + 0x456], bx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x100dedef
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x100ded9b
test byte [ebp], 0x10
je 0x100ded40
test byte [ebp + 0x670], 3
je 0x100ded9b
push edi
lea eax, [ebp + 0x45a]
push ebx
push eax
mov word [ebp + 0x458], bx
call fcn.101027c0
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0x458]
push str._s_s_
push 0xffffffffffffffff
push esi
push eax
call fcn.10101c5e
push dword [ebp + 0x670]
lea eax, [ebp + 0x458]
push eax
mov word [ebp + 0x65e], bx
call fcn.100dec06
add esp, 0x2c
jmp 0x100ded9b
push edi
lea eax, [ebp + 0x45a]
push ebx
push eax
mov word [ebp + 0x458], bx
call fcn.101027c0
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0x458]
push 0x10155274
push 0xffffffffffffffff
push esi
push eax
call fcn.10101c5e
add esp, 0x24
test byte [ebp + 0x670], 1
mov word [ebp + 0x65e], bx
je 0x100ded9b
mov eax, dword [ebp + 0x670]
and eax, 8
push eax
lea eax, [ebp + 0x458]
push eax
call fcn.100ddaef
pop ecx
pop ecx
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100decb4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0x670], 3
mov dword [ebp - 0x18], 1
je 0x100dedef
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x100dedef
mov eax, dword [ebp + 0x670]
and eax, 8
je 0x100dedef
push eax
push dword [ebp - 0x14]
call fcn.100ddaef
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.100015d9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x660]
xor ecx, ebp
call fcn.101018a3
add ebp, 0x664
leave
ret
Function at 0x100dee1d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x458
lea ebp, [esp - 4]
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x458], eax
push 0x4c
mov eax, 0x1014af60
call fcn.101018e5
mov eax, dword [ebp + 0x464]
xor edi, edi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
call fcn.1000587e
push 0x10155e24
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.1003e7b2
push 0x206
lea eax, [ebp + 0x252]
push edi
push eax
mov word [ebp + 0x250], di
call fcn.101027c0
push 0x10159b64
push dword [ebp - 0x18]
mov esi, 0x10155274
push esi
push 0xffffffffffffffff
lea eax, [ebp + 0x250]
push 0x104
push eax
call fcn.10101c5e
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
mov word [ebp + 0x456], di
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x100def6d
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x100def58
test byte [ebp], 0x10
mov eax, dword [0x1019a028]
mov dword [ebp - 0x14], eax
je 0x100def0c
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push str._s_s_
push eax
mov byte [ebp - 4], 2
call fcn.100020c6
add esp, 0x10
push dword [ebp - 0x14]
call fcn.100dee1d
pop ecx
jmp 0x100def49
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push esi
push eax
mov byte [ebp - 4], 3
call fcn.100020c6
add esp, 0x10
push 0x34
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.101027c0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x14]
call fcn.10106d3d
add esp, 0x14
test eax, eax
jne 0x100def4c
mov eax, dword [ebp - 0x40]
add dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.100015d9
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100deeca
lea ecx, [ebp - 0x18]
call fcn.100015d9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.101018a3
add ebp, 0x45c
leave
ret
Function at 0x100defb0
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x458
lea ebp, [esp - 4]
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x458], eax
push 0x18
mov eax, 0x1014afa8
call fcn.101018e5
mov eax, dword [ebp + 0x464]
mov esi, dword [ebp + 0x468]
xor edi, edi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edi
call fcn.1000587e
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.1000587e
mov esi, 0x10155e24
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1003e7b2
push esi
lea ecx, [ebp - 0x18]
call fcn.1003e7b2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100df149
push esi
lea ecx, [ebp - 0x18]
call fcn.1001c185
push esi
lea ecx, [ebp - 0x1c]
call fcn.1001c185
push dword [ebp - 0x1c]
call fcn.100dd5dc
mov dword [esp], 0x206
lea eax, [ebp + 0x252]
push edi
push eax
mov word [ebp + 0x250], di
call fcn.101027c0
push 0x10159b64
push dword [ebp - 0x18]
mov esi, str._s_s
push esi
push 0xffffffffffffffff
lea eax, [ebp + 0x250]
push 0x104
push eax
call fcn.10101c5e
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x250]
push eax
mov word [ebp + 0x456], di
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x24], ebx
je 0x100df149
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x100df128
mov eax, dword [0x1019a028]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push esi
push eax
mov byte [ebp - 4], 3
call fcn.100020c6
mov eax, dword [0x1019a028]
add esp, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push esi
push eax
mov byte [ebp - 4], 4
call fcn.100020c6
add esp, 0x10
test byte [ebp], 0x10
je 0x100df107
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.100defb0
pop ecx
pop ecx
jmp 0x100df114
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x20]
call fcn.100015d9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100015d9
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100df0a9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.100015d9
lea ecx, [ebp - 0x18]
call fcn.100015d9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.101018a3
add ebp, 0x45c
leave
ret