joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140109530
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x140109580
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov r14d, 0xffffffff
nop
mov r15, rbx
mov rbx, rsi
sub rbx, r15
lea rcx, [rdi + r15]
cmp rbx, r14
cmovae rbx, r14
mov edx, ebx
call sub.advapi32.dll_SystemFunction036
mov ecx, eax
test al, al
sete al
add rbx, r15
cmp rbx, rsi
jae 0x140109582
test cl, cl
jne 0x140109550
jmp 0x140109582
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140111690
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400253e0
cmp rax, rcx
je 0x1401116b5
cmp rdx, 4
jae 0x1401116b8
xor r8d, r8d
xor eax, eax
jmp 0x140111750
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1401e4ec0]
movdqa xmm3, xmmword [0x1401e4ed0]
pxor xmm1, xmm1
nop dword [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 0x1401116e0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140111767
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140111750
ret
Function at 0x1401126d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14011272b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14011272b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140112746
cmp eax, 0x42
jne 0x14011272b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1401127f6
cmp byte [r9 + r11], 0x5f
jne 0x1401127f6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14011285e
mov rcx, rsi
xor edx, edx
call fcn.14010e120
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14010e120
test al, al
jne 0x1401128f1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140112782
lea rdx, [0x14024714b]
mov r8d, 1
call fcn.1400259d0
test al, al
jne 0x1401128f1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14011273a
xor r14d, r14d
lea rbx, [0x140247500]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1401127b4
cmp byte [rax + rcx], 0x45
je 0x140112913
sub r14, 1
jb 0x1401127d9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1401127d9
mov r8d, 2
mov rdx, rbx
call fcn.1400259d0
test al, al
jne 0x1401128f1
mov rcx, rsi
call fcn.14010f920
test al, al
jne 0x1401128f1
mov rax, qword [rsi]
test rax, rax
jne 0x1401127a0
jmp 0x14011273a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1401128b8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140112852
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14011283c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14011282b
add dl, 0xa9
jmp 0x14011283a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1401128b8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1401128b8
movzx edx, bl
add rax, rdx
jae 0x140112800
jmp 0x1401128b8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1401128b8
cmp rax, rcx
jae 0x1401128b5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14011290b
cmp qword [rsi + 0x20], 0
je 0x140112904
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.1401126d0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14011273c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1401128f9
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1402474c0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.1400259d0
test al, al
je 0x1401128f9
mov dil, 2
jmp 0x14011273a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14011273a
mov dil, 1
xor r8d, r8d
jmp 0x1401128ba
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14011273a
Function at 0x1401165c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1401165f6
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1401165fe
mov esi, dword [rdx]
mov r9d, 4
jmp 0x140116603
xor r10d, r10d
jmp 0x1401166b1
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140116626
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14011663d
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14011665d
add r11, r8
jmp 0x14011678e
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140116732
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop word cs:[rax + rax]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1401166e0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140116744
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x14011674a
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140116770
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14011678a
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret

Function at 0x140131310
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp fcn.140109530
Function at 0x140154690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x1401e0090]
test ecx, ecx
je 0x140154783
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401546c4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1401546c4
add rdi, 0x10
jmp 0x140154779
mov ecx, dword [0x1401e0090]
test ecx, ecx
je 0x140154796
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140154777
mov rsi, rax
test rax, rax
jne 0x140154747
mov qword [rsp + 0x30], 0
lea rax, [0x1401e0078]
mov qword [rsp + 0x28], rax
movzx eax, byte [0x1402e91f8]
mov ecx, 0x20
mov edx, 8
call fcn.1400203c0
test rax, rax
je 0x1401547b9
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 [0x1401e0090]
test ecx, ecx
je 0x1401547a9
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x140154779
test rcx, rcx
je 0x140154779
lock dec qword [rcx]
jne 0x140154779
call fcn.14018f560
jmp 0x140154779
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, [0x1401e0078]
call fcn.1401549e0
mov ecx, eax
jmp 0x1401546a6
lea rcx, [0x1401e0078]
call fcn.1401549e0
mov ecx, eax
jmp 0x1401546d4
lea rcx, [0x1401e0078]
call fcn.1401549e0
mov ecx, eax
jmp 0x14015473f
mov ecx, 8
mov edx, 0x20
call fcn.1400206c0
ud2
Function at 0x1401549e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140154a65
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 0x140154aa6
cmp dword [rsp + 0x2c], 0
je 0x140154a8a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140154ace
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1402e9158]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1402e9158], rsi
jne 0x140154a40
mov byte [0x1402e9150], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140154a9c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140154b1a
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140154a8f
mov edi, dword [rsp + 0x28]
jmp 0x140154a9c
mov edi, dword [rsi + 0x18]
jmp 0x140154a9a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x1402509e8]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.140154b80
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x14028c3a8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140024e50
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x14028c3a8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140154bc0
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401e00b0]
test ecx, ecx
je 0x14015529f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140155229
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14015528e
mov ecx, dword [0x1401e00b0]
test ecx, ecx
je 0x1401552b2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140155294
mov rsi, rax
test rax, rax
jne 0x140155288
movzx eax, byte [0x1402e91f8]
mov ecx, 0x10
mov edx, 8
call fcn.1400203c0
test rax, rax
je 0x1401552d5
mov rsi, rax
lea rax, [0x1401e0098]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1401e00b0]
test ecx, ecx
je 0x1401552c5
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140155296
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401e0098]
call fcn.1401549e0
mov ecx, eax
jmp 0x140155215
lea rcx, [0x1401e0098]
call fcn.1401549e0
mov ecx, eax
jmp 0x140155235
lea rcx, [0x1401e0098]
call fcn.1401549e0
mov ecx, eax
jmp 0x140155280
mov ecx, 8
mov edx, 0x10
call fcn.1400206c0
ud2
Function at 0x140155c60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140250118]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x140155cd1
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140155d07
test eax, eax
js 0x140155ce2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140155cfa
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140250178]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140153ce0
mov rcx, rax
call fcn.140153dc0
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1401e0070]
test ecx, ecx
je 0x14015625d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401561d0
cmp qword [rax + 8], 0
je 0x1401561d0
add rax, 0x10
jmp 0x140156257
mov ecx, dword [0x1401e0070]
test ecx, ecx
je 0x140156270
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140156255
mov rsi, rax
test rax, rax
jne 0x14015623b
movzx eax, byte [0x1402e91f8]
mov ecx, 0x20
mov edx, 8
call fcn.1400203c0
test rax, rax
je 0x140156293
mov rsi, rax
lea rax, [0x1401e0058]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1401e0070]
test ecx, ecx
je 0x140156283
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140156257
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401e0058]
call fcn.1401549e0
mov ecx, eax
jmp 0x1401561b5
lea rcx, [0x1401e0058]
call fcn.1401549e0
mov ecx, eax
jmp 0x1401561e0
lea rcx, [0x1401e0058]
call fcn.1401549e0
mov ecx, eax
jmp 0x140156233
mov ecx, 8
mov edx, 0x20
call fcn.1400206c0
ud2
Function at 0x140159870
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140171f30
mov rdi, rdx
test rax, rax
je 0x1401598df
mov rcx, rdi
call fcn.140172250
mov qword [rsi], 0
jmp 0x140159a32
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140172140
cmp dword [rsp + 0x40], 2
jne 0x140159950
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x140159a23
test rcx, rcx
je 0x140159a23
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x14015993e
mov rdx, qword [r15 + 0x10]
mov rcx, r14
call fcn.140020450
mov edx, 8
mov rcx, rbx
call fcn.140020450
jmp 0x140159a23
mov r12, qword [rsp + 0x78]
test rdi, rdi
je 0x1401599a2
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x140159a1e
mov rbx, qword [rsp + 0x40]
jmp 0x1401599a4
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x140159a0d
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call fcn.1401cdc54
test r15, r15
je 0x140159a0d
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140159a2a
mov qword [rsi], 0
mov rcx, rbx
call fcn.1401cdc54
jmp 0x140159a2a
call sub.kernel32.dll_GetLastError
mov qword [rsi], 0
mov rcx, rdi
call fcn.1401cdc54
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140175270
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140250118]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1401752da
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1401752e9
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140175320
cmp eax, 0x103
je 0x14017532a
test eax, eax
js 0x140175306
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140175320
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140250178]
add eax, 0xdae3a

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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x1401e00d0]
test ecx, ecx
je 0x140177584
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x1401774c4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1401774c4
add rdi, 0x10
jmp 0x14017757a
mov ecx, dword [0x1401e00d0]
test ecx, ecx
je 0x140177597
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140177578
mov rsi, rax
test rax, rax
jne 0x140177547
mov qword [rsp + 0x28], 0
lea rax, [0x1401e00b8]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x1402e91f8]
mov ecx, 0x18
mov edx, 8
call fcn.1400203c0
test rax, rax
je 0x1401775ba
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 [0x1401e00d0]
test ecx, ecx
je 0x1401775aa
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x14017757a
test rcx, rcx
je 0x14017757a
lock dec qword [rcx]
jne 0x14017757a
call fcn.1401775f0
jmp 0x14017757a
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x1401e00b8]
call fcn.1401549e0
mov ecx, eax
jmp 0x1401774a6
lea rcx, [0x1401e00b8]
call fcn.1401549e0
mov ecx, eax
jmp 0x1401774d4
lea rcx, [0x1401e00b8]
call fcn.1401549e0
mov ecx, eax
jmp 0x14017753f
mov ecx, 8
mov edx, 0x18
call fcn.1400206c0
ud2
Function at 0x14017f010
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140156a70
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14017f085
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14017f190
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14017f093
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14017f0b3
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14017f0a4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140156c20
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14017f0a4
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140020450
Function at 0x1401809a0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
movzx eax, byte [0x1402e91f8]
mov ecx, 0x10
mov edx, 8
call fcn.1400203c0
test rax, rax
je 0x140180a57
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140180da0]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.kernel32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x140180a4a
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140180a29
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.140020450
mov edx, 8
mov rcx, rsi
call fcn.140020450
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400206c0
ud2

Function at 0x140181050
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, 0x1078
call fcn.1401cdb40
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, case.0x140176013.133
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x1401811e5
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x1401810e3
cmp dword [rsp + 0x38], 0
jne 0x1401811ea
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x1401811ea
cmp r15d, 0x1000
ja 0x14018122a
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x140181216
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x34], 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, rbx
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x1401811e5
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x140181180
cmp dword [rsp + 0x38], 0
jne 0x1401811ea
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
jne 0x140181130
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x1401810e3
call sub.kernel32.dll_GetLastError
mov rcx, rdi
call fcn.1401cdc54
mov rcx, rsi
call fcn.1401cdc54
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
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, r12
mov rdx, r15
call fcn.140026ea0
jmp 0x14018123e
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140025960
ud2