joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e2e0
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 0x14002e3d8
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14002e3d8
movzx eax, byte [r8 + rcx]
cmp eax, 0x42
je 0x14002e3f3
cmp eax, 0x49
jne 0x14002e3d8
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140029d30
test al, al
jne 0x14002e518
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002e35c
lea rdx, [0x14007750b]
mov r8d, 1
call fcn.14000ace0
test al, al
jne 0x14002e518
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14002e3e7
xor r14d, r14d
lea rbx, [0x1400770b9]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14002e399
test rax, rax
je 0x14002e399
cmp byte [rax + rcx], 0x45
je 0x14002e53a
sub r14, 1
jb 0x14002e3be
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002e3be
mov r8d, 2
mov rdx, rbx
call fcn.14000ace0
test al, al
jne 0x14002e518
mov rcx, rsi
call fcn.14002b630
test al, al
jne 0x14002e518
mov rax, qword [rsi]
test rax, rax
jne 0x14002e380
jmp 0x14002e3e7
mov rcx, rsi
xor edx, edx
call fcn.140029d30
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14002e413
cmp byte [r8 + r11], 0x5f
jne 0x14002e413
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002e47e
xor eax, eax
mov edi, 0x3e
nop word [rax + rax]
mov r9b, 1
cmp r11, r10
jae 0x14002e4df
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x14002e472
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002e45c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002e44b
add dl, 0xa9
jmp 0x14002e45a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14002e4df
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14002e4df
movzx edx, bl
add rax, rdx
jae 0x14002e420
jmp 0x14002e4df
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14002e4df
cmp rax, rcx
jae 0x14002e4dc
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14002e532
cmp qword [rsi + 0x20], 0
je 0x14002e52b
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.14002e2e0
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x14002e3e7
jmp 0x14002e518
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002e520
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___Cunsafe_extern__
lea rdx, [0x140077098]
test r9b, r9b
cmovne rdx, rax
call fcn.14000ace0
test al, al
je 0x14002e520
mov dil, 2
jmp 0x14002e3e7
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14002e3e7
mov dil, 1
xor r9d, r9d
jmp 0x14002e4e1
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14002e3e7
Function at 0x14003bf90
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.140061130
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, [0x140032f00]
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 0x14003c12f
mov r14d, 0xffffffff
lea rbx, [rsp + 0x40]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003c024
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x14003c136
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x14003c172
cmp r15d, 0x1000
ja 0x14003c1b2
xor r12d, r12d
nop word cs:[rax + rax]
mov r8, r15
sub r8, r12
lea rdx, [rsp + r12]
add rdx, 0x60
cmp r8, r14
cmovae r8, r14
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 0x14003c154
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x14003c0c0
mov ecx, dword [rsp + 0x38]
test ecx, ecx
jne 0x14003c15b
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
je 0x14003c0f1
jbe 0x14003c070
jmp 0x14003c19e
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
lea rdx, [rsp + 0x60]
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x14003c024
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov rbx, rcx
shl rbx, 0x20
or rbx, 2
call fcn.140032090
cmp al, 0xb
jne 0x14003c16a
mov rcx, rbx
call fcn.14005dbb0
jmp 0x14003c172
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
shl rcx, 0x20
or rcx, 2
call fcn.14005dbb0
jmp 0x14003c172
mov rcx, rbx
call fcn.14005dbb0
mov rcx, rdi
call fcn.1400610e0
mov rcx, rsi
call fcn.1400610e0
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.14000d210
jmp 0x14003c1c6
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14000d190
ud2
Function at 0x14003c310
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x1400832c0]
mov ecx, 0x10
mov edx, 8
call fcn.140004b20
test rax, rax
je 0x14003c3c8
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003c420]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14003c3bb
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x14003c39a
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140004bb0
mov edx, 8
mov rcx, rsi
call fcn.140004bb0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.140005bc0
ud2
Function at 0x14003c680
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x40], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x48], xmm6
mov dword [rsp + 0x58], 7
mov qword [rsp + 0x5c], 0
mov word [rsp + 0x64], 0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call fcn.140053360
mov rdi, rdx
test rax, rax
je 0x14003c6f7
mov rcx, rdi
call fcn.14005dbb0
mov qword [rsi], 0
jmp 0x14003c88a
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x14003c7aa
test byte [rsp + 0x41], 4
je 0x14003c74f
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x14003c7aa
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x14003c7e6
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 0x14003c869
mov rbx, qword [rsp + 0x40]
jmp 0x14003c7e8
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, rax
call fcn.14005dbb0
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400610e0
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 0x14003c858
mov r14, rax
shl r12, 0x20
or r12, r15
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.1400610e0
test r15, r15
je 0x14003c858
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x14003c882
mov qword [rsi], 0
mov rcx, rbx
call fcn.1400610e0
jmp 0x14003c882
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call fcn.14005dbb0
mov qword [rsi], 0
mov rcx, rdi
call fcn.1400610e0
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14004f750
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.14005ea30
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rax, rax
je 0x14004f7ca
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14004bc90
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14004f7c5
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14004f7e5
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14004f7d6
mov rcx, qword [rsp + 0x30]
call fcn.14005dbb0
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 0x14004f7d6
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140004bb0

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400630e8]
test ecx, ecx
je 0x140050cad
dec ecx
call fcn.140060e78
cmp rax, 2
jb 0x140050c20
cmp qword [rax + 8], 0
je 0x140050c20
add rax, 0x10
jmp 0x140050ca7
mov ecx, dword [0x1400630e8]
test ecx, ecx
je 0x140050cc0
dec ecx
call fcn.140060e78
cmp rax, 1
je 0x140050ca5
mov rsi, rax
test rax, rax
jne 0x140050c8b
movzx eax, byte [0x1400832c0]
mov ecx, 0x20
mov edx, 8
call fcn.140004b20
test rax, rax
je 0x140050ce3
mov rsi, rax
lea rax, [0x1400630d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400630e8]
test ecx, ecx
je 0x140050cd3
dec ecx
mov rdx, rsi
call fcn.140060e70
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x140050ca7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400630d0]
call fcn.140054bf0
mov ecx, eax
jmp 0x140050c05
lea rcx, [0x1400630d0]
call fcn.140054bf0
mov ecx, eax
jmp 0x140050c30
lea rcx, [0x1400630d0]
call fcn.140054bf0
mov ecx, eax
jmp 0x140050c83
mov ecx, 8
mov edx, 0x20
call fcn.140005bc0
ud2
Function at 0x1400510b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140063070]
test ecx, ecx
je 0x140051190
dec ecx
call fcn.140060e78
cmp rax, 2
jb 0x1400510e4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400510e4
add rdi, 0x10
jmp 0x140051186
mov ecx, dword [0x140063070]
test ecx, ecx
je 0x1400511a3
dec ecx
call fcn.140060e78
cmp rax, 1
je 0x140051184
mov rsi, rax
test rax, rax
jne 0x140051153
movzx eax, byte [0x1400832c0]
mov ecx, 0x18
mov edx, 8
call fcn.140004b20
test rax, rax
je 0x1400511c6
mov rsi, rax
lea rax, [0x140063058]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140063070]
test ecx, ecx
je 0x1400511b6
dec ecx
mov rdx, rsi
call fcn.140060e70
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 0x140051186
test rcx, rcx
je 0x140051186
lock dec qword [rcx]
jne 0x140051186
call fcn.140050ba0
jmp 0x140051186
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140063058]
call fcn.140054bf0
mov ecx, eax
jmp 0x1400510c6
lea rcx, [0x140063058]
call fcn.140054bf0
mov ecx, eax
jmp 0x1400510f4
lea rcx, [0x140063058]
call fcn.140054bf0
mov ecx, eax
jmp 0x14005114b
mov ecx, 8
mov edx, 0x18
call fcn.140005bc0
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140063090]
test ecx, ecx
je 0x140051400
dec ecx
call fcn.140060e78
cmp rax, 2
jb 0x140051354
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140051354
add rdi, 0x10
jmp 0x1400513f6
mov ecx, dword [0x140063090]
test ecx, ecx
je 0x140051413
dec ecx
call fcn.140060e78
cmp rax, 1
je 0x1400513f4
mov rsi, rax
test rax, rax
jne 0x1400513c3
movzx eax, byte [0x1400832c0]
mov ecx, 0x18
mov edx, 8
call fcn.140004b20
test rax, rax
je 0x140051436
mov rsi, rax
lea rax, [0x140063078]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140063090]
test ecx, ecx
je 0x140051426
dec ecx
mov rdx, rsi
call fcn.140060e70
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 0x1400513f6
test rcx, rcx
je 0x1400513f6
lock dec qword [rcx]
jne 0x1400513f6
call fcn.140050d90
jmp 0x1400513f6
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140063078]
call fcn.140054bf0
mov ecx, eax
jmp 0x140051336
lea rcx, [0x140063078]
call fcn.140054bf0
mov ecx, eax
jmp 0x140051364
lea rcx, [0x140063078]
call fcn.140054bf0
mov ecx, eax
jmp 0x1400513bb
mov ecx, 8
mov edx, 0x18
call fcn.140005bc0
ud2
Function at 0x140054bf0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140054c75
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 0x140054cb6
cmp dword [rsp + 0x2c], 0
je 0x140054c9a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140054cd0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140083290]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140083290], rsi
jne 0x140054c50
mov byte [0x140083289], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140054cac
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140054d1c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140054c9f
mov edi, dword [rsp + 0x28]
jmp 0x140054cac
mov edi, dword [rsi + 0x18]
jmp 0x140054caa
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.1400330a0
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, str.called__Option::unwrap____on_a__None__value_redacted_
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.14000c570
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_redacted_
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1400330f0
ud2
Function at 0x14005e750
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
lea rcx, [rsp + 0x98]
call fcn.14005ea30
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005e8bb
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
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 0x14005e810
jmp 0x14005e7ef
jae 0x14005e8ce
cmp r8, 0x201
jae 0x14005e810
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x14005e857
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14005e837
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140046370
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
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 0x14005e882
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14005e992
mov r8d, r15d
cmp r12, r8
jne 0x14005e7e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14005e9b2
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14005e7ef
jmp 0x14005e810
mov rcx, qword [rsp + 0xa0]
call fcn.14005dbb0
mov byte [rsi + 0x18], 2
jmp 0x14005e94d
cmp rdi, r8
jb 0x14005e9cc
lea rcx, [rsp + 0x60]
mov rdx, rbp
call fcn.14004b7c0
mov rdi, qword [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
movzx esi, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x23], eax
test rbx, rbx
je 0x14005e91f
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140004bb0
cmp sil, 2
jne 0x14005e962
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov rcx, rdi
call fcn.14005dbb0
cmp qword [rsp + 0x40], 0
je 0x14005e94d
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140004bb0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x38]
mov qword [rdx], rdi
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rdx + 8], xmm0
mov byte [rdx + 0x18], sil
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
cmp qword [rsp + 0x40], 0
jne 0x14005e93e
jmp 0x14005e94d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov sil, 2
test rbx, rbx
jne 0x14005e910
jmp 0x14005e91f
lea rcx, str.internal_error:_entered_unreachable_codelibrary_std_src_syswindows_args.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14000c670
jmp 0x14005e9e1
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14000d190
ud2
Function at 0x14005f330
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r15d, 0xffffffff
xor esi, esi
xor r13d, r13d
cmp r8, 0x201
jae 0x14005f3c0
jmp 0x14005f39f
jae 0x14005f466
cmp r8, 0x201
jae 0x14005f3c0
mov ebx, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14005f407
sub r8, r13
sub rsi, r13
cmp rsi, r8
jae 0x14005f3e7
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140046370
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rsp + 0x48], r13
mov rsi, rdi
mov rbx, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbp
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov r14d, eax
test eax, eax
jne 0x14005f42d
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14005f54f
mov r8d, r14d
cmp r12, r8
jne 0x14005f390
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14005f573
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x14005f39f
jmp 0x14005f3c0
cmp rbx, r8
jb 0x14005f58d
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14004b7c0
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.140049670
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x14005f4d3
lea rdx, [0x14007ac00]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.14004a290
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
mov rdx, rbx
call fcn.14004f750
cmp qword [rsp + 0x58], 0
je 0x14005f502
mov edx, 1
mov rcx, rbx
call fcn.140004bb0
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
test rdi, rdi
je 0x14005f53a
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140004bb0
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdi, rdi
jne 0x14005f52b
jmp 0x14005f53a
lea rcx, str.internal_error:_entered_unreachable_codelibrary_std_src_syswindows_args.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14000c670
jmp 0x14005f5a2
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.14000d190
ud2