joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400048d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140017060]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor ebp, ebp
mov rsi, r8
mov rdi, rdx
mov ebx, 0x8000ffff
test rdx, rdx
je 0x140004906
mov word [rdx], bp
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1400049c2
lea rcx, [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
test eax, eax
js 0x1400049c2
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov r8d, 0x27
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [0x1400027d0]
lea rcx, [rsp + 0x80]
call fcn.1400049f0
mov ebx, eax
test eax, eax
js 0x1400049c2
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.1400049f0
mov ebx, eax
test eax, eax
js 0x1400049c2
lea r8, [0x140002800]
lea rcx, [rsp + 0x80]
call fcn.1400049f0
mov ebx, eax
test eax, eax
js 0x1400049c2
mov rdx, qword [rsi]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.140004ab8
mov ebx, eax
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], bp
jne 0x1400049b6
mov qword [rsi], rax
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14000a5c0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140005cdc
Capabilities:
Delete service
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140017060]
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 0x140005d66
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 0x140005d5d
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140005d54
cmp dword [rsp + 0x24], 1
jne 0x140005d54
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140005d54
call fcn.140006270
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.14000a5c0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140005d84
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140017060]
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 0x140005e0f
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 0x140005e06
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140005dfd
cmp dword [rsp + 0x24], 1
je 0x140005dfd
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.14000a5c0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140006270
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x140017060]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [0x140002d18]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x1400062d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140002d40]
lea rcx, [0x140002da0]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
call fcn.14000aad4
jmp 0x14000633d
lea rdx, [0x140003420]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140006309
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140002d40]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
jmp 0x140006328
call rax
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140006334
cmp eax, 0x80070490
je 0x140006334
mov r8d, eax
lea rdx, [0x140003440]
lea rcx, [0x140002da0]
call fcn.14000aad4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, [rsp + 0x20]
lea rcx, [0x140002770]
mov r8d, 0x27
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x140006371
lea rdx, [0x140002e50]
lea rcx, [0x140002ea0]
call fcn.14000aad4
jmp 0x14000646f
lea r8, [0x140003588]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.140004ab8
mov ebx, eax
test eax, eax
js 0x140006459
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.1400049f0
mov ebx, eax
test eax, eax
js 0x140006459
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, 0xfffffffd
je 0x1400063e5
movzx ebx, ax
lea rdx, [rsp + 0x70]
lea rcx, [0x1400034b0]
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.14000aad4
test ebx, ebx
js 0x140006459
lea r8, [0x140003030]
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.140004ab8
mov ebx, eax
test eax, eax
js 0x140006459
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.1400049f0
mov ebx, eax
test eax, eax
js 0x140006459
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, 0xfffffffd
je 0x140006455
movzx ebx, ax
lea rdx, [rsp + 0x70]
lea rcx, [0x1400034b0]
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.14000aad4
test ebx, ebx
jns 0x14000646f
lea rdx, [0x140003520]
lea rcx, [0x140002da0]
mov r8d, ebx
call fcn.14000aad4
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000a5c0
add rsp, 0x290
pop rbx
ret
Function at 0x140006490
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 [0x140017060]
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.140014c00
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 [0x1400195f0], rcx
cmp ebx, 1
jle 0x1400065f4
mov rcx, qword [rdi + 8]
lea rdx, [0x140002940]
call fcn.14000a934
test eax, eax
jne 0x14000652e
lea rcx, [rbp - 9]
call fcn.140005a9c
jmp 0x140006617
mov rcx, qword [rdi + 8]
lea rdx, [0x140002950]
call fcn.14000a934
test eax, eax
jne 0x140006550
lea rcx, [rbp - 9]
call fcn.140005cdc
jmp 0x140006617
mov rcx, qword [rdi + 8]
lea rdx, [0x140002968]
call fcn.14000a934
test eax, eax
jne 0x140006572
lea rcx, [rbp - 9]
call fcn.140005d84
jmp 0x140006617
mov rcx, qword [rdi + 8]
lea rdx, [0x140002978]
call fcn.14000a934
test eax, eax
jne 0x1400065f0
lea r8d, [rax + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140006617
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 0x1400065e5
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400065dc
cmp dword [rbp - 0x25], 1
jne 0x1400065dc
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 0x140006617
mov rax, qword [rbp + 0x1f]
and qword [rbp - 0x19], 0
and qword [rbp - 0x11], 0
mov qword [rbp - 0x29], rax
lea rax, [0x14000585c]
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.14000a5c0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140007ec8
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 [0x140017060]
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 0x140007f0a
mov word [rdi], r14w
test rdx, rdx
je 0x140008015
mov eax, 0x7ffffffe
mov r8, rdx
mov edx, r14d
mov ecx, eax
cmp word [r8], r14w
je 0x140007f2f
add r8, 2
dec rcx
jne 0x140007f20
test rcx, rcx
jne 0x140007f3b
mov edx, ebx
mov rax, r14
jmp 0x140007f3e
sub rax, rcx
mov ebx, edx
test edx, edx
jne 0x140008015
test rax, rax
je 0x140008015
lea rdx, [rsp + 0x70]
mov r8d, 0x104
mov rcx, r9
mov ebx, 0x8000ffff
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140008015
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140008001
test al, 0x10
je 0x140008001
lea rdx, [rsp + 0x20]
mov r8d, 0x27
mov rcx, rbp
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [0x140003664]
lea rcx, [rsp + 0x70]
call fcn.1400049f0
mov ebx, eax
test eax, eax
js 0x140008015
lea r8, [rsp + 0x22]
lea rcx, [rsp + 0x70]
mov word [rsp + 0x6a], r14w
call fcn.1400049f0
mov ebx, eax
test eax, eax
js 0x140008015
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140008001
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140008001
mov rdx, qword [rsi]
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140004ab8
mov ebx, eax
jmp 0x140008015
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.14000a5c0
add rsp, 0x290
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400098fc
Capabilities:
Create thread
Delete file

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r15d, r8d
mov r12d, edx
mov rdi, qword [rcx]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x140009a93
mov r13d, edx
and r13d, 1
and r12d, 2
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x38]
call fcn.140008804
nop
xor ebp, ebp
xor r14d, r14d
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x20]
test rdx, rdx
je 0x14000997c
jmp 0x14000996d
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x140009976
mov eax, dword [rdx + 8]
test eax, eax
jne 0x140009963
jmp 0x14000997c
mov r14, rdx
mov rbp, r8
mov rsi, qword [rsp + 0x38]
test r13d, r13d
je 0x1400099a3
test r15d, r15d
jne 0x140009995
mov rcx, rsi
call fcn.140009ea4
jmp 0x1400099a3
cmp r15d, 1
jne 0x1400099a3
mov rcx, rsi
call fcn.14000a094
test r12d, r12d
je 0x140009a1d
test r15d, r15d
jne 0x1400099d6
mov qword [rbp + 0x18], rsi
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], r15d
mov r9, rbp
lea r8, [0x140004514]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x30], rax
jmp 0x140009a1d
cmp r15d, 1
jne 0x140009a0d
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140009a1d
call fcn.14000a094
or edx, 0xffffffff
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp + 0x30], 0
and qword [rbp + 0x18], 0
jmp 0x140009a1d
cmp r15d, 2
jne 0x140009a1d
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
or ebp, 0xffffffff
test r14, r14
je 0x140009a4f
mov eax, ebp
lock xadd dword [r14 + 8], eax
add eax, ebp
jne 0x140009a4f
mov rax, qword [r14]
mov rcx, r14
call qword [rax]
mov eax, ebp
lock xadd dword [r14 + 0xc], eax
add eax, ebp
jne 0x140009a4f
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140009a87
mov eax, ebp
lock xadd dword [rcx + 8], eax
add eax, ebp
jne 0x140009a87
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, ebp
lock xadd dword [rsi + 0xc], eax
add eax, ebp
jne 0x140009a87
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140009940
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140009ab8
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
lea edx, [rdi + 2]
mov r8d, edx
call fcn.1400098fc
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140009af9
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140009af9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a370
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140017060]
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 0x14000a3b0
mov eax, 0xff
jmp 0x14000a55b
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14000a3cc
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x140018cc8], r9d
mov dword [0x140018cd0], ecx
mov dword [0x140018cd4], edx
mov dword [0x140018cd8], eax
mov dword [0x140018ccc], r8d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000a443
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000a443
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000a443
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000a445
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x14000a445
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14000c07c
test eax, eax
jne 0x14000a47b
cmp dword [0x14001871c], 2
je 0x14000a467
call fcn.14000be60
mov ecx, 0x1c
call fcn.14000beac
mov ecx, 0xff
call fcn.14000bab0
call fcn.14000b990
test eax, eax
jne 0x14000a4a7
cmp dword [0x14001871c], 2
je 0x14000a492
call fcn.14000be60
mov ecx, 0x10
call fcn.14000beac
mov ecx, 0xff
call fcn.14000bab0
nop
call fcn.14000c0f0
test eax, eax
jns 0x14000a4ba
mov ecx, 0x1b
call fcn.14000bacc
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14001a8d0], rax
call fcn.14000c890
mov qword [0x140018720], rax
call fcn.14000c38c
test eax, eax
jns 0x14000a4e5
mov ecx, 8
call fcn.14000bacc
call fcn.14000c66c
test eax, eax
jns 0x14000a4f8
mov ecx, 9
call fcn.14000bacc
mov ecx, edi
call fcn.14000bb2c
test eax, eax
je 0x14000a50a
mov ecx, eax
call fcn.14000bacc
mov r8, qword [0x140018cb8]
mov qword [0x140018ce8], r8
mov rdx, qword [0x140018cb0]
mov ecx, dword [0x140018cac]
call fcn.140006490
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14000a53b
mov ecx, eax
call fcn.14000be50
call fcn.14000bb18
jmp 0x14000a559
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000a5c0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.1400ac000
add rsp, 0x28
jmp 0x14000a370

Function at 0x14000b06c
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]

Function at 0x14000ba44
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14000bcc0
Function at 0x14000be50
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
mov ebx, edx
mov r13d, ecx
mov ecx, 8
call fcn.14000ee74
nop
cmp dword [0x140018ca8], 1
je 0x14000bdf8
mov dword [0x140018ce0], 1
mov byte [0x140018cdc], r14b
test ebx, ebx
jne 0x14000bde4
mov rcx, qword [0x14001a8b8]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000bdd1
mov rcx, qword [0x14001a8b0]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r12, rsi
mov qword [rsp + 0x28], rsi
mov r15, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14000bdd1
call fcn.14000b6a4
cmp qword [rdi], rax
jne 0x14000bd70
jmp 0x14000bd56
cmp rdi, rsi
jb 0x14000bdd1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14000b6a4
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14001a8b8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14001a8b0]
call sub.KERNEL32.dll_DecodePointer
cmp r12, rbx
jne 0x14000bdaf
cmp r15, rax
je 0x14000bd6e
mov r12, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r15, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14000bd6e
lea rdx, [0x140001068]
lea rcx, [0x140001050]
call fcn.14000bc64
lea rdx, [0x140001078]
lea rcx, [0x140001070]
call fcn.14000bc64
nop
test r14d, r14d
je 0x14000be0c
mov ecx, 8
call fcn.14000f0c8
test r14d, r14d
jne 0x14000be32
mov dword [0x140018ca8], 1
mov ecx, 8
call fcn.14000f0c8
mov ecx, r13d
call fcn.14000ba58
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000bcc0
Function at 0x14000beac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
xor edx, edx
mov r8, r14
cmp ecx, dword [r8]
je 0x14000bee3
inc edx
add r8, 0x10
movsxd rax, edx
cmp rax, 0x17
jb 0x14000becf
movsxd rbx, edx
cmp rbx, 0x17
jae 0x14000c05d
mov ebp, 3
mov ecx, ebp
call fcn.14000f640
cmp eax, 1
je 0x14000c01e
mov ecx, ebp
call fcn.14000f640
test eax, eax
jne 0x14000bf1d
cmp dword [section..data], 1
je 0x14000c01e
cmp edi, 0xfc
je 0x14000c05d
lea rdi, [0x140018cf0]
mov ebp, 0x314
lea r8, [0x140001938]
mov rcx, rdi
mov edx, ebp
call fcn.14000c9c4
test eax, eax
je 0x14000bf5f
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000d8a4
lea rdx, [0x140018d09]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140018e0d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000bfb0
lea r8, [0x140001958]
lea rcx, [0x140018d09]
mov edx, 0x2fb
call fcn.14000c9c4
test eax, eax
je 0x14000bfb0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000d8a4
lea r8, [0x140001970]
mov rdx, rbp
mov rcx, rdi
call fcn.14000f5b0
test eax, eax
je 0x14000bfdb
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000d8a4
add rbx, rbx
mov rdx, rbp
mov rcx, rdi
mov r8, qword [r14 + rbx*8 + 8]
call fcn.14000f5b0
test eax, eax
je 0x14000c007
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000d8a4
lea rdx, [0x140001978]
mov r8d, 0x12010
mov rcx, rdi
call fcn.14000f698
jmp 0x14000c05d
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000c05d
add rbx, rbx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rbx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000c03f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14000d8a4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x140017060]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000d921
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14000d941
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x1400019a0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14000a5c0
add rsp, 0x540
pop rbx
ret
Function at 0x14000f698
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140017060]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r12, rdx
mov r15, rcx
call fcn.14000b6a4
xor ebx, ebx
cmp qword [0x1400194c8], rbx
mov rdi, rax
jne 0x14000f7ab
lea rcx, [0x140001a08]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x14000f87d
lea rdx, [0x140001a20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000f87d
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140001a30]
mov rcx, rsi
mov qword [0x1400194c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140001a40]
mov rcx, rsi
mov qword [0x1400194d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140001a58]
mov rcx, rsi
mov qword [0x1400194d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov rcx, rax
mov qword [0x1400194e8], rax
test rax, rax
je 0x14000f7a2
lea rdx, [0x140001a78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400194e0], rax
jmp 0x14000f7b2
mov rax, qword [0x1400194e0]
jmp 0x14000f7b9
mov rax, qword [0x1400194e0]
mov rcx, qword [0x1400194e8]
cmp rax, rdi
je 0x14000f81e
cmp rcx, rdi
je 0x14000f81e
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400194e8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r14, rax
test rsi, rsi
je 0x14000f81e
test rax, rax
je 0x14000f81e
call rsi
test rax, rax
je 0x14000f818
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r14
test eax, eax
je 0x14000f818
test byte [rsp + 0x40], 1
jne 0x14000f81e
bts ebp, 0x15
jmp 0x14000f85c
mov rcx, qword [0x1400194d0]
cmp rcx, rdi
je 0x14000f85c
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f85c
call rax
mov rbx, rax
test rax, rax
je 0x14000f85c
mov rcx, qword [0x1400194d8]
cmp rcx, rdi
je 0x14000f85c
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f85c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400194c8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f87d
mov r9d, ebp
mov r8, r12
mov rdx, r15
mov rcx, rbx
call rax
jmp 0x14000f87f
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000a5c0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret