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

Disassembly:
push 0x38
push 0xf003af8
call fcn.0f01b8c8
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 0xf00874f
cmp eax, 0x80000005
jne 0xf00872d
push 0xce
jmp 0xf008735
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.0f01c40b
pop ecx
pop ecx
xor eax, eax
jmp 0xf008839
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 0xf008769
push eax
jmp 0xf008797
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 0xf0087a9
push 0xc0000017
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf00882d
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 0xf00882d
cmp eax, edi
jae 0xf00882d
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 0xf0087fc
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 0xf00882d
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.0f008843
mov eax, dword [ebp - 0x1c]
call fcn.0f01b903
ret 0xc
Function at 0xf009ddf
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, 0xf00205c
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 0xf009e2a
push ebx
push edi
push 0x155
call fcn.0f03464d
jmp 0xf009f21
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 0xf009e7e
push 0xf002058
push edi
push 0x155
call fcn.0f03464d
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xf009f21
push esi
push dword [ebp - 0x2c]
call fcn.0f007089
mov esi, eax
cmp esi, ebx
pop ecx
jne 0xf009ea9
push 0xf002058
push edi
push 0x154
call fcn.0f03464d
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0xf009f20
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push ebx
mov ebx, 0xf002058
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf009f04
cmp dword [ebp - 0x34], 7
jne 0xf009f04
mov edi, esi
jmp 0xf009ef3
push esi
call fcn.0f0169d7
test eax, eax
jne 0xf009ee6
push eax
push esi
push 0x156
call fcn.0f03464d
push 0
push esi
call fcn.0f0569a0
pop ecx
inc eax
pop ecx
mov esi, eax
cmp byte [esi], 0
jne 0xf009ed0
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
jmp 0xf009f1a
push ebx
push edi
push 0x155
call fcn.0f03464d
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0f0058a2
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0f01b780
leave
ret

Function at 0xf00d124
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 0xf00d164
push edi
mov edi, 0xf09a8c0
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, 0xf09a930
jl 0xf00d142
mov eax, dword [ebp - 4]
pop edi
jmp 0xf00d17c
push dword [ebp + 0xc]
xor eax, eax
mov al, byte [esi + 1]
push esi
and eax, 3
imul eax, eax, 0x1c
call dword [eax + 0xf09a8c0]
movsx eax, ax
pop esi
pop ebx
leave
ret 8

Function at 0xf00d187
Capabilities:
Resume thread

Disassembly:
cmp dword [0xf077348], 0
jne 0xf00d19f
mov dword [0xf077348], 1
jmp fcn.0f0098f4
ret
Function at 0xf00dda7
Capabilities:
Create thread

Disassembly:
push 0xf09b86c
push 4
push 0
push 0xf0120ee
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0xf09b868], eax
jne 0xf00ddeb
push 0x10f
push 0xf001fa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3e9
call fcn.0f034820
call fcn.0f034c11
push 1
call fcn.0f00a912
ret

Function at 0xf00dfa4
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 [0xf09af20], eax
mov ebx, 0xf00251c
mov edi, 0x3e9
jne 0xf00dfdc
push 0x10e
push ebx
call esi
push eax
push edi
call fcn.0f034820
cmp dword [0xf06bb24], 0
jne 0xf00e0da
push 1
push 0xf03ae89
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0xf00e009
push 0x11e
push ebx
call esi
push eax
push edi
call fcn.0f034820
push 0xf09b874
push 4
push 0
push 0xf03bca7
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0xf09b870], eax
jne 0xf00e03c
push 0x128
push ebx
call esi
push eax
push edi
call fcn.0f034820
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09b0c4], eax
jne 0xf00e060
push 0x12b
push ebx
call esi
push eax
push edi
call fcn.0f034820
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09b0d0], eax
jne 0xf00e084
push 0x12e
push ebx
call esi
push eax
push edi
call fcn.0f034820
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0xf09b0c8], eax
jne 0xf00e0a8
push 0x131
push ebx
call esi
push eax
push edi
call fcn.0f034820
call fcn.0f03ae6a
mov esi, 0x640
jmp 0xf00e0c2
push 0xf002055
push 3
push 7
call fcn.0f0344d0
push esi
call fcn.0f007089
test eax, eax
pop ecx
mov dword [0xf070960], eax
je 0xf00e0b4
pop edi
pop esi
pop ebx
jmp fcn.0f03ab04
pop edi
pop esi
pop ebx
ret

Function at 0xf00e21d
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 0xf00e258
test eax, eax
jbe 0xf00e258
mov al, byte [ebp - 0x108]
mov byte [0xf0650c4], al
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
call fcn.0f01b780
leave
ret 8
Function at 0xf00e893
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.0f007089
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
je 0xf00e90b
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 0xf00e90b
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 [0xf09aef4]
mov dword [ebp - 4], edi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00e90b
push esi
call fcn.0f0058a2
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0xf00ea75
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 0xf077274
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x10], 0xb0000
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jge 0xf00eac5
call fcn.0f034c11
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
push esi
push edi
mov dword [0xf09b91c], 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 0xf00eaff
call fcn.0f034c11
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 0xf00eb24
call fcn.0f034c11
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 [0xf077274]
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
call edi
test eax, eax
jge 0xf00eb6c
call fcn.0f034c11
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 [0xf077274]
mov dword [ebp - 8], 0x100000
mov dword [ebp - 4], esi
call edi
test eax, eax
jge 0xf00eb9d
call fcn.0f034c11
call fcn.0f0134db
push 0x40
push ebx
push 2
mov word [0xf07726c], 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 [0xf077274]
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jge 0xf00ebe7
call fcn.0f034c11
mov ax, word [0xf07726c]
cmp ax, 0xa000
mov edi, 0xa0000
jae 0xf00ec12
movzx eax, ax
shl eax, 4
mov ecx, edi
sub ecx, eax
push ecx
push eax
call fcn.0f0447a0
test eax, eax
jne 0xf00ec12
call fcn.0f034c11
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 0xf00ec3d
call fcn.0f034c11
mov eax, dword [0xf09b91c]
mov dword [0xf09b668], eax
push esi
add eax, 0x1ffff
push eax
push esi
mov dword [0xf077278], esi
mov dword [0xf09b69c], esi
call fcn.0f00ec6c
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf00edf3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0xf09b91c]
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 0xf00ee55
mov ecx, dword [0xf09bbf0]
mov edx, ecx
and edx, 0xf
cmp dl, 2
jb 0xf00ee45
push eax
push 0xf002c00
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov ecx, dword [0xf09bbf0]
and ecx, 0xf0
cmp ecx, 0x20
jb 0xf00ee55
call fcn.0f01b580
leave
ret

Function at 0xf00ef34
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 [0xf077278], esi
je 0xf00efa4
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 0xf00ef68
call fcn.0f034c11
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 [0xf077274]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00ef9e
call fcn.0f034c11
mov dword [0xf077278], esi
pop esi
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0xf077278], 1
je 0xf00f024
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 0xf00efde
call fcn.0f034c11
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 [0xf077274]
mov dword [ebp - 0x10], 0xa0000
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf00f01a
call fcn.0f034c11
mov dword [0xf077278], 1
leave
ret
Function at 0xf00f449
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x18
push 0xf001648
call fcn.0f01b8c8
mov edi, 0x94
mov eax, edi
call fcn.0f01c0d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 0x10]
mov dword [0xf065a88], eax
mov ecx, dword [esi + 4]
mov dword [0xf065a94], ecx
mov edx, dword [esi + 8]
mov dword [0xf065a98], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xf065a8c], esi
cmp eax, 2
je 0xf00f4a9
or esi, 0x8000
mov dword [0xf065a8c], esi
shl ecx, 8
add ecx, edx
mov dword [0xf065a90], ecx
cmp word [0xf000000], 0x5a4d
jne 0xf00f4e7
mov eax, dword [0xf00003c]
cmp dword [eax + 0xf000000], 0x4550
jne 0xf00f4e7
movzx ecx, word [eax + 0xf000018]
cmp ecx, 0x10b
je 0xf00f500
cmp ecx, 0x20b
je 0xf00f4ed
and dword [ebp - 0x1c], 0
jmp 0xf00f517
cmp dword [eax + 0xf000084], 0xe
jbe 0xf00f4e7
xor ecx, ecx
cmp dword [eax + 0xf0000f8], ecx
jmp 0xf00f511
cmp dword [eax + 0xf000074], 0xe
jbe 0xf00f4e7
xor ecx, ecx
cmp dword [eax + 0xf0000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.0f00c21d
pop ecx
test eax, eax
jne 0xf00f544
cmp dword [0xf065a74], 2
je 0xf00f531
call fcn.0f01bd79
push 0x1c
call fcn.0f01bb8c
push 0xff
call fcn.0f01ba3b
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0f00bd45
test eax, eax
jge 0xf00f559
push 0x1b
call fcn.0f01b898
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xf079e64], eax
call fcn.0f0164e1
mov dword [0xf065a6c], eax
call fcn.0f00ffe0
test eax, eax
jge 0xf00f57f
push 8
call fcn.0f01b898
pop ecx
call fcn.0f0168f0
test eax, eax
jge 0xf00f590
push 9
call fcn.0f01b898
pop ecx
call fcn.0f0160bb
mov dword [ebp - 0x24], eax
test eax, eax
je 0xf00f5a3
push eax
call fcn.0f01b898
pop ecx
mov eax, dword [0xf065aa8]
mov dword [0xf065aac], eax
push eax
push dword [0xf065aa0]
push dword [0xf065a9c]
call fcn.0f00cdc0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], 0
jne 0xf00f5d3
push esi
call fcn.0f01bb25
call fcn.0f01bb5d
jmp 0xf00f605
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0f01b903
ret
Function at 0xf00fe9e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0x110
call fcn.0f007089
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 4], edi
je 0xf00ff74
push esi
push edi
mov esi, 0x104
push esi
call fcn.0f04d4ec
test eax, eax
je 0xf00ff66
cmp eax, esi
jae 0xf00ff66
push 0x111
call fcn.0f007089
test eax, eax
pop ecx
mov dword [ebp - 8], eax
je 0xf00ff66
push ebx
push eax
push 0
mov ebx, 0xf003988
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call edi
test eax, eax
jne 0xf00ff2a
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0xf00ff17
cmp eax, esi
jb 0xf00ff1f
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 0xf00ff79
push edi
call fcn.0f0058a2
pop ecx
xor esi, esi
push dword [ebp - 4]
call fcn.0f0058a2
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 0xf00ff68
Function at 0xf0109ea
Capabilities:
Get disk information

Disassembly:
push 0x4c
push 0xf003b38
call fcn.0f01b8c8
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 0xf010a13
mov eax, 0xf00218c
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 0xf010a4f
cmp eax, 0x80000005
jne 0xf010a3c
push 0xce
jmp 0xf010a44
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xf010b76
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 0xf010ab6
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 0xf010ab6
push 8
jmp 0xf010b63
cmp dword [ebp + 0x20], esi
je 0xf010ae7
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 0xf010aaf
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 0xf010b7a
cmp dword [ebp + 0xc], esi
je 0xf010b33
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 0xf010b5b
cmp dword [ebp + 0x20], esi
je 0xf010b7a
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 0xf010b7a
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.0f01c40b
pop ecx
pop ecx
xor eax, eax
jmp 0xf010b86
or dword [ebp - 4], 0xffffffff
call fcn.0f010b90
mov eax, dword [ebp - 0x24]
call fcn.0f01b903
ret 0x20
Function at 0xf011124
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 [0xf0774ac], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0xf01114f
cmp dword [0xf0774b0], ebx
je 0xf01114f
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0f04fed0
mov dword [ebp - 4], eax
mov esi, dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov edi, 0x1000
jmp 0xf011164
cmp dword [ebp - 4], ebx
je 0xf011194
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 0xf01115c
cmp dword [0xf0774b0], ebx
mov ecx, dword [ebp - 4]
je 0xf01118f
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, ecx
mov dword [0xf0774ac], edx
mov edx, dword [ebp + 8]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0xf0118fa
Capabilities:
Resume thread

Disassembly:
call fcn.0f00a4aa
cmp dword [0xf070748], 0
je 0xf01191e
mov dword [0xf09b550], 2
mov dword [0xf0706c0], 1
jmp 0xf01192e
call fcn.0f00ee5c
push dword [0xf09b5bc]
call fcn.0f009851
call fcn.0f01209a
push dword [0xf09b868]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.0f00982b
call fcn.0f004165
cmp dword [0xf09b550], 1
jne 0xf011956
push 0
jmp 0xf011958
push 1
call fcn.0f0100fb
jmp 0xf0173e8
mov edi, edi
push esi
xor esi, esi
cmp dword [0xf06bb14], esi
jne 0xf01740f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push esi
mov dword [0xf06bb18], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0xf06bb14], eax
pop esi
ret

Function at 0xf012018
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 0xf0022b4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf012079
lea eax, [ebp - 4]
push eax
push 0xf09b600
push esi
push esi
push 0xf0023c8
push dword [ebp - 8]
mov dword [ebp - 4], 0x18
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf01206c
cmp dword [ebp - 4], 0x18
jne 0xf01206c
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0xf012091
xor eax, eax
mov word [eax + 0xf09b600], si
mov word [eax + 0xf09b602], si
add eax, 4
cmp eax, 0x18
jb 0xf01207b
pop edi
pop esi
leave
ret