joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455b40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x455bf9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00455c40]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045db60
xorps xmm15, xmm15
mov r14, qword [0x005fa530]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045dca0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00455b40
Function at 0x45fda0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005fa640]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005fa350], 0
je 0x45fdd6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005fa980]
aesenc xmm0, xmmword [0x005fa990]
aesenc xmm0, xmmword [0x005fa9a0]
movq rax, xmm0
ret
jmp 0x409980

Function at 0x4617e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005fa900]
mov qword [rsp + 8], rdx
lea r8d, [0x005fa36c]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045fc80
add rsp, 0x30
ret

Function at 0x461d20
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x461d50
mov rcx, 0x28
jmp 0x461d5b
shl rcx, 3
add rcx, 0x1480
mov qword [0x005fa530], rcx
ret
Function at 0x180001890
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm13, xmmword [rdx + 0x10]
aesimc xmm14, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
movaps xmm0, xmmword [rdx]
movaps xmm1, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm0
movdqa xmmword [rcx + 0x10], xmm13
movdqa xmmword [rcx + 0x20], xmm14
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x1800074b7
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x18000ae20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r11, rdx
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rdi, r11
movzx esi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rsi]
cmp byte [rdi], bpl
jne 0x18000aea0
cmp r10, rax
jb 0x18000af14
cmp r10, rdx
ja 0x18000af28
add rax, r9
xor edi, edi
nop
cmp rsi, rdi
je 0x18000aea2
lea rbx, [rdi + 1]
cmp byte [rax + rdi], cl
mov rdi, rbx
jne 0x18000ae80
jmp 0x18000af03
ja 0x18000aeaa
mov rax, r10
cmp r11, r8
jne 0x18000ae52
add r14, r15
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [r15 + 1]
movzx edx, byte [r15]
test dl, dl
js 0x18000aee0
mov r15, rbx
sub ecx, edx
jns 0x18000aefa
jmp 0x18000af05
cmp rbx, r14
je 0x18000af39
movzx ebp, byte [r15 + 1]
add r15, 2
and edx, 0x7f
shl edx, 8
or edx, ebp
sub ecx, edx
js 0x18000af05
xor al, 1
cmp r15, r14
jne 0x18000aec0
jmp 0x18000af05
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.1800095c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180008a40
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180008ed0
ud2
Function at 0x180013050
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, 0x20
jae 0x18001306b
test rdx, rdx
je 0x180013070
cmp rdx, 4
jae 0x180013073
xor eax, eax
mov r8, rcx
jmp 0x1800131d4
jmp fcn.1800082e0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
lea rax, [r8 - 4]
mov r9, rax
shr r9, 2
inc r9
test rax, rax
je 0x1800131f9
mov r10, r9
and r10, 0xfffffffffffffffe
pxor xmm0, xmm0
xor r11d, r11d
movdqa xmm2, xmmword [0x180048150]
movdqa xmm3, xmmword [0x180048160]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx eax, word [rcx + r11]
movd xmm4, eax
movzx eax, word [rcx + r11 + 2]
movd xmm5, eax
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm4, xmm0
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm0, xmm5, 0xd4
pshufd xmm5, xmm0, 0xd4
pand xmm5, xmm3
paddq xmm5, xmm1
movzx eax, word [rcx + r11 + 4]
movd xmm0, eax
movzx eax, word [rcx + r11 + 6]
movd xmm1, eax
pcmpgtb xmm0, xmm2
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0xd4
pshufd xmm0, xmm0, 0xd4
pand xmm0, xmm3
paddq xmm0, xmm4
pcmpgtb xmm1, xmm2
punpcklbw xmm1, xmm1
pshuflw xmm1, xmm1, 0xd4
pshufd xmm1, xmm1, 0xd4
pand xmm1, xmm3
paddq xmm1, xmm5
add r11, 8
add r10, 0xfffffffffffffffe
jne 0x1800130c0
test r9b, 1
je 0x1800131ba
movzx eax, word [rcx + r11]
movd xmm2, eax
movzx eax, word [rcx + r11 + 2]
movd xmm3, eax
movdqa xmm4, xmmword [0x180048150]
pcmpgtb xmm2, xmm4
punpcklbw xmm2, xmm2
pshuflw xmm2, xmm2, 0xd4
pshufd xmm2, xmm2, 0xd4
movdqa xmm5, xmmword [0x180048160]
pand xmm2, xmm5
paddq xmm0, xmm2
pcmpgtb xmm3, xmm4
punpcklbw xmm3, xmm3
pshuflw xmm2, xmm3, 0xd4
pshufd xmm2, xmm2, 0xd4
pand xmm2, xmm5
paddq xmm1, xmm2
paddq xmm0, xmm1
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm0
movq rax, xmm1
cmp r8, rdx
je 0x1800131f8
add r8, rcx
add rcx, rdx
nop word [rax + rax]
xor edx, edx
cmp byte [r8], 0xc0
lea r9, [r8 + 1]
setge dl
add rax, rdx
mov r8, r9
cmp r9, rcx
jne 0x1800131e0
ret
pxor xmm0, xmm0
xor r11d, r11d
pxor xmm1, xmm1
test r9b, 1
jne 0x180013163
jmp 0x1800131ba
Function at 0x180013760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x1800137b2
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x1800137b2
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x1800137cd
cmp eax, 0x42
jne 0x1800137b2
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x18001380a
cmp byte [rdi + rcx], 0x5f
jne 0x18001380a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x180013902
mov rcx, rsi
xor edx, edx
call fcn.18000f000
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.18000f000
test al, al
jne 0x180013805
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18001387c
lea rdx, [0x1803d7543]
mov r8d, 1
call fcn.180008ad0
test al, al
je 0x18001387c
mov dil, 2
jmp 0x1800137c1
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x18001395c
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x1800138f6
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x18001385f
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x18001384e
add dl, 0xa9
jmp 0x18001385d
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x18001395c
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x18001395c
movzx edx, bl
add rax, rdx
jae 0x180013820
jmp 0x18001395c
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1800137c1
xor ebx, ebx
lea r14, [0x1803d794e]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1800138b4
cmp byte [rax + rcx], 0x45
je 0x1800139b4
sub rbx, 1
jb 0x1800138d9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1800138d9
mov r8d, 2
mov rdx, r14
call fcn.180008ad0
test al, al
jne 0x180013805
mov rcx, rsi
call fcn.1800139c0
test al, al
jne 0x180013805
mov rax, qword [rsi]
test rax, rax
jne 0x1800138a0
jmp 0x1800137c1
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x18001395c
cmp rax, r9
jae 0x180013959
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1800139ad
cmp qword [rsi + 0x20], 0
je 0x1800139a6
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.180013760
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1800137c3
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18001399c
lea rax, [0x1803d7919]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.180008ad0
mov dil, 2
test al, al
jne 0x1800137c1
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x1800137c1
mov bl, 1
xor r8d, r8d
jmp 0x18001395e
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1800137c1
Function at 0x180016460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x1800470a0]
test ecx, ecx
je 0x180016549
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x180016493
mov rdi, rax
cmp qword [rax], 0
je 0x180016493
add rdi, 8
jmp 0x18001653f
mov ecx, dword [0x1800470a0]
test ecx, ecx
je 0x18001655c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x18001653d
mov rsi, rax
test rax, rax
jne 0x18001650f
mov qword [rsp + 0x28], 0
lea rax, [0x180047088]
mov qword [rsp + 0x40], rax
mov ecx, 0x20
mov edx, 8
call fcn.180005850
test rax, rax
je 0x18001657f
mov rsi, rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x1800470a0]
test ecx, ecx
je 0x18001656f
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 8]
cmp qword [rsi], 0
mov rcx, qword [rsi + 0x10]
mov qword [rsi], 1
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
je 0x18001653f
test rcx, rcx
je 0x18001653f
lock dec qword [rcx]
jne 0x18001653f
call fcn.1800165c0
jmp 0x18001653f
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x180047088]
call fcn.180016c50
mov ecx, eax
jmp 0x180016476
lea rcx, [0x180047088]
call fcn.180016c50
mov ecx, eax
jmp 0x1800164a3
lea rcx, [0x180047088]
call fcn.180016c50
mov ecx, eax
jmp 0x180016507
mov ecx, 0x20
mov edx, 8
call fcn.180007550
ud2
Function at 0x180016c50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x180016cce
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 0x180016d0f
cmp dword [rsp + 0x2c], 0
je 0x180016cf3
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x180016d29
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1803e10f0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1803e10f0], rsi
jne 0x180016cb0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x180016d05
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x180016d7f
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x180016cf8
mov edi, dword [rsp + 0x28]
jmp 0x180016d05
mov edi, dword [rsi + 0x18]
jmp 0x180016d03
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 + 0x40], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.180016df0
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 + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, str.capacity_overflow
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.180007cc0
ud2
mov qword [rsp + 0x30], 0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, str.capacity_overflow
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.180016e60
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1800470c0]
test ecx, ecx
je 0x180018289
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x18001820c
cmp qword [rax], 0
je 0x18001820c
add rax, 8
jmp 0x180018283
mov ecx, dword [0x1800470c0]
test ecx, ecx
je 0x18001829c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x180018281
mov rsi, rax
test rax, rax
jne 0x18001826c
mov ecx, 0x18
mov edx, 8
call fcn.180005850
test rax, rax
je 0x1800182bf
mov rsi, rax
mov qword [rax], 0
lea rax, [0x1800470a8]
mov qword [rsi + 0x10], rax
mov ecx, dword [0x1800470c0]
test ecx, ecx
je 0x1800182af
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rax, [rsi + 8]
mov qword [rsi], 1
mov qword [rsi + 8], 0
jmp 0x180018283
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1800470a8]
call fcn.180016c50
mov ecx, eax
jmp 0x1800181f5
lea rcx, [0x1800470a8]
call fcn.180016c50
mov ecx, eax
jmp 0x18001821c
lea rcx, [0x1800470a8]
call fcn.180016c50
mov ecx, eax
jmp 0x180018264
mov ecx, 0x18
mov edx, 8
call fcn.180007550
ud2
Function at 0x18001af80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x18001afb3
test ecx, ecx
jne 0x18001b002
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x18001afc0
test ecx, ecx
jne 0x18001b002
mov rcx, rdi
call fcn.18001ae60
movzx r10d, al
test bl, bl
jne 0x18001b009
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x18001aff6.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x18001b17c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x18001aff6.2
xor r10d, r10d
test bl, bl
je 0x18001afd0
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x18001b15e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
cmp rdx, rcx
jne 0x18001b03b
movzx r8d, byte [rdi + 0x10]
xor edi, edi
jmp 0x18001b0b8
movzx r8d, byte [rdi + 0x10]
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x18001b080
nop dword [rax + rax]
cmp byte [rax], 0x5c
je 0x18001b09b
inc rsi
dec rax
cmp rsi, 1
jne 0x18001b060
jmp 0x18001b0b8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x18001b09b
cmp ebx, 0x5c
je 0x18001b09b
inc rsi
dec rax
cmp rsi, 1
jne 0x18001b080
jmp 0x18001b0b8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x18001b16c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x18001b0e2
mov al, 9
cmp rdx, 2
je 0x18001b0e6
cmp rdx, 1
jne 0x18001b0f6
cmp byte [r9], 0x2e
jne 0x18001b0f6
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x18001b0f6
mov al, 0xa
jmp 0x18001b0f6
cmp byte [r9], 0x2e
jne 0x18001b0f6
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x18001aff6.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x18001aff6.2
mov esi, 2
jmp case.0x18001aff6.2
lea r8, [0x1803d9840]
call fcn.1800089b0
ud2
lea r8, [0x1803d9858]
call fcn.1800089b0
ud2
Function at 0x1800367d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x180047020]
test ecx, ecx
je 0x1800368ba
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x180036803
mov rdi, rax
cmp qword [rax], 0
je 0x180036803
add rdi, 8
jmp 0x1800368b0
mov ecx, dword [0x180047020]
test ecx, ecx
je 0x1800368cd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1800368ae
mov rsi, rax
test rax, rax
jne 0x18003687f
mov qword [rsp + 0x20], 0
lea rax, [0x180047008]
mov qword [rsp + 0x30], rax
mov ecx, 0x18
mov edx, 8
call fcn.180005850
test rax, rax
je 0x1800368f0
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x180047020]
test ecx, ecx
je 0x1800368e0
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 8]
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 1
mov qword [rsi + 8], 0
je 0x1800368b0
test rcx, rcx
je 0x1800368b0
lock dec qword [rcx]
jne 0x1800368b0
call fcn.180036920
jmp 0x1800368b0
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x180047008]
call fcn.180016c50
mov ecx, eax
jmp 0x1800367e6
lea rcx, [0x180047008]
call fcn.180016c50
mov ecx, eax
jmp 0x180036813
lea rcx, [0x180047008]
call fcn.180016c50
mov ecx, eax
jmp 0x180036877
mov ecx, 0x18
mov edx, 8
call fcn.180007550
ud2
Function at 0x18003dad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.180031e20
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x18003db14
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x18003db67
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x18003db5d
mov rbx, qword [rsp + 0x20]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x18003db55
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x18003db48
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.1800058e0
mov edx, 8
mov rcx, rdi
call fcn.1800058e0
mov qword [rsi + 8], 0
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x18003db5d
mov edx, 2
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1800058e0
Function at 0x1800403b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1088
call fcn.1800453a0
sub rsp, rax
movaps xmmword [rsp + 0x1070], xmm6
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea rdi, [rsp + 0x70]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x30]
mov qword [rsp + 0x58], r13
lea rbp, [0x180037310]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, r15
mov rdx, rdi
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x180040547
mov r14d, 0xffffffff
lea r12, [rsp + 0x40]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x18004044e
cmp dword [rsp + 0x34], 0
jne 0x18004054c
mov edi, dword [rsp + 0x38]
test rdi, rdi
je 0x18004054c
cmp edi, 0x1000
ja 0x18004058c
xor ebx, ebx
nop word [rax + rax]
cmp rbx, rdi
ja 0x180040578
lea rdx, [rsp + rbx]
add rdx, 0x70
mov r8, rdi
sub r8, rbx
cmp r8, r14
cmovae r8, r14
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, r12
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x180040547
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x1800404e0
cmp dword [rsp + 0x34], 0
jne 0x18004054c
mov eax, dword [rsp + 0x38]
add rbx, rax
cmp rbx, rdi
jne 0x180040490
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, r15
lea rdx, [rsp + 0x70]
mov r8d, 0x1000
mov r9, r12
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x18004044e
call sub.KERNEL32.dll_GetLastError
mov rcx, r15
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1070]
add rsp, 0x1088
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov rdx, rdi
call fcn.1800095c0
jmp 0x1800405a0
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rdi
call fcn.180008a40
ud2

Function at 0x1800405f0
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 0x180040621
mov rax, qword [rsp + 0x30]
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, [0x180033210]
mov qword [rsp + 0x48], rax
lea rax, [0x1803daab0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.180007cc0
ud2