joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401006c0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140100560
call fcn.1400f91a0
mov dword [rax], 0x16
call fcn.1400fd060
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140100548
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140100548
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140100592
lock or dword [rax + 0x14], 0x10
jmp 0x140100548
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401005af
mov rcx, qword [rbp + 0x10]
call fcn.140104f30
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400fa76c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400f7fc4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140100606
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140100548
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140100672
mov rcx, qword [rbp + 0x10]
call fcn.1400fa76c
cmp eax, 0xffffffff
je 0x140100659
mov rcx, qword [rbp + 0x10]
call fcn.1400fa76c
cmp eax, 0xfffffffe
je 0x140100659
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400fa76c
movsxd rdi, eax
lea rsi, [0x1401dd5d0]
mov rcx, rbx
sar rdi, 6
call fcn.1400fa76c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140100660
lea rax, [0x14013f6a0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140100672
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401006a8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401006a4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401006a4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14010054b
jmp 0x140100518
Function at 0x1400c2f91
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14011b040
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14011b068
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14011b0b2
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 0x14011b05d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400c4797
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140182760
mov rax, rcx
neg rcx
test rax, 7
je 0x14018277d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401827d8
test al, 7
jne 0x140182770
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 0x140182791
mov rdx, qword [rax - 8]
test dl, dl
je 0x140182802
test dh, dh
je 0x1401827fc
shr rdx, 0x10
test dl, dl
je 0x1401827f6
test dh, dh
je 0x1401827f0
shr rdx, 0x10
test dl, dl
je 0x1401827ea
test dh, dh
je 0x1401827e4
shr edx, 0x10
test dl, dl
je 0x1401827de
test dh, dh
jne 0x140182791
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 0x1400c47dd
Capabilities:
Query environment variable

Disassembly:
jmp 0x14022b230
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14022adb0
lea rcx, [rsp + 0x20]
call fcn.14022ae00
movzx eax, al
test eax, eax
jne 0x14022b275
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14022ade0
mov rax, qword [rsp + 0x40]
jmp 0x14022b36f
lea rcx, [rsp + 0x20]
call fcn.14022af00
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14022aea0
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.1400c4b98
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c40b7
lea rcx, [rsp + 0x28]
call fcn.1400c50b6
movzx eax, al
test eax, eax
jne 0x14022b30f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400c6687
lea rcx, [rsp + 0x20]
call fcn.14022ade0
mov rax, qword [rsp + 0x50]
jmp 0x14022b36f
lea rcx, [rsp + 0x20]
call fcn.14022af00
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c76f9
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.1400c4ad0
lea rcx, [rsp + 0x28]
call fcn.1400c8121
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400c6687
lea rcx, [rsp + 0x20]
call fcn.14022ade0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c4d5f
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14016ef60
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14016e8e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016ef9f
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 [0x1402ca020]
jmp 0x14016efa9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c4fd0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14022af80
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14022adb0
lea rcx, [rsp + 0x40]
call fcn.14022af30
movzx eax, al
test eax, eax
jne 0x14022afc8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14022ade0
mov rax, qword [rsp + 0x70]
jmp 0x14022b199
lea rcx, [rsp + 0x40]
call fcn.14022af00
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14022aea0
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.14022af00
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.1400c6290
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14022b06e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14022ade0
mov rax, qword [rsp + 0x80]
jmp 0x14022b199
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c4b98
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c4963
lea rcx, [rsp + 0x48]
call fcn.1400c4300
movzx eax, al
test eax, eax
jne 0x14022b0d5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2ded
lea rcx, [rsp + 0x40]
call fcn.14022ade0
mov rax, qword [rsp + 0x88]
jmp 0x14022b199
lea rcx, [rsp + 0x48]
call fcn.1400c5516
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14022af00
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.1400c6290
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14022b16b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2ded
lea rcx, [rsp + 0x40]
call fcn.14022ade0
mov rax, qword [rsp + 0xa0]
jmp 0x14022b199
lea rcx, [rsp + 0x48]
call fcn.1400c490e
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c2ded
lea rcx, [rsp + 0x40]
call fcn.14022ade0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400c4fe9
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14016ee90
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14016e860
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016eed1
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 [0x1402ca020]
jmp 0x14016eed7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400c50bb
Capabilities:
Get geographical location

Disassembly:
jmp 0x14020b4b0
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.14020a3e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14020b517
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
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 qword [0x1402ca030]
jmp 0x14020b539
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c425b
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 0x1400c50cf
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1402382e0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402ac080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140238306
jmp 0x140238383
mov rcx, qword [rbp + 0x30]
call fcn.1400c4797
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14023831f
jmp 0x140238383
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14023833c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c303b
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.1400c3699
test eax, eax
jne 0x140238383
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c4aad
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400c584f
Capabilities:
Create process on windows

Disassembly:
jmp 0x14023c280
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.1400c4062
lea rcx, [rsp + 0xb8]
call fcn.1400c4062
lea rcx, [rsp + 0x88]
call fcn.1400c4062
call fcn.1400c4f3f
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400c3d15
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14023c322
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400c462f
lea rcx, [rsp + 0xb8]
call fcn.1400c462f
lea rcx, [rsp + 0xe8]
call fcn.1400c462f
mov eax, dword [rsp + 0x54]
jmp 0x14023c4c8
call fcn.1400c4f3f
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400c3d15
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14023c382
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400c462f
lea rcx, [rsp + 0xb8]
call fcn.1400c462f
lea rcx, [rsp + 0xe8]
call fcn.1400c462f
mov eax, dword [rsp + 0x5c]
jmp 0x14023c4c8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14023c408
call fcn.1400c4f3f
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400c3d15
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14023c3f6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400c462f
lea rcx, [rsp + 0xb8]
call fcn.1400c462f
lea rcx, [rsp + 0xe8]
call fcn.1400c462f
mov eax, dword [rsp + 0x64]
jmp 0x14023c4c8
lea rcx, [rsp + 0x88]
call fcn.1400c3f86
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400c3f86
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400c3f86
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.1400c462f
lea rcx, [rsp + 0xb8]
call fcn.1400c462f
lea rcx, [rsp + 0xe8]
call fcn.1400c462f
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400c5917
Capabilities:
Set environment variable

Disassembly:
jmp 0x14022d0a0
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 0x1400c5c8c
Capabilities:
Parse pe header

Disassembly:
jmp 0x14014d440
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14014d460
xor al, al
jmp 0x14014d4e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14014d473
xor al, al
jmp 0x14014d4e1
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 0x14014d49d
xor al, al
jmp 0x14014d4e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14014d4b1
xor al, al
jmp 0x14014d4e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14014d4c3
xor al, al
jmp 0x14014d4e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14014d4df
xor al, al
jmp 0x14014d4e1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400c656f
Capabilities:
Terminate process

Disassembly:
jmp 0x140170250
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 0x14017027e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400c71a9
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 0x1400c7230
Capabilities:
Print debug messages

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

Disassembly:
jmp 0x14016efd0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14016e920
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14016f019
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 [0x1402ca020]
jmp 0x14016f028
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c74c4
Capabilities:
Set environment variable

Disassembly:
jmp 0x140245180
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400c4062
lea rcx, [rsp + 0x48]
call fcn.1400c4062
call fcn.1400c4f3f
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c3d15
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402451ef
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c462f
lea rcx, [rsp + 0x78]
call fcn.1400c462f
mov eax, dword [rsp + 0x24]
jmp 0x140245280
call fcn.1400c4f3f
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c3d15
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140245236
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c462f
lea rcx, [rsp + 0x78]
call fcn.1400c462f
mov eax, dword [rsp + 0x2c]
jmp 0x140245280
lea rcx, [rsp + 0x48]
call fcn.1400c3f86
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400c3f86
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.1400c462f
lea rcx, [rsp + 0x78]
call fcn.1400c462f
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400c775d
Capabilities:
Create thread

Disassembly:
jmp 0x140183940
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x14018396c
mov dword [rsp + 0x30], 1
jmp 0x140183974
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1401839bd
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x1402634b8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0xc8
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.1400c2a3c
cmp eax, 1
jne 0x1401839bd
int3
cmp dword [rsp + 0x34], 0
jne 0x1401839ff
call fcn.1400c3fbd
mov dword [rax], 0x16
mov qword [rsp + 0x20], 0
mov r9d, 0xc8
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.1400c6baa
xor eax, eax
jmp 0x140183aff
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.140183430
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140183230
lea rcx, [rsp + 0x40]
call fcn.1401832a0
movzx eax, al
test eax, eax
jne 0x140183a4f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140183280
mov rax, qword [rsp + 0x50]
jmp 0x140183aff
lea rcx, [rsp + 0x40]
call fcn.1401835e0
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x140182fe0]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140183ac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c39d2
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.140183280
mov rax, qword [rsp + 0x58]
jmp 0x140183aff
cmp qword [rsp + 0xa8], 0
je 0x140183adc
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.1401835a0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140183280
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x1400e4020
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1402c90fa]
call fcn.1400c7802
mov dword [rbp + 4], 0
jmp 0x1400e404c
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x3e8
jg 0x1400e407a
mov ecx, dword [rbp + 4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400e4078
xor r9d, r9d
mov r8d, 2
xor edx, edx
movzx ecx, byte [rbp + 4]
call qword [sym.imp.USER32.dll_keybd_event]
jmp 0x1400e4044
xor eax, eax
cmp eax, 1
je 0x1400e40d2
mov dword [rbp + 0x24], 0
jmp 0x1400e4092
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0x3e8
jg 0x1400e40c5
mov ecx, dword [rbp + 0x24]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x1400e40c3
xor r9d, r9d
mov r8d, 2
xor edx, edx
movzx ecx, byte [rbp + 0x24]
call qword [sym.imp.USER32.dll_keybd_event]
mov eax, dword [rbp + 0x24]
jmp 0x1400e40d2
jmp 0x1400e408a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400e407a
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140212900
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.1400c303b
sub rsp, rax
mov rax, qword [0x1402ac080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402b1370]
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 0x140212af2
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 0x140212a46
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140212a46
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 0x140212a2b
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 0x1402129c8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140212ab2
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 0x140212b11
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140212aed
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 0x140212b11
jmp 0x14021299e
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.1400c4aad
add rsp, 0x1498
pop rdi
pop rsi
ret