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

Disassembly:
push 0x38
push 0xf003a68
call fcn.0f01b5a4
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 0xf008649
cmp eax, 0x80000005
jne 0xf008627
push 0xce
jmp 0xf00862f
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.0f01c0db
pop ecx
pop ecx
xor eax, eax
jmp 0xf008733
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 0xf008663
push eax
jmp 0xf008691
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 0xf0086a3
push 0xc0000017
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf008727
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 0xf008727
cmp eax, edi
jae 0xf008727
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 0xf0086f6
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 0xf008727
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.0f00873d
mov eax, dword [ebp - 0x1c]
call fcn.0f01b5df
ret 0xc
Function at 0xf009cd9
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 [0xf061038]
push ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 1
xor ebx, ebx
push ebx
mov edi, 0xf002060
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 0xf009d24
push ebx
push edi
push 0x155
call fcn.0f03429c
jmp 0xf009e1b
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 0xf009d78
push 0xf00205c
push edi
push 0x155
call fcn.0f03429c
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xf009e1b
push esi
push dword [ebp - 0x2c]
call fcn.0f006f83
mov esi, eax
cmp esi, ebx
pop ecx
jne 0xf009da3
push 0xf00205c
push edi
push 0x154
call fcn.0f03429c
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xf009e1a
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push ebx
mov ebx, 0xf00205c
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf009dfe
cmp dword [ebp - 0x34], 7
jne 0xf009dfe
mov edi, esi
jmp 0xf009ded
push esi
call fcn.0f0168c8
test eax, eax
jne 0xf009de0
push eax
push esi
push 0x156
call fcn.0f03429c
push 0
push esi
call fcn.0f0563d0
pop ecx
inc eax
pop ecx
mov esi, eax
cmp byte [esi], 0
jne 0xf009dca
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
jmp 0xf009e14
push ebx
push edi
push 0x155
call fcn.0f03429c
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0f00579c
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0f01b45c
leave
ret

Function at 0xf00d02b
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 0xf00d06b
push edi
mov edi, 0xf09a800
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, 0xf09a870
jl 0xf00d049
mov eax, dword [ebp - 4]
pop edi
jmp 0xf00d083
push dword [ebp + 0xc]
xor eax, eax
mov al, byte [esi + 1]
push esi
and eax, 3
imul eax, eax, 0x1c
call dword [eax + 0xf09a800]
movsx eax, ax
pop esi
pop ebx
leave
ret 8

Function at 0xf00d08e
Capabilities:
Resume thread

Disassembly:
cmp dword [0xf077294], 0
jne 0xf00d0a6
mov dword [0xf077294], 1
jmp fcn.0f0097ee
ret
Function at 0xf00dcae
Capabilities:
Create thread

Disassembly:
push 0xf09b7ac
push 4
push 0
push 0xf011fdf
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0xf09b7a8], eax
jne 0xf00dcf2
push 0x10d
push 0xf001fa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f03446f
call fcn.0f034856
push 1
call fcn.0f00a80c
ret

Function at 0xf00deab
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 [0xf09ae60], eax
mov ebx, 0xf0024c4
mov edi, 0x3e9
jne 0xf00dee3
push 0x10c
push ebx
call esi
push eax
push edi
call fcn.0f03446f
cmp dword [0xf06bb04], 0
jne 0xf00dfe1
push 1
push 0xf03a963
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0xf00df10
push 0x11c
push ebx
call esi
push eax
push edi
call fcn.0f03446f
push 0xf09b7b4
push 4
push 0
push 0xf03b759
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0xf09b7b0], eax
jne 0xf00df43
push 0x126
push ebx
call esi
push eax
push edi
call fcn.0f03446f
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09b004], eax
jne 0xf00df67
push 0x129
push ebx
call esi
push eax
push edi
call fcn.0f03446f
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09b010], eax
jne 0xf00df8b
push 0x12c
push ebx
call esi
push eax
push edi
call fcn.0f03446f
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09b008], eax
jne 0xf00dfaf
push 0x12f
push ebx
call esi
push eax
push edi
call fcn.0f03446f
call fcn.0f03a944
mov esi, 0x640
jmp 0xf00dfc9
push 0xf002059
push 3
push 7
call fcn.0f03411f
push esi
call fcn.0f006f83
test eax, eax
pop ecx
mov dword [0xf0708b0], eax
je 0xf00dfbb
pop edi
pop esi
pop ebx
jmp fcn.0f03a5de
pop edi
pop esi
pop ebx
ret

Function at 0xf00e112
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0xf061038]
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 0xf00e14d
test eax, eax
jbe 0xf00e14d
mov al, byte [ebp - 0x108]
mov byte [0xf0650ac], al
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.0f01b45c
leave
ret 8
Function at 0xf00e796
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.0f006f83
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0xf00e80e
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 0xf00e80e
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 [0xf09ae34]
mov dword [ebp - 4], edi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00e80e
push esi
call fcn.0f00579c
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0xf00e978
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 0xf0771c4
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x10], 0xb0000
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jge 0xf00e9c8
call fcn.0f034856
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
push esi
push edi
mov dword [0xf09b85c], 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 0xf00ea02
call fcn.0f034856
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 0xf00ea27
call fcn.0f034856
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 [0xf0771c4]
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
call edi
test eax, eax
jge 0xf00ea6f
call fcn.0f034856
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 [0xf0771c4]
mov dword [ebp - 8], 0x100000
mov dword [ebp - 4], esi
call edi
test eax, eax
jge 0xf00eaa0
call fcn.0f034856
call fcn.0f0133cc
push 0x40
push ebx
push 2
mov word [0xf0771bc], 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 [0xf0771c4]
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jge 0xf00eaea
call fcn.0f034856
mov ax, word [0xf0771bc]
cmp ax, 0xa000
mov edi, 0xa0000
jae 0xf00eb15
movzx eax, ax
shl eax, 4
mov ecx, edi
sub ecx, eax
push ecx
push eax
call fcn.0f044252
test eax, eax
jne 0xf00eb15
call fcn.0f034856
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 0xf00eb40
call fcn.0f034856
mov eax, dword [0xf09b85c]
mov dword [0xf09b5a8], eax
push esi
add eax, 0x1ffff
push eax
push esi
mov dword [0xf0771c8], esi
mov dword [0xf09b5dc], esi
call fcn.0f00eb6f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf00ecf6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0xf09b85c]
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 0xf00ed58
mov ecx, dword [0xf09bb30]
mov edx, ecx
and edx, 0xf
cmp dl, 2
jb 0xf00ed48
push eax
push 0xf002bb0
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov ecx, dword [0xf09bb30]
and ecx, 0xf0
cmp ecx, 0x20
jb 0xf00ed58
call fcn.0f01b223
leave
ret

Function at 0xf00ee37
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 [0xf0771c8], esi
je 0xf00eea7
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 0xf00ee6b
call fcn.0f034856
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 [0xf0771c4]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00eea1
call fcn.0f034856
mov dword [0xf0771c8], esi
pop esi
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0xf0771c8], 1
je 0xf00ef27
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 0xf00eee1
call fcn.0f034856
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 [0xf0771c4]
mov dword [ebp - 0x10], 0xa0000
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00ef1d
call fcn.0f034856
mov dword [0xf0771c8], 1
leave
ret
Function at 0xf00fda1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0x110
call fcn.0f006f83
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 4], edi
je 0xf00fe77
push esi
push edi
mov esi, 0x104
push esi
call fcn.0f04cf17
test eax, eax
je 0xf00fe69
cmp eax, esi
jae 0xf00fe69
push 0x111
call fcn.0f006f83
test eax, eax
pop ecx
mov dword [ebp - 8], eax
je 0xf00fe69
push ebx
push eax
push 0
mov ebx, 0xf0038f4
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
test eax, eax
jne 0xf00fe2d
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0xf00fe1a
cmp eax, esi
jb 0xf00fe22
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 0xf00fe7c
push edi
call fcn.0f00579c
pop ecx
xor esi, esi
push dword [ebp - 4]
call fcn.0f00579c
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 0xf00fe6b
Function at 0xf0108ed
Capabilities:
Get disk information

Disassembly:
push 0x4c
push 0xf003aa8
call fcn.0f01b5a4
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 0xf010916
mov eax, 0xf002194
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 0xf010952
cmp eax, 0x80000005
jne 0xf01093f
push 0xce
jmp 0xf010947
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf010a79
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 0xf0109b9
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 0xf0109b9
push 8
jmp 0xf010a66
cmp dword [ebp + 0x20], esi
je 0xf0109ea
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 0xf0109b2
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 0xf010a7d
cmp dword [ebp + 0xc], esi
je 0xf010a36
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 0xf010a5e
cmp dword [ebp + 0x20], esi
je 0xf010a7d
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 0xf010a7d
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.0f01c0db
pop ecx
pop ecx
xor eax, eax
jmp 0xf010a89
or dword [ebp - 4], 0xffffffff
call fcn.0f010a93
mov eax, dword [ebp - 0x24]
call fcn.0f01b5df
ret 0x20
Function at 0xf011015
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 [0xf0773f4], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0xf011040
cmp dword [0xf0773f8], ebx
je 0xf011040
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0f04f8fb
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov edi, 0x1000
jmp 0xf011055
cmp dword [ebp - 4], ebx
je 0xf011085
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 0xf01104d
cmp dword [0xf0773f8], ebx
mov ecx, dword [ebp - 4]
je 0xf011080
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, ecx
mov dword [0xf0773f4], edx
mov edx, dword [ebp + 8]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf0117eb
Capabilities:
Resume thread

Disassembly:
call fcn.0f00a3a4
cmp dword [0xf070698], 0
je 0xf01180f
mov dword [0xf09b490], 2
mov dword [0xf070610], 1
jmp 0xf01181f
call fcn.0f00ed5f
push dword [0xf09b4fc]
call fcn.0f00974b
call fcn.0f011f8b
push dword [0xf09b7a8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.0f009725
call fcn.0f0040e5
cmp dword [0xf09b490], 1
jne 0xf011847
push 0
jmp 0xf011849
push 1
call fcn.0f00fffe
jmp 0xf0172d9
mov edi, edi
push esi
xor esi, esi
cmp dword [0xf06baf4], esi
jne 0xf017300
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push esi
mov dword [0xf06baf8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0xf06baf4], eax
pop esi
ret

Function at 0xf011f09
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 0xf00225c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf011f6a
lea eax, [ebp - 4]
push eax
push 0xf09b540
push esi
push esi
push 0xf002370
push dword [ebp - 8]
mov dword [ebp - 4], 0x18
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf011f5d
cmp dword [ebp - 4], 0x18
jne 0xf011f5d
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0xf011f82
xor eax, eax
mov word [eax + 0xf09b540], si
mov word [eax + 0xf09b542], si
add eax, 4
cmp eax, 0x18
jb 0xf011f6c
pop edi
pop esi
leave
ret
Function at 0xf012888
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0xf061038]
push ebx
push esi
push edi
mov esi, 0xf0024a4
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, 0xf09b020
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 0xf0128d0
push dword [ebp + 8]
mov word [esi + 4], bx
call fcn.0f012476
cmp eax, ebx
mov dword [esi], eax
je 0xf0129cb
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 0xf012912
push esi
call fcn.0f01251b
jmp 0xf0129cb
mov eax, dword [ebp - 0xc]
cmp eax, dword [0xf0707c4]
mov dword [esi + 0x1c], eax
jbe 0xf012925
mov dword [0xf0707c4], 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 0xf012908
call fcn.0f01251b
mov eax, dword [ebp - 0x10]
push 0x18
xor edx, edx
pop ecx
div ecx
cmp eax, ebx
je 0xf0129c5
lea edx, [eax + eax*2]
lea edx, [ebp + edx*8 - 0x204]
mov ecx, dword [edx]
dec ecx
je 0xf0129b9
dec ecx
je 0xf0129aa
dec ecx
je 0xf0129a2
dec ecx
dec ecx
je 0xf01298a
dec ecx
jne 0xf0129bf
cmp word [esi + 4], 2
je 0xf0129bf
mov word [esi + 4], 1
jmp 0xf0129bf
mov cx, word [esi + 4]
cmp cx, 4
je 0xf0129bf
cmp cx, 5
je 0xf0129bf
mov word [esi + 4], 3
jmp 0xf0129bf
mov word [esi + 4], 5
jmp 0xf0129bf
cmp word [esi + 4], 5
je 0xf0129bf
mov word [esi + 4], 4
jmp 0xf0129bf
mov word [esi + 4], 2
sub edx, 0x18
dec eax
jne 0xf012969
cmp word [esi + 4], bx
jne 0xf0129cf
xor eax, eax
jmp 0xf012a32
mov eax, edi
imul eax, eax, 0x1c
mov dword [eax + 0xf09a800], 0xf00ce62
mov dword [eax + 0xf09a804], 0xf0395da
mov dword [eax + 0xf09a808], 0xf03960e
mov dword [eax + 0xf09a80c], 0xf0181c0
mov dword [eax + 0xf09a810], 0xf012a46
mov dword [eax + 0xf09a814], 0xf00dc41
mov dword [eax + 0xf09a818], 0xf0397f7
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.0f01b45c
leave
ret 4