joyce8/EMBER2024-capa huggingface dataset:
Function at 0x108ecc8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0xffff
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x108ed74
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], eax
je 0x108ed6b
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x108ed66
cmp dword [ebp - 0x10], 0x200
jb 0x108ed5f
cmp word [eax], 0x5a4d
jne 0x108ed5f
mov ecx, dword [eax + 0x3c]
mov cx, word [ecx + eax + 4]
mov word [ebp - 0xc], cx
mov dword [ebp - 8], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call edi
push ebx
call edi
cmp dword [ebp - 8], esi
pop edi
jne 0x108ed8d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push fcn.0102cce0
push 1
call fcn.0108e8f0
add esp, 0x10
mov ax, word [ebp - 0xc]
pop esi
pop ebx
leave
ret 4
Function at 0x108f2f3
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1099a38]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
add eax, 0x740
push eax
push 0x102cf88
mov edi, 0x103
lea eax, [ebp - 0x310]
push edi
push eax
call fcn.01037486
mov esi, dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
add esp, 0x10
push 0
push 2
push 0
lea eax, [ebp - 0x310]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x418], eax
je 0x108f3ad
lea ecx, [ebp - 0x428]
push ecx
push 0x1026730
push 0x100d9dc
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x108f43b
push 0
push 0x104
lea eax, [ebp - 0x414]
push eax
push 1
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
jne 0x108f3a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102cf38
jmp 0x108f447
push dword [ebp - 0x418]
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea eax, [ebx + 0x130]
push eax
push ebx
push 0x102ce10
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x108f455
xor edi, edi
push edi
push 2
push edi
lea eax, [ebp - 0x108]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x108f467
lea eax, [ebp - 0x428]
push eax
push 0x1026730
push 0x100d9dc
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x108f43b
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 1
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x108f390
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x108f467
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102cefc
push 1
call fcn.0108e8f0
add esp, 0xc
xor eax, eax
jmp 0x108f48e
push 0x1010724
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0108c975
mov al, byte [ebp - 0x414]
cmp al, byte [ebp - 0x20c]
jle 0x108f48b
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x108fe83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1099a38]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
push 0x102d37c
mov dword [ebp - 4], eax
mov edi, 0x103
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.01037486
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
je 0x108fed0
push 2
pop eax
jmp 0x108ff49
push ebx
push 0x102d364
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.01037486
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
push ebx
lea eax, [ebp - 0x108]
je 0x108ff22
push 0x102d34c
push edi
push eax
call fcn.01037486
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
inc eax
neg eax
sbb eax, eax
and eax, 0xffffff84
add eax, 0x80
jmp 0x108ff49
push 0x102d334
push edi
push eax
call fcn.01037486
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
inc eax
neg eax
sbb eax, eax
and eax, 0xffff0002
add eax, 0xffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 4
Function at 0x109087d
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcdc
mov eax, dword [0x1099a38]
push esi
push edi
push 0x53
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x228]
push eax
lea esi, [ebp + 8]
lea edi, [ebp - 0x358]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x358]
push eax
mov ecx, 0x261
lea esi, [ebp + 0x154]
lea edi, [ebp - 0xcdc]
rep movsd dword es:[edi], dword [esi]
push 0x102da80
mov esi, 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10908fc
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0xbb4]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x102da74
push esi
push eax
call fcn.01037486
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 0x14
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x9ac]
push eax
call edi
test eax, eax
jne 0x1090944
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x9ac]
jmp 0x10909b1
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x358]
push eax
push 0x102da60
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.01037486
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x8a8]
push eax
push 0x102da50
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01037486
add esp, 0x2c
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x10909cc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102da00
push 1
call fcn.0108e8f0
add esp, 0x14
xor eax, eax
jmp 0x10909cf
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0106bc50
leave
ret 0xad0
Function at 0x1090e3a
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1099a38]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x214], eax
mov edi, 0x103
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.0108c975
mov esi, dword [sym.imp.msvcrt.dll_strrchr]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ecx
pop ecx
mov byte [eax], 0
jmp 0x1090ecc
lea eax, [ebp - 0x108]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0108c975
jmp 0x1090eb9
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call esi
pop ecx
pop ecx
mov byte [eax], 0
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1090ea9
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1090e93
push dword [ebp + 0x10]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc

Function at 0x10916bd
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1099a38]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x10c], ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10916df
sub eax, esi
cmp eax, 0xff
ja 0x10917ee
push ebx
push edi
push 0x102d150
push ecx
mov ebx, 0x1020a90
push ebx
mov edi, 0x103
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.01037486
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call esi
push 0x102d140
push dword [ebp - 0x10c]
mov dword [ebp - 0x114], eax
push ebx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call esi
push 0x102d148
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
push ebx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call esi
or ecx, 0xffffffff
test byte [ebp - 0x114], 0x10
pop edi
pop ebx
je 0x109179c
cmp dword [ebp - 0x110], ecx
jne 0x109179c
cmp eax, ecx
jne 0x109179c
push 0x102d150
jmp 0x10917c1
test byte [ebp - 0x110], 0x10
je 0x10917b0
cmp eax, ecx
jne 0x10917b0
push 0x102d140
jmp 0x10917c1
test al, 0x10
je 0x10917d9
cmp dword [ebp - 0x110], ecx
jne 0x10917d9
push 0x102d148
mov eax, dword [ebp - 0x10c]
add eax, 0x130
push 0xf
push eax
call fcn.0108c975
xor eax, eax
inc eax
jmp 0x10917fb
push dword [ebp - 0x10c]
push 0x102e2ac
push 0
call fcn.0108e8f0
add esp, 0xc
push 0xa001
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0106bc50
leave
ret 4
Function at 0x1091edb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x53
pop ecx
push dword [ebp + 8]
xor eax, eax
push 0x103
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.0108c975
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1091f15
push 0xe0000233
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.010916bd
test eax, eax
jne 0x1091f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102e758
jmp 0x1091f8b
push esi
call fcn.01091808
test eax, eax
jne 0x1091f45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102e708
jmp 0x1091f8b
push esi
call fcn.01091a3d
test eax, eax
jne 0x1091f5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102e6c4
jmp 0x1091f8b
push esi
call fcn.01091cb0
test eax, eax
jne 0x1091f75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102e680
jmp 0x1091f8b
push esi
call fcn.01091962
test eax, eax
jne 0x1091f99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102e638
push 1
call fcn.0108e8f0
add esp, 0xc
xor eax, eax
jmp 0x1091f9c
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x10923c5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
push 0x53
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x498]
push eax
lea esi, [ebp + 8]
lea edi, [ebp - 0x498]
rep movsd dword es:[edi], dword [esi]
push 0x102ce2c
mov esi, 0x103
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.01037486
lea eax, [ebp - 0x20c]
push eax
push 0x102e918
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.01037486
add esp, 0x24
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10924c2
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1020a90
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x10924a9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10924a9
lea eax, [ebp - 0x108]
push eax
call edi
push eax
push 0x102e8d8
push 2
call fcn.0108e8f0
add esp, 0x10
lea eax, [ebp - 0x34c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x109244b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10924f0
lea eax, [ebp - 0x20c]
push eax
call edi
push eax
push 0x102e890
push 2
call fcn.0108e8f0
add esp, 0x10
xor eax, eax
jmp 0x10924f3
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x14c

Function at 0x1092502
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x1099a38]
push esi
push edi
push 0x53
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x254]
push eax
push 0x102da80
lea eax, [ebp - 0x108]
push 0x103
lea esi, [ebp + 8]
lea edi, [ebp - 0x254]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.01037486
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop esi
jne 0x1092573
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1092576
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
call fcn.0106bc50
leave
ret 0x14c
Function at 0x1092582
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x1099a38]
and dword [ebp - 0x154], 0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x154]
push 0x53
pop ecx
lea esi, [ebp + 8]
lea edi, [ebp - 0x150]
mov dword [ebp - 0x15c], eax
mov eax, dword [eax + 0x97c]
rep movsd dword es:[edi], dword [esi]
jmp 0x10927ac
mov eax, dword [ebp - 0x158]
mov ebx, dword [eax]
lea edi, [ebx + 0x310]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1092644
lea esi, [ebx + 0x418]
push esi
push edi
call dword [0x10bd120]
test eax, eax
je 0x1092608
push 0x103
lea eax, [ebx + 0x108]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.01093510
jmp 0x1092644
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x714
mov dword [ebp - 0x154], eax
push edi
jne 0x1092634
and dword [ebp - 0x154], 0
push 0x102ea70
push 5
call fcn.0108e8f0
add esp, 0xc
jmp 0x1092644
push eax
push 0x102ea20
push 2
call fcn.0108e8f0
add esp, 0x10
cmp dword [ebp + 0x158], 0
jne 0x109270b
push ebx
sub esp, 0x14c
push 0x53
pop ecx
mov edi, esp
lea esi, [ebp - 0x150]
rep movsd dword es:[edi], dword [esi]
call fcn.0108fc25
lea edi, [ebx + 0x628]
push edi
mov dword [ebp - 0x154], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x109270b
lea esi, [ebx + 0x730]
push esi
push edi
call dword [0x10bd120]
test eax, eax
je 0x10926b0
push 0x103
lea eax, [ebx + 0x420]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.01093510
jmp 0x10926ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x714
mov dword [ebp - 0x154], eax
jne 0x10926dc
and dword [ebp - 0x154], 0
lea eax, [ebx + 0x310]
push eax
push 0
push 0x102ea70
push 5
jmp 0x10926e5
push edi
push eax
push 0x102e9d0
push 2
call fcn.0108e8f0
add esp, 0x10
mov eax, dword [ebp - 0x15c]
test byte [eax + 0x18], 4
je 0x109270b
push 0x104
lea eax, [ebx + 0x524]
push eax
push edi
call fcn.0108eb00
mov eax, dword [ebp - 0x15c]
add eax, 0x128
push eax
push 0x102e9c4
push 5
pop esi
push esi
call fcn.0108e8f0
push ebx
push 0x102e9b4
push esi
call fcn.0108e8f0
lea eax, [ebx + 0x310]
push eax
push 0x102e9a0
push esi
call fcn.0108e8f0
lea eax, [ebx + 0x108]
push eax
push 0x102e984
push esi
call fcn.0108e8f0
lea eax, [ebx + 0x20c]
push eax
push 0x102e96c
push esi
call fcn.0108e8f0
lea eax, [ebx + 0x628]
push eax
push 0x102e958
push esi
call fcn.0108e8f0
add esp, 0x48
lea eax, [ebx + 0x420]
push eax
push 0x102e938
push esi
call fcn.0108e8f0
add ebx, 0x524
push ebx
push 0x102e920
push esi
call fcn.0108e8f0
mov eax, dword [ebp - 0x158]
mov eax, dword [eax + 4]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x158], eax
jne 0x10925c4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x154]
call fcn.0106bc50
pop edi
pop esi
pop ebx
leave
ret 0x154
Function at 0x1093241
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x1099a38]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x10c], eax
mov eax, edx
push esi
lea esi, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1093269
sub eax, esi
cmp eax, 0x104
jb 0x1093280
xor eax, eax
jmp 0x1093326
push edi
push edx
push 0x103
lea eax, [ebp - 0x108]
push eax
call fcn.0108c975
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x160], 0x44
je 0x10932bf
mov dword [ebp - 0x134], edi
mov word [ebp - 0x130], bx
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1093325
push 0xffffffffffffffff
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x10c], ebx
je 0x109330d
push dword [ebp - 0x10c]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x11c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x118]
call esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc
Function at 0x1093334
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x1099a38]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
push 0x102e918
mov dword [ebp - 4], eax
mov edi, 0x103
lea eax, [ebp - 0x20c]
push edi
xor esi, esi
push eax
inc esi
call fcn.01037486
add esp, 0x10
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x354], eax
je 0x10934a3
and dword [ebp - 0x350], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x1016328
lea eax, [ebp - 0x320]
push eax
call esi
test eax, eax
je 0x1093476
push 0x1016324
lea eax, [ebp - 0x320]
push eax
call esi
test eax, eax
je 0x1093476
lea eax, [ebp - 0x320]
push eax
push ebx
push 0x1020a90
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.01037486
add esp, 0x14
test byte [ebp - 0x34c], 0x10
lea eax, [ebp - 0x108]
je 0x1093411
push dword [ebp + 0xc]
push eax
call fcn.01093334
cmp dword [ebp - 0x350], 0
jl 0x1093476
test eax, eax
jge 0x1093476
mov dword [ebp - 0x350], eax
jmp 0x1093476
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1093476
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x1093457
cmp esi, 3
je 0x1093457
cmp dword [ebp + 0xc], 1
jne 0x1093457
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp dword [ebp - 0x350], 0
jl 0x1093476
test esi, esi
jle 0x1093470
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x350], esi
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1093395
push dword [ebp - 0x354]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x350]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x10934de
test esi, esi
jl 0x10934de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x10934ff
cmp eax, 2
je 0x10934ff
test eax, eax
jle 0x1093501
and eax, 0xffff
or eax, 0x80070000
jmp 0x1093501
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x10934ff
cmp eax, 2
je 0x10934ff
cmp dword [ebp + 0xc], 0
je 0x10934ff
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8
Function at 0x1093de1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1099a38]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x408], eax
je 0x1093f6a
mov esi, dword [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x40c], esi
inc edi
jmp 0x1093e48
mov esi, dword [ebp - 0x40c]
test esi, esi
je 0x1093f5c
mov esi, dword [esi]
lea eax, [esi + 0x1c]
push eax
push 0x1026f64
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.01037486
lea eax, [ebp - 0x404]
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1093e78
push 0
lea ecx, [ebp - 0x410]
push ecx
sub eax, edi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call ebx
mov esi, dword [esi + 0x14]
jmp 0x1093f3b
test esi, esi
je 0x1093f45
mov edi, dword [esi]
lea ecx, [edi + 0x400]
test ecx, ecx
je 0x1093ef3
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x414], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1093ec1
sub eax, dword [ebp - 0x414]
mov dword [ebp - 0x414], eax
je 0x1093ef3
push ecx
push edi
push 0x102f390
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.01037486
add esp, 0x14
jmp 0x1093f0d
push edi
push 0x1009b74
lea eax, [ebp - 0x404]
push 0x3ff
push eax
call fcn.01037486
add esp, 0x10
mov esi, dword [esi + 4]
lea eax, [ebp - 0x404]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1093f19
push 0
lea ecx, [ebp - 0x410]
push ecx
sub eax, edi
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call ebx
mov edi, eax
test edi, edi
jne 0x1093ea2
test edi, edi
mov eax, dword [ebp - 0x40c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40c], eax
jne 0x1093e42
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1093f81
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102f35c
push 1
call fcn.0109378e
add esp, 0x10
test edi, edi
jne 0x1093fa1
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x102f324
push 1
call fcn.0109378e
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 4