joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011be65
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x101f6410]
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.10146c80
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 0x1011bf71
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 0x1011bef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1011bf70
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 0x1011bf70
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 0x1011bf70
xor edi, edi
cmp dword [esi], ebx
jbe 0x1011bf70
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 0x1011bf5f
add dword [ebp - 0x7c], 8
inc edi
cmp edi, dword [esi]
jb 0x1011bf42
jmp 0x1011bf70
test byte [esi + edi*8 + 8], 4
je 0x1011bf70
mov dword [ebp - 0x84], 1
pop edi
cmp dword [ebp - 0x78], ebx
je 0x1011bf7f
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
je 0x1011bf8a
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.10145d71
leave
ret
Function at 0x1011c266
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 4
mov eax, 0x10194e59
call fcn.10145d80
and dword [ebp - 4], 0
push 0
push 2
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1011c2de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp + 0x238]
call fcn.10003b75
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x230
leave
ret
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
mov edi, eax
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.10007b11
mov byte [ebp - 4], 1
jmp 0x1011c328
push dword [ebp + 0x238]
push dword [ebp - 0x10]
call fcn.1014631e
test eax, eax
pop ecx
pop ecx
je 0x1011c340
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
mov edi, eax
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000425b
test edi, edi
jne 0x1011c2fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.10003b75
jmp 0x1011c2ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.10003b75
xor esi, esi
inc esi
jmp 0x1011c2ae

Function at 0x1011c71c
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4fb4]
mov eax, 0x5034
call fcn.10146c50
mov eax, dword [0x101f6410]
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.10146c80
mov esi, 0x2710
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.10146c80
push dword [ebp - 0x7c]
lea eax, [ebp + 0x4da8]
push ebx
push 0x101a1d40
push 0xffffffffffffffff
push 0x103
push eax
call fcn.1014612c
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 0x1011c7c0
xor eax, eax
jmp 0x1011c812
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 0x1011c806
cmp ebx, esi
lea eax, [ebp - 0x80]
push edi
push eax
lea eax, [ebp - 0x78]
jbe 0x1011c7fb
push esi
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub ebx, esi
jne 0x1011c7de
jmp 0x1011c806
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.10145d71
add ebp, 0x4fb4
leave
ret
Function at 0x1011c94f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.10146c50
mov eax, dword [0x101f6410]
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.10146c80
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1011ca18
cmp eax, 0x3fff
ja 0x1011ca18
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1011ca18
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x1019fce4
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1011ca18
mov esi, dword [ebp + 0x10]
push esi
push 0
push edi
call fcn.10146c80
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.1014612c
xor eax, eax
add esp, 0x2c
inc eax
jmp 0x1011ca1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10145d71
leave
ret

Function at 0x1011cbdd
Capabilities:
Check if file exists

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1011cc1f
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 0x1011cc21
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1011cc21
xor esi, esi
mov eax, esi
pop esi
ret

Function at 0x1011cc25
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10146c50
mov eax, dword [0x101f6410]
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.10146c80
add esp, 0xc
cmp word [edi], bx
mov eax, edi
je 0x1011cccd
push esi
push 0x1019fce4
push eax
call fcn.10145568
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0x100c], esi
je 0x1011cccc
sub esi, edi
sar esi, 1
cmp esi, ebx
jle 0x1011ccbe
push 0x1002
lea eax, [ebp - 0x1008]
push ebx
push eax
call fcn.10146c80
push esi
push edi
lea eax, [ebp - 0x1008]
push 0x800
push eax
call fcn.10147f80
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 0x1011cc67
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10145d71
leave
ret
Function at 0x1011ccdb
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 0x1011ccff
or eax, 0xffffffff
jmp 0x1011cd29
push esi
push eax
call fcn.10144fc2
mov esi, eax
cmp esi, edi
pop ecx
je 0x1011cd25
push esi
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1011cd2c
push esi
call fcn.10145563
pop ecx
or eax, 0xffffffff
pop esi
pop edi
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x1019fce4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1011cd51
or edi, 0xffffffff
push esi
call fcn.10145563
pop ecx
mov eax, edi
jmp 0x1011cd28
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x1011cd46
Function at 0x1011d108
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.1011c944
test eax, eax
pop ecx
jne 0x1011d11c
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0xc], 0
je 0x1011d144
test eax, eax
jne 0x1011d118
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 0x1011e05a
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x10195081
call fcn.10145d80
xor esi, esi
mov dword [ebp - 0x10], esi
mov eax, dword [0x101f3028]
mov dword [ebp - 0x10], eax
push 0x104
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.1000401e
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.100041f7
push 0x1019fce4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.10007b6e
lea ecx, [ebp - 0x10]
call fcn.10003b75
mov eax, dword [ebp + 8]
call fcn.10145e58
ret

Function at 0x1011e0f9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101f6410]
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.10146c80
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 0x1011e153
push 0x1019f188
jmp 0x1011e15a
lea eax, [ebp - 0x20c]
push eax
call fcn.10007b11
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10145d71
leave
ret

Function at 0x1011e1ac
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x10195104
call fcn.10145de9
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x21c], edi
mov eax, dword [0x101f3028]
mov dword [ebp - 0x220], esi
mov dword [esi], eax
cmp dword [eax - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x21c], 1
jne 0x1011e220
push 0x206
lea eax, [ebp - 0x216]
push edi
push eax
mov word [ebp - 0x218], di
call fcn.10146c80
add esp, 0xc
push edi
push 5
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.1000425b
mov eax, esi
call fcn.10145e6c
ret

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

Disassembly:
push 4
mov eax, 0x10195145
call fcn.10145d80
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x101f3028]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.1000401e
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100041f7
push str.Internet_Exploreriexplore.exe
mov ecx, esi
call fcn.1001107f
mov eax, esi
call fcn.10145e58
ret

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

Disassembly:
push 4
mov eax, 0x10195179
call fcn.10145d80
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x101f3028]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.1000401e
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100041f7
push 0x101b7118
mov ecx, esi
call fcn.1001107f
mov eax, esi
call fcn.10145e58
ret
Function at 0x1011e31a
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 4
mov eax, 0x101951d0
call fcn.10145d80
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [0x101f3028]
mov dword [esi], eax
push 0x104
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.1000401e
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.100041f7
push str._baidu_bar_
mov ecx, esi
call fcn.1001107f
mov eax, esi
call fcn.10145e58
ret

Function at 0x1011e374
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x660
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x660], eax
push 0x14
mov eax, 0x101951f3
call fcn.10145db3
mov ecx, dword [ebp + 0x670]
mov eax, dword [ebp + 0x66c]
mov dword [ebp - 0x20], ecx
xor esi, esi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], esi
call fcn.10007b11
push 0x1019fce4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.10059df5
mov ebx, 0x206
push ebx
lea eax, [ebp + 0x45a]
push esi
push eax
mov word [ebp + 0x458], si
call fcn.10146c80
push 0x101a7a14
push dword [ebp - 0x18]
mov edi, 0x101a1d40
push edi
push 0xffffffffffffffff
mov esi, 0x104
lea eax, [ebp + 0x458]
push esi
push eax
call fcn.1014612c
and word [ebp + 0x65e], 0
add esp, 0x24
lea eax, [ebp]
push eax
lea eax, [ebp + 0x458]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x1011e4da
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x1011e4b5
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.10007b11
push 0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.10003b43
test eax, eax
jl 0x1011e4ad
and word [ebp + 0x250], 0
push ebx
lea eax, [ebp + 0x252]
push 0
push eax
call fcn.10146c80
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp + 0x250]
push edi
push 0xffffffffffffffff
push esi
push eax
call fcn.1014612c
and word [ebp + 0x456], 0
add esp, 0x24
test byte [ebp + 0x674], 1
je 0x1011e4ad
mov eax, dword [ebp + 0x674]
and eax, 8
push eax
lea eax, [ebp + 0x250]
push eax
call fcn.1011d108
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1011e42d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x18]
call fcn.10003b75
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 + 0x660]
xor ecx, ebp
call fcn.10145d71
add ebp, 0x664
leave
ret
Function at 0x1011e521
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x660
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x660], eax
push 0x10
mov eax, 0x10195223
call fcn.10145db3
mov eax, dword [ebp + 0x66c]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.10007b11
push 0x1019fce4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.10059df5
mov edi, 0x206
push edi
lea eax, [ebp + 0x252]
push ebx
push eax
mov word [ebp + 0x250], bx
call fcn.10146c80
push 0x101a7a14
push dword [ebp - 0x14]
mov esi, 0x104
push 0x101a1d40
push 0xffffffffffffffff
lea eax, [ebp + 0x250]
push esi
push eax
call fcn.1014612c
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 0x1011e70a
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x1011e6b6
test byte [ebp], 0x10
je 0x1011e65b
test byte [ebp + 0x670], 3
je 0x1011e6b6
push edi
lea eax, [ebp + 0x45a]
push ebx
push eax
mov word [ebp + 0x458], bx
call fcn.10146c80
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.1014612c
push dword [ebp + 0x670]
lea eax, [ebp + 0x458]
push eax
mov word [ebp + 0x65e], bx
call fcn.1011e521
add esp, 0x2c
jmp 0x1011e6b6
push edi
lea eax, [ebp + 0x45a]
push ebx
push eax
mov word [ebp + 0x458], bx
call fcn.10146c80
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x14]
lea eax, [ebp + 0x458]
push 0x101a1d40
push 0xffffffffffffffff
push esi
push eax
call fcn.1014612c
add esp, 0x24
test byte [ebp + 0x670], 1
mov word [ebp + 0x65e], bx
je 0x1011e6b6
mov eax, dword [ebp + 0x670]
and eax, 8
push eax
lea eax, [ebp + 0x458]
push eax
call fcn.1011d108
pop ecx
pop ecx
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1011e5cf
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0x670], 3
mov dword [ebp - 0x18], 1
je 0x1011e70a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1011e70a
mov eax, dword [ebp + 0x670]
and eax, 8
je 0x1011e70a
push eax
push dword [ebp - 0x14]
call fcn.1011d108
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
call fcn.10003b75
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.10145d71
add ebp, 0x664
leave
ret
Function at 0x1011e738
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x458
lea ebp, [esp - 4]
mov eax, dword [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x458], eax
push 0x4c
mov eax, 0x10195263
call fcn.10145db3
mov eax, dword [ebp + 0x464]
xor edi, edi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
call fcn.10007b11
push 0x1019fce4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.10059df5
push 0x206
lea eax, [ebp + 0x252]
push edi
push eax
mov word [ebp + 0x250], di
call fcn.10146c80
push 0x101a7a14
push dword [ebp - 0x18]
mov esi, 0x101a1d40
push esi
push 0xffffffffffffffff
lea eax, [ebp + 0x250]
push 0x104
push eax
call fcn.1014612c
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 0x1011e888
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x1011e873
test byte [ebp], 0x10
mov eax, dword [0x101f3028]
mov dword [ebp - 0x14], eax
je 0x1011e827
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.10004662
add esp, 0x10
push dword [ebp - 0x14]
call fcn.1011e738
pop ecx
jmp 0x1011e864
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.10004662
add esp, 0x10
push 0x34
lea eax, [ebp - 0x54]
push edi
push eax
mov dword [ebp - 0x58], edi
call fcn.10146c80
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x14]
call fcn.1014c3fe
add esp, 0x14
test eax, eax
jne 0x1011e867
mov eax, dword [ebp - 0x40]
add dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10003b75
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1011e7e5
lea ecx, [ebp - 0x18]
call fcn.10003b75
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.10145d71
add ebp, 0x45c
leave
ret
Function at 0x1011e8cb
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 [0x101f6410]
xor eax, ebp
mov dword [ebp + 0x458], eax
push 0x18
mov eax, 0x101952ab
call fcn.10145db3
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.10007b11
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.10007b11
mov esi, 0x1019fce4
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.10059df5
push esi
lea ecx, [ebp - 0x18]
call fcn.10059df5
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1011ea64
push esi
lea ecx, [ebp - 0x18]
call fcn.1001107f
push esi
lea ecx, [ebp - 0x1c]
call fcn.1001107f
push dword [ebp - 0x1c]
call fcn.1011cc25
mov dword [esp], 0x206
lea eax, [ebp + 0x252]
push edi
push eax
mov word [ebp + 0x250], di
call fcn.10146c80
push 0x101a7a14
push dword [ebp - 0x18]
mov esi, str._s_s
push esi
push 0xffffffffffffffff
lea eax, [ebp + 0x250]
push 0x104
push eax
call fcn.1014612c
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 0x1011ea64
movzx eax, word [ebp + 0x2c]
sub eax, 0x2e
je 0x1011ea43
mov eax, dword [0x101f3028]
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.10004662
mov eax, dword [0x101f3028]
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.10004662
add esp, 0x10
test byte [ebp], 0x10
je 0x1011ea22
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.1011e8cb
pop ecx
pop ecx
jmp 0x1011ea2f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x20]
call fcn.10003b75
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10003b75
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1011e9c4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x1c]
call fcn.10003b75
lea ecx, [ebp - 0x18]
call fcn.10003b75
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.10145d71
add ebp, 0x45c
leave
ret