joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001340
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x140
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword gs:[0x60]
mov ebp, edx
mov rcx, qword [rax + 0x18]
mov rbx, qword [rcx + 0x20]
test rbx, rbx
je 0x140001450
mov r14d, 0x104
movzx eax, word [rbx + 0x48]
test ax, ax
je 0x140001450
cmp ax, r14w
jae 0x140001450
mov rax, qword [rbx + 0x50]
xor edi, edi
movzx ecx, word [rax]
test cx, cx
je 0x1400013de
xor esi, esi
nop dword [rax + rax]
movzx ecx, cx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
inc edi
mov byte [rsp + rsi + 0x20], al
mov rax, qword [rbx + 0x50]
mov esi, edi
movzx ecx, word [rax + rdi*2]
test cx, cx
jne 0x1400013c0
mov eax, edi
cmp rax, r14
jae 0x140001486
mov byte [rsp + rdi + 0x20], 0
lea rax, [rsp + 0x20]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x140001400
xor eax, eax
xor r8d, r8d
test rdx, rdx
je 0x140001430
movsx ecx, byte [rsp + r8 + 0x20]
inc r8
add ecx, eax
imul eax, ecx, 0x81
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp r8, rdx
jne 0x140001413
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
cmp eax, ebp
je 0x140001480
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001391
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400014a0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rax, qword [rbx + 0x20]
jmp 0x140001452
call fcn.140001810
int3

Function at 0x140001f34
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000104b
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000104b
mov edx, 0x8664
cmp word [rax + 4], dx
jne 0x14000104b
mov edx, 0x20b
cmp word [rax + 0x18], dx
jne 0x14000104b
cmp dword [rax + 0x84], 0
jbe 0x14000104b
cmp dword [rax + 0x8c], 0
je 0x14000104b
mov eax, dword [rax + 0x88]
add rax, rcx
ret
xor eax, eax
ret

Function at 0x140001420
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, qword [rcx + 0x178]
mov edx, 0x2000
mov r9d, dword [rax + 0x28]
add r9, rcx
test word [rax + 0x16], dx
je 0x1400014da
xor r8d, r8d
lea edx, [r8 + 1]
call r9
mov rcx, qword [rbx + 0x178]
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x140001468
xor edx, edx
jmp 0x1400014bc
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x14000147b
xor edx, edx
jmp 0x1400014bc
mov edx, 0x8664
cmp word [rax + 4], dx
je 0x14000148a
xor edx, edx
jmp 0x1400014bc
mov edx, 0x20b
cmp word [rax + 0x18], dx
je 0x140001499
xor edx, edx
jmp 0x1400014bc
cmp dword [rax + 0x84], 0
ja 0x1400014a6
xor edx, edx
jmp 0x1400014bc
cmp dword [rax + 0x8c], 0
jne 0x1400014b3
xor edx, edx
jmp 0x1400014bc
mov edx, dword [rax + 0x88]
add rdx, rcx
mov r9d, 0xf32f8eee
mov r8d, 0x39829c5
call fcn.140001200
test rax, rax
je 0x1400014e2
add rsp, 0x20
pop rbx
jmp rax
add rsp, 0x20
pop rbx
jmp r9
add rsp, 0x20
pop rbx
ret
Function at 0x14079c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14079c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14079c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079c06f
add dl, dl
jne 0x14079c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079c0f6
xor eax, eax
add dl, dl
jne 0x14079c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14079c1ad
add dl, dl
jne 0x14079c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14079c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14079c07e
mov eax, 1
add dl, dl
jne 0x14079c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14079c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079c0fb
sub eax, ebx
mov ebx, 1
jne 0x14079c14c
mov ecx, 1
add dl, dl
jne 0x14079c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14079c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14079c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14079c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14079c15d
cmp eax, 0x7d00
jae 0x14079c19b
cmp eax, 0x500
jb 0x14079c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079c07e
cmp eax, 0x7f
ja 0x14079c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14079c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14079c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14079c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008e00
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 0x140008e90
cmp r11, r10
ja 0x140008f06
cmp r10, rdx
ja 0x140008f18
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140008e92
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140008e70
jmp 0x140008ef4
ja 0x140008e9a
mov r11, r10
cmp rax, r8
jne 0x140008e34
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 0x140008ed0
mov rdi, r8
sub ecx, edx
jns 0x140008eeb
jmp 0x140008ef6
cmp r8, rsi
je 0x140008f27
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140008ef6
xor al, 1
cmp rdi, rsi
jne 0x140008eb0
jmp 0x140008ef6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x140047548]
mov rcx, r11
mov rdx, r10
call fcn.140041ed0
lea r8, [0x140047548]
mov rcx, r10
call fcn.140041c50
lea rcx, [0x140047530]
call fcn.1400420b0
int3

Function at 0x14000a6bf
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
xor ecx, ecx
xor edx, edx
call sub.kernel32.dll_GetSystemWow64DirectoryA
test eax, eax
je 0x14000a705
lea rbx, [rbp - 0x18]
mov rcx, rbx
mov rdx, rdi
call fcn.14000b231
cmp byte [rbx], 0
je 0x14000a72a
mov rax, qword [rbp - 0x10]
mov qword [rsi + 8], rax
jmp 0x14000a738
call fcn.14000a1a7
mov rdi, rax
mov rcx, rax
call fcn.14000ae2c
test eax, eax
je 0x14000a745
cmp edx, 0x78
jne 0x14000a734
mov rcx, rdi
call fcn.14000a0f5
mov al, 1
jmp 0x14000a72d
mov al, byte [rbp - 0x17]
mov byte [rsi + 1], al
xor eax, eax
jmp 0x14000a73a
mov qword [rsi + 8], rdi
mov al, 1
mov byte [rsi], al
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 8], rdi
lea rcx, str.X:metadata_scooppersist_rustup.cargo_registry_srcindex.crates.io_6f17d22bba15001fdll_syringe_0.15.2_srcprocessprocess.rs
call fcn.1400420b0
ud2
Function at 0x14000eeb6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.14003d360
lea r12, [rsp + 0x60]
mov rcx, r12
mov rdx, rdi
mov r8, rsi
call fcn.14003d360
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
mov rbx, qword [r12]
mov r12, qword [r12 + 8]
cmp r15, r12
jne 0x14000ef59
mov al, byte [rsp + 0x58]
cmp al, byte [rsp + 0x98]
jne 0x14000ef59
cmp byte [rsp + 0x59], 2
jne 0x14000ef59
cmp byte [rsp + 0x99], 2
jne 0x14000ef59
cmp byte [rsp + 0x30], 3
setb al
cmp byte [rsp + 0x70], 3
setb cl
xor cl, al
jne 0x14000ef59
mov rcx, r14
mov rdx, r15
mov r8, rbx
mov r9, r15
call fcn.1400151f0
mov ecx, eax
mov al, 1
test cl, cl
jne 0x14000f1d9
mov al, byte [rsp + 0x30]
cmp al, 6
je 0x14000ef88
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x11f], rcx
movups xmm0, xmmword [rsp + 0x31]
movups xmm1, xmmword [rsp + 0x41]
movaps xmmword [rsp + 0x110], xmm1
movaps xmmword [rsp + 0x100], xmm0
mov cl, byte [rsp + 0x5a]
mov dl, byte [rsp + 0x58]
mov r8b, byte [rsp + 0x59]
movaps xmm0, xmmword [rsp + 0x100]
movaps xmm1, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0xb0], xmm1
mov r9, qword [rsp + 0x11f]
mov qword [rsp + 0xbf], r9
mov r9b, byte [rsp + 0x70]
cmp r9b, 6
je 0x14000effd
mov r10, qword [rsp + 0x90]
mov qword [rsp + 0x19f], r10
movups xmm0, xmmword [rsp + 0x71]
movups xmm1, xmmword [rsp + 0x81]
movaps xmmword [rsp + 0x190], xmm1
movaps xmmword [rsp + 0x180], xmm0
mov r10b, byte [rsp + 0x9a]
movzx r11d, word [rsp + 0x98]
lea rsi, [rsp + 0x180]
mov rdi, qword [rsi + 0x1f]
lea r13, [rsp + 0x100]
mov qword [r13 + 0x30], rdi
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movups xmmword [r13 + 0x21], xmm1
movups xmmword [r13 + 0x11], xmm0
mov qword [rsi], r14
mov qword [rsi + 8], r15
mov byte [rsi + 0x10], al
movaps xmm0, xmmword [rsp + 0xa0]
movaps xmm1, xmmword [rsp + 0xb0]
movups xmmword [rsi + 0x11], xmm0
movups xmmword [rsi + 0x21], xmm1
mov rax, qword [rsp + 0xbf]
mov qword [rsi + 0x30], rax
mov byte [rsi + 0x38], dl
mov byte [rsi + 0x39], r8b
mov byte [rsi + 0x3a], cl
mov qword [r13], rbx
mov qword [r13 + 8], r12
mov byte [r13 + 0x10], r9b
mov word [r13 + 0x38], r11w
mov byte [r13 + 0x3a], r10b
xor r14d, r14d

Function at 0x14000fcc7
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor edx, edx
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x14000fcdb
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14004077a
Function at 0x14002dcf0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400052c0
cmp rax, rcx
je 0x14002dd15
cmp rdx, 4
jae 0x14002dd18
xor eax, eax
xor r8d, r8d
jmp 0x14002ddb0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140046520]
movdqa xmm3, xmmword [0x140046530]
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 0x14002dd40
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14002ddc7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14002ddb0
ret

Function at 0x140032910
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400b4390]
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 qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140032982
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400329b9
test eax, eax
js 0x140032993
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400329ac
mov ecx, eax
call qword [sym.imp.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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.140031d40
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400313a0
mov ecx, 7
int 0x29
ud2
Function at 0x140034860
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x140034900
jmp 0x1400348ef
jae 0x1400349bf
cmp r8, 0x201
jae 0x140034900
mov r15d, 0x200
lea r12, [rbp - 0x58]
mov r13, r8
jmp 0x140034958
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x14003492f
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.1400456f0
mov rdi, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x3e8]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r13d
mov rdx, r12
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x140034980
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140034a1e
mov r8d, esi
cmp r13, r8
jne 0x1400348e0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140034a4b
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x1400348ef
jmp 0x140034900
cmp r15, r8
jb 0x140034a65
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140035280
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x140034a09
mov edx, 2
mov rcx, qword [rbp + 0x3e8]
call fcn.140002eb0
nop
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 rcx, qword [rbp + 0x3e0]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
test rdi, rdi
jne 0x1400349f8
jmp 0x140034a09
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cb4d9a1902b3ea17e93872dafb76d24aa6295c47library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140041cd0
jmp 0x140034a7a
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140041c50
ud2
Function at 0x140038500
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]
call fcn.140033290
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x140038556
lea rcx, [rbp - 0x50]
call fcn.1400312e0
mov qword [rsi], rdi
jmp 0x140038759
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x408], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400385e0
jmp 0x1400385cf
jae 0x1400386a3
cmp r8, 0x201
jae 0x1400385e0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140038638
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14003860f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call fcn.1400456f0
mov rdi, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x418], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x400], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x418]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140038664
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400386e3
mov r8d, r14d
cmp r15, r8
jne 0x1400385c0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003878f
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400385cf
jmp 0x1400385e0
cmp rsi, r8
jb 0x1400387a9
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140035280
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rbx, 0x8000000000000000
jmp 0x140038709
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rbx, 0x8000000000000000
mov qword [rbp + 0x3d0], rbx
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x140038726
mov edx, 2
mov rcx, qword [rbp + 0x418]
call fcn.140002eb0
cmp qword [rbp + 0x3d0], rbx
jne 0x14003876e
mov qword [rsi], rbx
lea rcx, [rbp + 0x3d8]
call fcn.1400312e0
cmp qword [rbp + 0x408], 0
je 0x140038759
mov edx, 2
mov rcx, qword [rbp + 0x410]
call fcn.140002eb0
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 0x140038748
jmp 0x140038759
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cb4d9a1902b3ea17e93872dafb76d24aa6295c47library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140041cd0
jmp 0x1400387be
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140041c50
ud2
Function at 0x1400415a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400415ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400415ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400415ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400415ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400415ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400415ec
xor al, al
add rsp, 0x28
ret
Function at 0x1400459f0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140003050
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x140045a7f
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140045ab1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140045ac4
lea rcx, str.p8_v_
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x140045adc
mov rcx, qword [rsp + 0x38]
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140002eb0
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x140045adc
mov edx, 1
mov rcx, rdi
call fcn.140002eb0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400068b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000690d
lea rbx, [0x140144ee0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400068f4
cmp r10, 2
jb 0x1400068f4
cmp byte [r9], r8b
jne 0x1400068f4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400068d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000694f
lea rbx, [0x140144ee0]
cmp r8b, 0x23
jne 0x140006933
cmp byte [r9], r8b
jne 0x140006933
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140006920
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140006a90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140006aaa
mov qword [r8], 0
lea rdx, [0x140144a40]
call fcn.140006960
mov rbx, rax
test rax, rax
jne 0x140006aca
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.1400a6f40
mov esi, eax
cmp eax, 0xffffffff
je 0x140006b98
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.1400a799c
test eax, eax
jne 0x140006b98
mov rcx, rbx
call fcn.1400a6f40
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140006b98
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.1400a799c
test eax, eax
jne 0x140006b98
cmp rdi, 0xffffffffffffffff
je 0x140006b98
mov rax, qword [0x14016ccd0]
test rax, rax
je 0x140006b3a
inc dword [rax + 0xf0]
mov rcx, rdi
call fcn.1400b0a80
mov rsi, rax
test rax, rax
je 0x140006b98
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1400ab384
mov rcx, rbx
cmp rax, rdi
je 0x140006b86
call fcn.1400a7694
mov rax, qword [0x14016ccd0]
test rax, rax
je 0x140006b7c
dec dword [rax + 0xf0]
mov rcx, rsi
call fcn.1400ab110
jmp 0x140006ba0
call fcn.1400a7694
test r14, r14
je 0x140006b93
mov qword [r14], rdi
mov rax, rsi
jmp 0x140006ba2
mov rcx, rbx
call fcn.1400a7694
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140009cf0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x140144ee0]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f20], ebx
jne 0x140009d86
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14001cf40
mov eax, ebx
add rsp, 0x20
pop rbx
ret