joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004d530
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x18004d591
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x18004d550
mov ecx, dword [r9]
jmp 0x18004d67b
cmp ecx, 0x4e0
jb 0x18004d67b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18004d5b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18004d600
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140130b7e
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x3a8], r10
xchg r10, r12
lea r8, [rbp + 0xd0]
mov qword [rbp + 0xd0], r13
lea rdx, [rsp + 0x48]
je 0x1401308ff
jne 0x1401308ff
jge 0x14013038d
jmp rcx
jmp 0x140130aa4
retf 0xc641
call rdi
test eax, eax
jne 0x140133956
add byte [rax], al
mov r9d, 0x8000
xchg r12, r10
jne 0x140130a10
je 0x140130a10
add edi, 0xc6fc6ec0
lea r8d, [rdi + 0xb500]
jbe 0x140130974
pushf
jmp rax
jmp 0x1401308a3
mov rcx, 0xffffffffffffffff
call r15
jmp 0x140130b3e
add cl, ch
movabs al, byte [0x3345d6ff41000002]
leave
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x140130b77
call rbx
xchg rcx, rbp
mov rbp, qword [rsp + 0x30]
xchg rbp, rcx
jmp 0x1401309df
mov eax, 0xffffffff
jmp 0x140133370

Function at 0x140131a95
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
lea eax, [rbx + rdx*4]
sub al, 0x44
lea eax, [rdx - 0x5eb2]
invalid
add byte [rcx - 0x79], cl
cmc
mov bh, 0x26
invalid
and al, 0x45
or ecx, dword [rbx]
jmp r9
invalid
invalid
nop
test r15d, 0x4018cc88
and r9d, 0xc008522a
jmp 0x140131ab9
add dword [rax], eax
add byte [rax + 0x3b], cl
xlatb
test r13, rbp
push r11
popfq
pause
xor r9d, 0x271b65d9
sub r9d, 0xdddf135a
lea esi, [rbx + 0xde35]
je 0x140131b10
jne 0x140131b10
xor ecx, 0x86b98f66
cmp r13, rbx
rol r8d, 0x49
and r11d, 0xd81fcf68
rcl r11d, 0x89
cmp r15, rcx
xor ebp, 0xf4caedf3
rcl esi, 0xf0
pushf
rcr ebp, 0x4f
call rax
lea r13d, [rcx + 0xa912]
rol edi, 0x4e
movabs r15, 0x78164b3b53de52eb
jmp rcx
jmp 0x140131b64
lea ecx, [rbx + 0x2574]
rol r8d, 0x77
jp 0x14013021e
lea esi, [rcx + 0x6f5f]
call rax
jmp rax
call rcx
or r15d, 0xb522aac
call rcx
div r11
push rdx
je 0x140131c34
jne 0x140131c34
ret
jmp 0x1401321c7
lea ecx, [rbp + 0x5c1a]
jns 0x140130f7a
mov esi, dword [rbx + 0xc]
mov r9d, 0x40
cmovae eax, dword [rbx + 0x10]
mov rcx, 0xffffffffffffffff
mov r14d, eax
lea rax, [0x140000000]
jmp 0x140132106
mov eax, dword [rbx + 0x24]
test eax, eax
js 0x14013220c
test al, 0x40
jmp 0x140131e87
out dx, al
cmc
inc r9
div rsi
or ebx, 0x641a2087
lea r9d, [rbp - 0xb3c1]
and byte [rdx], bl
lea r9d, fs:[rbp - 0xb3c1]
jmp 0x1401320ab
syscall
lea edi, [rbp + 0xa3a2]
test r13d, 0x2e3234b0
jns 0x1401311ce
ror r8d, 2
invalid
invalid

Function at 0x140133960
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
xchg r9, rdx
mov qword [rsp + 0x20], rdx
xchg rdx, r9
xchg r8, rcx
mov qword [rsp + 0x18], rcx
jmp 0x1401339eb
mov dword [rsp + 8], 0
xchg r13, rax
mov r13, qword [rsp + 0x30]
xchg r13, rax
sub rsp, 0x28
lea rax, [0x140133c70]
xchg rsi, rax
mov qword [rsp + 0x18], rsi
xchg rsi, rax
je 0x1401339bf
jne 0x1401339bf
rcl r13d, 0x7c
test esi, 0x98a3db6d
int3
jmp 0x140133978
xchg r8, rcx
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
jmp 0x140133993
Function at 0x2fc4e8b20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4e9be0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4e9522
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc50e108]
test eax, eax
je 0x2fc4e95ba
lea rax, [0x2fc50e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc50e110]
mov qword [rbp - 8], rax
jmp 0x2fc4e959e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4e9592
cmp qword [rbp - 0x10], 0
je 0x2fc4e9592
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4e9558
lea rax, [0x2fc50e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4e95bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4e96c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4e96e8
mov eax, 0
jmp 0x2fc4e9736
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4e9711
mov eax, 0
jmp 0x2fc4e9736
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4e9731
mov eax, 0
jmp 0x2fc4e9736
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4e973c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4e97ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4e97b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4e97b1
mov rax, qword [rbp - 8]
jmp 0x2fc4e97cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4e9784
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800021c0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x1800021f2
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x1800021f2
nop word cs:[rax + rax]
jmp 0x1800021f0
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
mov edx, dword [0x180020a9c]
lea edi, [rdx - 1]
imul edi, edx
test dil, 1
sete dl
cmp dword [0x180020aa0], 0xa
setl r9b
mov r14, qword [rbx + 0x10]
lea r10, [rbx + 0x10]
cmp r14, r10
je 0x1800022e8
or r8b, al
or r9b, dl
lea r11, [rcx - 1]
xor eax, eax
mov rsi, r11
test r8b, r8b
je 0x1800022d0
nop
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002260
test r9b, r9b
je 0x1800022e0
sub rsi, rcx
je 0x1800022e2
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop word [rax + rax]
movzx edx, word [r15 + rbx*2]
movsx r13d, byte [rcx + rbx]
lea r12d, [rdx - 0x41]
lea ebp, [rdx + 0x20]
cmp r12w, 0x1a
cmovae ebp, edx
lea r12d, [r13 - 0x41]
lea edi, [r13 + 0x20]
cmp r12b, 0x1a
cmovae edi, r13d
cmp ebp, edi
jne 0x1800022bd
test dx, dx
je 0x1800022e2
add rbx, 1
cmp rsi, rbx
jne 0x180002280
jmp 0x1800022e2
mov r14, qword [r14]
cmp r14, r10
jne 0x180002257
jmp 0x1800022ea
jmp 0x1800022d0
jmp 0x1800022e0
mov rax, qword [r14 + 0x30]
jmp 0x1800022ea
xor eax, eax
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1800023f0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r9b
or r9b, al
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r14b
or r14b, al
lea r11, [rcx - 1]
mov r15, r10
mov r15, qword [r15]
cmp r15, r10
je 0x180002532
test r9b, r9b
je 0x180002510
mov rsi, r11
test r8b, r8b
je 0x180002520
nop word cs:[rax + rax]
nop
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800024a0
sub rsi, rcx
je 0x180002542
test r14b, r14b
je 0x180002530
mov r12, qword [r15 + 0x60]
xor ebx, ebx
nop
movzx edx, word [r12 + rbx*2]
lea eax, [rdx - 0x41]
lea ebp, [rdx + 0x20]
cmp ax, 0x1a
cmovae ebp, edx
movsx eax, byte [rcx + rbx]
lea r13d, [rax - 0x41]
lea edi, [rax + 0x20]
cmp r13b, 0x1a
cmovae edi, eax
sub ebp, edi
test edx, edx
je 0x180002500
test ebp, ebp
jne 0x180002500
add rbx, 1
cmp rsi, rbx
jne 0x1800024c0
jmp 0x180002547
test ebp, ebp
jne 0x180002474
jmp 0x180002547
jmp 0x180002510
jmp 0x180002520
jmp 0x180002530
test r9b, r9b
je 0x180002540
xor eax, eax
jmp 0x180002550
jmp 0x180002540
test r14b, r14b
je 0x180002570
test r9b, r9b
je 0x180002560
mov rax, qword [r15 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002560
jmp 0x180002570
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400f4a20]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400f4a30]
mov dword [rax], 1
mov rax, qword [0x1400f4a40]
mov dword [rax], 1
mov rax, qword [0x1400f49a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400f4a10]
mov dword [0x14010700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400f4af0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400f4ad0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400f4980]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140002920
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140002937
dec ecx
jmp 0x140002941
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov edx, 1
call fcn.140099acc
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000296f
dec qword [rcx]
jne 0x14000296f
dec qword [rcx + 8]
jne 0x14000296f
mov edx, 0x170
mov r8d, 0x10
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14000298d
dec ecx
jmp 0x140002997
mov rcx, rsi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.140099acc
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140002b00
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rdx
mov rdi, rcx
add rcx, 0x48
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x20
call sym.__rand_core::os::OsRng_as_rand_core::RngCore_::try_fill_bytes::ha0d3cbf8336a9e8a
test rax, rax
je 0x140002b5a
mov rbx, rax
mov r14, rdx
mov rcx, rax
call qword [rdx]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x140002bb2
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
jmp 0x140002bb2
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x70]
lea r8, [0x1400ce888]
lea rdx, [rsp + 0x40]
mov r9d, 8
call sym.rand_chacha::guts::init_chacha::hf27faf510c4e9dff
mov rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmm2, xmmword [rsp + 0x90]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi + 0x20], xmm2
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.rand_chacha::guts::refill_wide::he9b59130886949ef
Function at 0x140002c10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140002c40
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140002c55
cmp qword [rax + 8], 0
je 0x140002c55
add rax, 8
jmp 0x140002cda
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140002c30
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140002cc3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140002cd8
test rax, rax
jne 0x140002cae
mov rax, qword [0x1400f4a88]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140002cf3
mov qword [rax], rdi
mov qword [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140002ce1
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.140099acc
mov rax, rdi
add rax, 8
mov rcx, rax
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sym.std::sys::thread_local::lazy::LazyKeyInner_T_::initialize::hc3b1028f32f6bd66
mov rcx, rdi
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140002c69
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x140002ca0
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
int3
Function at 0x1400064b0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x140006516
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
jmp 0x1400064d8
add rdi, rbx
sub rsi, rbx
je 0x140006516
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x1400064d0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1400064d0
and ebp, 0x7fffffff
jmp 0x140006518
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140007ba0
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x140007c03
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x140007c0f
lea rax, [0x140099eac]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str._N_r_
call sym.core::option::unwrap_failed::h511674c62460528b
mov qword [rbp + 0x138], 0
lea rdx, [0x1400d6478]
lea r9, str.Pd_r_
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call sym.core::panicking::assert_failed::he1f5a6e92591b991
int3

Function at 0x1400256f0
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret
Function at 0x140026a80
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140026b10
jmp 0x140026aff
jae 0x140026bcb
cmp r8, 0x201
jae 0x140026b10
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140026b67
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140026b3f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h1b05f2ecfd1aec18
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3c0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x140026b8d
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140026c37
mov r8d, r13d
cmp r12, r8
jne 0x140026af0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140026c6a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140026aff
jmp 0x140026b10
cmp r14, r8
jb 0x140026c84
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::h624a621d3f86a298
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3c8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
je 0x140026c20
mov rcx, qword [rbp + 0x3d8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3c8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
jne 0x140026c0b
jmp 0x140026c20
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::h2104b77c7bdaa98f
jmp 0x140026c99
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::ha4157f6c56c31a58
ud2
Function at 0x140026cd0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x140026cef
mov rdx, rax
add rsp, 0x68
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp], rax
mov rax, rbp
mov qword [rbp - 0x10], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::he2dbf906bfd27f01]
mov qword [rbp - 8], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rdx, str.library_std_src_syspalwindowsos.rs
lea rcx, [rbp - 0x40]
call sym.core::panicking::panic_fmt::hbf31d8edd17cf412
ud2
Function at 0x1400276c0
Capabilities:
Set environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
movabs r13, 0x8000000000000000
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r9
lea rsi, [rbp - 0x10]
mov rcx, rsi
call sym.std::sys::pal::windows::to_u16s::inner::hd316060f2068e1ae
mov rdi, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
cmp rdi, r13
jne 0x14002771f
mov r14, rbx
jmp 0x140027784
lea rcx, [rbp - 0x10]
mov rdx, r15
mov r8, r14
call sym.std::sys::pal::windows::to_u16s::inner::hd316060f2068e1ae
mov r12, qword [rbp - 0x10]
mov r15, qword [rbp - 8]
cmp r12, r13
jne 0x140027740
mov r14, r15
jmp 0x14002776b
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x14002779d
xor r14d, r14d
test r12, r12
je 0x14002776b
add r12, r12
mov r8d, 2
mov rcx, r15
mov rdx, r12
call sym.__rust_dealloc
test rdi, rdi
je 0x140027784
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x1400277b4
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test r12, r12
jne 0x140027757
jmp 0x14002776b
mov qword [rbp + 0x20], r14
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rax, [sym.__std::ffi::os_str::Display_as_core::fmt::Debug_::fmt::h8b9005e29eff02b0]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x30]
mov qword [rbp], rcx
mov qword [rbp + 8], rax
lea rax, [rbp + 0x20]
mov qword [rbp + 0x10], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::he2dbf906bfd27f01]
mov qword [rbp + 0x18], rax
lea rax, str.failed_to_set_environment_variable____to___:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 3
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 3
lea rdx, str.library_std_srcenv.rs
lea rcx, [rbp - 0x60]
call sym.core::panicking::panic_fmt::hbf31d8edd17cf412
ud2