joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e114
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000e144
xor eax, eax
jmp 0x14000e207
mov rbp, rbx
cmp word [rax], si
je 0x14000e169
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e150
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e14c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000e034
movsxd r14, eax
test eax, eax
jne 0x14000e1a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e13d
mov rcx, r14
call fcn.14000af34
mov rdi, rax
test rax, rax
jne 0x14000e1c0
xor ecx, ecx
call fcn.140009ef8
jmp 0x14000e19c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000e034
test eax, eax
jne 0x14000e1f1
mov rcx, rdi
call fcn.140009ef8
jmp 0x14000e1fb
xor ecx, ecx
call fcn.140009ef8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14000e224
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000e2ab
mov rsi, rbx
cmp word [rax], bp
je 0x14000e26a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000e254
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000e250
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000af34
mov rdi, rax
test rax, rax
je 0x14000e298
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016b30
mov rbp, rdi
xor ecx, ecx
call fcn.140009ef8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012ea4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000ada8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140012f2e
cmp byte [rbp - 0x21], r15b
je 0x140012f29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012f64
call fcn.14000f4e0
test eax, eax
jne 0x140012f50
cmp byte [rbp - 0x21], r15b
je 0x140012f48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012f64
cmp byte [rbp - 0x21], r15b
je 0x140012f61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000ac2c
test eax, eax
jne 0x140013004
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000ada8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140012fa3
cmp byte [rbp - 0x21], r15b
je 0x140012fd8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012fd8
call fcn.14000f4e0
test eax, eax
jne 0x140012fc4
cmp byte [rbp - 0x21], r15b
je 0x140012fbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012fd8
cmp byte [rbp - 0x21], r15b
je 0x140012fd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000ac2c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013004
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013007
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013015
mov rcx, rdi
call fcn.140009ef8
cmp byte [rbp + 0x3f], r15b
je 0x140013024
mov rcx, qword [rbp + 0x27]
call fcn.140009ef8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140016320
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016348
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016348
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x1402fa430
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1402fa43d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402fa44d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402fa435
lea eax, [rcx + 1]
jmp 0x1402fa45b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402fa46e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402fa454
sub eax, 3
jb 0x1402fa48e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1402fa4dd
sar eax, 1
movsxd rbp, eax
jb 0x1402fa4c4
jmp 0x1402fa49c
add ebx, ebx
jne 0x1402fa49a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402fa4c4
inc ecx
add ebx, ebx
jne 0x1402fa4aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402fa4c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402fa4bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402fa4ac
add ecx, 2
jmp 0x1402fa4c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1402fa3f2
jmp 0x1402fa43d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x215000
mov dl, 0x3a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1402fa52d
cmp rsi, rcx
jae 0x1402fa535
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1402fa514
cmp al, 0x8f
ja 0x1402fa514
cmp byte [rsi - 2], 0xf
je 0x1402fa51a
sub al, 0xe8
cmp al, 1
ja 0x1402fa4fe
cmp rsi, rcx
jae 0x1402fa535
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1402fa504
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1402fa535
lodsb al, byte [rsi]
jmp 0x1402fa514
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2f6000]
mov eax, dword [rdi]
or eax, eax
je 0x1402fa59e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3024f4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1402fa542
jns 0x1402fa577
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1402fa581
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402fa598
mov qword [rbx], rax
add rbx, 8
jmp 0x1402fa562
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1402fa5e2
cmp al, 0xef
ja 0x1402fa5ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402fa5aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1402fa5b9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1402fa5b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1402fa636
sub rsp, 0xffffffffffffff80
jmp 0x1401dd4bc
Function at 0x1400021b0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001503a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015031
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015031
mov rax, qword [rbp - 8]
jmp 0x14001504f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015004
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x14072b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14072b1df
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 0x14072b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072b06f
add dl, dl
jne 0x14072b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072b0f6
xor eax, eax
add dl, dl
jne 0x14072b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072b1ad
add dl, dl
jne 0x14072b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14072b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072b07e
mov eax, 1
add dl, dl
jne 0x14072b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072b0fb
sub eax, ebx
mov ebx, 1
jne 0x14072b14c
mov ecx, 1
add dl, dl
jne 0x14072b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14072b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072b15d
cmp eax, 0x7d00
jae 0x14072b19b
cmp eax, 0x500
jb 0x14072b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072b07e
cmp eax, 0x7f
ja 0x14072b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14072b1d2
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 0x14072b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xb9c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b9c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xb9c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb9c06f
add dl, dl
jne 0xb9c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb9c0f6
xor eax, eax
add dl, dl
jne 0xb9c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb9c1ad
add dl, dl
jne 0xb9c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xb9c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xb9c07e
mov eax, 1
add dl, dl
jne 0xb9c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb9c0fb
sub eax, ebx
mov ebx, 1
jne 0xb9c14c
mov ecx, 1
add dl, dl
jne 0xb9c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb9c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb9c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb9c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb9c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb9c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb9c15d
cmp eax, 0x7d00
jae 0xb9c19b
cmp eax, 0x500
jb 0xb9c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb9c07e
cmp eax, 0x7f
ja 0xb9c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb9c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xb9c1d2
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 0xb9c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140022880
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x140022900
jmp 0x1400228ef
jae 0x1400229a4
cmp r8, 0x201
jae 0x140022900
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140022947
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x140022927
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14000e050
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rbx, r14
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x40], r15
mov rsi, rbx
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x14002296b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140022a02
mov r8d, edi
cmp rbp, r8
jne 0x1400228e0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140022a2c
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x1400228ef
jmp 0x140022900
cmp r12, r8
jb 0x140022a46
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14002f9a0
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400229eb
add rbx, rbx
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rbx
call fcn.140001ac0
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400229d5
jmp 0x1400229eb
lea rcx, str.internal_error:_entered_unreachable_codehi_v_
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140082ad0
jmp 0x140022a5b
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.140088ec0
ud2
Function at 0x140023070
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rdi, rcx
movabs rsi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.14004caa0
mov rax, qword [rsp + 0xa8]
cmp rax, rsi
jne 0x1400230bf
lea rcx, [rsp + 0xb0]
call fcn.140004550
mov qword [rdi], rsi
jmp 0x14002328a
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x30], rax
xor r15d, r15d
mov edi, 0xffffffff
xor r14d, r14d
xor esi, esi
cmp r8, 0x201
jae 0x140023150
jmp 0x14002312f
jae 0x1400231f9
cmp r8, 0x201
jae 0x140023150
mov r13d, 0x200
lea r12, [rsp + 0xa8]
mov rbp, r8
jmp 0x140023196
sub r8, rsi
sub r14, rsi
cmp r14, r8
jae 0x140023177
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.14000e050
mov r15, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp r15, rdi
mov esi, 0xffffffff
cmovb rsi, r15
mov qword [rsp + 0x58], rsi
mov r14, r15
mov r13, rsi
mov r12, qword [rsp + 0x30]
mov rbp, rsi
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, r12
mov r8d, ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x1400231c0
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400232be
mov r8d, ebx
cmp rbp, r8
jne 0x140023120
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400232f2
add rbp, rbp
cmp rbp, rdi
cmovae rbp, rdi
mov r8, rbp
cmp r8, 0x201
jb 0x14002312f
jmp 0x140023150
cmp r13, r8
jb 0x14002330c
lea rcx, [rsp + 0x88]
mov rdx, r12
call fcn.14002f9a0
movabs rsi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rdi, qword [rsp + 0x40]
test r15, r15
je 0x140023256
add r15, r15
mov r8d, 2
mov rcx, qword [rsp + 0x30]
mov rdx, r15
call fcn.140001ac0
cmp qword [rsp + 0x60], rsi
jne 0x1400232a1
mov qword [rdi], rsi
lea rcx, [rsp + 0x68]
mov rsi, qword [rsp + 0x28]
call fcn.140004550
test rsi, rsi
je 0x14002328a
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.140001ac0
mov rax, rdi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rsi, qword [rsp + 0x28]
test rsi, rsi
jne 0x140023274
jmp 0x14002328a
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rsi, 0x8000000000000000
mov qword [rsp + 0x60], rsi
mov rdi, qword [rsp + 0x40]
test r15, r15
jne 0x140023240
jmp 0x140023256
lea rcx, str.internal_error:_entered_unreachable_codehi_v_
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140082ad0
jmp 0x140023321
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.140088ec0
ud2
Function at 0x140036fb0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140074020
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140037047
mov rdi, qword [rsp + 0x38]
mov rbx, 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 sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140037079
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x140037097
jmp 0x1400370a8
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1400370a8
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140001ac0
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x1400370a8
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140001ac0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret