joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0067
Capabilities:
Clear file content

Disassembly:
jmp 0x14020ae60
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov r8, qword [rsp + 0xa8]
mov edx, dword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.1400ae271
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x14020ae99
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14020aeb7
call fcn.1400afe19
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.1400af7b1
mov eax, dword [rsp + 0x40]
jmp 0x14020b0d3
cmp qword [rsp + 0x78], 0
jle 0x14020b018
mov dword [rsp + 0x20], 0x4a
lea r9, str.minkernelcrtsucrt_src_appcrtlowiochsize.cpp
mov r8d, 2
mov edx, 1
mov ecx, 0x1000
call fcn.1400b3aaa
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400b072e
lea rcx, [rsp + 0x38]
call fcn.1400b0134
movzx eax, al
test eax, eax
jne 0x14020af38
call fcn.1400afe19
mov dword [rax], 0xc
call fcn.1400afe19
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x38]
call fcn.1400aed34
lea rcx, [rsp + 0x68]
call fcn.1400af7b1
mov eax, dword [rsp + 0x44]
jmp 0x14020b0d3
mov edx, 0x8000
mov ecx, dword [rsp + 0xa0]
call fcn.1400b1b42
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x78], 0x1000
jl 0x14020af62
mov dword [rsp + 0x30], 0x1000
jmp 0x14020af6a
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.1400b11e7
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov ecx, dword [rsp + 0xa0]
call fcn.1400b25fb
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x14020afd8
call fcn.1400b154d
cmp dword [rax], 5
jne 0x14020afb0
call fcn.1400afe19
mov dword [rax], 0xd
call fcn.1400afe19
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.1400aed34
lea rcx, [rsp + 0x68]
call fcn.1400af7b1
mov eax, dword [rsp + 0x4c]
jmp 0x14020b0d3
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jg 0x14020af4d
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xa0]
call fcn.1400b1b42
lea rcx, [rsp + 0x38]
call fcn.1400aed34
jmp 0x14020b0bd
cmp qword [rsp + 0x78], 0
jge 0x14020b0bd
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
call fcn.1400aedf2
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
jne 0x14020b069
call fcn.1400afe19
mov eax, dword [rax]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.1400af7b1
mov eax, dword [rsp + 0x54]
jmp 0x14020b0d3
mov ecx, dword [rsp + 0xa0]
call fcn.1400b3686
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14020b0bd
call fcn.1400afe19
mov dword [rax], 0xd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
call fcn.1400b154d
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
call fcn.1400afe19
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x68]
call fcn.1400af7b1
mov eax, dword [rsp + 0x5c]
jmp 0x14020b0d3
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.1400af7b1
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret
Function at 0x1400b0585
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14018fbf0
mov rax, rcx
neg rcx
test rax, 7
je 0x14018fc0d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14018fc68
test al, 7
jne 0x14018fc00
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 0x14018fc21
mov rdx, qword [rax - 8]
test dl, dl
je 0x14018fc92
test dh, dh
je 0x14018fc8c
shr rdx, 0x10
test dl, dl
je 0x14018fc86
test dh, dh
je 0x14018fc80
shr rdx, 0x10
test dl, dl
je 0x14018fc7a
test dh, dh
je 0x14018fc74
shr edx, 0x10
test dl, dl
je 0x14018fc6e
test dh, dh
jne 0x14018fc21
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 0x1400b05d5
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401edec8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x1401edf65
mov rbp, rax
cmp word [rax], si
je 0x1401edf11
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401edef8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401edef4
sub rbp, rbx
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
add rbp, 2
mov r9d, 0x40
sar rbp, 1
add rbp, rbp
mov rcx, rbp
lea edx, [r9 - 0x3e]
call fcn.1400b0927
mov rdi, rax
test rax, rax
je 0x1401edf50
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.1400b0878
mov rsi, rdi
mov edx, 2
xor ecx, ecx
call fcn.1400aef14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b0ad0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401472a0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140146c20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401472df
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 [0x14028d020]
jmp 0x1401472e9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400b0d14
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401edd6c
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 0x1401ede54
mov rsi, rax
cmp word [rax], r14w
je 0x1401eddbf
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1401edda7
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1401edda3
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.1400b1e99
movsxd rbp, eax
test eax, eax
je 0x1401ede54
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.1400b0927
mov rdi, rax
test rax, rax
je 0x1401ede42
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.1400b1e99
test eax, eax
je 0x1401ede42
mov rsi, rdi
mov rdi, r14
jmp 0x1401ede45
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400aef14
jmp 0x1401ede57
mov rsi, r14
test rbx, rbx
je 0x1401ede65
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 0x1400b0d2d
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401471d0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140146ba0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140147211
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 [0x14028d020]
jmp 0x140147217
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400b0ddc
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401d6b30
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.1401d5ab0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401d6b83
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 [0x14028d020]
jmp 0x1401d6ba5
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400b00a3
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 0x1400b0de6
Capabilities:
Terminate process

Disassembly:
jmp 0x1401238b0
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 0x1400b117e
Capabilities:
Print debug messages

Disassembly:
jmp 0x140205d80
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140271050]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140205da6
jmp 0x140205e23
mov rcx, qword [rbp + 0x30]
call fcn.1400b0585
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140205dbf
jmp 0x140205e23
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140205ddc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400aef5f
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.1400af559
test eax, eax
jne 0x140205e23
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400b085f
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400b14ee
Capabilities:
Create process on windows

Disassembly:
jmp 0x140202ef0
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.1400afeb4
lea rcx, [rsp + 0xb0]
call fcn.1400afeb4
lea rcx, [rsp + 0x80]
call fcn.1400afeb4
call fcn.1400b0c8d
mov r8d, eax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x120]
call fcn.1400afba8
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140202f92
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x80]
call fcn.1400b0427
lea rcx, [rsp + 0xb0]
call fcn.1400b0427
lea rcx, [rsp + 0xe0]
call fcn.1400b0427
mov eax, dword [rsp + 0x54]
jmp 0x14020312e
call fcn.1400b0c8d
mov r8d, eax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x128]
call fcn.1400afba8
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140202ff2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x80]
call fcn.1400b0427
lea rcx, [rsp + 0xb0]
call fcn.1400b0427
lea rcx, [rsp + 0xe0]
call fcn.1400b0427
mov eax, dword [rsp + 0x5c]
jmp 0x14020312e
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x158], 0
je 0x140203078
call fcn.1400b0c8d
mov r8d, eax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x158]
call fcn.1400afba8
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140203066
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x80]
call fcn.1400b0427
lea rcx, [rsp + 0xb0]
call fcn.1400b0427
lea rcx, [rsp + 0xe0]
call fcn.1400b0427
mov eax, dword [rsp + 0x64]
jmp 0x14020312e
lea rcx, [rsp + 0x80]
call fcn.1400afde2
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb0]
call fcn.1400afde2
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe0]
call fcn.1400afde2
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.1400b0427
lea rcx, [rsp + 0xb0]
call fcn.1400b0427
lea rcx, [rsp + 0xe0]
call fcn.1400b0427
mov eax, dword [rsp + 0x68]
add rsp, 0x118
ret
Function at 0x1400b18d6
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401250e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140125100
xor al, al
jmp 0x140125181
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140125113
xor al, al
jmp 0x140125181
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 0x14012513d
xor al, al
jmp 0x140125181
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140125151
xor al, al
jmp 0x140125181
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140125163
xor al, al
jmp 0x140125181
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14012517f
xor al, al
jmp 0x140125181
mov al, 1
add rsp, 0x38
ret
Function at 0x1400b213c
Capabilities:
Terminate process

Disassembly:
jmp 0x140147ba0
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, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140147bce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400b2d0d
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 0x1400b2254
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401d6920
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1401d5930
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401d6955
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x14028d020]
jmp 0x1401d695f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret
Function at 0x1400b2916
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401d6980
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1401d5970
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401d69bf
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 [0x14028d020]
jmp 0x1401d69ce
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x1400b2d99
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401d1e30
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 0x1400b2ef2
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140147310
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140146c60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140147359
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 [0x14028d020]
jmp 0x140147368
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x1400b3005
Capabilities:
Set environment variable

Disassembly:
jmp 0x14020a950
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.1400afeb4
lea rcx, [rsp + 0x40]
call fcn.1400afeb4
call fcn.1400b0c8d
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.1400afba8
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14020a9bf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.1400b0427
lea rcx, [rsp + 0x70]
call fcn.1400b0427
mov eax, dword [rsp + 0x24]
jmp 0x14020aa4c
call fcn.1400b0c8d
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.1400afba8
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14020aa06
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.1400b0427
lea rcx, [rsp + 0x70]
call fcn.1400b0427
mov eax, dword [rsp + 0x2c]
jmp 0x14020aa4c
lea rcx, [rsp + 0x40]
call fcn.1400afde2
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.1400afde2
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.1400b0427
lea rcx, [rsp + 0x70]
call fcn.1400b0427
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret

Function at 0x1400b3087
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14020f730
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x48
movzx eax, word [rsp + 0x58]
movd xmm0, eax
movdqa xmmword [rsp + 0x20], xmm0
pshuflw xmm0, xmmword [rsp + 0x20], 0
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [rsp + 0x20]
pshufd xmm0, xmm0, 0
movdqa xmmword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x50]
and rax, 0xfff
cmp rax, 0xff0
ja 0x14020f841
mov rax, qword [rsp + 0x50]
movdqu xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pxor xmm0, xmmword [rsp + 0x10]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pcmpeqw xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x30]
pcmpeqw xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
por xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x10], xmm0
movdqa xmm0, xmmword [rsp + 0x10]
pmovmskb eax, xmm0
mov dword [rsp], eax
cmp dword [rsp], 0
je 0x14020f831
mov eax, dword [rsp]
bsf eax, eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x14020f821
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
jmp 0x14020f82a
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
jmp 0x14020f87c
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x50], rax
jmp 0x14020f877
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
movzx ecx, word [rsp + 0x58]
cmp eax, ecx
jne 0x14020f859
mov rax, qword [rsp + 0x50]
jmp 0x14020f87c
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
test eax, eax
jne 0x14020f869
xor eax, eax
jmp 0x14020f87c
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
jmp 0x14020f76b
add rsp, 0x48
ret
Function at 0x1400b3307
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1401ce800
jmp fcn.1400b3087
Function at 0x11330
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rcx, qword [rsp + 0xb0]
call fcn.000125a0
xor edx, edx
lea rcx, [0x00011010]
call qword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutine]
mov byte [0x00019501], 0
mov byte [0x00019500], 1
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov qword [0x000194e8], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x18]
mov qword [0x000194e0], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x20]
mov qword [0x000194f8], rax
call fcn.000138f0
mov rdx, qword [str.REGISTRYMACHINESYSTEMControlSet001_servicesTdxClass]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [str.REGISTRYMACHINESYSTEMControlSet002_servicesTdxClass]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [str.REGISTRYMACHINESYSTEMCurrentControlSet_servicesTdxClass]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x1142c
mov r8b, 1
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x1142c
mov r8b, 1
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x11496
call fcn.000155c0
movzx eax, al
test eax, eax
je 0x1143d
call fcn.00015700
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x30], 0
lea rax, [0x00013420]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jne 0x1148f
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x11521
lea r8, [0x00019508]
lea rdx, [0x000194f0]
mov rcx, qword [rsp + 0xb0]
call fcn.00011cf0
movzx eax, al
test eax, eax
jne 0x114d3
movzx eax, byte [0x00019501]
test eax, eax
je 0x114cf
lea rcx, [0x00015ed0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x11521
mov rcx, qword [rsp + 0xb0]
lea rax, [0x000112f0]
mov qword [rcx + 0x68], rax
mov rax, qword [rsp + 0xb0]
mov qword [0x00019060], rax
mov rcx, qword [0x00019060]
call fcn.00013be0
call fcn.000133d0
movzx r11d, byte [0x00019501]
test r11d, r11d
je 0x1151f
lea rcx, [0x00015ef0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0xa8
ret
Function at 0x118b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov dword [rsp + 0x98], 0xc0000001
mov dword [rsp + 0x78], 0
cmp qword [rsp + 0xc0], 0
je 0x118f5
cmp qword [rsp + 0xd0], 0
jne 0x11901
mov eax, dword [rsp + 0x98]
jmp 0x11ad5
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0x240
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
lea r8, [rsp + 0x30]
mov edx, 0xf003f
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jl 0x11ace
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0xa0], rdx
cmp qword [rsp + 0xa0], 1
je 0x119c9
cmp qword [rsp + 0xa0], 2
je 0x11a25
cmp qword [rsp + 0xa0], 4
je 0x11a7e
jmp 0x11ac0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xd8]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rax, rcx
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc8]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [rsp + 0x98], eax
jmp 0x11ac0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xd8]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rax, rcx
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc8]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [rsp + 0x98], eax
jmp 0x11ac0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xc8]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov dword [rsp + 0x98], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x98]
add rsp, 0xb0
pop rdi
ret