joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400026d5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400351b0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400351cd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140035228
test al, 7
jne 0x1400351c0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400351e1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140035252
test dh, dh
je 0x14003524c
shr rdx, 0x10
test dl, dl
je 0x140035246
test dh, dh
je 0x140035240
shr rdx, 0x10
test dl, dl
je 0x14003523a
test dh, dh
je 0x140035234
shr edx, 0x10
test dl, dl
je 0x14003522e
test dh, dh
jne 0x1400351e1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400029ff
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140034450
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140033dd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14003448f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14012a020]
jmp 0x140034499
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140002b44
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400aecb0
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x1400aed98
mov rsi, rax
cmp word [rax], r14w
je 0x1400aed03
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1400aeceb
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1400aece7
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140003599
movsxd rbp, eax
test eax, eax
je 0x1400aed98
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.14000290a
mov rdi, rax
test rax, rax
je 0x1400aed86
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140003599
test eax, eax
je 0x1400aed86
mov rsi, rdi
mov rdi, r14
jmp 0x1400aed89
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400018d4
jmp 0x1400aed9b
mov rsi, r14
test rbx, rbx
je 0x1400aeda9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140002b53
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140034380
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140033d50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400343c1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14012a020]
jmp 0x1400343c7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140002bcb
Capabilities:
Get geographical location

Disassembly:
jmp 0x140099c90
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140098c10
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140099ce3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x14012a020]
jmp 0x140099d05
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14000240f
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret

Function at 0x140002bd5
Capabilities:
Terminate process

Disassembly:
jmp 0x140011d00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140002df1
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400bf330
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140119018]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400bf356
jmp 0x1400bf3d3
mov rcx, qword [rbp + 0x30]
call fcn.1400026d5
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400bf36f
jmp 0x1400bf3d3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400bf38c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400018fc
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140001d02
test eax, eax
jne 0x1400bf3d3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140002892
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140003021
Capabilities:
Create process on windows

Disassembly:
jmp 0x14009f5f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
lea rcx, [rsp + 0xe0]
call fcn.1400022e3
lea rcx, [rsp + 0xb0]
call fcn.1400022e3
lea rcx, [rsp + 0x80]
call fcn.1400022e3
call fcn.140002af9
mov r8d, eax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x120]
call fcn.140002117
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14009f692
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x80]
call fcn.1400025ef
lea rcx, [rsp + 0xb0]
call fcn.1400025ef
lea rcx, [rsp + 0xe0]
call fcn.1400025ef
mov eax, dword [rsp + 0x54]
jmp 0x14009f82e
call fcn.140002af9
mov r8d, eax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x128]
call fcn.140002117
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14009f6f2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x80]
call fcn.1400025ef
lea rcx, [rsp + 0xb0]
call fcn.1400025ef
lea rcx, [rsp + 0xe0]
call fcn.1400025ef
mov eax, dword [rsp + 0x5c]
jmp 0x14009f82e
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x158], 0
je 0x14009f778
call fcn.140002af9
mov r8d, eax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x158]
call fcn.140002117
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14009f766
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x80]
call fcn.1400025ef
lea rcx, [rsp + 0xb0]
call fcn.1400025ef
lea rcx, [rsp + 0xe0]
call fcn.1400025ef
mov eax, dword [rsp + 0x64]
jmp 0x14009f82e
lea rcx, [rsp + 0x80]
call fcn.140002266
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb0]
call fcn.140002266
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe0]
call fcn.140002266
mov rcx, qword [rsp + 0x168]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x160]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rsp + 0x148]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsp + 0x140]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x138]
mov r8, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x78]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x80]
call fcn.1400025ef
lea rcx, [rsp + 0xb0]
call fcn.1400025ef
lea rcx, [rsp + 0xe0]
call fcn.1400025ef
mov eax, dword [rsp + 0x68]
add rsp, 0x118
ret
Function at 0x140003260
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012830
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012850
xor al, al
jmp 0x1400128d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012863
xor al, al
jmp 0x1400128d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001288d
xor al, al
jmp 0x1400128d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400128a1
xor al, al
jmp 0x1400128d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400128b3
xor al, al
jmp 0x1400128d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400128cf
xor al, al
jmp 0x1400128d1
mov al, 1
add rsp, 0x38
ret
Function at 0x14000370b
Capabilities:
Terminate process

Disassembly:
jmp 0x140035060
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14003508e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140003eb8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400037b5
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140099a80
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140098a90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140099ab5
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x14012a020]
jmp 0x140099abf
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x140003c29
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140099ae0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140098ad0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140099b1f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x14012a020]
jmp 0x140099b2e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x140003f12
Capabilities:
Print debug messages

Disassembly:
jmp 0x140097300
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140003fb7
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400344c0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140033e10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140034509
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14012a020]
jmp 0x140034518
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140004066
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400ce660
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400022e3
lea rcx, [rsp + 0x40]
call fcn.1400022e3
call fcn.140002af9
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140002117
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400ce6cf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400025ef
lea rcx, [rsp + 0x70]
call fcn.1400025ef
mov eax, dword [rsp + 0x24]
jmp 0x1400ce75c
call fcn.140002af9
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.140002117
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400ce716
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400025ef
lea rcx, [rsp + 0x70]
call fcn.1400025ef
mov eax, dword [rsp + 0x2c]
jmp 0x1400ce75c
lea rcx, [rsp + 0x40]
call fcn.140002266
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.140002266
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.1400025ef
lea rcx, [rsp + 0x70]
call fcn.1400025ef
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret
Function at 0x1400264a0
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0xe0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400bf030]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
lea r8d, [rbx + 3]
or edx, r9d
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfigW]
test eax, eax
jne 0x140026590
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, vtable.LogItem.0
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], rbx
mov word [rsp + 0x78], bx
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], rbx
mov word [rsp + 0x98], bx
mov dword [rsp + 0xb8], 1
mov dword [rsp + 0xbc], 3
lea rdx, str.ChangeServiceConfig_failed:_error
lea rcx, [rsp + 0x70]
call fcn.140025050
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.140024e10
nop
lea rcx, [rsp + 0x70]
call fcn.140024bf0
xor al, al
jmp 0x140026592
mov al, 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14005b100
add rsp, 0xe0
pop rbx
ret
Function at 0x140033d80
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x218]
sub rsp, 0x310
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400bf030]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rbx, rcx
lea rax, vtable.LogItem.0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x70], 7
xor esi, esi
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rsi
mov word [rsp + 0x78], si
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 1
lea rdx, [0x1400a33a4]
lea rcx, [rsp + 0x50]
call fcn.140025050
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.14002e610
mov dword [rax + 0x48], 1
lea rdx, [0x1400a33a8]
mov rcx, rax
call fcn.140025050
mov rcx, rax
lea rdx, str.AcceptClientSocket_called...
call fcn.140025050
nop
lea rcx, [rsp + 0x50]
call fcn.140024bf0
cmp qword [rbx + 0x200], 0xffffffffffffffff
jne 0x140033f6b
mov rax, qword [rbx + 0x1f8]
mov qword [rbp - 8], rax
mov dword [rbp - 0x10], 1
mov qword [rsp + 0x38], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x140033e4a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 0x200], rax
cmp rax, 0xffffffffffffffff
jne 0x140033e4a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x50]
call fcn.140024a00
nop
mov rcx, rax
call fcn.140025210
mov rcx, rax
lea rdx, [0x1400a33a4]
call fcn.140025050
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14002e990
mov rcx, rax
mov rdx, rbx
call fcn.14002e610
mov rcx, rax
lea rdx, [rsp + 0x34]
call fcn.14002e990
mov rcx, rax
lea rdx, [0x1400a33a8]
call fcn.140025050
mov rcx, rax
lea rdx, str.Socket_server_error_on_accept_operation_occured.
call fcn.140025050
nop
lea rcx, [rsp + 0x50]
call fcn.140024bf0
lea rdx, str.SocketHeciServer::SocketServer::AcceptClientSocket
lea rcx, [rbp - 0x30]
call fcn.140029640
nop
mov r8d, edi
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.14002fa50
lea rdx, [0x1400bb498]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14005b100
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14003c020
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r14, r8
mov r12, rcx
mov bpl, 1
mov ecx, 0x18
call fcn.14005b134
mov rbx, rax
mov qword [rsp + 0x38], rax
xor edi, edi
test rax, rax
je 0x14003c081
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, [0x14009fd3a]
call fcn.14005abb0
mov qword [rbx], rax
jmp 0x14003c084
mov rbx, rdi
test rbx, rbx
jne 0x14003c094
mov ecx, 0x8007000e
call fcn.14005ab80
int3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov esi, eax
or r15d, 0xffffffff
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14003c0f7
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003c0d8
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003c0ea
call fcn.14005b420
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.14005b420
test esi, esi
je 0x14003c109
mov ecx, esi
call fcn.14003c210
xor al, al
jmp 0x14003c1ee
lea rsi, [0x1400c55b0]
cmp qword [0x1400c55c8], 0x10
cmovae rsi, qword [0x1400c55b0]
mov ecx, 0x18
call fcn.14005b134
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003c14f
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.14005abb0
mov qword [rbx], rax
jmp 0x14003c152
mov rbx, rdi
test rbx, rbx
jne 0x14003c162
mov ecx, 0x8007000e
call fcn.14005ab80
int3
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r14
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov esi, eax
test eax, eax
setne r14b
lock xadd dword [rbx + 0x10], r15d
cmp r15d, 1
jne 0x14003c1ca
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003c1ab
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003c1bd
call fcn.14005b420
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.14005b420
test r14b, r14b
je 0x14003c1d9
mov ecx, esi
call fcn.14003c210
xor bpl, bpl
mov rcx, qword [rsp + 0x78]
cmp rcx, qword [r12]
je 0x14003c1ea
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
movzx eax, bpl
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14004b660
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400c10f9], 0
je 0x14004b678
mov eax, dword [0x1400c10fc]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x14004b6de
sub edx, 3
je 0x14004b6ba
sub edx, 0xb
je 0x14004b6b0
cmp edx, 1
je 0x14004b6a6
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret
Function at 0x140050700
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rax, qword [0x1400bf030]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rbp - 0x75], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
mov rbx, rax
mov qword [rbp - 0x49], rax
test rax, rax
jne 0x1400507c4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbp - 0x79], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r15
mov word [rbp - 0x31], r15w
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
mov dword [rbp + 0xf], 1
mov dword [rbp + 0x13], 1
lea rdx, str.Cannot_create_read_event._Error:
lea rcx, [rbp - 0x39]
call fcn.140025050
mov rcx, rax
lea rdx, [rbp - 0x79]
call fcn.140024e10
nop
jmp 0x1400508f5
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x61], r15
lea rax, [rbp - 0x71]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x75]
mov r8d, r14d
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test edi, edi
jne 0x140050800
cmp eax, 0x3e5
jne 0x1400508fe
mov edx, dword [rsi + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x140050878
lea rax, vtable.LogItem.0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r15
mov word [rbp - 0x31], r15w
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
mov dword [rbp + 0xf], 1
mov dword [rbp + 0x13], 1
lea rdx, str.Timeout_occured_while_reading_from_heci_device.
lea rcx, [rbp - 0x39]
call fcn.140025050
nop
lea rcx, [rbp - 0x39]
call fcn.140024bf0
mov rdx, rbx
mov rcx, rsi
call fcn.14004f830
jmp 0x140050906
mov r9d, 1
lea r8, [rbp - 0x75]
lea rdx, [rbp - 0x71]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
test eax, eax
jne 0x14005090b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbp - 0x79], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r15
mov word [rbp - 0x31], r15w
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
mov dword [rbp + 0xf], 1
mov dword [rbp + 0x13], 1
lea rdx, str.Read_function_fail_to_finish._Error:
lea rcx, [rbp - 0x39]
call fcn.140025050
mov rcx, rax
lea rdx, [rbp - 0x79]
call fcn.140024e10
nop
lea rcx, [rbp - 0x39]
call fcn.140024bf0
mov rcx, rsi
call fcn.140050530
or edi, 0xffffffff
jmp 0x14005090e
mov edi, dword [rbp - 0x75]
cmp rbx, 0xffffffffffffffff
je 0x14005091d
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14005b100
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret