joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402386e0
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 0x14023873b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14023873b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140238756
cmp eax, 0x42
jne 0x14023873b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140238806
cmp byte [r8 + r11], 0x5f
jne 0x140238806
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14023886e
mov rcx, rsi
xor edx, edx
call fcn.140233dc0
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.140233dc0
test al, al
jne 0x140238901
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140238792
lea rdx, [0x140362462]
mov r8d, 1
call fcn.1400ab880
test al, al
jne 0x140238901
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14023874a
xor r14d, r14d
lea rbx, [0x1403627d1]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1402387c4
cmp byte [rax + rcx], 0x45
je 0x14023892a
sub r14, 1
jb 0x1402387e9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1402387e9
mov r8d, 2
mov rdx, rbx
call fcn.1400ab880
test al, al
jne 0x140238901
mov rcx, rsi
call fcn.140235650
test al, al
jne 0x140238901
mov rax, qword [rsi]
test rax, rax
jne 0x1402387b0
jmp 0x14023874a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x1402388c8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140238862
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14023884c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14023883b
add dl, 0xa9
jmp 0x14023884a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1402388c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1402388c8
movzx edx, bl
add rax, rdx
jae 0x140238810
jmp 0x1402388c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1402388c8
cmp rax, rcx
jae 0x1402388c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140238909
cmp qword [rsi + 0x20], 0
je 0x140238923
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.1402386e0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14023874c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140238918
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, [0x1403627b0]
test r9b, r9b
cmovne rdx, rax
call fcn.1400ab880
test al, al
je 0x140238918
mov dil, 2
jmp 0x14023874a
mov dil, 1
xor r9d, r9d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1402388d3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14023874a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14023874a
Function at 0x14023b5c0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
movabs rax, 0x8000000000000000
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
cmp qword [rcx + 0x18], rax
jne 0x14023b693
cmp qword [rcx + 0x30], rax
jne 0x14023b6b3
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x14023b6f9
mov rbx, qword [rcx + 8]
lea rdi, [r14*8]
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x14023b66a
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14023b7ea
mov rcx, rax
mov qword [0x1403ac160], rax
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14023b7ea
mov rsi, rax
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov eax, r14d
jmp 0x14023b700
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x90], rdx
cmp qword [rcx + 0x30], rax
je 0x14023b626
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x14023b6e3
mov r8, qword [rcx + 0x38]
xor edx, edx
lea r9, [0x140395038]
xor r10d, r10d
nop dword [rax]
movzx r11d, byte [r8 + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp rax, r10
jne 0x14023b6d0
jmp 0x14023b6e5
xor edx, edx
mov dword [rsp + 0x98], edx
mov r14, qword [rcx + 0x10]
test r14, r14
jne 0x14023b633
xor eax, eax
mov esi, 8
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
lea rdx, [0x140365513]
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x14023b789
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
test r14, r14
je 0x14023b76e
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, rsi
call fcn.14029804c
mov rax, rbx
mov rdx, rdi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
movaps xmm6, xmmword [rsp + 0x50]
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x14023b7b5
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14023b7f7
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14023b7f7
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm6
xor ebx, ebx
test r14, r14
jne 0x14023b75d
jmp 0x14023b76e
mov ecx, 8
mov rdx, rdi
call fcn.1400a81e0
mov ecx, 8
mov edx, 0x20
call fcn.1400a81e0
int3
Function at 0x140242d30
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140242db5
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 0x140242df6
cmp dword [rsp + 0x2c], 0
je 0x140242dda
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140242e1c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1403ac198]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1403ac198], rsi
jne 0x140242d90
mov byte [0x1403ac190], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140242dec
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140242e66
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140242ddf
mov edi, dword [rsp + 0x28]
jmp 0x140242dec
mov edi, dword [rsi + 0x18]
jmp 0x140242dea
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, [0x140369f38]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.140243470
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, [0x1403911f0]
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.1400aae40
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1403911f0]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1402434b0
int3
Function at 0x140243310
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14029b240]
test ecx, ecx
je 0x140243340
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140243359
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140243359
add rdi, 0x10
jmp 0x14024343a
lea rcx, [0x14029b228]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14024332d
mov ecx, dword [0x14029b240]
test ecx, ecx
je 0x14024341b
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140243438
mov rsi, rax
test rax, rax
jne 0x1402433ea
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x1402433ab
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140243454
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140243454
mov rsi, rax
lea rax, [0x14029b228]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14029b240]
test ecx, ecx
je 0x140243444
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 0x14024343a
test rcx, rcx
je 0x14024343a
lock dec qword [rcx]
jne 0x14024343a
call fcn.1400e4a50
jmp 0x14024343a
lea rcx, [0x14029b228]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140243378
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x14029b228]
call fcn.140242d30
mov ecx, eax
jmp 0x1402433e2
mov ecx, 8
mov edx, 0x18
call fcn.1400a81e0
int3

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14029b260]
test ecx, ecx
je 0x140244186
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1402440ed
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140244180
mov ecx, dword [0x14029b260]
test ecx, ecx
je 0x1402441a8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1402441c5
mov rsi, rax
test rax, rax
jne 0x14024417a
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x14024413f
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1402441e0
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1402441e0
mov rsi, rax
lea rax, [0x14029b248]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14029b260]
test ecx, ecx
je 0x1402441d0
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x1402441c7
lea rcx, [0x14029b248]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1402440e0
jmp 0x1402440ed
lea rcx, [0x14029b248]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x14024410c
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14029b248]
call fcn.140242d30
mov ecx, eax
jmp 0x140244172
mov ecx, 8
mov edx, 0x10
call fcn.1400a81e0
int3
Function at 0x140244750
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140369610]
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 0x1402447c1
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1402447f7
test eax, eax
js 0x1402447d2
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1402447ea
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, [0x140369678]
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.140243130
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140242550
mov ecx, 7
int 0x29
ud2

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14029b220]
test ecx, ecx
je 0x14024528d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1402452a6
cmp qword [rax + 8], 0
je 0x1402452a6
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14029b208]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14024527c
mov ecx, dword [0x14029b220]
test ecx, ecx
je 0x140245351
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14024536e
mov rsi, rax
test rax, rax
jne 0x140245333
movzx eax, byte [0x1403ac1f0]
mov rcx, qword [0x1403ac160]
test rcx, rcx
jne 0x1402452f8
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140245386
mov rcx, rax
mov qword [0x1403ac160], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140245386
mov rsi, rax
lea rax, [0x14029b208]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14029b220]
test ecx, ecx
je 0x140245376
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
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14029b208]
call fcn.140242d30
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1402452c5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14029b208]
call fcn.140242d30
mov ecx, eax
jmp 0x14024532b
mov ecx, 8
mov edx, 0x20
call fcn.1400a81e0
int3
Function at 0x140248e90
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.140262170
mov rdi, rdx
test rax, rax
je 0x140248f24
mov qword [rsp + 0x80], 1
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x88], rdi
call fcn.140242490
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.1402623c0
cmp dword [rsp + 0x38], 2
jne 0x140248f53
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x80], 2
jmp 0x140248f9f
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 0x140248fcb
lea rcx, [rsp + 0x88]
call fcn.140242490
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 0x140249029
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 0x1402490a5
mov rbx, qword [rsp + 0x80]
jmp 0x14024902b
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 0x140249094
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 0x140249094
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1402490d1
mov qword [rsi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x1402490d1
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.140242490
mov qword [rsi], 0
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
jmp 0x140248f13
Function at 0x140262c10
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.1402456d0
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x140262c5f
lea rcx, [rsp + 0xb0]
call fcn.140242490
mov qword [rsi], rdi
jmp 0x140262e24
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 0x140262cf0
jmp 0x140262ccf
jae 0x140262d9b
cmp r8, 0x201
jae 0x140262cf0
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x140262d37
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140262d17
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140245b60
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 0x140262d62
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140262e54
mov r8d, r15d
cmp r12, r8
jne 0x140262cc0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140262e88
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x140262ccf
jmp 0x140262cf0
cmp rdi, r8
jb 0x140262ea2
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.140247b10
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x140262df5
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, qword [rsp + 0x28]
call fcn.14029804c
cmp qword [rsp + 0x60], rdi
jne 0x140262e39
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.140242490
cmp qword [rsp + 0x40], 0
je 0x140262e24
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.14029804c
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 0x140262e11
jmp 0x140262e24
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
jne 0x140262de2
jmp 0x140262df5
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_std_src_threadmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400abba0
jmp 0x140262eb7
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.1400ab800
ud2
Function at 0x140264bc0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140369610]
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 0x140264c2a
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140264c39
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140264c70
cmp eax, 0x103
je 0x140264c7a
test eax, eax
js 0x140264c56
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140264c70
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, [0x140369678]
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.140243130
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140242550
mov ecx, 7
int 0x29
ud2
Function at 0x1402653e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x500
movaps xmmword [rsp + 0x4f0], xmm6
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movq xmm6, qword [rdx + 0x40]
movzx ebp, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x140265440
mov r14, qword [rbx]
movd eax, xmm6
cmp ax, 0x2e
jne 0x140265524
pextrw eax, xmm6, 1
test eax, eax
je 0x140265440
cmp ax, 0x2e
jne 0x140265524
test bp, bp
jne 0x140265524
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x14026550a
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
jmp 0x14026548f
mov rcx, rdi
mov rdx, rbx
call sub.kernel32.dll_FindNextFileW
test eax, eax
je 0x14026550a
cmp word [rsp + 0xac], 0x2e
jne 0x1402654b8
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x140265480
cmp ax, 0x2e
jne 0x1402654b8
cmp word [rsp + 0xb0], 0
je 0x140265480
lock inc qword [r14]
jle 0x14026560b
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movd xmm6, dword [rsp + 0xac]
movzx ebp, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x14026554f
call sub.kernel32.dll_GetLastError
cmp eax, 0x12
jne 0x14026559b
mov qword [rsi], 0
jmp 0x1402655f5
lock inc qword [r14]
jle 0x14026560b
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
jmp 0x1402655ad
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
movd dword [rsi + 0x3c], xmm6
mov word [rsi + 0x40], bp
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov qword [rsi], 1
movaps xmm6, xmmword [rsp + 0x4f0]
add rsp, 0x500
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
ud2