joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf00871e
Capabilities:
Query environment variable

Disassembly:
push 0x38
push 0xf003b30
call fcn.0f01bb00
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push 1
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf00878f
cmp eax, 0x80000005
jne 0xf00876d
push 0xce
jmp 0xf008775
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0f01c63b
pop ecx
pop ecx
xor eax, eax
jmp 0xf008879
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf0087a9
push eax
jmp 0xf0087d7
mov edi, dword [ebp + 0x10]
mov word [ebp - 0x36], di
mov eax, dword fs:[0x18]
mov dword [ebp - 0x24], eax
movzx ecx, word [ebp - 0x36]
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x34], eax
cmp eax, esi
jne 0xf0087e9
push 0xc0000017
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf00886d
movzx ecx, word [ebp - 0x36]
push ecx
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0xf00886d
cmp eax, edi
jae 0xf00886d
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov dword [ebp - 0x2c], esi
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf00883c
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov word [ebp - 0x46], di
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf00886d
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
call fcn.0f008883
mov eax, dword [ebp - 0x1c]
call fcn.0f01bb3b
ret 0xc
Function at 0xf009e87
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0xf062038]
push ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 1
xor ebx, ebx
push ebx
mov edi, 0xf00206c
push edi
push 0x80000002
mov dword [ebp - 0x38], 0x20
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0xf009ed2
push ebx
push edi
push 0x155
call fcn.0f034840
jmp 0xf009fc9
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0xf009f26
push 0xf002068
push edi
push 0x155
call fcn.0f034840
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xf009fc9
push esi
push dword [ebp - 0x2c]
call fcn.0f0070c9
mov esi, eax
cmp esi, ebx
pop ecx
jne 0xf009f51
push 0xf002068
push edi
push 0x154
call fcn.0f034840
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xf009fc8
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push ebx
mov ebx, 0xf002068
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf009fac
cmp dword [ebp - 0x34], 7
jne 0xf009fac
mov edi, esi
jmp 0xf009f9b
push esi
call fcn.0f016b0e
test eax, eax
jne 0xf009f8e
push eax
push esi
push 0x156
call fcn.0f034840
push 0
push esi
call fcn.0f056ca0
pop ecx
inc eax
pop ecx
mov esi, eax
cmp byte [esi], 0
jne 0xf009f78
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
jmp 0xf009fc2
push ebx
push edi
push 0x155
call fcn.0f034840
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0f0058e2
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0f01b9b9
leave
ret

Function at 0xf00d1cc
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
xor ebx, ebx
and al, 0x1f
cmp al, 3
mov dword [ebp - 4], ebx
jne 0xf00d20c
push edi
mov edi, 0xf09b900
mov al, byte [esi + 1]
push dword [ebp + 0xc]
xor al, bl
and al, 3
xor byte [esi + 1], al
push esi
call dword [edi]
add edi, 0x1c
inc ebx
cmp edi, 0xf09b970
jl 0xf00d1ea
mov eax, dword [ebp - 4]
pop edi
jmp 0xf00d224
push dword [ebp + 0xc]
xor eax, eax
mov al, byte [esi + 1]
push esi
and eax, 3
imul eax, eax, 0x1c
call dword [eax + 0xf09b900]
movsx eax, ax
pop esi
pop ebx
leave
ret 8

Function at 0xf00d22f
Capabilities:
Resume thread

Disassembly:
cmp dword [0xf07834c], 0
jne 0xf00d247
mov dword [0xf07834c], 1
jmp fcn.0f00999c
ret
Function at 0xf00de50
Capabilities:
Create thread

Disassembly:
push 0xf09c8ac
push 4
push 0
push 0xf0121a5
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0xf09c8a8], eax
jne 0xf00de94
push 0x10f
push 0xf001fb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f034a13
call fcn.0f034e04
push 1
call fcn.0f00a9ba
ret

Function at 0xf00e04d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xf09bf60], eax
mov ebx, 0xf00253c
mov edi, 0x3e9
jne 0xf00e085
push 0x10e
push ebx
call esi
push eax
push edi
call fcn.0f034a13
cmp dword [0xf06cb24], 0
jne 0xf00e183
push 1
push 0xf03b086
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0xf00e0b2
push 0x11e
push ebx
call esi
push eax
push edi
call fcn.0f034a13
push 0xf09c8b4
push 4
push 0
push 0xf03bea4
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0xf09c8b0], eax
jne 0xf00e0e5
push 0x128
push ebx
call esi
push eax
push edi
call fcn.0f034a13
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09c104], eax
jne 0xf00e109
push 0x12b
push ebx
call esi
push eax
push edi
call fcn.0f034a13
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09c110], eax
jne 0xf00e12d
push 0x12e
push ebx
call esi
push eax
push edi
call fcn.0f034a13
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09c108], eax
jne 0xf00e151
push 0x131
push ebx
call esi
push eax
push edi
call fcn.0f034a13
call fcn.0f03b067
mov esi, 0x640
jmp 0xf00e16b
push 0xf002065
push 3
push 7
call fcn.0f0346c3
push esi
call fcn.0f0070c9
test eax, eax
pop ecx
mov dword [0xf071960], eax
je 0xf00e15d
pop edi
pop esi
pop ebx
jmp fcn.0f03ad01
pop edi
pop esi
pop ebx
ret

Function at 0xf00e2c6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0xf062038]
push esi
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
ja 0xf00e301
test eax, eax
jbe 0xf00e301
mov al, byte [ebp - 0x108]
mov byte [0xf0660cc], al
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.0f01b9b9
leave
ret 8
Function at 0xf00e94a
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x14
call fcn.0f0070c9
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0xf00e9c2
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov ax, word [ebp + 0x10]
cmp ax, 0xffff
mov dword [esi + 0xc], edi
mov word [esi + 8], ax
mov dword [esi + 0x10], edi
jne 0xf00e9c2
mov eax, dword [ebp + 8]
push 0x40
push 0x40000000
add eax, 0xfff40000
push 2
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
push dword [0xf09bf34]
mov dword [ebp - 4], edi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00e9c2
push esi
call fcn.0f0058e2
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0xf00eb2c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
xor eax, eax
push eax
push 0x4000000
push 0x40
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0xa
push 0xf078274
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x10], 0xb0000
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jge 0xf00eb7c
call fcn.0f034e04
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
push esi
push edi
mov dword [0xf09c95c], eax
mov edi, 0x8000
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x9ffff
call ebx
test eax, eax
jge 0xf00ebb6
call fcn.0f034e04
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov esi, 0x10000
push 0xffffffffffffffff
mov dword [ebp - 8], 0x100000
mov dword [ebp - 4], esi
call ebx
test eax, eax
jge 0xf00ebdb
call fcn.0f034e04
mov edi, dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push 0x40
mov ebx, 0x40000000
push ebx
push 2
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x10]
push edx
mov eax, 0xffff
push eax
xor ecx, ecx
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [0xf078274]
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
call edi
test eax, eax
jge 0xf00ec23
call fcn.0f034e04
push 0x40
push ebx
push 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [0xf078274]
mov dword [ebp - 8], 0x100000
mov dword [ebp - 4], esi
call edi
test eax, eax
jge 0xf00ec54
call fcn.0f034e04
call fcn.0f013592
push 0x40
push ebx
push 2
mov word [0xf07826c], ax
movzx eax, ax
lea ecx, [ebp - 4]
push ecx
add eax, 0xffff000
shl eax, 4
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
xor esi, esi
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [0xf078274]
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jge 0xf00ec9e
call fcn.0f034e04
mov ax, word [0xf07826c]
cmp ax, 0xa000
mov edi, 0xa0000
jae 0xf00ecc9
movzx eax, ax
shl eax, 4
mov ecx, edi
sub ecx, eax
push ecx
push eax
call fcn.0f0448ce
test eax, eax
jne 0xf00ecc9
call fcn.0f034e04
push 0x40
push 0x1000
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x60000
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jge 0xf00ecf4
call fcn.0f034e04
mov eax, dword [0xf09c95c]
mov dword [0xf09c6a8], eax
push esi
add eax, 0x1ffff
push eax
push esi
mov dword [0xf078278], esi
mov dword [0xf09c6dc], esi
call fcn.0f00ed23
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf00eeaa
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0xf09c95c]
mov dword [ebp - 4], eax
push 0x4000
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], 1
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
test eax, eax
jge 0xf00ef0c
mov ecx, dword [0xf09cc30]
mov edx, ecx
and edx, 0xf
cmp dl, 2
jb 0xf00eefc
push eax
push 0xf002c20
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov ecx, dword [0xf09cc30]
and ecx, 0xf0
cmp ecx, 0x20
jb 0xf00ef0c
call fcn.0f01b7b9
leave
ret

Function at 0xf00efeb
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0xf078278], esi
je 0xf00f05b
mov eax, 0x100000
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x10000
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test eax, eax
jge 0xf00f01f
call fcn.0f034e04
push 0x40
push 0x40000000
push 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push esi
push eax
push 0xffffffffffffffff
push dword [0xf078274]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00f055
call fcn.0f034e04
mov dword [0xf078278], esi
pop esi
leave
ret

Function at 0xf00f063
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0xf078278], 1
je 0xf00f0db
mov eax, 0x100000
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x10000
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test eax, eax
jge 0xf00f095
call fcn.0f034e04
and dword [ebp - 0xc], 0
push 0x40
push 0x40000000
push 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push 0
push eax
push 0xffffffffffffffff
push dword [0xf078274]
mov dword [ebp - 0x10], 0xa0000
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00f0d1
call fcn.0f034e04
mov dword [0xf078278], 1
leave
ret
Function at 0xf00ff55
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0x110
call fcn.0f0070c9
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 4], edi
je 0xf01002b
push esi
push edi
mov esi, 0x104
push esi
call fcn.0f04d759
test eax, eax
je 0xf01001d
cmp eax, esi
jae 0xf01001d
push 0x111
call fcn.0f0070c9
test eax, eax
pop ecx
mov dword [ebp - 8], eax
je 0xf01001d
push ebx
push eax
push 0
mov ebx, 0xf0039bc
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
test eax, eax
jne 0xf00ffe1
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0xf00ffce
cmp eax, esi
jb 0xf00ffd6
mov eax, dword [ebp - 4]
mov word [eax], 0x5c
push dword [ebp - 8]
push 0
push ebx
push dword [ebp - 4]
call edi
mov edi, dword [ebp - 8]
and dword [ebp - 0x10], 0
push 0
push 0x100
push 4
lea eax, [ebp - 0x14]
push eax
push 3
xor esi, esi
push 0xc0000000
inc esi
push edi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
pop ebx
jne 0xf010030
push edi
call fcn.0f0058e2
pop ecx
xor esi, esi
push dword [ebp - 4]
call fcn.0f0058e2
pop ecx
mov eax, esi
pop esi
pop edi
leave
ret 8
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0xf01001f
Function at 0xf010aa1
Capabilities:
Get disk information

Disassembly:
push 0x4c
push 0xf003b70
call fcn.0f01bb00
mov eax, dword fs:[0x18]
lea edi, [eax + 0xbf8]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
jne 0xf010aca
mov eax, 0xf0021a8
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitString]
push esi
lea eax, [ebp - 0x5c]
push eax
push edi
call dword [sym.imp.ntdll.dll_RtlOemStringToUnicodeString]
cmp eax, esi
jge 0xf010b06
cmp eax, 0x80000005
jne 0xf010af3
push 0xce
jmp 0xf010afb
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf010c2d
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
mov word [ebp - 0x3a], si
mov word [ebp - 0x42], si
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
mov word [ebp - 0x52], ax
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x48], edx
mov ebx, dword [ebp + 0x24]
lea edx, [ebx + 1]
mov word [ebp - 0x4a], dx
mov dword [ebp - 4], esi
cmp ecx, esi
je 0xf010b6d
movzx eax, ax
shl eax, 1
mov word [ebp - 0x3a], ax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x28], eax
movzx ecx, word [ebp - 0x3a]
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x38], eax
cmp eax, esi
jne 0xf010b6d
push 8
jmp 0xf010c1a
cmp dword [ebp + 0x20], esi
je 0xf010b9e
movzx eax, word [ebp - 0x4a]
shl eax, 1
mov word [ebp - 0x42], ax
mov eax, dword fs:[0x18]
mov dword [ebp - 0x2c], eax
movzx ecx, word [ebp - 0x42]
push ecx
push esi
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x40], eax
cmp eax, esi
je 0xf010b66
push ebx
push dword [ebp - 0x40]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0xf010c31
cmp dword [ebp + 0xc], esi
je 0xf010bea
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jl 0xf010c12
cmp dword [ebp + 0x20], esi
je 0xf010c31
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToOemString]
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0xf010c31
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.0f01c63b
pop ecx
pop ecx
xor eax, eax
jmp 0xf010c3d
or dword [ebp - 4], 0xffffffff
call fcn.0f010c47
mov eax, dword [ebp - 0x24]
call fcn.0f01bb3b
ret 0x20
Function at 0xf0111db
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0xf0784ec], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0xf011206
cmp dword [0xf0784f0], ebx
je 0xf011206
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0f050133
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov edi, 0x1000
jmp 0xf01121b
cmp dword [ebp - 4], ebx
je 0xf01124b
mov dword [ebp - 4], ebx
push 0x40
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push ebx
push eax
push 0xffffffffffffffff
call esi
cmp eax, ebx
jl 0xf011213
cmp dword [0xf0784f0], ebx
mov ecx, dword [ebp - 4]
je 0xf011246
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, ecx
mov dword [0xf0784ec], edx
mov edx, dword [ebp + 8]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf0119b1
Capabilities:
Resume thread

Disassembly:
call fcn.0f00a552
cmp dword [0xf071748], 0
je 0xf0119d5
mov dword [0xf09c590], 2
mov dword [0xf0716c0], 1
jmp 0xf0119e5
call fcn.0f00ef13
push dword [0xf09c5fc]
call fcn.0f0098f9
call fcn.0f012151
push dword [0xf09c8a8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.0f0098d3
call fcn.0f0041a5
cmp dword [0xf09c590], 1
jne 0xf011a0d
push 0
jmp 0xf011a0f
push 1
call fcn.0f0101b2
jmp 0xf01751f
mov edi, edi
push esi
xor esi, esi
cmp dword [0xf06cb14], esi
jne 0xf017546
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push esi
mov dword [0xf06cb18], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0xf06cb14], eax
pop esi
ret

Function at 0xf0120cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
inc edi
push edi
xor esi, esi
push esi
push 0xf0022d4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf012130
lea eax, [ebp - 4]
push eax
push 0xf09c640
push esi
push esi
push 0xf0023e8
push dword [ebp - 8]
mov dword [ebp - 4], 0x18
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf012123
cmp dword [ebp - 4], 0x18
jne 0xf012123
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0xf012148
xor eax, eax
mov word [eax + 0xf09c640], si
mov word [eax + 0xf09c642], si
add eax, 4
cmp eax, 0x18
jb 0xf012132
pop edi
pop esi
leave
ret
Function at 0xf012a4e
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0xf062038]
push ebx
push esi
push edi
mov esi, 0xf00251c
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
add byte [ebp - 8], al
movzx edi, al
mov esi, edi
imul esi, esi, 0x12c
add esi, 0xf09c120
or dword [esi], 0xffffffff
lea eax, [ebp - 0xc]
lea ecx, [esi + 0x25]
mov edx, eax
sub ecx, edx
xor ebx, ebx
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
cmp dl, bl
jne 0xf012a96
push dword [ebp + 8]
mov word [esi + 4], bx
call fcn.0f01263c
cmp eax, ebx
mov dword [esi], eax
je 0xf012b91
push 0x11
push 4
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0xf012ad8
push esi
call fcn.0f0126e1
jmp 0xf012b91
mov eax, dword [ebp - 0xc]
cmp eax, dword [0xf071874]
mov dword [esi + 0x1c], eax
jbe 0xf012aeb
mov dword [0xf071874], eax
push 0x1e0
lea eax, [ebp - 0x1f4]
push eax
push ebx
push ebx
push 0x70c00
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
push esi
jl 0xf012ace
call fcn.0f0126e1
mov eax, dword [ebp - 0x10]
push 0x18
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0xf012b8b
lea edx, [eax + eax*2]
lea edx, [ebp + edx*8 - 0x204]
mov ecx, dword [edx]
dec ecx
je 0xf012b7f
dec ecx
je 0xf012b70
dec ecx
je 0xf012b68
dec ecx
dec ecx
je 0xf012b50
dec ecx
jne 0xf012b85
cmp word [esi + 4], 2
je 0xf012b85
mov word [esi + 4], 1
jmp 0xf012b85
mov cx, word [esi + 4]
cmp cx, 4
je 0xf012b85
cmp cx, 5
je 0xf012b85
mov word [esi + 4], 3
jmp 0xf012b85
mov word [esi + 4], 5
jmp 0xf012b85
cmp word [esi + 4], 5
je 0xf012b85
mov word [esi + 4], 4
jmp 0xf012b85
mov word [esi + 4], 2
sub edx, 0x18
dec eax
jne 0xf012b2f
cmp word [esi + 4], bx
jne 0xf012b95
xor eax, eax
jmp 0xf012bf8
mov eax, edi
imul eax, eax, 0x1c
mov dword [eax + 0xf09b900], 0xf00d003
mov dword [eax + 0xf09b904], 0xf039cfd
mov dword [eax + 0xf09b908], 0xf039d31
mov dword [eax + 0xf09b90c], 0xf0185b6
mov dword [eax + 0xf09b910], 0xf012c0c
mov dword [eax + 0xf09b914], 0xf00dde3
mov dword [eax + 0xf09b918], 0xf039f1a
xor eax, eax
mov byte [esi + 0x22], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x23], 1
mov byte [esi + 0x24], 2
mov byte [esi + 0xd], bl
mov word [esi + 0xe], bx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b9b9
leave
ret 4