joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011f0
Capabilities:
Check for debugger via api
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x1400013c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp eax, 1
jne 0x14000122d
cmp dword [rbp + 0x67], eax
je 0x1400013c8
movabs rax, 0x654948fdb3a3a033
mov qword [rsp + 0x88], rbx
mov qword [rbp + 0x6f], rax
lea rcx, [rbp - 9]
mov rax, qword [rbp + 0x6f]
movabs rbx, 0x92d6691dfc7d45d
mov qword [rbp - 9], rax
movabs rax, 0x616e5910b00d552a
mov qword [rbp + 0x6f], rax
mov rax, qword [rbp + 0x6f]
mov qword [rbp - 1], rax
mov qword [rbp + 0x6f], rbx
mov rax, qword [rbp + 0x6f]
mov qword [rbp + 7], rax
mov qword [rsp + 0x80], rdi
movabs rdi, 0x616e5910b00d5546
mov qword [rbp + 0x6f], rdi
mov rax, qword [rbp + 0x6f]
movdqa xmm0, xmmword [rbp - 9]
mov qword [rbp + 0xf], rax
xorps xmm0, xmmword [rbp + 7]
movdqa xmmword [rbp - 9], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
je 0x1400013d4
movabs rax, 0x405414f4aa96a013
lea rdx, [rbp + 7]
mov qword [rbp + 0x6f], rax
movabs rax, 0x81a387dc2623328
mov rcx, qword [rbp + 0x6f]
mov qword [rbp + 7], rcx
mov qword [rbp + 0x6f], rax
movabs rax, 0x60d4f220e9dfb068
mov rcx, qword [rbp + 0x6f]
mov qword [rbp + 0xf], rcx
mov rcx, r8
mov qword [rbp + 0x6f], rax
mov rax, qword [rbp + 0x6f]
mov qword [rbp + 0x17], rax
movabs rax, 0x59063e8e2afbd7fb
mov qword [rbp + 0x6f], rax
mov rax, qword [rbp + 0x6f]
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x6f], rbx
mov rax, qword [rbp + 0x6f]
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x6f], rdi
mov rax, qword [rbp + 0x6f]
mov qword [rbp + 0x2f], rax
movabs rax, 0x13b1914f9b8fde07
mov qword [rbp + 0x6f], rax
mov rax, qword [rbp + 0x6f]
mov qword [rbp + 0x37], rax
movabs rax, 0x59063e8e2afbd788
mov qword [rbp + 0x6f], rax
mov rax, qword [rbp + 0x6f]
movdqa xmm0, xmmword [rbp + 7]
movdqa xmm1, xmmword [rbp + 0x17]
xorps xmm0, xmmword [rbp + 0x27]
mov qword [rbp + 0x3f], rax
xorps xmm1, xmmword [rbp + 0x37]
movdqa xmmword [rbp + 0x17], xmm1
movdqa xmmword [rbp + 7], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400013d4
mov qword [rbp + 0x77], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [rbp + 0x77]
mov rcx, rax
mov edx, 0x1e
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
call rbx
test eax, eax
js 0x1400013d4
cmp qword [rbp + 0x77], 0
je 0x1400013d4
mov ecx, 0xcafebabe
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0xcafebabe
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x80]
add rsp, 0x90
pop rbp
ret
Function at 0x140004c20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004c6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004c6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004c6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004c6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140004c6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004c6c
xor al, al
add rsp, 0x28
ret
Function at 0x1400c0ee2
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1401128b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1401128d8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x140112922
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1401128cd
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400c25e4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14024a540
mov rax, rcx
neg rcx
test rax, 7
je 0x14024a55d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14024a5b8
test al, 7
jne 0x14024a550
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 0x14024a571
mov rdx, qword [rax - 8]
test dl, dl
je 0x14024a5e2
test dh, dh
je 0x14024a5dc
shr rdx, 0x10
test dl, dl
je 0x14024a5d6
test dh, dh
je 0x14024a5d0
shr rdx, 0x10
test dl, dl
je 0x14024a5ca
test dh, dh
je 0x14024a5c4
shr edx, 0x10
test dl, dl
je 0x14024a5be
test dh, dh
jne 0x14024a571
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 0x1400c2639
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402253f0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140224f70
lea rcx, [rsp + 0x20]
call fcn.140224fc0
movzx eax, al
test eax, eax
jne 0x140225435
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140224fa0
mov rax, qword [rsp + 0x40]
jmp 0x14022552f
lea rcx, [rsp + 0x20]
call fcn.1402250c0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140225060
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400c29d6
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c1f72
lea rcx, [rsp + 0x28]
call fcn.1400c2ec7
movzx eax, al
test eax, eax
jne 0x1402254cf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400c441b
lea rcx, [rsp + 0x20]
call fcn.140224fa0
mov rax, qword [rsp + 0x50]
jmp 0x14022552f
lea rcx, [rsp + 0x20]
call fcn.1402250c0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c541f
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c2913
lea rcx, [rsp + 0x28]
call fcn.1400c5df7
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400c441b
lea rcx, [rsp + 0x20]
call fcn.140224fa0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c2b89
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140167610
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140166f90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016764f
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 [0x1402bf020]
jmp 0x140167659
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c2de6
Capabilities:
Query environment variable

Disassembly:
jmp 0x140225140
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140224f70
lea rcx, [rsp + 0x40]
call fcn.1402250f0
movzx eax, al
test eax, eax
jne 0x140225188
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140224fa0
mov rax, qword [rsp + 0x70]
jmp 0x140225359
lea rcx, [rsp + 0x40]
call fcn.1402250c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140225060
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1402250c0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400c4033
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14022522e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140224fa0
mov rax, qword [rsp + 0x80]
jmp 0x140225359
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c29d6
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c27a6
lea rcx, [rsp + 0x48]
call fcn.1400c2193
movzx eax, al
test eax, eax
jne 0x140225295
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c0d43
lea rcx, [rsp + 0x40]
call fcn.140224fa0
mov rax, qword [rsp + 0x88]
jmp 0x140225359
lea rcx, [rsp + 0x48]
call fcn.1400c32f5
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402250c0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400c4033
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14022532b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c0d43
lea rcx, [rsp + 0x40]
call fcn.140224fa0
mov rax, qword [rsp + 0xa0]
jmp 0x140225359
lea rcx, [rsp + 0x48]
call fcn.1400c275b
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c0d43
lea rcx, [rsp + 0x40]
call fcn.140224fa0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400c2dff
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140167540
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140166f10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140167581
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 [0x1402bf020]
jmp 0x140167587
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400c2ecc
Capabilities:
Get geographical location

Disassembly:
jmp 0x140203d60
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140202c00
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140203dbc
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call fcn.1400c5dd4
jmp 0x140203dde
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c20fd
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400c2ee0
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140232a50
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402a2040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140232a79
jmp 0x140232afe
mov rcx, qword [rbp + 0x30]
call fcn.1400c25e4
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140232a92
jmp 0x140232afe
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140232aaf
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c0f87
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
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.1400c15a4
test eax, eax
jne 0x140232afe
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c28f0
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400c3629
Capabilities:
Create process on windows

Disassembly:
jmp 0x1402369b0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400c1f22
lea rcx, [rsp + 0xb8]
call fcn.1400c1f22
lea rcx, [rsp + 0x88]
call fcn.1400c1f22
call fcn.1400c2d69
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400c1bee
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140236a52
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400c2495
lea rcx, [rsp + 0xb8]
call fcn.1400c2495
lea rcx, [rsp + 0xe8]
call fcn.1400c2495
mov eax, dword [rsp + 0x54]
jmp 0x140236bf8
call fcn.1400c2d69
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400c1bee
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140236ab2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400c2495
lea rcx, [rsp + 0xb8]
call fcn.1400c2495
lea rcx, [rsp + 0xe8]
call fcn.1400c2495
mov eax, dword [rsp + 0x5c]
jmp 0x140236bf8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x140236b38
call fcn.1400c2d69
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400c1bee
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140236b26
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400c2495
lea rcx, [rsp + 0xb8]
call fcn.1400c2495
lea rcx, [rsp + 0xe8]
call fcn.1400c2495
mov eax, dword [rsp + 0x64]
jmp 0x140236bf8
lea rcx, [rsp + 0x88]
call fcn.1400c1e41
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400c1e41
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400c1e41
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400c2495
lea rcx, [rsp + 0xb8]
call fcn.1400c2495
lea rcx, [rsp + 0xe8]
call fcn.1400c2495
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400c36e7
Capabilities:
Set environment variable

Disassembly:
jmp 0x140227260
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400c3a43
Capabilities:
Parse pe header

Disassembly:
jmp 0x140145b10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140145b30
xor al, al
jmp 0x140145bb1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140145b43
xor al, al
jmp 0x140145bb1
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 0x140145b6d
xor al, al
jmp 0x140145bb1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140145b81
xor al, al
jmp 0x140145bb1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140145b93
xor al, al
jmp 0x140145bb1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140145baf
xor al, al
jmp 0x140145bb1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400c42fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140168910
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 0x14016893e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400c4ef7
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 0x1400c4f74
Capabilities:
Print debug messages

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

Disassembly:
jmp 0x140167680
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140166fd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401676c9
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 [0x1402bf020]
jmp 0x1401676d8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c51ef
Capabilities:
Set environment variable

Disassembly:
jmp 0x14023ee50
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400c1f22
lea rcx, [rsp + 0x48]
call fcn.1400c1f22
call fcn.1400c2d69
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c1bee
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14023eebf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2495
lea rcx, [rsp + 0x78]
call fcn.1400c2495
mov eax, dword [rsp + 0x24]
jmp 0x14023ef50
call fcn.1400c2d69
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c1bee
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14023ef06
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2495
lea rcx, [rsp + 0x78]
call fcn.1400c2495
mov eax, dword [rsp + 0x2c]
jmp 0x14023ef50
lea rcx, [rsp + 0x48]
call fcn.1400c1e41
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400c1e41
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400c2495
lea rcx, [rsp + 0x78]
call fcn.1400c2495
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1401e5260
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1401e5288
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.1401e5400
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14020b4a0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c0f87
sub rsp, rax
mov rax, qword [0x1402a2040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402a6c10]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14020b69a
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14020b5e6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14020b5e6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14020b5cb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14020b568
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14020b65a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14020b6b9
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x14020b695
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14020b6b9
jmp 0x14020b53e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c28f0
add rsp, 0x1498
pop rdi
pop rsi
ret