joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010506
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
lea rcx, [0x14004c030]
call fcn.140009cef
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140010539
cmp qword [rax + 8], 0
je 0x140010539
add rax, 0x10
jmp 0x1400105f8
lea rbx, [0x14004c030]
mov rcx, rbx
call fcn.140009cef
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400105f6
mov rdi, rax
test rax, rax
jne 0x14001058d
mov ecx, 0x28
mov edx, 8
call fcn.14000ca01
mov rdi, rax
mov qword [rax], rbx
and qword [rax + 8], 0
mov rcx, rbx
call fcn.140009cef
mov ecx, eax
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x1400105bf
mov rax, qword [rsi]
and qword [rsi], 0
test rax, rax
je 0x1400105bf
mov r9, qword [rsi + 8]
mov r8b, byte [rsi + 0x10]
mov dl, byte [rsi + 0x11]
movzx eax, word [rsi + 0x16]
mov word [rsp + 0x2c], ax
mov eax, dword [rsi + 0x12]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsi + 0x18]
jmp 0x1400105c9
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], r9
mov byte [rdi + 0x18], r8b
mov byte [rdi + 0x19], dl
mov edx, dword [rsp + 0x28]
mov dword [rdi + 0x1a], edx
movzx edx, word [rsp + 0x2c]
mov word [rdi + 0x1e], dx
mov qword [rdi + 0x20], rcx
jmp 0x1400105f8
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140010600
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, ecx
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x10
mov rdi, qword [rdi]
movzx edx, word [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
call fcn.1400106f0
cmp eax, 0x1edab0ed
jne 0x140010628
mov r14, qword [rdi + 0x30]
movsxd rax, dword [r14 + 0x3c]
mov eax, dword [rax + r14 + 0x88]
test rax, rax
je 0x1400106c1
mov edi, dword [rax + r14 + 0x18]
mov ecx, dword [rax + r14 + 0x1c]
add rcx, r14
mov qword [rsp + 0x20], rcx
mov r12d, dword [rax + r14 + 0x20]
add r12, r14
mov r13d, dword [rax + r14 + 0x24]
add r13, r14
xor ebx, ebx
xor r15d, r15d
cmp r15, rdi
je 0x1400106c3
mov rbp, r15
mov ecx, dword [r12 + r15*4]
add rcx, r14
mov rdx, 0xffffffffffffffff
cmp byte [rcx + rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x140010691
lea r15, [rbp + 1]
call fcn.1400106f0
cmp eax, esi
jne 0x14001067b
movzx ecx, word [r13 + rbp*2]
cmp rdi, rcx
jbe 0x1400106df
mov rax, qword [rsp + 0x20]
mov ebx, dword [rax + rcx*4]
add rbx, r14
jmp 0x1400106c3
xor ebx, ebx
movzx eax, word [rbx + 4]
add rbx, 0x12
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Usersz0x.cargogitcheckouts_rust_syscalls_68f3d3f4128be087162451a_src_syscall_resolve.rs
mov rdx, rdi
call fcn.140004860
ud2
Function at 0x1400106f0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
xor r8d, r8d
cmp r8, rdx
jae 0x14001072c
mov r9b, byte [rcx + r8]
test r9b, r9b
jne 0x14001070b
inc r8
jmp 0x1400106f8
lea r10d, [r9 - 0x20]
cmp r9b, 0x61
movzx r9d, r9b
movzx r10d, r10b
cmovb r10d, r9d
imul r9d, eax, 0x21
movzx eax, r10b
add eax, r9d
jmp 0x140010706
ret
Function at 0x1400151f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14001524b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001524b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140015266
cmp eax, 0x42
jne 0x14001524b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140015316
cmp byte [r9 + r11], 0x5f
jne 0x140015316
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001537e
mov rcx, rsi
xor edx, edx
call fcn.140010940
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140010940
test al, al
jne 0x140015411
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400152a2
lea rdx, [0x140052283]
mov r8d, 1
call fcn.140005190
test al, al
jne 0x140015411
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001525a
xor r14d, r14d
lea rbx, [0x140052638]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400152d4
cmp byte [rax + rcx], 0x45
je 0x140015433
sub r14, 1
jb 0x1400152f9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400152f9
mov r8d, 2
mov rdx, rbx
call fcn.140005190
test al, al
jne 0x140015411
mov rcx, rsi
call fcn.140012200
test al, al
jne 0x140015411
mov rax, qword [rsi]
test rax, rax
jne 0x1400152c0
jmp 0x14001525a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400153d8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140015372
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001535c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001534b
add dl, 0xa9
jmp 0x14001535a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400153d8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400153d8
movzx edx, bl
add rax, rdx
jae 0x140015320
jmp 0x1400153d8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400153d8
cmp rax, rcx
jae 0x1400153d5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001542b
cmp qword [rsi + 0x20], 0
je 0x140015424
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.1400151f0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001525c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140015419
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400525f8]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140005190
test al, al
je 0x140015419
mov dil, 2
jmp 0x14001525a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001525a
mov dil, 1
xor r8d, r8d
jmp 0x1400153da
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001525a
Function at 0x1400188c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14004c0c0]
test ecx, ecx
je 0x14001899f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400188f4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400188f4
add rdi, 0x10
jmp 0x140018995
mov ecx, dword [0x14004c0c0]
test ecx, ecx
je 0x1400189b2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140018993
mov rsi, rax
test rax, rax
jne 0x140018963
movzx eax, byte [0x14005d198]
mov ecx, 0x20
mov edx, 8
call fcn.1400034d0
test rax, rax
je 0x1400189d5
mov rsi, rax
lea rax, [0x14004c0a8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004c0c0]
test ecx, ecx
je 0x1400189c5
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x140018995
test rcx, rcx
je 0x140018995
lock dec qword [rcx]
jne 0x140018995
call fcn.140018a00
jmp 0x140018995
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14004c0a8]
call fcn.140018c20
mov ecx, eax
jmp 0x1400188d6
lea rcx, [0x14004c0a8]
call fcn.140018c20
mov ecx, eax
jmp 0x140018904
lea rcx, [0x14004c0a8]
call fcn.140018c20
mov ecx, eax
jmp 0x14001895b
mov ecx, 8
mov edx, 0x20
call fcn.140003aa0
ud2
Function at 0x140018c20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140018c9e
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140018cdf
cmp dword [rsp + 0x2c], 0
je 0x140018cc3
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140018cf9
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14005d118]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14005d118], rsi
jne 0x140018c80
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140018cd5
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140018d45
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140018cc8
mov edi, dword [rsp + 0x28]
jmp 0x140018cd5
mov edi, dword [rsi + 0x18]
jmp 0x140018cd3
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140018d80
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_threadlocal.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140004800
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_threadlocal.rs
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140018df0
ud2
Function at 0x1400190d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400192f6
mov byte [rsp + 0x37], 0
mov rax, qword [0x14005d0b0]
cmp rax, 3
jne 0x1400192a2
cmp byte [rsp + 0x37], 0
jne 0x1400192b7
mov ecx, dword [0x14004c0e0]
test ecx, ecx
je 0x1400192bd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001912d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400191c9
mov ecx, dword [0x14004c0e0]
test ecx, ecx
je 0x1400192d0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001917b
mov rsi, rax
cmp rax, 1
jne 0x1400191c3
lea rax, str.library_std_src_threadlocal.rs
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_std_src_threadlocal.rs
lea r9, [0x140052e98]
lea r8, [rsp + 0x38]
mov edx, 0x46
call fcn.140005f00
ud2
movzx eax, byte [0x14005d198]
mov ecx, 0x10
mov edx, 8
call fcn.1400034d0
test rax, rax
je 0x14001933b
mov rsi, rax
lea rax, [0x14004c0c8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14004c0e0]
test ecx, ecx
je 0x1400192e3
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x14005d078]
cmp rax, rsi
jne 0x1400191fd
mov eax, dword [0x14005d0a8]
inc eax
jne 0x14001921d
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x140053ff0]
mov edx, 0x26
call fcn.140006180
ud2
lea rcx, [0x14005d070]
call sub.KERNEL32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1400192b7
mov qword [0x14005d078], rsi
mov eax, 1
mov dword [0x14005d0a8], eax
mov qword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x56], 0
cmp qword [0x14005d080], 0
jne 0x140019310
mov qword [0x14005d080], 0xffffffffffffffff
lea rcx, [0x14005d088]
call fcn.140019430
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [0x14005d098], xmm1
movups xmmword [0x14005d088], xmm0
inc qword [0x14005d080]
dec dword [0x14005d0a8]
jne 0x1400192b7
mov qword [0x14005d078], 0
lea rcx, [0x14005d070]
call fcn.14004a12c
jmp 0x1400192b7
lea rcx, [rsp + 0x37]
call fcn.1400193a0
cmp byte [rsp + 0x37], 0
je 0x140019105
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14004c0c8]
call fcn.140018c20
mov ecx, eax
jmp 0x140019115
lea rcx, [0x14004c0c8]
call fcn.140018c20
mov ecx, eax
jmp 0x14001913d
lea rcx, [0x14004c0c8]
call fcn.140018c20
mov ecx, eax
jmp 0x1400191bb
lea rcx, [0x140055b23]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.1400054d0
ud2
lea rax, [0x140053b20]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, [0x140052eb8]
lea r8, [rsp + 0x38]
mov edx, 0x10
call fcn.140005f00
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140003aa0
ud2
Function at 0x14001a860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14004c0a0]
test ecx, ecx
je 0x14001a91d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001a890
cmp qword [rax + 8], 0
je 0x14001a890
add rax, 0x10
jmp 0x14001a917
mov ecx, dword [0x14004c0a0]
test ecx, ecx
je 0x14001a930
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001a915
mov rsi, rax
test rax, rax
jne 0x14001a8fb
movzx eax, byte [0x14005d198]
mov ecx, 0x20
mov edx, 8
call fcn.1400034d0
test rax, rax
je 0x14001a953
mov rsi, rax
lea rax, [0x14004c088]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004c0a0]
test ecx, ecx
je 0x14001a943
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x14001a917
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14004c088]
call fcn.140018c20
mov ecx, eax
jmp 0x14001a875
lea rcx, [0x14004c088]
call fcn.140018c20
mov ecx, eax
jmp 0x14001a8a0
lea rcx, [0x14004c088]
call fcn.140018c20
mov ecx, eax
jmp 0x14001a8f3
mov ecx, 8
mov edx, 0x20
call fcn.140003aa0
ud2
Function at 0x14001d9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14001d9f0
test ecx, ecx
jne 0x14001da40
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001d9fc
test ecx, ecx
jne 0x14001da40
mov rcx, rdi
call fcn.14001d8a0
movzx eax, al
test bpl, bpl
jne 0x14001da47
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14001da33.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14001dbb8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14001da33.2
xor eax, eax
test bpl, bpl
je 0x14001da0c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14001db99
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001da7a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14001daf9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14001dac0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14001dadb
inc rax
dec rdi
cmp rax, 1
jne 0x14001daa0
jmp 0x14001daf9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14001dadb
cmp ebx, 0x5c
je 0x14001dadb
inc rax
dec rdi
cmp rax, 1
jne 0x14001dac0
jmp 0x14001daf9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14001dba7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14001db23
mov al, 9
cmp rdx, 2
je 0x14001db27
cmp rdx, 1
jne 0x14001db37
cmp byte [r8], 0x2e
jne 0x14001db37
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14001db37
mov al, 0xa
jmp 0x14001db37
cmp byte [r8], 0x2e
jne 0x14001db37
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14001da33.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14001da33.2
mov ecx, 2
jmp case.0x14001da33.2
lea r8, [0x140053dd0]
call fcn.140005090
ud2
lea r8, [0x140053de8]
call fcn.140005090
ud2
Function at 0x1400399c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14004c100]
test ecx, ecx
je 0x140039aa0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400399f4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400399f4
add rdi, 0x10
jmp 0x140039a96
mov ecx, dword [0x14004c100]
test ecx, ecx
je 0x140039ab3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140039a94
mov rsi, rax
test rax, rax
jne 0x140039a63
movzx eax, byte [0x14005d198]
mov ecx, 0x18
mov edx, 8
call fcn.1400034d0
test rax, rax
je 0x140039ad6
mov rsi, rax
lea rax, [0x14004c0e8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004c100]
test ecx, ecx
je 0x140039ac6
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140039a96
test rcx, rcx
je 0x140039a96
lock dec qword [rcx]
jne 0x140039a96
call fcn.140039af0
jmp 0x140039a96
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14004c0e8]
call fcn.140018c20
mov ecx, eax
jmp 0x1400399d6
lea rcx, [0x14004c0e8]
call fcn.140018c20
mov ecx, eax
jmp 0x140039a04
lea rcx, [0x14004c0e8]
call fcn.140018c20
mov ecx, eax
jmp 0x140039a5b
mov ecx, 8
mov edx, 0x18
call fcn.140003aa0
ud2

Function at 0x14003a320
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14003a356
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x140038a00]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140004800
ud2
Function at 0x14004029a
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x140040333
mov rdi, rax
movsxd r12, dword [rsp + 0x2c]
lea rbx, [rsp + 0x30]
mov qword [rbx], 8
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x140040318
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14003fb55
mov rcx, rbx
mov rdx, r14
call fcn.1400405ae
add r13, 8
jmp 0x1400402e8
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x10], rax
jmp 0x140040341
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140048923
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x14004c120]
test ecx, ecx
je 0x140048a33
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14004895e
cmp qword [rax + 8], 0
je 0x14004895e
mov rcx, rax
add rcx, 0x10
mov rax, qword [rax + 0x10]
jmp 0x140048a14
mov ecx, dword [0x14004c120]
test ecx, ecx
je 0x140048a46
dec ecx
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
cmp rax, 1
je 0x140048a29
test rdi, rdi
jne 0x1400489cd
mov al, byte [0x14005d198]
mov ecx, 0x20
mov edx, 8
call fcn.1400034d0
test rax, rax
je 0x140048a6c
mov rdi, rax
lea rax, [0x14004c108]
mov qword [rdi], rax
and qword [rdi + 8], 0
mov ecx, dword [0x14004c120]
test ecx, ecx
je 0x140048a59
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400489fb
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140048a00
call fcn.14003a320
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
mov rdx, qword [rcx + 8]
lea r8, [rax + 1]
mov qword [rcx], r8
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rdx
xor edi, edi
mov qword [rsi], rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x14004c108]
call fcn.140018c20
mov ecx, eax
jmp 0x14004893c
lea rcx, [0x14004c108]
call fcn.140018c20
mov ecx, eax
jmp 0x14004896e
lea rcx, [0x14004c108]
call fcn.140018c20
mov ecx, eax
jmp 0x1400489c5
mov ecx, 8
mov edx, 0x20
call fcn.140003aa0
ud2
Function at 0x140049890
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x140049954
lea rcx, [0x140055e62]
call sub.OLEAUT32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.OLEAUT32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
and qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.OLEAUT32.dll_SysFreeString
mov rcx, r14
call sub.OLEAUT32.dll_SysFreeString
test ebp, ebp
js 0x140049954
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.1400448f8
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x140049963
mov qword [rdi], 2
mov rcx, rsi
call fcn.14004487c
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14004ad80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14004bc10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14004bc10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]