joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140254ef0
Capabilities:
Get socket status

Disassembly:
mov byte [rsp + 0x20], r9b
push rbp
push rsi
push r14
sub rsp, 0x40
movzx r10d, r9b
mov esi, r8d
mov r14d, edx
mov rbp, rcx
cmp r8d, 0x32
jbe 0x14025505b
test edx, edx
je 0x14025505b
mov qword [rsp + 0x30], r15
mov r15, qword [rsp + 0x90]
mov dword [r15], 0xffffffff
cmp dword [rcx + 0x10], 0
jne 0x140254f5b
mov rcx, qword [rsp + 0x88]
lea rdx, str.No_sockets_exists_for_fdSetSelect.
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r15, qword [rsp + 0x30]
xor al, al
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x60], rbx
mov al, 1
mov qword [rsp + 0x68], rdi
xor edi, edi
mov qword [rsp + 0x70], r12
mov r12, qword [rsp + 0x98]
mov qword [rsp + 0x38], r13
mov r13, qword [rsp + 0x88]
mov ecx, 1
mov ebx, r14d
cmp esi, edi
jbe 0x140254f9a
mov ebx, esi
sub ebx, edi
cmp ebx, r14d
cmova ebx, r14d
test al, al
je 0x140254fa6
shr ebx, 1
cmp ebx, 1
cmovb ebx, ecx
mov r9, r13
mov qword [rsp + 0x20], r15
movzx r8d, r10b
mov edx, ebx
mov rcx, rbp
call fcn.140255090
mov ecx, dword [r15]
cmp ecx, 0xffffffff
je 0x14025501b
test ecx, ecx
jg 0x14025501b
add edi, ebx
cmp edi, esi
jae 0x14025503d
test r12, r12
je 0x140254fe2
mov rdx, r13
mov rcx, r12
call fcn.14014df40
test al, al
jne 0x140254fec
movzx r10d, byte [rsp + 0x78]
xor al, al
jmp 0x140254f83
mov rax, qword [r13]
lea rdx, str.socket_set_select_aborted_by_application_callback
mov rcx, r13
call qword [rax + 0x28]
xor eax, eax
mov dword [r15], eax
mov rcx, qword [rbp + 8]
mov dword [rbp + 0x10], eax
mov dword [rbp + 0x1018], eax
test rcx, rcx
je 0x140255019
call fcn.140186070
mov al, 1
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop r14
pop rsi
pop rbp
ret
mov rcx, qword [rbp + 8]
xor ebx, ebx
mov dword [rbp + 0x10], ebx
mov dword [rbp + 0x1018], ebx
test rcx, rcx
je 0x140255056
call fcn.140186070
mov dword [r15], ebx
jmp 0x140255019
mov rax, qword [rsp + 0x90]
movzx r8d, r10b
mov r9, qword [rsp + 0x88]
mov edx, esi
mov qword [rsp + 0x80], rax
add rsp, 0x40
pop r14
pop rsi
pop rbp
jmp fcn.140255090
Function at 0x140255090
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14036a040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [rsp + 0x90]
xor r15d, r15d
mov rsi, r9
movzx r10d, r8b
mov r9d, edx
mov rbx, rcx
mov r8d, r15d
mov dword [r14], 0xffffffff
mov eax, dword [rcx + 0x1018]
mov dword [rcx + 0x10], eax
test eax, eax
je 0x1402550fc
nop word [rax + rax]
mov edx, r8d
inc r8d
mov rax, qword [rcx + rdx*8 + 0x1020]
mov qword [rcx + rdx*8 + 0x18], rax
cmp r8d, dword [rcx + 0x1018]
jb 0x1402550e0
cmp dword [rcx + 0x10], r15d
jne 0x140255119
mov rax, qword [rsi]
lea rdx, str.No_sockets_exists_for_fdSetSelect.
mov rcx, rsi
call qword [rax + 0x28]
xor al, al
jmp 0x140255261
mov eax, 0x10624dd3
mul r9d
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r9d, eax
imul eax, r9d, 0x3e8
xor r9d, r9d
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
test r10b, r10b
je 0x140255157
xor r8d, r8d
lea rdx, [rcx + 0x10]
jmp 0x14025515d
lea r8, [rcx + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov dword [r14], eax
cmp eax, 0xffffffff
jne 0x14025519d
mov rax, qword [rsi]
lea rdx, str.select_system_call_failed.
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, qword [rbx + 8]
mov dword [rbx + 0x10], r15d
mov dword [rbx + 0x1018], r15d
test rcx, rcx
je 0x140255112
call fcn.140186070
xor al, al
jmp 0x140255261
cmp dword [rbx + 0x10], r15d
jne 0x1402551c5
mov rcx, qword [rbx + 8]
mov dword [rbx + 0x10], r15d
mov dword [rbx + 0x1018], r15d
test rcx, rcx
je 0x14025525f
call fcn.140186070
jmp 0x14025525f
call fcn.140186080
mov rsi, rax
test rax, rax
je 0x140255112
mov qword [rsp + 0x80], rbp
movsxd rbp, dword [rbx + 0x10]
test rbp, rbp
jle 0x140255240
mov rdi, r15
nop word [rax + rax]
movsxd rax, dword [rbx + 0x1018]
mov edx, r15d
mov rcx, r15
test eax, eax
jle 0x140255238
mov r8, qword [rbx + rdi*8 + 0x18]
mov r9, rax
lea rax, [rbx + 0x1020]
cmp r8, qword [rax]
je 0x140255225
inc edx
inc rcx
add rax, 8
cmp rcx, r9
jl 0x140255210
jmp 0x140255238
mov rcx, qword [rbx + 8]
call fcn.140186130
mov edx, eax
mov rcx, rsi
call fcn.140186010
inc rdi
cmp rdi, rbp
jl 0x1402551f0
mov rcx, qword [rbx + 8]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x14025525b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 8], rsi
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008b8a0
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14025c760
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rdi, r8d
add rcx, 8
mov rsi, rdx
call fcn.1400c9610
lea rcx, [rbx + 0x38]
mov rbp, rax
call fcn.1400c9610
mov r9d, dword [rsi + rdi*4 + 4]
mov rcx, rdi
mov r10d, dword [rsi + rcx*4]
lea rdi, [rsi + rdi*4]
xor r10d, dword [rbp]
lea rsi, [rsi + rcx*4]
xor ebx, ebx
mov r11, rax
nop
inc ebx
mov ecx, r10d
and ecx, 0xff0000
mov eax, r10d
shr rax, 0x18
bts rcx, 0x18
shr rcx, 0x10
mov edx, dword [r11 + rcx*4]
add edx, dword [r11 + rax*4]
mov eax, r10d
and eax, 0xff00
bts rax, 0x11
shr rax, 8
xor edx, dword [r11 + rax*4]
movzx eax, r10b
or rax, 0x300
add edx, dword [r11 + rax*4]
xor edx, dword [rbp + rbx*4]
inc ebx
xor r9d, edx
mov ecx, r9d
and ecx, 0xff0000
mov eax, r9d
shr rax, 0x18
bts rcx, 0x18
shr rcx, 0x10
mov edx, dword [r11 + rcx*4]
add edx, dword [r11 + rax*4]
mov eax, r9d
and eax, 0xff00
bts rax, 0x11
shr rax, 8
xor edx, dword [r11 + rax*4]
movzx eax, r9b
or rax, 0x300
add edx, dword [r11 + rax*4]
xor edx, dword [rbp + rbx*4]
xor r10d, edx
cmp ebx, 0xe
jbe 0x14025c7b0
xor r9d, dword [rbp + 0x44]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov dword [rsi], r9d
mov rsi, qword [rsp + 0x40]
mov dword [rdi + 4], r10d
add rsp, 0x20
pop rdi
ret
Function at 0x14025cc40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
xor ebx, ebx
add rcx, 8
mov qword [rsp + 0x20], rbx
mov r13d, r8d
call fcn.1400c9940
cdq
lea rcx, [r14 + 0x38]
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
call fcn.1400c9940
cdq
lea rcx, [r14 + 8]
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x88], eax
call fcn.1400c9610
lea rcx, [r14 + 0x38]
mov r15, rax
call fcn.1400c9610
mov r12, rax
test rsi, rsi
jle 0x14025cd4a
mov r10, qword [rsp + 0x78]
mov r9d, ebx
mov eax, ebx
nop
movsxd rcx, eax
inc eax
cdq
idiv r13d
movzx r8d, byte [rcx + r10]
movsxd rax, edx
shl r8d, 8
movzx ecx, byte [rax + r10]
lea eax, [rdx + 1]
cdq
or ecx, r8d
idiv r13d
shl ecx, 8
movsxd rax, edx
movzx r8d, byte [rax + r10]
lea eax, [rdx + 1]
cdq
or r8d, ecx
idiv r13d
shl r8d, 8
movsxd rax, edx
movzx ecx, byte [rax + r10]
lea eax, [rdx + 1]
cdq
or ecx, r8d
xor dword [r15 + r9*4], ecx
inc r9
idiv r13d
mov eax, edx
cmp r9, rsi
jl 0x14025ccc0
mov rdi, rbx
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14025c760
mov eax, dword [rsp + 0x20]
mov dword [r15 + rdi*4], eax
mov eax, dword [rsp + 0x24]
mov dword [r15 + rdi*4 + 4], eax
add rdi, 2
cmp rdi, rsi
jl 0x14025cd20
movsxd rdi, dword [rsp + 0x88]
test rdi, rdi
jle 0x14025cd8a
nop word [rax + rax]
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14025c760
mov eax, dword [rsp + 0x20]
mov dword [r12 + rbx*4], eax
mov eax, dword [rsp + 0x24]
mov dword [r12 + rbx*4 + 4], eax
add rbx, 2
cmp rbx, rdi
jl 0x14025cd60
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14025f650
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x28]
mov rbp, rdx
cmp eax, r8d
mov esi, eax
mov rdi, rcx
cmova esi, r8d
test esi, esi
jne 0x14025f687
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
sub eax, esi
mov qword [rsp + 0x30], rbx
cmp byte [rcx + 0x18], 0
mov dword [rcx + 0x28], eax
je 0x14025f7eb
mov r9, qword [rcx + 0x20]
mov r11d, esi
mov r8d, dword [rcx + 0x1c]
movzx ecx, r8w
shr r8d, 0x10
test r9, r9
jne 0x14025f6c0
lea r8d, [r9 + 1]
jmp 0x14025f7e7
mov edx, 0x15b0
cmp r11d, edx
cmovb edx, r11d
sub r11d, edx
cmp edx, 0x10
jb 0x14025f790
mov r10d, edx
shr r10, 4
nop
movzx eax, byte [r9]
add edx, 0xfffffff0
add ecx, eax
movzx eax, byte [r9 + 1]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 2]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 3]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 4]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 5]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 6]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 7]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 8]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 9]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xa]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xb]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xc]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xd]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xe]
add r8d, ecx
add ecx, eax
movzx eax, byte [r9 + 0xf]
add r8d, ecx
add r9, 0x10
add ecx, eax
add r8d, ecx
sub r10, 1
jne 0x14025f6e0
test edx, edx
je 0x14025f7b1
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
inc r9
add ecx, eax
add r8d, ecx
add edx, 0xffffffff
jne 0x14025f7a0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r8d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r8d, eax
test r11d, r11d
jne 0x14025f6c0
shl r8d, 0x10
or r8d, ecx
mov dword [rdi + 0x1c], r8d
mov rdx, qword [rdi + 0x20]
mov rcx, rbp
mov r8d, esi
mov ebx, esi
call sub.VCRUNTIME140.dll_memcpy
add qword [rdi + 0x20], rbx
mov eax, esi
add dword [rdi + 0x2c], esi
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140260e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x20
mov edi, dword [rcx + 0x2c]
mov rbx, rcx
mov qword [rsp + 0x30], r14
mov esi, dword [rbx + 0x40]
lea r8, [rbx + 0x38]
mov edx, dword [rbx + 0x88]
sub esi, edx
mov eax, dword [rbx + 0x90]
sub esi, eax
jne 0x140260e6c
test edx, edx
jne 0x140260e7b
lea r8, [rbx + 0x38]
test eax, eax
jne 0x140260e7b
mov esi, edi
jmp 0x140260f13
cmp esi, 0xffffffff
jne 0x140260e7b
mov esi, 0xfffffffe
jmp 0x140260f13
lea ecx, [rdi - 0x106]
add ecx, dword [rbx + 0x2c]
cmp edx, ecx
jb 0x140260f13
mov rcx, qword [r8]
mov r8, rdi
lea rdx, [rdi + rcx]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rbx + 0x68]
mov rax, qword [rbx + 0x58]
sub dword [rbx + 0x8c], edi
sub dword [rbx + 0x88], edi
sub dword [rbx + 0x78], edi
lea rdx, [rax + r8*2]
nop word [rax + rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
sub cx, di
movzx eax, cx
not ax
sar ax, 0xf
and ax, cx
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x140260ec0
mov rax, qword [rbx + 0x48]
mov r8d, edi
lea rax, [rax + rdi*2]
nop dword [rax]
movzx edx, word [rax - 2]
lea rax, [rax - 2]
sub dx, di
movzx ecx, dx
not cx
sar cx, 0xf
and cx, dx
mov word [rax], cx
add r8d, 0xffffffff
jne 0x140260ef0
add esi, edi
mov rcx, qword [rbx + 8]
call fcn.1400ef650
test eax, eax
je 0x140260f9a
mov edx, dword [rbx + 0x90]
mov r8d, esi
mov eax, dword [rbx + 0x88]
mov rcx, qword [rbx + 8]
add rdx, rax
add rdx, qword [rbx + 0x38]
call fcn.14025f650
mov r9d, dword [rbx + 0x90]
add r9d, eax
mov dword [rbx + 0x90], r9d
cmp r9d, 3
jb 0x140260f80
mov eax, dword [rbx + 0x88]
mov rdx, qword [rbx + 0x38]
mov ecx, dword [rbx + 0x74]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x64], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x70]
mov dword [rbx + 0x64], r8d
cmp r9d, 0x106
jae 0x140260f9a
mov rcx, qword [rbx + 8]
call fcn.1400ef650
test eax, eax
jne 0x140260e40
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x1400194b0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movzx r8d, word [rcx]
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
test rax, rax
setne r9b
xor r10d, r10d
cmp r8d, 0x5a4d
lea r9d, [r9 + r9*4 + 1]
cmovne r9d, r10d
cmp r9b, 6
jne 0x14001958a
cmp eax, 0x40
jb 0x14001971d
cmp rax, rdx
ja 0x140019733
movzx r8d, word [rax + rcx + 0x18]
cmp r8d, 0x20b
je 0x14001955b
mov r9b, 5
cmp r8d, 0x10b
jne 0x14001958a
mov r9b, 2
cmp dword [rcx + rax], 0x4550
jne 0x14001958a
lea r8, [rcx + rax]
movzx r10d, word [r8 + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x14001958a
movzx esi, word [r8 + 0x16]
mov r9b, 4
test sil, 2
je 0x14001958a
mov r11d, 0x138
mov bl, 1
xor r9d, r9d
jmp 0x1400195b8
mov r9b, 2
cmp dword [rcx + rax], 0x4550
jne 0x14001958a
lea r8, [rcx + rax]
movzx r10d, word [r8 + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x14001958a
movzx esi, word [r8 + 0x16]
mov r9b, 4
test sil, 2
jne 0x1400195aa
movzx eax, r9b
shl rax, 0x20
or rax, 0xb
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r11d, 0x148
mov r9d, 1
xor ebx, ebx
lea r14, [rax - 0x40]
add r11, r14
cmp r11, rdx
ja 0x140019744
mov qword [rsp + 0x38], r9
mov r10, rdx
sub r10, r11
movzx r12d, word [rcx + rax + 6]
lea r9, [r12*8]
lea r9, [r9 + r9*4]
mov r15, r10
sub r15, r9
jb 0x140019755
lea r10, [rcx + 0x40]
mov rdi, rcx
shr rdi, 8
add r11, rcx
add r9, r11
mov rbp, r12
shr rbp, 8
mov dword [rsp + 0x41], edi
mov r13, rdi
shr r13, 0x30
mov byte [rsp + 0x47], r13b
shr rdi, 0x20
mov word [rsp + 0x45], di
mov qword [rsp + 0x48], r10
mov byte [rsp + 0x40], cl
mov qword [rsp + 0x50], r14
mov r10, qword [rsp + 0x38]
mov qword [rsp + 0x58], r10
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r11
mov byte [rsp + 0x70], r12b
mov dword [rsp + 0x71], ebp
mov byte [rsp + 0x77], 0
mov word [rsp + 0x75], 0
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rdx
test bl, bl
je 0x140019689
mov ecx, 6
xor eax, eax
or rax, rcx
jmp 0x140019596
test esi, 0x2000
jne 0x1400196b4
cmp dword [rcx + rax + 0xfc], 0
je 0x1400196c3
cmp dword [rcx + rax + 0xf8], 0
je 0x1400196c3
xor eax, eax
mov ecx, 9
or rax, rcx
jmp 0x140019596
mov ecx, 7
xor eax, eax
or rax, rcx
jmp 0x140019596
mov esi, dword [rcx + rax + 0x28]
test rsi, rsi
je 0x1400196e9
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x40]
call fcn.140018c40
cmp dword [rsp + 0x28], 0
jne 0x1400196f8
mov rax, qword [rsp + 0x30]
jmp 0x1400196fc
xor eax, eax
mov ecx, 8
or rax, rcx
jmp 0x140019596
mov eax, dword [rsp + 0x30]
je 0x14001970e
mov ecx, dword [rsp + 0x2c]
shl rax, 0x20
or rax, rcx
jmp 0x140019596
add rax, rsi
call rax
mov eax, 0xe
jmp 0x140019596
lea r8, str.F:memexecmemexec_srcpeparserheader.rs
mov ecx, 0x40
mov rdx, rax
call fcn.140060620
ud2
lea r8, str.F:memexecmemexec_srcpeparserheader.rs
mov rcx, rax
call fcn.1400605a0
ud2
lea r8, str.Hg_a_
mov rcx, r11
call fcn.140060520
ud2
lea r8, str.F:memexecmemexec_srcpeparser_section.rs
mov rcx, r9
mov rdx, r10
call fcn.140060520
ud2
Function at 0x14002fa20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
movzx ebp, byte [rdx + 0x38]
cmp bpl, 1
ja 0x14002fa7d
movzx ebx, byte [rdi + 0x3a]
mov rcx, rdi
call fcn.14002f900
test bpl, bpl
jne 0x14002fa81
lea rcx, [rdi + 0x10]
xor r8d, r8d
cmp byte [rdi + 0x10], 6
cmove rcx, r8
je case.0x14002fa71.2
movzx edx, byte [rcx]
mov r8d, 6
lea r9, [0x14002fbf4]
movsxd rdx, dword [r9 + rdx*4]
add rdx, r9
jmp rdx
mov r8, qword [rcx + 0x10]
add r8, 4
jmp case.0x14002fa71.2
xor eax, eax
xor ebx, ebx
xor r8d, r8d
movzx r10d, bl
movzx ebx, al
lea rcx, [r10 + rbx]
add rcx, r8
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14002fbd8
mov r11, qword [rdi]
lea rax, [r11 + rcx]
cmp rdx, rcx
jne 0x14002fab8
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14002fb39
movzx r9d, byte [rdi + 0x10]
add r8, rbx
add r8, r10
sub r8, rdx
inc r8
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14002fb00
nop dword [rax]
cmp byte [rdi], 0x5c
je 0x14002fb1b
inc r8
dec rdi
cmp r8, 1
jne 0x14002fae0
jmp 0x14002fb39
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14002fb1b
cmp ebx, 0x5c
je 0x14002fb1b
inc r8
dec rdi
cmp r8, 1
jne 0x14002fb00
jmp 0x14002fb39
neg r8
add rcx, r8
inc rcx
cmp rdx, rcx
jb 0x14002fbe6
add r11, rcx
mov r10d, 1
mov rax, r11
sub rdx, rcx
je 0x14002fb62
mov cl, 9
cmp rdx, 2
je 0x14002fb66
cmp rdx, 1
jne 0x14002fb75
cmp byte [rax], 0x2e
jne 0x14002fb75
xor ecx, ecx
cmp r9b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x14002fb75
mov cl, 0xa
jmp 0x14002fb75
cmp byte [rax], 0x2e
jne 0x14002fb75
cmp byte [rax + 1], 0x2e
sete cl
xor cl, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], cl
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 8
jmp case.0x14002fa71.2
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea r8, [rcx + 1]
test rcx, rcx
cmove r8, rcx
add r8, rdx
add r8, 2
jmp case.0x14002fa71.2
mov r8d, 2
jmp case.0x14002fa71.2
lea r8, str.library_std_srcpath.rs
call fcn.140060520
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140060520
ud2
Function at 0x1400314c0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov rax, qword [rdx]
mov qword [rbp + 0x3c0], rax
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r14d, r14d
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140031560
jmp 0x14003154f
jae 0x140031626
cmp r8, 0x201
jae 0x140031560
mov r15d, 0x200
lea rdi, [rbp - 0x60]
mov r12, r8
jmp 0x1400315b8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14003158f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14005f130
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov r14, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp r14, rax
mov r13d, 0xffffffff
cmovb r13, r14
mov qword [rbp + 0x3d8], r13
mov rbx, r14
mov r15, r13
mov rdi, qword [rbp + 0x3e8]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x3c0]
mov rdx, rdi
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x1400315e7
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14003168e
mov r8d, esi
cmp r12, r8
jne 0x140031540
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400316b1
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14003154f
jmp 0x140031560
cmp r15, r8
jb 0x1400316cb
lea rcx, [rbp + 0x3a0]
mov rdx, rdi
call fcn.140032920
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r14, r14
je 0x140031677
add r14, r14
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r14
call fcn.140018bf0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r14, r14
jne 0x14003165f
jmp 0x140031677
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400600f0
jmp 0x1400316e0
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1400605a0
ud2
Function at 0x140031d20
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140031db0
jmp 0x140031d9f
jae 0x140031e70
cmp r8, 0x201
jae 0x140031db0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140031e08
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140031ddf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14005f130
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140031e31
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140031ed8
mov r8d, r14d
cmp r15, r8
jne 0x140031d90
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140031efb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140031d9f
jmp 0x140031db0
cmp rsi, r8
jb 0x140031f15
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140032920
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140031ec1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140018bf0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140031ea9
jmp 0x140031ec1
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400600f0
jmp 0x140031f2a
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400605a0
ud2

Function at 0x140034fe0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140035018
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140035030
nop
add rsp, 0x38
ret