joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007f0f0
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1800a6010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, rdx
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x18007f1bd
mov ebp, eax
mov esi, eax
mov rcx, rsi
call sym.mozglue.dll_moz_xmalloc
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x18007f1de
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea rdx, [0x18009b204]
lea r9, [rsp + 0x34]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x18007f1ff
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rcx, 0x20
or rax, rcx
mov qword [r14], rax
mov dword [r14 + 8], 0
mov rcx, rdi
call sym.mozglue.dll__aligned_free
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18004bde0
mov rax, r14
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov qword [r14], 0
mov dword [r14 + 8], ecx
jmp 0x18007f1a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov qword [r14], 0
mov dword [r14 + 8], ecx
jmp 0x18007f19a
xor eax, eax
jmp 0x18007f18f

Function at 0x18007f830
Capabilities:
Get number of processors

Disassembly:
test rcx, rcx
je 0x18007ee1c
lea rax, [0x1800a6280]
mov qword [rcx + 8], rax
lea rcx, [0x1800a6260]
jmp 0x18007f830
ret
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
lea rbx, [rcx + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rsi, qword [rdi + 0x10]
mov qword [rdi + 0x10], 0
mov byte [rdi + 0x18], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test rsi, rsi
je 0x18007f929
mov rdi, qword [rsi]
mov rax, qword [rsi + 8]
test rax, rax
jle 0x18007f8f9
lea rbx, [rax + rax*2]
shl rbx, 5
add rbx, rdi
add rdi, 0x28
mov r8, qword [rdi + 0x18]
cmp r8, 8
je 0x18007f8aa
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call sub.ntdll.dll_RtlFreeHeap
cmp qword [rdi + 8], 0
je 0x18007f8c7
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
mov dword [rdi], 0
mov qword [rdi + 8], 0
cmp qword [rdi - 8], 0
je 0x18007f8e6
lea rcx, [rdi - 0x10]
call sub.ntdll.dll_RtlFreeUnicodeString
mov dword [rdi - 0x10], 0
mov qword [rdi - 8], 0
lea rax, [rdi + 0x60]
add rdi, 0x38
cmp rdi, rbx
mov rdi, rax
jb 0x18007f888
mov rdi, qword [rsi]
cmp rdi, 0x60
je 0x18007f91a
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
mov r8, rdi
call sub.ntdll.dll_RtlFreeHeap
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp sym.mozglue.dll__aligned_free
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x180087250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
cmp qword [rcx + 0x40028], 0
jne 0x180087285
mov eax, dword [rsp + 0x70]
mov r10d, dword [rsp + 0x68]
mov r11d, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.18003eab0
nop
add rsp, 0x38
ret
add rsp, 0x38
jmp fcn.180087440
Function at 0x180006bc7
Capabilities:
Encrypt data using aes via x86 extensions

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

Function at 0x18000a4a0
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 0x18000a520
cmp r10, rax
jb 0x18000a594
cmp r10, rdx
ja 0x18000a5a8
add rax, r9
xor edi, edi
nop
cmp rsi, rdi
je 0x18000a522
lea rbx, [rdi + 1]
cmp byte [rax + rdi], cl
mov rdi, rbx
jne 0x18000a500
jmp 0x18000a583
ja 0x18000a52a
mov rax, r10
cmp r11, r8
jne 0x18000a4d2
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 0x18000a560
mov r15, rbx
sub ecx, edx
jns 0x18000a57a
jmp 0x18000a585
cmp rbx, r14
je 0x18000a5b9
movzx ebp, byte [r15 + 1]
add r15, 2
and edx, 0x7f
shl edx, 8
or edx, ebp
sub ecx, edx
js 0x18000a585
xor al, 1
cmp r15, r14
jne 0x18000a540
jmp 0x18000a585
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.180008cd0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180008150
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1800085e0
ud2
Function at 0x1800126d0
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, 0x20
jae 0x1800126eb
test rdx, rdx
je 0x1800126f0
cmp rdx, 4
jae 0x1800126f3
xor eax, eax
mov r8, rcx
jmp 0x180012854
jmp fcn.1800079f0
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 0x180012879
mov r10, r9
and r10, 0xfffffffffffffffe
pxor xmm0, xmm0
xor r11d, r11d
movdqa xmm2, xmmword [0x180047150]
movdqa xmm3, xmmword [0x180047160]
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 0x180012740
test r9b, 1
je 0x18001283a
movzx eax, word [rcx + r11]
movd xmm2, eax
movzx eax, word [rcx + r11 + 2]
movd xmm3, eax
movdqa xmm4, xmmword [0x180047150]
pcmpgtb xmm2, xmm4
punpcklbw xmm2, xmm2
pshuflw xmm2, xmm2, 0xd4
pshufd xmm2, xmm2, 0xd4
movdqa xmm5, xmmword [0x180047160]
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 0x180012878
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 0x180012860
ret
pxor xmm0, xmm0
xor r11d, r11d
pxor xmm1, xmm1
test r9b, 1
jne 0x1800127e3
jmp 0x18001283a
Function at 0x180012de0
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 0x180012e32
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x180012e32
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x180012e4d
cmp eax, 0x42
jne 0x180012e32
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x180012e8a
cmp byte [rdi + rcx], 0x5f
jne 0x180012e8a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x180012f82
mov rcx, rsi
xor edx, edx
call fcn.18000e680
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.18000e680
test al, al
jne 0x180012e85
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x180012efc
lea rdx, [0x1803d64eb]
mov r8d, 1
call fcn.1800081e0
test al, al
je 0x180012efc
mov dil, 2
jmp 0x180012e41
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x180012fdc
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x180012f76
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x180012edf
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x180012ece
add dl, 0xa9
jmp 0x180012edd
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x180012fdc
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x180012fdc
movzx edx, bl
add rax, rdx
jae 0x180012ea0
jmp 0x180012fdc
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x180012e41
xor ebx, ebx
lea r14, [0x1803d68f6]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x180012f34
cmp byte [rax + rcx], 0x45
je 0x180013034
sub rbx, 1
jb 0x180012f59
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x180012f59
mov r8d, 2
mov rdx, r14
call fcn.1800081e0
test al, al
jne 0x180012e85
mov rcx, rsi
call fcn.180013040
test al, al
jne 0x180012e85
mov rax, qword [rsi]
test rax, rax
jne 0x180012f20
jmp 0x180012e41
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x180012fdc
cmp rax, r9
jae 0x180012fd9
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x18001302d
cmp qword [rsi + 0x20], 0
je 0x180013026
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.180012de0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x180012e43
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18001301c
lea rax, [0x1803d68c1]
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.1800081e0
mov dil, 2
test al, al
jne 0x180012e41
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x180012e41
mov bl, 1
xor r8d, r8d
jmp 0x180012fde
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x180012e41
Function at 0x180015ad0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x180046078]
test ecx, ecx
je 0x180015bb9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x180015b03
mov rdi, rax
cmp qword [rax], 0
je 0x180015b03
add rdi, 8
jmp 0x180015baf
mov ecx, dword [0x180046078]
test ecx, ecx
je 0x180015bcc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x180015bad
mov rsi, rax
test rax, rax
jne 0x180015b7f
mov qword [rsp + 0x28], 0
lea rax, [0x180046060]
mov qword [rsp + 0x40], rax
mov ecx, 0x20
mov edx, 8
call fcn.180004f60
test rax, rax
je 0x180015bef
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 [0x180046078]
test ecx, ecx
je 0x180015bdf
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 0x180015baf
test rcx, rcx
je 0x180015baf
lock dec qword [rcx]
jne 0x180015baf
call fcn.180015c30
jmp 0x180015baf
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x180046060]
call fcn.180015f50
mov ecx, eax
jmp 0x180015ae6
lea rcx, [0x180046060]
call fcn.180015f50
mov ecx, eax
jmp 0x180015b13
lea rcx, [0x180046060]
call fcn.180015f50
mov ecx, eax
jmp 0x180015b77
mov ecx, 0x20
mov edx, 8
call fcn.180006c60
ud2
Function at 0x180015f50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x180015fce
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 0x18001600f
cmp dword [rsp + 0x2c], 0
je 0x180015ff3
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x180016029
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1803e00a8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1803e00a8], rsi
jne 0x180015fb0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x180016005
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x18001607f
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x180015ff8
mov edi, dword [rsp + 0x28]
jmp 0x180016005
mov edi, dword [rsi + 0x18]
jmp 0x180016003
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.1800160f0
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.1800073d0
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.180016160
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x180046098]
test ecx, ecx
je 0x1800171d9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x18001715c
cmp qword [rax], 0
je 0x18001715c
add rax, 8
jmp 0x1800171d3
mov ecx, dword [0x180046098]
test ecx, ecx
je 0x1800171ec
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1800171d1
mov rsi, rax
test rax, rax
jne 0x1800171bc
mov ecx, 0x18
mov edx, 8
call fcn.180004f60
test rax, rax
je 0x18001720f
mov rsi, rax
mov qword [rax], 0
lea rax, [0x180046080]
mov qword [rsi + 0x10], rax
mov ecx, dword [0x180046098]
test ecx, ecx
je 0x1800171ff
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rax, [rsi + 8]
mov qword [rsi], 1
mov qword [rsi + 8], 0
jmp 0x1800171d3
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x180046080]
call fcn.180015f50
mov ecx, eax
jmp 0x180017145
lea rcx, [0x180046080]
call fcn.180015f50
mov ecx, eax
jmp 0x18001716c
lea rcx, [0x180046080]
call fcn.180015f50
mov ecx, eax
jmp 0x1800171b4
mov ecx, 0x18
mov edx, 8
call fcn.180006c60
ud2
Function at 0x180019ec0
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 0x180019ef3
test ecx, ecx
jne 0x180019f42
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x180019f00
test ecx, ecx
jne 0x180019f42
mov rcx, rdi
call fcn.180019da0
movzx r10d, al
test bl, bl
jne 0x180019f49
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x180019f36.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x18001a0bc]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x180019f36.2
xor r10d, r10d
test bl, bl
je 0x180019f10
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x18001a09e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
cmp rdx, rcx
jne 0x180019f7b
movzx r8d, byte [rdi + 0x10]
xor edi, edi
jmp 0x180019ff8
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 0x180019fc0
nop dword [rax + rax]
cmp byte [rax], 0x5c
je 0x180019fdb
inc rsi
dec rax
cmp rsi, 1
jne 0x180019fa0
jmp 0x180019ff8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x180019fdb
cmp ebx, 0x5c
je 0x180019fdb
inc rsi
dec rax
cmp rsi, 1
jne 0x180019fc0
jmp 0x180019ff8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x18001a0ac
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x18001a022
mov al, 9
cmp rdx, 2
je 0x18001a026
cmp rdx, 1
jne 0x18001a036
cmp byte [r9], 0x2e
jne 0x18001a036
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x18001a036
mov al, 0xa
jmp 0x18001a036
cmp byte [r9], 0x2e
jne 0x18001a036
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.0x180019f36.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.0x180019f36.2
mov esi, 2
jmp case.0x180019f36.2
lea r8, [0x1803d8540]
call fcn.1800080c0
ud2
lea r8, [0x1803d8558]
call fcn.1800080c0
ud2
Function at 0x180034ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x180046020]
test ecx, ecx
je 0x180034fca
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x180034f13
mov rdi, rax
cmp qword [rax], 0
je 0x180034f13
add rdi, 8
jmp 0x180034fc0
mov ecx, dword [0x180046020]
test ecx, ecx
je 0x180034fdd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x180034fbe
mov rsi, rax
test rax, rax
jne 0x180034f8f
mov qword [rsp + 0x20], 0
lea rax, [0x180046008]
mov qword [rsp + 0x30], rax
mov ecx, 0x18
mov edx, 8
call fcn.180004f60
test rax, rax
je 0x180035000
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 [0x180046020]
test ecx, ecx
je 0x180034ff0
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 0x180034fc0
test rcx, rcx
je 0x180034fc0
lock dec qword [rcx]
jne 0x180034fc0
call fcn.180035030
jmp 0x180034fc0
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x180046008]
call fcn.180015f50
mov ecx, eax
jmp 0x180034ef6
lea rcx, [0x180046008]
call fcn.180015f50
mov ecx, eax
jmp 0x180034f23
lea rcx, [0x180046008]
call fcn.180015f50
mov ecx, eax
jmp 0x180034f87
mov ecx, 0x18
mov edx, 8
call fcn.180006c60
ud2
Function at 0x18003c1e0
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.180030d60
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x18003c224
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x18003c277
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x18003c26d
mov rbx, qword [rsp + 0x20]
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x18003c265
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 0x18003c258
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.180004ff0
mov edx, 8
mov rcx, rdi
call fcn.180004ff0
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 0x18003c26d
mov edx, 2
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.180004ff0
Function at 0x18003eac0
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.180043ac0
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, [0x180035a20]
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 0x18003ec57
mov r14d, 0xffffffff
lea r12, [rsp + 0x40]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x18003eb5e
cmp dword [rsp + 0x34], 0
jne 0x18003ec5c
mov edi, dword [rsp + 0x38]
test rdi, rdi
je 0x18003ec5c
cmp edi, 0x1000
ja 0x18003ec9c
xor ebx, ebx
nop word [rax + rax]
cmp rbx, rdi
ja 0x18003ec88
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 0x18003ec57
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 1
jne 0x18003ebf0
cmp dword [rsp + 0x34], 0
jne 0x18003ec5c
mov eax, dword [rsp + 0x38]
add rbx, rax
cmp rbx, rdi
jne 0x18003eba0
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 0x18003eb5e
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.180008cd0
jmp 0x18003ecb0
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rdi
call fcn.180008150
ud2

Function at 0x18003ed00
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 0x18003ed31
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, [0x180032150]
mov qword [rsp + 0x48], rax
lea rax, [0x1803d9718]
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.1800073d0
ud2
Function at 0x180040380
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x180040483
mov rsi, rcx
mov rbx, qword [rdi + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x1800403b7
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x18004046d
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x180040450
sub rax, rdx
add rdx, qword [rbx + 8]
mov rbx, qword [rdi + 0x20]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x18004040d
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x180040429
jmp 0x18004041e
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x180040424
cmp eax, 0x6d
jne 0x180040440
mov byte [rsi + 1], 0
jmp 0x180040434
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x180040436
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.18001a1e0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1800403c4
mov r8d, 0x10
mov rcx, rbx
call fcn.18001a1e0
mov rax, qword [rbx]
jmp 0x1800403b7
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1800404a0
ud2