joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400370b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400371d4
cmp r8d, 0xff
jne 0x140037111
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400370fb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x56c30]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140018590
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140018590
cmp r8d, 0xfb
jne 0x140037123
lea r9, str.WILL
jmp 0x140037161
cmp r8d, 0xfc
jne 0x140037135
lea r9, str.WONT
jmp 0x140037161
cmp r8d, 0xfd
jne 0x140037147
lea r9, [0x140057654]
jmp 0x140037161
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400371bd
cmp r10d, 0x27
jg 0x140037194
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x57250]
test r8, r8
jne 0x1400371a4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140018590
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14003717b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140018590
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140018590
add rsp, 0x38
ret

Function at 0x140037520
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14003757f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140018410
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400370b0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140037730
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400378d8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140037795
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140037795
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140037795
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400377cc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140037822
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140037822
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140037822
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140037822
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140037822
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400371e0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140037884
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140018410
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400375b0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400378d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140018410
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140039040
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140063080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400390d5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140039136
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140018410
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14004bb60
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400391f1
sub ecx, 1
je 0x140039264
sub ecx, 1
je 0x1400391a0
cmp ecx, 1
je 0x140039183
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140055150]
call fcn.140018410
jmp 0x140039264
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140038d70
test eax, eax
je 0x140039264
jmp 0x14003910a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140039264
sub rax, rsi
cmp rax, rbp
jae 0x140039264
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140018590
jmp 0x140039264
cmp r8d, 4
jle 0x140039264
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140039264
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140018330
mov esi, eax
test eax, eax
je 0x140039243
mov edx, 5
mov rcx, rbx
call fcn.140039d30
mov eax, esi
jmp 0x14003910a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400227e0
mov rcx, r14
call fcn.140022ac0
test eax, eax
je 0x140039108
mov edx, 5
mov rcx, rbx
call fcn.140039d30
mov eax, Ordinal_46
jmp 0x14003910a
Function at 0x14004b9c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14004ba02
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14004ba49
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14004baa2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14004ba60
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14004bae3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14005a76a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14005a76b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14004bab0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14004c8d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004c922
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004c922
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004c922
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004c922
cmp dword [rcx + 0x84], 0xe
jbe 0x14004c922
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004c924
xor al, al
add rsp, 0x28
ret
Function at 0x140006a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006aad
mov qword [rsi], rdi
call fcn.140006670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
fcmovnb st(0), st(7)
lodsb al, byte [rsi]
stosb byte [rdi], al
int3
std
mov esp, 0x82ef1450
or dword [rcx + 0x5a9e7ce1], eax
call 0x1310909b0
scasd eax, dword [rdi]
add byte [rbx + rsi*8], ah
and al, 0x6c
loopne 0x140078c5b
or eax, 0x18a14255
xchg rbp, rax
nop
sbb byte [rbp + rdx*4 - 0x70], cl
ja 0x140078c7a
invalid

Function at 0x140006b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140006b98
add rdi, rbx
sub rsi, rbx
je 0x140006bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140006b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.1400016f0
mov rcx, r12
call int.1400017f0
jmp 0x140006b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400365a0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400038f0
Capabilities:
Get hostname

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x140013028]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rdi, rcx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140003952
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.VBoxRT.dll_RTErrConvertFromWin32]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140005f70
add rsp, 0x60
pop rdi
ret
lea r8, str.D:_tinderboxawin_7.0_srcVBoxFrontendsVBoxAutostartVBoxAutostart_win.cpp
mov qword [rsp + 0x78], rbx
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.VBoxRT.dll_RTUtf16ToUtf8Tag]
mov rdx, qword [rsp + 0x28]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.VBoxRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::operator_char_const____ptr64____ptr64]
mov rcx, rdi
call qword [sym.imp.VBoxRT.dll_public:_class_RTCString____ptr64___cdecl_RTCString::toLower_void____ptr64]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.VBoxRT.dll_RTStrFree]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140005f70
add rsp, 0x60
pop rdi
ret
Function at 0x140003dd0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rdi, rcx
mov ebx, edx
mov ecx, 0x200010
call qword [sym.imp.VBoxRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x140003e18
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x20], rdi
lea r9, [0x14000b254]
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.VBoxRT.dll_RTLogLoggerEx]
lea r14, str.VBoxAutostartSvc
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov rsi, rax
test rax, rax
je 0x140003f1a
mov qword [rsp + 0x70], rbp
xor ebp, ebp
mov qword [rsp + 0x50], r14
movzx edx, bp
mov qword [rsp + 0x58], rdi
lea r14d, [rbp + 2]
sub ebx, 1
je 0x140003ec2
sub ebx, 1
je 0x140003ea1
sub ebx, 1
je 0x140003e81
cmp ebx, 1
jne 0x140003edf
mov rcx, qword [sym.imp.VBoxRT.dll_g_pStdOut]
lea rdx, [0x14000b254]
mov r8, rdi
mov rcx, qword [rcx]
call qword [sym.imp.VBoxRT.dll_RTStrmPrintf]
lea edx, [rbp + 4]
jmp 0x140003edf
mov rcx, qword [sym.imp.VBoxRT.dll_g_pStdOut]
lea rdx, str.Warning:__s
mov r8, rdi
mov rcx, qword [rcx]
call qword [sym.imp.VBoxRT.dll_RTStrmPrintf]
movzx edx, r14w
jmp 0x140003edf
mov rcx, qword [sym.imp.VBoxRT.dll_g_pStdErr]
lea rdx, str.Error:__s
mov r8, rdi
mov rcx, qword [rcx]
call qword [sym.imp.VBoxRT.dll_RTStrmPrintf]
mov edx, 1
jmp 0x140003edf
mov rcx, qword [sym.imp.VBoxRT.dll_g_pStdOut]
lea rdx, [0x14000b254]
mov r8, rdi
mov rcx, qword [rcx]
call qword [sym.imp.VBoxRT.dll_RTStrmPrintf]
movzx edx, bp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebp
xor r9d, r9d
mov word [rsp + 0x28], r14w
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbp, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400081e0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp rdx, 0x1000
jb 0x140008321
push rbx
sub rsp, 0x40
movabs rax, 0xffff800000000000
mov rbx, rdx
test rax, rdx
jne 0x14000831c
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rdx], rdi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x140008317
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.Interface
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000830c
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008301
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400082f6
cmp dword [rsp + 0x60], 1
jne 0x1400082f6
mov edx, dword [rsp + 0x58]
xor ecx, ecx
inc edx
shr edx, 1
inc edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rbx], rax
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400082f6
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x140004fe0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140045b14], eax
jle 0x14000502d
lea rcx, [0x140045b14]
call fcn.1400089d4
cmp dword [0x140045b14], 0xffffffff
jne 0x14000502d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rcx, [0x140045b14]
mov dword [0x140045b18], eax
call fcn.140008974
mov ecx, dword [0x140045b18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14000505c
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x140045b18]
mov edx, 1
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret

Function at 0x14000f4e8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000f2bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f2bc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f2bc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f2bc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f2bc
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f2bc
cmp dword [rcx + 0xf8], esi
je 0x14000f2bc
mov ecx, r14d
call fcn.14000f404
mov ecx, 2
call fcn.140015220
nop
cmp byte [0x140044ce0], 0
jne 0x14000f386
mov r15d, 1
mov eax, r15d
xchg dword [0x140044cd0], eax
test ebx, ebx
jne 0x14000f32f
mov rdi, qword [0x140042088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140044cd8]
cmp rcx, rax
je 0x14000f326
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400029c0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140045048]
jmp 0x14000f33b
cmp ebx, r15d
jne 0x14000f341
lea rcx, [0x140045060]
call fcn.140019fc8
nop
test ebx, ebx
jne 0x14000f358
lea rdx, [0x14002b408]
lea rcx, [0x14002b3e0]
call fcn.14001a290
lea rdx, [0x14002b418]
lea rcx, [0x14002b410]
call fcn.14001a290
movzx eax, byte [0x140044ce0]
test esi, esi
cmove eax, r15d
mov byte [0x140044ce0], al
jmp 0x14000f386
mov ecx, 2
call fcn.140015274
test esi, esi
jne 0x14000f39d
mov ecx, r14d
call fcn.14000f3b8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000f24c
Function at 0xdaa710
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xdaa71d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xdaa72d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xdaa715
lea eax, [rcx + 1]
jmp 0xdaa73b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xdaa74e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xdaa734
sub eax, 3
jb 0xdaa76e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xdaa7bd
sar eax, 1
movsxd rbp, eax
jb 0xdaa7a4
jmp 0xdaa77c
add ebx, ebx
jne 0xdaa77a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xdaa7a4
inc ecx
add ebx, ebx
jne 0xdaa78a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xdaa7a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xdaa79d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xdaa78c
add ecx, 2
jmp 0xdaa7a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00daa6d2
jmp 0xdaa71d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x403800
mov dl, 0x8a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xdaa809
cmp rsi, rcx
jae 0xdaa811
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xdaa7f0
cmp al, 0x8f
ja 0xdaa7f0
cmp byte [rsi - 2], 0xf
je 0xdaa7f6
sub al, 0xe8
cmp al, 1
ja 0xdaa7da
cmp rsi, rcx
jae 0xdaa811
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xdaa7e0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xdaa811
lodsb al, byte [rsi]
jmp 0xdaa7f0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x99d000]
mov eax, dword [rdi]
or eax, eax
je 0xdaa86e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x9aa000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xdaa81e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xdaa868
mov qword [rbx], rax
add rbx, 8
jmp 0xdaa83e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xdaa8b2
cmp al, 0xef
ja 0xdaa89a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xdaa87a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xdaa889
mov eax, dword [rdi]
add rdi, 4
jmp 0xdaa889
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xdaa906
sub rsp, 0xffffffffffffff80
jmp 0x46c340