joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088b00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140123080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140088b95
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140088bf6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140063060
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14009bc10
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140088cb1
sub ecx, 1
je 0x140088d24
sub ecx, 1
je 0x140088c60
cmp ecx, 1
je 0x140088c43
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400ae84c]
call fcn.140063060
jmp 0x140088d24
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140088830
test eax, eax
je 0x140088d24
jmp 0x140088bca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140088d24
sub rax, rsi
cmp rax, rbp
jae 0x140088d24
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400631e0
jmp 0x140088d24
cmp r8d, 4
jle 0x140088d24
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140088d24
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140062f80
mov esi, eax
test eax, eax
je 0x140088d03
mov edx, 5
mov rcx, rbx
call fcn.1400897f0
mov eax, esi
jmp 0x140088bca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140071a50
mov rcx, r14
call fcn.140071d30
test eax, eax
je 0x140088bc8
mov edx, 5
mov rcx, rbx
call fcn.1400897f0
mov eax, Ordinal_45
jmp 0x140088bca
Function at 0x14009bac0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [0x140123020]
mov rdi, rax
test rax, rax
jne 0x14009bb02
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14009bb49
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14009bba2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14009bb60
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14009bbe3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ae0e2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ae0e3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14009bbb0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x401ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401c38
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401afc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401b85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ae0
mov rcx, rbx
call fcn.00402750
test rax, rax
mov r12, rax
je 0x401c6d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402880
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401b7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401be0
add dword [0x00408624], 1
cmp edi, 8
jae 0x401bb3
test dil, 4
jne 0x401c24
test edi, edi
je 0x401ba8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401c3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401ba8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401bcc
jmp 0x401ba8
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403010
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401ba8
xor esi, esi
jmp 0x401b07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401ba8
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00403010
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403010
nop
nop dword [rax]

Function at 0x4023c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402414
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40240b
test rsi, rsi
je 0x40240b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4023f0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402750
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405340]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4027bd
mov rcx, r8
call fcn.00402630
test eax, eax
je 0x4027bd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4027bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4027b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4027bf
add rax, 0x28
cmp rax, r9
jne 0x4027a0
xor eax, eax
add rsp, 0x28
ret
Function at 0x403010
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00402b10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402b10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001b8d
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140001bc0
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140001bc5
call fcn.14001a300
mov ecx, dword [0x14002c1ec]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0x78], 1
mov qword [rcx + 0x80], rax
mov qword [rcx + 0x88], rdx
add rsp, 0x38
ret

Function at 0x140009ba0
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 0x140009c30
cmp r10, r11
jb 0x140009ca6
cmp r10, rdx
ja 0x140009cba
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140009c32
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140009c10
jmp 0x140009c94
ja 0x140009c3a
mov r11, r10
cmp rax, r8
jne 0x140009bd4
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 0x140009c70
mov rdi, r8
sub ecx, edx
jns 0x140009c8b
jmp 0x140009c96
cmp r8, rsi
je 0x140009ccb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140009c96
xor al, 1
cmp rdi, rsi
jne 0x140009c50
jmp 0x140009c96
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.14001f760
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001f4f0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001f570
ud2
Function at 0x14000fd40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14000fd9b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000fd9b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000fdb6
cmp eax, 0x42
jne 0x14000fd9b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000fe66
cmp byte [r9 + r11], 0x5f
jne 0x14000fe66
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000fece
mov rcx, rsi
xor edx, edx
call fcn.14000b5b0
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.14000b5b0
test al, al
jne 0x14000ff61
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000fdf2
lea rdx, [0x1400256ab]
mov r8d, 1
call fcn.1400079e0
test al, al
jne 0x14000ff61
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000fdaa
xor r14d, r14d
lea rbx, [0x140025a8e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000fe24
cmp byte [rax + rcx], 0x45
je 0x14000ff83
sub r14, 1
jb 0x14000fe49
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000fe49
mov r8d, 2
mov rdx, rbx
call fcn.1400079e0
test al, al
jne 0x14000ff61
mov rcx, rsi
call fcn.14000ffa0
test al, al
jne 0x14000ff61
mov rax, qword [rsi]
test rax, rax
jne 0x14000fe10
jmp 0x14000fdaa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000ff28
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000fec2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000feac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000fe9b
add dl, 0xa9
jmp 0x14000feaa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000ff28
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000ff28
movzx edx, bl
add rax, rdx
jae 0x14000fe70
jmp 0x14000ff28
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000ff28
cmp rax, rcx
jae 0x14000ff25
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000ff7b
cmp qword [rsi + 0x20], 0
je 0x14000ff8f
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.14000fd40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000fdac
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ff69
lea rax, [0x140025a59]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400079e0
test al, al
je 0x14000ff69
mov dil, 2
jmp 0x14000fdaa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000fdaa
mov dil, 1
xor r8d, r8d
jmp 0x14000ff2a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000fdaa
xor edi, edi
jmp 0x14000fdaa
Function at 0x140017570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400175a0
test ecx, ecx
jne 0x1400175f0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400175ac
test ecx, ecx
jne 0x1400175f0
mov rcx, rdi
call fcn.140017450
movzx eax, al
test bpl, bpl
jne 0x1400175f7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400175e3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140017768]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400175e3.2
xor eax, eax
test bpl, bpl
je 0x1400175bc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140017749
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001762a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400176a9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140017670
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14001768b
inc rax
dec rdi
cmp rax, 1
jne 0x140017650
jmp 0x1400176a9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14001768b
cmp ebx, 0x5c
je 0x14001768b
inc rax
dec rdi
cmp rax, 1
jne 0x140017670
jmp 0x1400176a9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140017757
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400176d3
mov al, 9
cmp rdx, 2
je 0x1400176d7
cmp rdx, 1
jne 0x1400176e7
cmp byte [r8], 0x2e
jne 0x1400176e7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400176e7
mov al, 0xa
jmp 0x1400176e7
cmp byte [r8], 0x2e
jne 0x1400176e7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400175e3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400175e3.2
mov ecx, 2
jmp case.0x1400175e3.2
lea r8, str.library_std_srcpath.rs
call fcn.14001f470
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001f470
ud2
Function at 0x140017b60
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
mov r8d, 0xe
call fcn.140014ed0
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x140017ce7
mov qword [rbp + 0x3c8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140017c20
jmp 0x140017c0f
jae 0x140017cf9
cmp r8, 0x201
jae 0x140017c20
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140017c78
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140017c4f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.1400201c0
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f8]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x400], r13
mov rbx, rdi
mov r12, qword [rbp + 0x418]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r12
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140017ca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140017d2f
mov r8d, r14d
cmp r15, r8
jne 0x140017c00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140017dd2
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140017c0f
jmp 0x140017c20
lea rcx, [rbp - 0x50]
call fcn.140012630
mov byte [rsi + 0x18], 2
jmp 0x140017d9c
cmp rsi, r8
jb 0x140017dec
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1400167e0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
jmp 0x140017d4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d0], rax
mov byte [rbp + 0x3e8], 2
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x140017d68
mov edx, 2
mov rcx, qword [rbp + 0x418]
call fcn.140006860
cmp byte [rbp + 0x3e8], 2
jne 0x140017db1
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.140012630
cmp qword [rbp + 0x408], 0
je 0x140017d9c
mov edx, 2
mov rcx, qword [rbp + 0x410]
call fcn.140006860
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x140017d8b
jmp 0x140017d9c
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001f570
jmp 0x140017e01
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001f4f0
ud2
Function at 0x14001a300
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001a343
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140018770]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14001f3b0
ud2

Function at 0x14001ea94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001eade
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001eade
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001eade
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001eade
cmp dword [rcx + 0x84], 0xe
jbe 0x14001eade
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001eae0
xor al, al
add rsp, 0x28
ret
Function at 0x1400015c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rdx, [0x1400053b8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x20], rax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
cdqe
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
inc rax
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x20]
mov r8d, 1
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x140001670
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
jne 0x140001685
xor eax, eax
jmp 0x1400016ec
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400016a2
xor eax, eax
jmp 0x1400016ec
mov dword [rsp + 4], 0x400
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x3c]
mov dword [rsp], eax
cmp dword [rsp], 0x400
jle 0x1400016c2
xor eax, eax
jmp 0x1400016ec
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
je 0x1400016e7
xor eax, eax
jmp 0x1400016ec
mov rax, qword [rsp + 0x10]
add rsp, 0x28
ret
Function at 0x1400042a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400042ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400042ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400042ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400042ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400042ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400042f0
xor al, al
add rsp, 0x28
ret