joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009838
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x140009869
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.140009568
test eax, eax
je 0x140009a6d
mov edx, 0x40
call fcn.140009568
test eax, eax
je 0x140009a6d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140009a6d
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x140009a6d
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.140009568
test eax, eax
je 0x140009a6d
cmp dword [rcx], 0x4550
jne 0x140009a6d
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x140009a6d
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x140009912
cmp rax, 0x60
jb 0x140009a6d
mov edx, 0xe0
call fcn.140009568
test eax, eax
je 0x140009a6d
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x140009943
mov edx, 0x20b
cmp word [rcx], dx
jne 0x140009a6d
cmp rax, 0x70
jb 0x140009a6d
mov edx, 0xf0
call fcn.140009568
test eax, eax
je 0x140009a6d
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x140009a6d
mov eax, dword [rcx]
mov edx, dword [rcx + 4]
test rax, rax
je 0x140009a6d
test rdx, rdx
je 0x140009a6d
lea rdi, [rax + r8]
test rdi, rdi
je 0x140009a6d
mov rcx, rdi
call fcn.140009568
test eax, eax
je 0x140009a6d
mov ebp, 0x10
cmp rdx, rbp
jb 0x140009a6d
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x140009a6d
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x1400099d3
mov rdx, r14
call fcn.140009568
test eax, eax
je 0x140009a6d
cmp word [rcx], bp
je 0x1400099d3
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x1400099b3
cmp rsi, rbx
je 0x140009a6d
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x140009a55
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.140009568
test eax, eax
je 0x140009a6d
cmp word [rbx + 0xe], r11w
jne 0x140009a0b
cmp word [rbx + 0xc], r11w
je 0x140009a6d
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140009568
test eax, eax
je 0x140009a6d
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x140009a55
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.140009568
test eax, eax
je 0x140009a6d
cmp word [rbx + 0xe], r11w
jne 0x140009a45
cmp word [rbx + 0xc], r11w
je 0x140009a6d
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140009568
test eax, eax
je 0x140009a6d
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.140009568
test eax, eax
je 0x140009a6d
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000c1ec
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x140028188]
test rbx, rbx
jne 0x14000c264
xor edx, edx
lea rcx, [0x14001d510]
mov r8d, 0x800
mov ebx, 0x7ffe0030
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000c25d
lea rdx, str.RtlGetNtSystemRoot
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x14000c24e
call qword [case.0x14001b06e.0]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov qword [0x140028188], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000df28
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400277a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov rdi, rdx
mov qword [r11 - 0x38], rax
mov rsi, rcx
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], eax
test rcx, rcx
je 0x14000dfb0
xor r9d, r9d
lea r8d, [rax + 0xc]
lea rdx, [r11 - 0x38]
lea ecx, [rax + 1]
call qword [sym.imp.ntdll.dll_RtlGetNativeSystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000dfa8
lea r9, str.RtlGetNativeSystemInformation_failed___x_
mov r8d, 0x700
lea rdx, str.AslEnvGetProcessWowInfo
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.14000ac0c
jmp 0x14000dff0
movzx eax, word [rsp + 0x30]
mov word [rsi], ax
test rdi, rdi
je 0x14000dfee
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0xc]
lea ecx, [r9 + 1]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000dfe6
lea r9, str.ZwQuerySystemInformation_failed___x_
mov r8d, 0x722
jmp 0x14000df91
movzx eax, word [rsp + 0x40]
mov word [rdi], ax
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400199f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000e830
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
xor ebx, ebx
cmp qword [rcx + 0x10], rbx
je 0x14000e937
cmp qword [rcx + 0x20], rbx
je 0x14000e937
lea edi, [rbx + 3]
cmp qword [rcx + 0x10], 0x40
jae 0x14000e866
mov dword [rdx], edi
jmp 0x14000e93d
mov rdx, qword [rcx + 0x18]
mov dword [rsp + 0x30], edi
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000e90a
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000e8d1
mov edi, 4
mov dword [rsp + 0x30], edi
mov eax, dword [rdx + 0x3c]
mov dword [rsp + 0x70], eax
mov r8d, eax
add rax, rdi
cmp qword [rcx + 0x10], rax
jb 0x14000e8d1
lea rax, [r8 + rdx]
mov qword [rsp + 0x80], rax
cmp dword [rax], 0x4550
jne 0x14000e8bd
mov edi, 6
jmp 0x14000e8cd
mov edx, 5
mov ecx, 0x454e
cmp word [rax], cx
cmove edi, edx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], ebx
jmp 0x14000e931
mov ebx, 0xc000000d
mov dword [rsp + 0x20], ebx
lea r9, str.File_mapping_invalid___x_
mov r8d, 0x4e8
lea rdx, str.AslpFileMappingGetFileKind
mov ecx, 1
call fcn.14000ac0c
mov dword [rsi], edi
mov eax, ebx
jmp 0x14000e93f
mov dword [rdx], 1
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000eb14
Capabilities:
Get file attributes
Map section object

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400277a0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor eax, eax
xorps xmm0, xmm0
and qword [rbp - 0x39], rax
xorps xmm1, xmm1
and qword [rbp - 0x31], rax
mov sil, dl
and qword [rbp - 0x29], rax
mov rdi, rcx
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp + 0x2f], rax
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm1
cmp qword [rcx + 0x18], rax
je 0x14000eb78
mov ebx, 0xc000010e
jmp 0x14000eccb
mov rcx, qword [rcx]
lea r8, [rbp + 0x1f]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp + 0xf]
call qword [sym.imp.ntdll.dll_ZwQueryInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000ec99
and qword [rbp - 0x19], 0
lea r8, [rbp - 0x21]
and dword [rbp - 9], 0
mov al, sil
and qword [rbp - 0x11], 0
xorps xmm0, xmm0
neg al
mov dword [rbp - 0x21], 0x30
mov rax, qword [rdi]
mov edx, 0xf0005
sbb ecx, ecx
mov qword [rsp + 0x30], rax
and ecx, 0x9000000
xor r9d, r9d
add ecx, 0x8000000
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x39]
movdqu xmmword [rbp - 1], xmm0
mov dword [rsp + 0x20], 2
call qword [sym.imp.ntdll.dll_ZwCreateSection]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000ec99
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x48], 2
lea r8, [rbp - 0x31]
mov dword [rsp + 0x40], 0x500000
xor r9d, r9d
mov dword [rsp + 0x38], 2
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_ZwMapViewOfSection]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000ec99
mov rax, qword [rbp - 0x39]
xor ecx, ecx
mov qword [rdi + 8], rax
xor edx, edx
mov rax, qword [rbp - 0x31]
xor ebx, ebx
mov qword [rdi + 0x18], rax
mov rax, qword [rbp - 0x29]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x27]
mov qword [rdi + 0x10], rax
mov word [rdi + 0x29], 0x101
mov byte [rdi + 0x2b], sil
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], rdx
jmp 0x14000eca1
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x31]
test rcx, rcx
je 0x14000ecb6
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x31]
test rdx, rdx
je 0x14000eccb
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400199f0
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011a58
Capabilities:
Enumerate pe sections

Disassembly:
cmp byte [rdx + 0x2b], 0
mov r9, rdx
je 0x140011a73
mov ecx, r8d
cmp rcx, qword [rdx + 0x20]
jae 0x140011ac3
mov rax, qword [rdx + 0x18]
add rax, rcx
ret
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add rdx, rax
xor r10d, r10d
test r11d, r11d
je 0x140011aa7
mov ecx, dword [rdx + 0xc]
cmp r8d, ecx
jb 0x140011a9b
add ecx, dword [rdx + 0x10]
cmp r8d, ecx
jb 0x140011aa9
add rdx, 0x28
inc r10d
cmp r10d, r11d
jb 0x140011a8b
xor edx, edx
test rdx, rdx
je 0x140011ac3
mov ecx, dword [rdx + 0x14]
sub ecx, dword [rdx + 0xc]
add ecx, r8d
cmp rcx, qword [r9 + 0x10]
jae 0x140011ac3
mov rax, qword [r9 + 0x18]
jmp 0x140011a6e
xor eax, eax
ret
Function at 0x14001209c
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
xor ebp, ebp
mov rsi, rdx
mov dword [rsp + 0x54], ebp
mov r15, rcx
mov dword [rsp + 0x6c], ebp
mov rax, qword gs:[0x60]
lea edx, [rbp + 8]
lea r8d, [rbp + 0x40]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0xd0], rax
mov rbx, rax
test rax, rax
jne 0x1400120fd
mov edi, 0xc0000017
jmp 0x1400122a7
lea r14, [rax + 8]
mov dword [rsp + 0x50], 0x30
mov rax, qword [rsi]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov r12d, 2
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov edx, 0xf0005
mov qword [rsp + 0x58], rbp
mov rcx, r14
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x60], rbp
movdqu xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ntdll.dll_ZwCreateSection]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x140012184
lea r9, str.ZwCreateSection_failed___x_
mov r8d, 0x159
lea rdx, str.AslpFileLargeMapCreate
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.14000ac0c
jmp 0x140012295
mov rax, qword [rsi + 0x10]
lea rcx, [rbx + 0x38]
mov dword [rsp + 0x48], r12d
lea r8, [rbx + 0x28]
mov dword [rsp + 0x40], 0x500000
sub rax, 0x1000
and rax, 0xffffffffffff0000
mov dword [rsp + 0x38], r12d
mov qword [rcx], rax
xor r9d, r9d
lea rax, [rbx + 0x30]
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov rcx, qword [r14]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_ZwMapViewOfSection]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x1400121f2
lea r9, str.ZwMapViewOfSection_failed_to_map_the_end_of_the_file___x_
mov r8d, 0x175
jmp 0x14001216a
lea rax, [rbx + 0x10]
mov ebp, 0x20000000
lea r12, [rbx + 0x18]
lea r13, [rbx + 0x20]
mov rbx, rax
mov eax, 2
mov qword [r12], rbp
and qword [r13], 0
xor r9d, r9d
mov rcx, qword [r14]
mov r8, rbx
mov dword [rsp + 0x48], eax
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], 0x500000
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
and qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_ZwMapViewOfSection]
nop dword [rax + rax]
shr rbp, 1
mov edi, eax
cmp eax, 0xc0000017
jne 0x140012262
cmp rbp, 0x100000
jae 0x140012206
mov rbx, qword [rsp + 0xd0]
xor ebp, ebp
test eax, eax
jns 0x140012282
lea r9, str.ZwMapViewOfSection_failed_to_map_the_start_of_the_file___x_
mov r8d, 0x19f
jmp 0x14001216a
mov qword [rbx], rsi
mov edi, ebp
mov qword [r15], rbx
mov rbx, rbp
mov qword [rsp + 0xd0], rbx
test rbx, rbx
je 0x1400122a7
lea rcx, [rsp + 0xd0]
call fcn.1400122cc
mov rbx, qword [rsp + 0xc0]
mov eax, edi
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012b34
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x300
mov rax, qword [0x1400277a0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rsi, rdx
mov rbx, rcx
mov edi, 0x2b8
lea rcx, [rsp + 0x30]
mov r8d, edi
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r9d, edi
mov dword [rsp + 0x20], 0x4104
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
nop dword [rax + rax]
test rax, rax
je 0x140012bdc
mov edx, dword [rsp + 0x38]
mov r8d, 1
mov rcx, rax
call qword [sym.imp.COMCTL32.dll_ImageList_GetIcon]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140012bdc
mov rdx, rsi
mov rcx, rax
call fcn.14001279c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.USER32.dll_DestroyIcon]
nop dword [rax + rax]
test ebx, ebx
setns al
jmp 0x140012bde
xor al, al
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400199f0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140016a30
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x1400277a0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_GetSystemDirectoryW
dec eax
cmp eax, 0x102
ja 0x140016acf
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbx
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x240]
call fcn.14000156c
test eax, eax
js 0x140016acf
xor r8d, r8d
lea rcx, [rsp + 0x240]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
jmp 0x140016ad1
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400199f0
add rsp, 0x460
pop rbx
ret
Function at 0x1400182e4
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400277a0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, r8
mov edi, edx
mov rsi, rcx
test rcx, rcx
jne 0x14001831b
test edx, edx
jne 0x1400183e6
test rbx, rbx
je 0x1400183e6
xor edx, edx
lea rcx, [rbp - 0x29]
lea r8d, [rdx + 0x58]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
and dword [rbp - 0x19], 0
lea rcx, [rbp - 0x29]
and dword [rbp - 0x15], 0
mov r8d, edi
mov rdx, rsi
mov dword [rbp - 0x29], 0x67452301
mov dword [rbp - 0x25], 0xefcdab89
mov dword [rbp - 0x21], 0x98badcfe
mov dword [rbp - 0x1d], 0x10325476
call fcn.140018a2c
mov edx, dword [rbp - 0x19]
lea rcx, [rbp - 0x11]
shr edx, 3
mov r8d, 0x3f
and edx, r8d
mov eax, edx
sub r8d, edx
add rcx, rax
xor edx, edx
mov byte [rcx], 0x80
inc rcx
cmp r8d, 8
jae 0x1400183b8
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x29]
call fcn.140018b28
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp + 0x1f], rax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
jmp 0x1400183c1
add r8d, 0xfffffff8
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [rbp - 0x19]
lea rdx, [rbp - 0x11]
mov dword [rbp + 0x27], eax
lea rcx, [rbp - 0x29]
mov eax, dword [rbp - 0x15]
mov dword [rbp + 0x2b], eax
call fcn.140018b28
movaps xmm0, xmmword [rbp - 0x29]
xor eax, eax
movdqu xmmword [rbx], xmm0
jmp 0x1400183eb
mov eax, 0x80070057
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400199f0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019a18
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140027f90], eax
call fcn.14001a1d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140027f90], 0
jne case.default.0x140019a6e
mov ecx, 1
call fcn.14001a1d0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
insd dword [rdi], dx
mov bpl, 5
sbb eax, 0xd3d248bd
mov al, byte [rcx + 0x58d4af5c]
jns 0x140041dd9
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c6f60]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c6f70]
mov dword [rax], 1
mov rax, qword [0x1400c6f80]
mov dword [rax], 1
mov rax, qword [0x1400c6f00]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c6f50]
mov dword [0x1400da00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400c7030]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400c7010]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400c6eb0]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000a290
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x14000a2f3
lea rsi, [rbp - 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rbp + 0x16c], eax
test eax, eax
jne 0x14000a2ff
lea rax, [0x14009cf3c]
mov qword [rdi], rax
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.library_std_src_synconce.rs
call sym.core::option::unwrap_failed::hec1ab125882a5e1e
mov qword [rbp + 0x138], 0
lea rdx, [0x1400a81e8]
lea r9, [0x1400a81f0]
lea rcx, [rbp + 0x16c]
lea r8, [rbp + 0x138]
call dbg.assert_failed<i32, i32>
int3

Function at 0x140027b10
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call sub.KERNEL32.dll_GetSystemInfo
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret
Function at 0x140028ea0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140028f30
jmp 0x140028f1f
jae 0x140028feb
cmp r8, 0x201
jae 0x140028f30
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140028f87
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140028f5f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3c0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x140028fad
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140029057
mov r8d, r13d
cmp r12, r8
jne 0x140028f10
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002908a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140028f1f
jmp 0x140028f30
cmp r14, r8
jb 0x1400290a4
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call dbg.from_wide
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3c8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
je 0x140029040
mov rcx, qword [rbp + 0x3d8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3c8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
jne 0x14002902b
jmp 0x140029040
lea rcx, [0x1400a4660]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call dbg.panic
jmp 0x1400290b9
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400290f0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x14002910f
mov rdx, rax
add rsp, 0x68
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp], rax
mov rax, rbp
mov qword [rbp - 0x10], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h920a57f3932865bb]
mov qword [rbp - 8], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 1
lea rdx, str.library_std_src_syspalwindowsos.rs
lea rcx, [rbp - 0x40]
call dbg.panic_fmt
ud2