joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b88d0
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword gs:[0x30]
movzx ebp, dl
mov edi, ecx
mov r8, qword [rax + 0x60]
mov rsi, qword [r8 + 0x18]
add rsi, 0x20
mov r10, qword [rsi]
cmp r10, rsi
je 0x1800b89ba
nop word [rax + rax]
movzx ebx, word [r10 + 0x48]
xorps xmm0, xmm0
xor eax, eax
shr rbx, 1
xor r9d, r9d
mov dword [rsp + 0x60], eax
movups xmmword [rsp], xmm0
movups xmmword [rsp + 0x10], xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
add rbx, 0xfffffffffffffffc
je 0x1800b897b
mov r11, qword [r10 + 0x50]
nop dword [rax + rax]
movzx edx, word [r11]
lea r11, [r11 + 2]
movzx r8d, dl
sub dx, 0x41
cmp dx, 0x19
lea eax, [r8 + 0x20]
movzx ecx, al
cmova ecx, r8d
mov byte [rsp + r9], cl
inc r9
cmp r9, rbx
jne 0x1800b8950
test edi, edi
je 0x1800b89d2
movzx eax, byte [rsp]
lea rdx, [rsp]
mov r8d, 0x84222325
test al, al
je 0x1800b89a9
movsx ecx, al
lea rdx, [rdx + 1]
movzx eax, byte [rdx]
xor ecx, r8d
imul r8d, ecx, 0x1b3
test al, al
jne 0x1800b8991
cmp edi, r8d
je 0x1800b89d2
mov r10, qword [r10]
cmp r10, rsi
jne 0x1800b8910
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test bpl, bpl
je 0x1800b8a03
mov rcx, qword [r10 - 0x10]
mov rax, qword [r10 - 8]
mov qword [rcx + 8], rax
mov rcx, qword [r10 - 8]
mov rax, qword [r10 - 0x10]
mov qword [rcx], rax
mov rcx, qword [r10]
mov rax, qword [r10 + 8]
mov qword [rcx + 8], rax
mov rcx, qword [r10 + 8]
mov rax, qword [r10]
mov qword [rcx], rax
mov rax, qword [r10 + 0x20]
jmp 0x1800b89bc

Function at 0x1800b8a10
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
movzx ebp, r8b
mov rsi, rdx
mov r14d, ecx
mov r9, qword [rax + 0x60]
mov rdi, qword [r9 + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1800b8a73
mov rcx, qword [rbx + 0x20]
cmp rsi, rcx
je 0x1800b8a6b
movzx r8d, bpl
mov edx, r14d
call fcn.1800b8a90
test rax, rax
jne 0x1800b8a75
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1800b8a51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800b8f40
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1800b8f63
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800b8f63
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
xor ecx, ecx
cmp dword [rax], 0x4550
cmovne rax, rcx
ret
xor eax, eax
ret
Function at 0x140006b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
push rdx
pop rax
nop
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140006bf0
cmp r11, r10
ja 0x140006c67
cmp r10, rdx
ja 0x140006c79
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140006bf2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006bd0
jmp 0x140006c54
ja 0x140006bfa
mov r11, r10
cmp rax, r8
jne 0x140006b9e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140006c30
mov rdi, r8
sub ecx, edx
jns 0x140006c4b
jmp 0x140006c56
cmp r8, rsi
je 0x140006c88
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006c56
xor al, 1
cmp rdi, rsi
jne 0x140006c10
jmp 0x140006c56
sub eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400054a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140004130
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140005510
int3

Function at 0x140007c06
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
push rdx
nop
pop rsi
push rcx
nop
pop rax
mov ecx, dword [rcx + 0x18]
or ecx, ecx
je 0x140007c27
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140044bc4
push rax
pop rcx
nop
call fcn.140015b70
mov ecx, eax
jmp 0x140007c1a

Function at 0x1400085ba
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140047028]
or ecx, ecx
je 0x1400085d3
dec ecx
add rsp, 0x28
jmp fcn.140044bbc
lea rcx, [0x140047010]
call fcn.140015b70
mov ecx, eax
jmp 0x1400085ca

Function at 0x1400087d9
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140047148]
or ecx, ecx
je 0x1400087f2
dec ecx
add rsp, 0x28
jmp fcn.140044bbc
lea rcx, [0x140047130]
call fcn.140015b70
mov ecx, eax
jmp 0x1400087e9
Function at 0x14000d15b
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14000d174
dec ecx
add rsp, 0x28
jmp fcn.140044bbc
push rax
pop rcx
nop
call fcn.140015b70
mov ecx, eax
jmp 0x14000d16b
Function at 0x140012ad0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsp
nop
pop rbp
push rdx
nop
pop rax
sub rdx, rcx
cmp rdx, 0x20
jae 0x140012af5
cmp rax, rcx
je 0x140012afb
cmp rdx, 4
jae 0x140012b02
sub eax, eax
xor r8d, r8d
jmp 0x140012ba0
pop rbp
jmp fcn.140003cc0
xor eax, eax
jmp 0x140012bb7
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140048540]
movdqa xmm3, xmmword [0x140048550]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140012b30
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140012bb7
nop dword [rax]
sub r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140012ba0
pop rbp
ret
Function at 0x140013a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov r10, qword [rcx]
or r10, r10
je 0x140013b14
mov r11, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp r8, r11
jae 0x140013b14
movzx eax, byte [r10 + r8]
cmp eax, 0x49
nop
push rcx
pop rbx
je 0x140013b2d
cmp eax, 0x42
jne 0x140013b14
lea rsi, [r8 + 1]
mov qword [rcx + 0x10], rsi
mov r9b, 1
cmp rsi, r11
jae 0x140013c5d
cmp byte [r10 + rsi], 0x5f
jne 0x140013bec
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
xor eax, eax
cmp rax, r8
jae 0x140013c5d
mov edx, dword [rcx + 0x18]
inc edx
cmp edx, 0x1f4
jbe 0x140013cb7
mov dil, 1
xor r9d, r9d
jmp 0x140013c5f
sub edx, edx
call fcn.14000f5a0
mov esi, eax
add sil, sil
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
inc r8
mov qword [rcx + 0x10], r8
sub edx, edx
call fcn.14000f5a0
test al, al
jne 0x140013c9d
mov rdx, rbx
mov rcx, qword [rbx + 0x20]
or rcx, rcx
je 0x140013b6c
lea rdx, [0x140891c5b]
mov r8d, 1
call fcn.1400041a0
nop
push rbx
pop rdx
test al, al
jne 0x140013c9d
mov rax, qword [rdx]
mov sil, 1
or rax, rax
je 0x140013b20
xor r14d, r14d
lea rdi, [0x140891fb1]
nop word cs:[rax + rax]
mov rcx, qword [rdx + 0x10]
cmp rcx, qword [rdx + 8]
jae 0x140013ba4
cmp byte [rax + rcx], 0x45
je 0x140013cf0
sub r14, 1
jb 0x140013bcc
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x140013bcc
mov r8d, 2
mov rdx, rdi
call fcn.1400041a0
push rbx
nop
pop rdx
test al, al
jne 0x140013c9d
nop
push rdx
pop rcx
call fcn.140010e30
test al, al
jne 0x140013c9d
push rbx
pop rdx
nop
mov rax, qword [rbx]
or rax, rax
jne 0x140013b90
jmp 0x140013b20
sub eax, eax
mov r14d, 0x3e
nop word cs:[rax + rax]
movzx edx, byte [r10 + rsi]
cmp dl, 0x5f
je 0x140013c4d
lea edi, [rdx - 0x30]
cmp dil, 0xa
jb 0x140013c2f
lea edi, [rdx - 0x61]
cmp dil, 0x1a
jae 0x140013c21
add dl, 0xa9
jmp 0x140013c2d
lea edi, [rdx - 0x41]
cmp dil, 0x1a
jae 0x140013c5d
add dl, 0xe3
mov edi, edx
inc rsi
mov qword [rcx + 0x10], rsi
mul r14
jo 0x140013c5d
movzx edx, dil
sub edi, edi
add rax, rdx
jb 0x140013c5f
cmp rsi, r11
jb 0x140013c00
jmp 0x140013c5f
inc rsi
mov qword [rcx + 0x10], rsi
inc rax
jne 0x140013aef
xor edi, edi
mov rax, qword [rcx + 0x20]
or rax, rax
je 0x140013ca5
mov ecx, r9d
xor cl, 1
movzx ecx, cl
lea r8, [rcx + rcx*8]
add r8, 0x10
lea rcx, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x140891f90]
test r9b, r9b
cmovne rdx, rcx
nop
push rax
pop rcx
call fcn.1400041a0
push rbx
pop rcx
nop
test al, al
je 0x140013ca5
mov sil, 2
jmp 0x140013b20
mov qword [rcx], 0
mov byte [rcx + 8], dil
xor esi, esi
jmp 0x140013b20
cmp qword [rcx + 0x20], 0
je 0x140013cb0
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], edx
push rcx
pop rsi
nop
call fcn.140013a90
movaps xmm0, xmmword [rbp - 0x20]
movaps xmm1, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140013b22
inc rcx
mov qword [rdx + 0x10], rcx
jmp 0x140013b20
Function at 0x140015b70
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
nop
push rcx
pop rsi
cmp qword [rcx], 0
je 0x140015c05
mov rax, qword [0x1408a0040]
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
nop
push rbx
pop rcx
xor edx, edx
sub r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x140015c44
cmp dword [rbp], 0
je 0x140015c28
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140015c59
mov edi, eax
mov rax, qword [0x14089d0e8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14089d0e8], rsi
jne 0x140015be0
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
push rbx
nop
pop rcx
xor edx, edx
sub r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140015c39
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x140015c9b
mov ecx, eax
inc ecx
sub eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140015c2d
mov edi, dword [rbp + 4]
jmp 0x140015c39
mov edi, dword [rsi + 0x18]
jmp 0x140015c37
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.140016900
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.library_std_src_syspalwindows_thread_local_key.rs
lea rcx, [rbp - 0x38]
call fcn.1400037b0
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.140016950
int3
Function at 0x1400179b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400470e8]
or ecx, ecx
je 0x140017a81
dec ecx
call fcn.140044bbc
cmp rax, 1
jbe 0x1400179e1
add rax, 8
jmp 0x140017a78
je 0x140017a76
movzx eax, byte [0x14089d0f8]
mov edx, 0x10
xor ecx, ecx
call fcn.1400349d0
or rax, rax
je 0x140017ab4
mov rbx, rax
push rax
nop
pop rsi
lea rax, [0x1400470d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400470e8]
test ecx, ecx
je 0x140017a94
dec ecx
call fcn.140044bbc
mov rdi, rax
mov ecx, dword [0x1400470e8]
test ecx, ecx
je 0x140017aa4
dec ecx
add rbx, 8
push rsi
nop
pop rdx
call fcn.140044bc4
test rdi, rdi
je 0x140017a71
mov rax, qword [rdi + 8]
or rax, rax
je 0x140017a64
lock dec qword [rax]
jne 0x140017a64
mov rcx, qword [rdi + 8]
call fcn.140017200
mov edx, 8
nop
push rdi
pop rcx
call fcn.140002900
mov rax, rbx
jmp 0x140017a78
sub eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400470d0]
call fcn.140015b70
mov ecx, eax
jmp 0x1400179cd
lea rcx, [0x1400470d0]
call fcn.140015b70
mov ecx, eax
jmp 0x140017a27
lea rcx, [0x1400470d0]
call fcn.140015b70
mov ecx, eax
jmp 0x140017a3b
mov ecx, 8
mov edx, 0x10
call fcn.140002df0
int3

Function at 0x140017f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400470a8]
or ecx, ecx
je 0x140017fde
dec ecx
call fcn.140044bbc
cmp rax, 1
jbe 0x140017f5e
add rax, 8
jmp 0x140017fd5
je 0x140017fd3
movzx eax, byte [0x14089d0f8]
mov edx, 0x10
xor ecx, ecx
call fcn.1400349d0
or rax, rax
je 0x140018011
push rax
nop
pop rbx
push rax
pop rsi
nop
lea rax, [0x140047090]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400470a8]
test ecx, ecx
je 0x140017ff1
dec ecx
call fcn.140044bbc
nop
push rax
pop rdi
mov ecx, dword [0x1400470a8]
test ecx, ecx
je 0x140018001
dec ecx
add rbx, 8
push rsi
pop rdx
nop
call fcn.140044bc4
test rdi, rdi
je 0x140017fce
mov edx, 8
mov rcx, rdi
call fcn.140002900
push rbx
nop
pop rax
jmp 0x140017fd5
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140047090]
call fcn.140015b70
mov ecx, eax
jmp 0x140017f4d
lea rcx, [0x140047090]
call fcn.140015b70
mov ecx, eax
jmp 0x140017f9c
lea rcx, [0x140047090]
call fcn.140015b70
mov ecx, eax
jmp 0x140017fb0
mov ecx, 8
mov edx, 0x10
call fcn.140002df0
int3
Function at 0x140018430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x140047088]
test ecx, ecx
je 0x1400184e6
dec ecx
call fcn.140044bbc
cmp rax, 1
jbe 0x14001845e
add rax, 8
jmp 0x1400184dd
je 0x1400184db
movzx eax, byte [0x14089d0f8]
mov edx, 0x18
sub ecx, ecx
call fcn.1400349d0
test rax, rax
je 0x140018519
nop
push rax
pop rbx
push rax
nop
pop rsi
lea rax, [0x140047070]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov ecx, dword [0x140047088]
or ecx, ecx
je 0x1400184f9
dec ecx
call fcn.140044bbc
push rax
nop
pop rdi
mov ecx, dword [0x140047088]
test ecx, ecx
je 0x140018509
dec ecx
add rbx, 8
push rsi
nop
pop rdx
call fcn.140044bc4
test rdi, rdi
je 0x1400184d6
mov edx, 8
mov rcx, rdi
call fcn.140002900
mov rax, rbx
jmp 0x1400184dd
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140047070]
call fcn.140015b70
mov ecx, eax
jmp 0x14001844d
lea rcx, [0x140047070]
call fcn.140015b70
mov ecx, eax
jmp 0x1400184a4
lea rcx, [0x140047070]
call fcn.140015b70
mov ecx, eax
jmp 0x1400184b8
mov ecx, 8
mov edx, 0x18
call fcn.140002df0
int3
Function at 0x140033e80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov ecx, dword [0x1400470c8]
test ecx, ecx
je 0x140033f51
dec ecx
call fcn.140044bbc
cmp rax, 1
jbe 0x140033eb1
add rax, 8
jmp 0x140033f48
je 0x140033f46
movzx eax, byte [0x14089d0f8]
mov edx, 0x10
xor ecx, ecx
call fcn.1400349d0
or rax, rax
je 0x140033f84
mov rbx, rax
nop
push rax
pop rsi
lea rax, [0x1400470b0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400470c8]
test ecx, ecx
je 0x140033f64
dec ecx
call fcn.140044bbc
push rax
nop
pop rdi
mov ecx, dword [0x1400470c8]
test ecx, ecx
je 0x140033f74
dec ecx
add rbx, 8
push rsi
pop rdx
nop
call fcn.140044bc4
test rdi, rdi
je 0x140033f41
mov rax, qword [rdi + 8]
or rax, rax
je 0x140033f34
lock dec qword [rax]
jne 0x140033f34
mov rcx, qword [rdi + 8]
call fcn.140033fa0
mov edx, 8
nop
push rdi
pop rcx
call fcn.140002900
mov rax, rbx
jmp 0x140033f48
sub eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400470b0]
call fcn.140015b70
mov ecx, eax
jmp 0x140033e9d
lea rcx, [0x1400470b0]
call fcn.140015b70
mov ecx, eax
jmp 0x140033ef7
lea rcx, [0x1400470b0]
call fcn.140015b70
mov ecx, eax
jmp 0x140033f0b
mov ecx, 8
mov edx, 0x10
call fcn.140002df0
int3

Function at 0x14003c502
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
push rdx
nop
pop rax
push rcx
pop rsi
nop
lea rdx, [rsp + 0x2c]
nop
push rax
pop rcx
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x14003c59e
push rax
pop rdi
nop
lea rbx, [rsp + 0x30]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
movsxd r12, dword [rsp + 0x2c]
shl r12, 3
xor r13d, r13d
lea r14, [rsp + 0x48]
cmp r12, r13
je 0x14003c583
mov r15, qword [rdi + r13]
mov rcx, r15
call sub.msvcrt.dll_wcslen
mov rcx, r14
mov rdx, r15
mov r8, rax
call fcn.14003bddb
push rbx
nop
pop rcx
mov rdx, r14
call fcn.14003c81e
add r13, 8
jmp 0x14003c553
push rdi
pop rcx
nop
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 0x14003c5af
and qword [rsi], 0
mov qword [rsi + 8], 8
and qword [rsi + 0x10], 0
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140043836
Capabilities:
Reference wmi statements

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
and qword [rsp + 0x38], 0
push rdx
pop rsi
nop
mov rdi, rcx
cmp qword [rdx + 0x10], 0
je 0x1400438fa
lea rcx, [0x140894f62]
call sub.oleaut32.dll_SysAllocString
nop
push rax
pop rbx
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
nop
push rbx
pop rdx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
nop
push rbx
pop rcx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x1400438fa
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x20]
mov rdx, qword [rsi + 0x28]
call fcn.14003e98a
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 0x140043909
mov qword [rdi], 2
nop
push rsi
pop rcx
call fcn.14003e90e
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140043fac
Capabilities:
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
call fcn.1400087d9
cmp rax, 1
jbe 0x140043fcc
push rax
pop rsi
nop
add rsi, 8
jmp 0x14004404f
je 0x14004404d
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi], xmm0
mov edx, 0x10
nop
push rsi
pop rcx
call sub.bcryptprimitives.dll_ProcessPrng
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov ecx, 8
mov edx, 0x18
call fcn.1400087af
test rax, rax
je 0x14004406c
nop
push rax
pop rsi
push rax
nop
pop rbx
lea rax, [0x140047130]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
call fcn.1400087d9
mov rdi, rax
mov ecx, dword [0x140047148]
test ecx, ecx
je 0x14004405c
dec ecx
add rsi, 8
push rbx
pop rdx
nop
call fcn.140044bc4
or rdi, rdi
je 0x14004404f
mov edx, 8
push rdi
pop rcx
nop
call fcn.140002900
jmp 0x14004404f
xor esi, esi
nop
push rsi
pop rax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140047130]
call fcn.140015b70
mov ecx, eax
jmp 0x14004402d
mov ecx, 8
mov edx, 0x18
call fcn.140002df0
int3

Function at 0x1400456c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.1400464d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400464d0
mov rdx, r12
push rax
nop
pop rcx
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140045730
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14089d184]
mov r12, rcx
push rdx
pop rsi
nop
mov rbx, r8
or edi, edi
jle 0x1400458e0
mov rax, qword [0x14089d188]
sub ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14004577c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140045807
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140045760
mov rcx, r12
call fcn.1400461e0
mov rbp, rax
or rax, rax
je 0x14004593d
mov rax, qword [0x14089d188]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140046310
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14089d188]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140045922
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140045800
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140045890
add dword [0x14089d184], 1
cmp ebx, 8
jae 0x140045838
test bl, 4
jne 0x1400458f0
test ebx, ebx
je 0x140045829
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140045910
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140045829
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14004586a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14089d188]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or eax, eax
jne 0x140045800
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400456c0
xor edi, edi
jmp 0x140045787
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140045829
push rax
pop rax
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140045829
mov rax, qword [0x14089d188]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1400456c0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400456c0
nop
nop dword [rax]