joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d202c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d20aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d20a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d20a1
mov rax, qword [rbp - 8]
jmp 0x2fc4d20bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d2074
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000b250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
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 0x14000b2e0
cmp r11, r10
ja 0x14000b356
cmp r10, rdx
ja 0x14000b368
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000b2e2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000b2c0
jmp 0x14000b344
ja 0x14000b2ea
mov r11, r10
cmp rax, r8
jne 0x14000b284
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 0x14000b320
mov rdi, r8
sub ecx, edx
jns 0x14000b33b
jmp 0x14000b346
cmp r8, rsi
je 0x14000b377
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000b346
xor al, 1
cmp rdi, rsi
jne 0x14000b300
jmp 0x14000b346
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140008d30
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400082d0
lea rcx, [0x1401cb688]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140008670
int3
Function at 0x140010ff2
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov r14, qword [0x1401d6040]
test r14, r14
jne 0x140011121
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140011059
mov rbx, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140011059
mov rdi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rbx
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140011059
mov r15, rax
xor ebx, ebx
jmp 0x1400110da
lea rcx, str.ntdll.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140011135
mov rdi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140011135
mov r14, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140011135
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140011135
mov rdi, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call r14
test eax, eax
jne 0x140011135
mov r15, qword [rsp + 0x28]
mov ecx, 0x18
call fcn.14000ecef
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], r15
xor eax, eax
lock cmpxchg qword [0x1401d6040], r14
je 0x140011121
mov rdi, rax
cmp qword [r14], 0
je 0x140011111
mov rcx, qword [r14 + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov edx, 8
mov rcx, r14
call fcn.1400069b0
mov r14, rdi
and qword [rsi + 8], 0
mov qword [rsi], r14
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_._registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.9_src_thread_parkerwindowsmod.rs
lea r8, [0x1401c7050]
mov edx, 0x5b
call fcn.14001114e
int3

Function at 0x14001135f
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140056018]
test ecx, ecx
je 0x140011378
dec ecx
add rsp, 0x28
jmp fcn.14005327c
lea rcx, section..data
call fcn.1400195f0
mov ecx, eax
jmp 0x14001136f

Function at 0x140011388
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400113a9
dec ecx
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140053274
mov rcx, rax
call fcn.1400195f0
mov ecx, eax
jmp 0x14001139c
Function at 0x140014f00
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140007e60
cmp rax, rcx
je 0x140014f25
cmp rdx, 4
jae 0x140014f28
xor eax, eax
xor r8d, r8d
jmp 0x140014fc0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400574a0]
movdqa xmm3, xmmword [0x1400574b0]
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 0x140014f50
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140014fd7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140014fc0
ret
Function at 0x140015f40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x140015f9b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140015f9b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140015fb6
cmp eax, 0x42
jne 0x140015f9b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140016066
cmp byte [r8 + r11], 0x5f
jne 0x140016066
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400160ce
mov rcx, rsi
xor edx, edx
call fcn.140011930
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.140011930
test al, al
jne 0x140016161
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140015ff2
lea rdx, [0x1401c73c3]
mov r8d, 1
call fcn.140008350
test al, al
jne 0x140016161
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140015faa
xor r14d, r14d
lea rbx, [0x1401c7731]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140016024
cmp byte [rax + rcx], 0x45
je 0x140016183
sub r14, 1
jb 0x140016049
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140016049
mov r8d, 2
mov rdx, rbx
call fcn.140008350
test al, al
jne 0x140016161
mov rcx, rsi
call fcn.140013160
test al, al
jne 0x140016161
mov rax, qword [rsi]
test rax, rax
jne 0x140016010
jmp 0x140015faa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140016128
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x1400160c2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400160ac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001609b
add dl, 0xa9
jmp 0x1400160aa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140016128
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140016128
movzx edx, bl
add rax, rdx
jae 0x140016070
jmp 0x140016128
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140016128
cmp rax, rcx
jae 0x140016125
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001617b
cmp qword [rsi + 0x20], 0
je 0x140016174
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.140015f40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140015fac
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140016169
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x1401c7710]
test r9b, r9b
cmovne rdx, rax
call fcn.140008350
test al, al
je 0x140016169
mov dil, 2
jmp 0x140015faa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140015faa
mov dil, 1
xor r9d, r9d
jmp 0x14001612a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140015faa
Function at 0x1400195f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140019675
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 0x1400196b6
cmp dword [rsp + 0x2c], 0
je 0x14001969a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400196ce
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401d6110]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401d6110], rsi
jne 0x140019650
mov byte [0x1401d6108], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1400196ac
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140019718
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001969f
mov edi, dword [rsp + 0x28]
jmp 0x1400196ac
mov edi, dword [rsi + 0x18]
jmp 0x1400196aa
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 rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140019b70
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, str.Index_out_of_bounds
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.140007930
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.Index_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140019bc0
int3
Function at 0x140019a40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400560b8]
test ecx, ecx
je 0x140019b20
dec ecx
call fcn.14005327c
cmp rax, 2
jb 0x140019a74
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140019a74
add rdi, 0x10
jmp 0x140019b16
mov ecx, dword [0x1400560b8]
test ecx, ecx
je 0x140019b33
dec ecx
call fcn.14005327c
cmp rax, 1
je 0x140019b14
mov rsi, rax
test rax, rax
jne 0x140019ae3
movzx eax, byte [0x1401d6138]
mov ecx, 0x18
mov edx, 8
call fcn.140006920
test rax, rax
je 0x140019b56
mov rsi, rax
lea rax, [0x1400560a0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400560b8]
test ecx, ecx
je 0x140019b46
dec ecx
mov rdx, rsi
call fcn.140053274
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 0x140019b16
test rcx, rcx
je 0x140019b16
lock dec qword [rcx]
jne 0x140019b16
call fcn.1400195a0
jmp 0x140019b16
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400560a0]
call fcn.1400195f0
mov ecx, eax
jmp 0x140019a56
lea rcx, [0x1400560a0]
call fcn.1400195f0
mov ecx, eax
jmp 0x140019a84
lea rcx, [0x1400560a0]
call fcn.1400195f0
mov ecx, eax
jmp 0x140019adb
mov ecx, 8
mov edx, 0x18
call fcn.140006e50
int3
Function at 0x14001a760
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401ca3b8]
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 0x14001a7d1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001a807
test eax, eax
js 0x14001a7e2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001a7fa
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1401ca420]
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.140019860
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140018d20
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140056098]
test ecx, ecx
je 0x14001aebd
dec ecx
call fcn.14005327c
cmp rax, 2
jb 0x14001ae30
cmp qword [rax + 8], 0
je 0x14001ae30
add rax, 0x10
jmp 0x14001aeb7
mov ecx, dword [0x140056098]
test ecx, ecx
je 0x14001aed0
dec ecx
call fcn.14005327c
cmp rax, 1
je 0x14001aeb5
mov rsi, rax
test rax, rax
jne 0x14001ae9b
movzx eax, byte [0x1401d6138]
mov ecx, 0x20
mov edx, 8
call fcn.140006920
test rax, rax
je 0x14001aef3
mov rsi, rax
lea rax, [0x140056080]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140056098]
test ecx, ecx
je 0x14001aee3
dec ecx
mov rdx, rsi
call fcn.140053274
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x14001aeb7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140056080]
call fcn.1400195f0
mov ecx, eax
jmp 0x14001ae15
lea rcx, [0x140056080]
call fcn.1400195f0
mov ecx, eax
jmp 0x14001ae40
lea rcx, [0x140056080]
call fcn.1400195f0
mov ecx, eax
jmp 0x14001ae93
mov ecx, 8
mov edx, 0x20
call fcn.140006e50
int3
Function at 0x14001e780
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x54], 0
mov word [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
lea r8, [rsp + 0x38]
mov rcx, rdx
mov rdx, rax
call fcn.1400370f0
mov rdi, rdx
test rax, rax
je 0x14001e810
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.140018c80
mov qword [rsi], 0
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140037340
cmp dword [rsp + 0x38], 2
jne 0x14001e83f
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x14001e88b
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmm2, xmmword [rsp + 0x58]
movups xmm3, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
movaps xmmword [rsp + 0xb0], xmm3
movaps xmmword [rsp + 0xa0], xmm2
movaps xmmword [rsp + 0x90], xmm1
cmp qword [rsp + 0x80], 2
jne 0x14001e8b7
lea rcx, [rsp + 0x88]
call fcn.140018c80
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
mov r12, qword [rsp + 0xb8]
test rdi, rdi
je 0x14001e915
mov qword [rsp + 0x80], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x14001e991
mov rbx, qword [rsp + 0x80]
jmp 0x14001e917
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 0x14001e980
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 sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x14001e980
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14001e9bd
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x14001e9bd
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x38], 1
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.140018c80
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
jmp 0x14001e7ff
Function at 0x140037b60
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.14001b350
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x140037baf
lea rcx, [rsp + 0xb0]
call fcn.140018c80
mov qword [rsi], rdi
jmp 0x140037d8b
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x140037c40
jmp 0x140037c1f
jae 0x140037ce7
cmp r8, 0x201
jae 0x140037c40
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x140037c87
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140037c67
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14001b860
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x140037cae
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140037d26
mov r8d, r15d
cmp r12, r8
jne 0x140037c10
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140037dbb
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x140037c1f
jmp 0x140037c40
cmp rdi, r8
jb 0x140037dd5
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14001d430
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x140037d47
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x140037d60
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.1400069b0
cmp qword [rsp + 0x60], rdi
jne 0x140037da0
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.140018c80
cmp qword [rsp + 0x40], 0
je 0x140037d8b
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.1400069b0
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x140037d7c
jmp 0x140037d8b
lea rcx, str.internal_error:_entered_unreachable_codecalled__Option::unwrap____on_a__None__value
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140008670
jmp 0x140037dea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.1400082d0
ud2
Function at 0x1400396f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1401ca3b8]
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 0x14003975a
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140039769
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400397a0
cmp eax, 0x103
je 0x1400397aa
test eax, eax
js 0x140039786
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400397a0
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
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1401ca420]
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.140019860
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140018d20
mov ecx, 7
int 0x29
ud2

Function at 0x14003a800
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x20]
call fcn.14001b350
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
cmp rax, rdi
je 0x14003a8ad
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140037450
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rbx, rdi
je 0x14003a8ad
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x14003a889
test rbx, rbx
je 0x14003a885
mov edx, 2
mov rcx, rsi
call fcn.1400069b0
xor esi, esi
jmp 0x14003a8ad
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
je 0x14003a8aa
mov edx, 2
mov rcx, rsi
call fcn.1400069b0
mov rsi, rdi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003b060
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400560f8]
test ecx, ecx
je 0x14003b140
dec ecx
call fcn.14005327c
cmp rax, 2
jb 0x14003b094
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14003b094
add rdi, 0x10
jmp 0x14003b136
mov ecx, dword [0x1400560f8]
test ecx, ecx
je 0x14003b153
dec ecx
call fcn.14005327c
cmp rax, 1
je 0x14003b134
mov rsi, rax
test rax, rax
jne 0x14003b103
movzx eax, byte [0x1401d6138]
mov ecx, 0x18
mov edx, 8
call fcn.140006920
test rax, rax
je 0x14003b176
mov rsi, rax
lea rax, [0x1400560e0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400560f8]
test ecx, ecx
je 0x14003b166
dec ecx
mov rdx, rsi
call fcn.140053274
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 0x14003b136
test rcx, rcx
je 0x14003b136
lock dec qword [rcx]
jne 0x14003b136
call fcn.14003b190
jmp 0x14003b136
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400560e0]
call fcn.1400195f0
mov ecx, eax
jmp 0x14003b076
lea rcx, [0x1400560e0]
call fcn.1400195f0
mov ecx, eax
jmp 0x14003b0a4
lea rcx, [0x1400560e0]
call fcn.1400195f0
mov ecx, eax
jmp 0x14003b0fb
mov ecx, 8
mov edx, 0x18
call fcn.140006e50
int3