joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e078
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003e0c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003e0c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003e0c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003e0c2
cmp dword [rcx + 0x84], 0xe
jbe 0x14003e0c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003e0c4
xor al, al
add rsp, 0x28
ret

Function at 0x14110a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14110a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14110a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14110a06f
add dl, dl
jne 0x14110a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14110a0f6
xor eax, eax
add dl, dl
jne 0x14110a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14110a1ad
add dl, dl
jne 0x14110a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14110a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14110a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14110a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14110a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14110a07e
mov eax, 1
add dl, dl
jne 0x14110a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14110a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14110a0fb
sub eax, ebx
mov ebx, 1
jne 0x14110a14c
mov ecx, 1
add dl, dl
jne 0x14110a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14110a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14110a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14110a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14110a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14110a15d
cmp eax, 0x7d00
jae 0x14110a19b
cmp eax, 0x500
jb 0x14110a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110a07e
cmp eax, 0x7f
ja 0x14110a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14110a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14110a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400021dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call fcn.140094000
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400025c0
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004f00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor ebp, ebp
mov rsi, r8
mov rdi, rdx
mov ebx, 0x8000ffff
test rdx, rdx
je 0x140004f36
mov word [rdx], bp
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x140004ff2
lea rcx, [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
test eax, eax
js 0x140004ff2
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x27
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [0x140002b30]
lea rcx, [rsp + 0x80]
call fcn.140005360
mov ebx, eax
test eax, eax
js 0x140004ff2
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.140005360
mov ebx, eax
test eax, eax
js 0x140004ff2
lea r8, [0x140002b60]
lea rcx, [rsp + 0x80]
call fcn.140005360
mov ebx, eax
test eax, eax
js 0x140004ff2
mov rdx, qword [rsi]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.140005408
mov ebx, eax
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bp
jne 0x140004fe6
mov qword [rsi], rax
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14000b710
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000691c
Capabilities:
Delete service
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400069a6
mov rdx, qword [rbx + 0x28]
mov r8d, 0x10004
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14000699d
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140006994
cmp dword [rsp + 0x24], 1
jne 0x140006994
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140006994
call fcn.140006ebc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000b710
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400069c4
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140006a4f
mov rdx, qword [rbx + 0x28]
mov r8d, 0x24
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140006a46
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140006a3d
cmp dword [rsp + 0x24], 1
je 0x140006a3d
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000b710
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140006ebc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [0x140003058]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x140006f24
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003080]
lea rcx, [0x1400030e0]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
call fcn.14000bc08
jmp 0x140006f99
lea rdx, [0x140003760]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140006f5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003080]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
jmp 0x140006f84
mov rcx, rax
call qword [fcn.1400049d0]
call rdi
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140006f90
cmp eax, 0x80070490
je 0x140006f90
mov r8d, eax
lea rdx, [0x140003780]
lea rcx, [0x1400030e0]
call fcn.14000bc08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, [rsp + 0x20]
lea rcx, [0x140002b08]
mov r8d, 0x27
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x140006fcd
lea rdx, [0x140003190]
lea rcx, [0x1400031e0]
call fcn.14000bc08
jmp 0x1400070cb
mov edi, 0x104
lea r8, [0x1400038c8]
lea rcx, [rsp + 0x70]
mov edx, edi
call fcn.140005408
mov ebx, eax
test eax, eax
js 0x1400070b5
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140005360
mov ebx, eax
test eax, eax
js 0x1400070b5
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, 0xfffffffd
je 0x140007043
movzx ebx, ax
lea rdx, [rsp + 0x70]
lea rcx, [0x1400037f0]
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.14000bc08
test ebx, ebx
js 0x1400070b5
lea r8, [0x140003370]
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.140005408
mov ebx, eax
test eax, eax
js 0x1400070b5
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140005360
mov ebx, eax
test eax, eax
js 0x1400070b5
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, 0xfffffffd
je 0x1400070b1
movzx ebx, ax
lea rdx, [rsp + 0x70]
lea rcx, [0x1400037f0]
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.14000bc08
test ebx, ebx
jns 0x1400070cb
lea rdx, [0x140003860]
lea rcx, [0x1400030e0]
mov r8d, ebx
call fcn.14000bc08
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b710
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
Function at 0x1400070f4
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 9], 0
mov rdi, rdx
xor edx, edx
mov ebx, ecx
lea rcx, [rbp - 1]
lea r8d, [rdx + 0x1c]
call fcn.140015f80
and dword [rbp + 0x37], 0
and qword [rbp + 0x3f], 0
lea rcx, str.Internet_Explorer_ETW_Collector_Service
lea rax, str.IEEtwCollectorService
mov qword [rbp + 0x27], rcx
lea rcx, str.ETW_Collector_Service_for_Internet_Explorer._When_running__this_service_collects_real_time_ETW_events_and_processes_them.
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x2f], rcx
lea rcx, [rbp - 9]
mov qword [0x14001b5f0], rcx
cmp ebx, 1
jle 0x140007258
mov rcx, qword [rdi + 8]
lea rdx, [0x140002c80]
call fcn.14000ba68
test eax, eax
jne 0x140007192
lea rcx, [rbp - 9]
call fcn.1400066dc
jmp 0x14000727b
mov rcx, qword [rdi + 8]
lea rdx, [0x140002c90]
call fcn.14000ba68
test eax, eax
jne 0x1400071b4
lea rcx, [rbp - 9]
call fcn.14000691c
jmp 0x14000727b
mov rcx, qword [rdi + 8]
lea rdx, [0x140002ca8]
call fcn.14000ba68
test eax, eax
jne 0x1400071d6
lea rcx, [rbp - 9]
call fcn.1400069c4
jmp 0x14000727b
mov rcx, qword [rdi + 8]
lea rdx, [0x140002cb8]
call fcn.14000ba68
test eax, eax
jne 0x140007254
lea r8d, [rax + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14000727b
mov rdx, qword [rbp + 0x1f]
mov r8d, 0x14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140007249
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140007240
cmp dword [rbp - 0x25], 1
jne 0x140007240
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000727b
mov rax, qword [rbp + 0x1f]
and qword [rbp - 0x19], 0
and qword [rbp - 0x11], 0
mov qword [rbp - 0x29], rax
lea rax, [0x140006480]
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x21], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000b710
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140008e2c
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, qword [rsp + 0x2e0]
mov rdi, r9
xor r14d, r14d
mov rbp, r8
mov r9, rdx
mov ebx, 0x80070057
test rdi, rdi
je 0x140008e6e
mov word [rdi], r14w
test rdx, rdx
je 0x140008f79
mov eax, 0x7ffffffe
mov r8, rdx
mov edx, r14d
mov ecx, eax
cmp word [r8], r14w
je 0x140008e93
add r8, 2
dec rcx
jne 0x140008e84
test rcx, rcx
jne 0x140008e9f
mov edx, ebx
mov rax, r14
jmp 0x140008ea2
sub rax, rcx
mov ebx, edx
test edx, edx
jne 0x140008f79
test rax, rax
je 0x140008f79
lea rdx, [rsp + 0x70]
mov r8d, 0x104
mov rcx, r9
mov ebx, 0x8000ffff
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140008f79
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140008f65
test al, 0x10
je 0x140008f65
lea rdx, [rsp + 0x20]
mov r8d, 0x27
mov rcx, rbp
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [0x140003974]
lea rcx, [rsp + 0x70]
call fcn.140005360
mov ebx, eax
test eax, eax
js 0x140008f79
lea r8, [rsp + 0x22]
lea rcx, [rsp + 0x70]
mov word [rsp + 0x6a], r14w
call fcn.140005360
mov ebx, eax
test eax, eax
js 0x140008f79
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140008f65
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140008f65
mov rdx, qword [rsi]
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140005408
mov ebx, eax
jmp 0x140008f79
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b710
add rsp, 0x290
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a880
Capabilities:
Create thread
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15d, r8d
mov r12d, edx
mov rdi, qword [rcx]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000aa2d
mov r13d, edx
and r13d, 1
and r12d, 2
lea rdx, [rbx + 0x10]
lea rcx, [rbp - 0x18]
call fcn.140009918
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x28]
call fcn.140009918
mov r14, qword [rbp - 0x18]
test r13d, r13d
je 0x14000a908
test r15d, r15d
jne 0x14000a8fa
mov rcx, r14
call fcn.14000af60
jmp 0x14000a908
cmp r15d, 1
jne 0x14000a908
mov rcx, r14
call fcn.14000b150
test r12d, r12d
je 0x14000a992
test r15d, r15d
jne 0x14000a943
mov rsi, qword [rbp - 0x28]
mov qword [rsi + 0x18], r14
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], r15d
mov r9, rsi
lea r8, [0x140004a00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x30], rax
jmp 0x14000a992
cmp r15d, 1
jne 0x14000a97e
mov rsi, qword [rbp - 0x28]
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14000a992
call fcn.14000b150
or edx, 0xffffffff
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsi + 0x30], 0
and qword [rsi + 0x18], 0
jmp 0x14000a992
cmp r15d, 2
jne 0x14000a992
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14000a9da
lock dec dword [rcx + 8]
jne 0x14000a9da
mov r14, qword [rbp - 0x20]
mov rax, qword [r14]
mov rsi, qword [rax]
mov rcx, rsi
call qword [fcn.1400049d0]
mov rcx, r14
call rsi
lock dec dword [r14 + 0xc]
jne 0x14000a9da
mov r14, qword [rbp - 0x20]
mov rax, qword [r14]
mov rsi, qword [rax + 8]
mov rcx, rsi
call qword [fcn.1400049d0]
mov rcx, r14
call rsi
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000aa21
lock dec dword [rcx + 8]
jne 0x14000aa21
mov r14, qword [rbp - 0x10]
mov rax, qword [r14]
mov rsi, qword [rax]
mov rcx, rsi
call qword [fcn.1400049d0]
mov rcx, r14
call rsi
lock dec dword [r14 + 0xc]
jne 0x14000aa21
mov r14, qword [rbp - 0x10]
mov rax, qword [r14]
mov rsi, qword [rax + 8]
mov rcx, rsi
call qword [fcn.1400049d0]
mov rcx, r14
call rsi
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000a8c7
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000aa54
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x40]
xor ebx, ebx
mov rdi, rcx
test rdx, rdx
je 0x14000aacb
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14000aa8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000aacb
mov edx, 2
mov rcx, rdi
mov r8d, edx
call fcn.14000a880
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x14000aac5
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14000aac5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b4c0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000b500
mov eax, 0xff
jmp 0x14000b6ab
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14000b51c
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x14001acc8], r9d
mov dword [0x14001acd0], ecx
mov dword [0x14001acd4], edx
mov dword [0x14001acd8], eax
mov dword [0x14001accc], r8d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000b593
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000b593
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000b593
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000b595
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x14000b595
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14000d244
test eax, eax
jne 0x14000b5cb
cmp dword [0x14001a71c], 2
je 0x14000b5b7
call fcn.14000d028
mov ecx, 0x1c
call fcn.14000d074
mov ecx, 0xff
call fcn.14000cc40
call fcn.14000cb0c
test eax, eax
jne 0x14000b5f7
cmp dword [0x14001a71c], 2
je 0x14000b5e2
call fcn.14000d028
mov ecx, 0x10
call fcn.14000d074
mov ecx, 0xff
call fcn.14000cc40
nop
call fcn.14000d2b8
test eax, eax
jns 0x14000b60a
mov ecx, 0x1b
call fcn.14000cc5c
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14001c8d0], rax
call fcn.14000da58
mov qword [0x14001a720], rax
call fcn.14000d554
test eax, eax
jns 0x14000b635
mov ecx, 8
call fcn.14000cc5c
call fcn.14000d834
test eax, eax
jns 0x14000b648
mov ecx, 9
call fcn.14000cc5c
mov ecx, edi
call fcn.14000cccc
test eax, eax
je 0x14000b65a
mov ecx, eax
call fcn.14000cc5c
mov r8, qword [0x14001acb8]
mov qword [0x14001ace8], r8
mov rdx, qword [0x14001acb0]
mov ecx, dword [0x14001acac]
call fcn.1400070f4
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14000b68b
mov ecx, eax
call fcn.14000d018
call fcn.14000ccb8
jmp 0x14000b6a9
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000b710
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.1400af000
add rsp, 0x28
jmp 0x14000b4c0

Function at 0x14000c1ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]