joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c0e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov ebx, edx
lea rdx, [rcx + 0x40]
mov dword [rsp + 0x40], r9d
cmp qword [rdx + 0x18], 8
jb 0x14005c10c
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x14005c187
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005c15b
inc rax
jmp 0x14005c162
lea rax, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
movabs rcx, 0x342500000000
or rax, rdi
or rax, rcx
jmp 0x14005c1df
cmp ebx, dword [rsp + 0x58]
je 0x14005c1d5
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005c1af
inc rax
jmp 0x14005c1b6
lea rax, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
movabs rcx, 0x350500040002
jmp 0x14005c182
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14005c320
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x30
and dword [rax + 8], 0
lea rdx, [rcx + 0x40]
and dword [rax + 0x10], 0
mov rdi, r8
cmp qword [rdx + 0x18], 8
jb 0x14005c348
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xea
je 0x14005c3ce
test eax, eax
je 0x14005c3ce
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005c39f
inc rax
jmp 0x14005c3a6
lea rax, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
movabs rcx, 0x312500000000
or rax, rbx
or rax, rcx
jmp 0x14005c47f
cmp dword [rsp + 0x48], 1
je 0x14005c41d
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005c3f7
inc rax
jmp 0x14005c3fe
lea rax, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
movabs rcx, 0x320500040002
jmp 0x14005c3c6
mov eax, dword [rsp + 0x40]
cmp eax, 0x4000
jb 0x14005c473
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005c44a
inc rax
jmp 0x14005c451
lea rax, str.admin_appman_appv_sharedclientconfigurationRegistryValue.h
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
movabs rcx, 0x330500040003
jmp 0x14005c3c6
mov dword [rdi], eax
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14005effc
Capabilities:
Get system information on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rbp + 0x80], rax
cmp dword [0x14017ba24], 0
je 0x14005f032
mov eax, dword [0x14017ba20]
jmp 0x14005f0b9
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x118
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop dword [rax + rax]
movzx eax, word [rsp + 0x30]
mov r9b, byte [rbp + 0x7a]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x70]
mov word [rsp + 0x28], ax
movzx eax, word [rbp + 0x78]
mov word [rsp + 0x20], ax
call fcn.14005f0d8
mov dword [0x14017ba20], eax
mov dword [0x14017ba24], 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400d24e0
add rsp, 0x190
pop rbp
ret

Function at 0x14005f7f8
Capabilities:
Get file attributes

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rsp + 0x50], rax
and dword [rsp + 0x20], 0
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.14000f280
mov rbx, rax
mov edi, 1
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x30]
call fcn.14005f568
cmp qword [rbx + 0x18], 8
jb 0x14005f84d
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14005f87b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.14000c220
cmp ebx, 0xffffffff
je 0x14005f885
test bl, 0x10
jne 0x14005f888
xor dil, dil
mov al, dil
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400d24e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14005f8ac
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdx, rcx
lea rcx, [rbp - 0x48]
call fcn.14000f280
nop
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
xor edi, edi
test eax, eax
jne 0x14005f96c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 2
je 0x14005f96c
test eax, eax
je 0x14005f96c
lea edx, [rdi + 0x5c]
lea rcx, str.admin_appman_appv_shared_system_file_utils.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005f93d
inc rax
jmp 0x14005f944
lea rax, str.admin_appman_appv_shared_system_file_utils.cpp
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
or rbx, rax
movabs rax, 0xf2500000000
or rbx, rax
jmp 0x14005fa38
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14005f6c4
mov esi, 7
jmp 0x14005f9bc
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14005f9af
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x14005fa2e
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14005f6c4
mov rbx, rax
lea rax, [rbp - 0x48]
cmp rax, rbx
je 0x14005fa09
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14005f9e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
call fcn.14000c220
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x48], di
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov qword [rbx + 0x18], rsi
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14005fa24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
call fcn.14000c220
cmp qword [rbp - 0x38], rdi
jne 0x14005f980
movabs rbx, 0x8000000000
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14005fa53
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
call fcn.14000c220
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400d24e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14005fc28
Capabilities:
Move file

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x50
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov rsi, rcx
lea rcx, [r11 - 0x30]
call fcn.14005f6c4
nop
cmp qword [rsp + 0x38], 0
je 0x14005fc82
lea rcx, [rsp + 0x28]
call fcn.14005fa80
mov rdi, rax
shr rax, 0x27
not eax
test al, 1
jne 0x14005fd19
cmp qword [rbx + 0x18], 8
jb 0x14005fc8c
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x14005fc96
mov rsi, qword [rsi]
mov r8d, 3
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14005fd0f
lea edx, [rax + 0x5c]
lea rcx, str.admin_appman_appv_shared_system_file_utils.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005fcd2
inc rax
jmp 0x14005fcd9
lea rax, str.admin_appman_appv_shared_system_file_utils.cpp
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
or rdi, rbx
movabs rax, 0x172500000000
or rdi, rax
jmp 0x14005fd19
movabs rdi, 0x8000000000
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14005fd36
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
call fcn.14000c220
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d24e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14005fe08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov byte [rdx], sil
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
lea rdx, [0x14011eadc]
lea rcx, [rbp - 0x48]
call fcn.14000954c
nop
lea r8, [rbp - 0x48]
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14005f384
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14005fe87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
call fcn.14000c220
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
lea rcx, [rbp - 0x28]
call fcn.1400395b0
cmp qword [rbp - 0x18], rsi
je 0x14005ff30
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14005ff2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea ecx, [rbx - 2]
cmp ecx, 1
jbe 0x14005ff30
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appv_shared_system_file_utils.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14005ff01
inc rax
jmp 0x14005ff08
lea rax, str.admin_appman_appv_shared_system_file_utils.cpp
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
or rbx, rax
movabs rax, 0x1c2500000000
or rbx, rax
jmp 0x14005ff3a
mov byte [rdi], 1
movabs rbx, 0x8000000000
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14005ff55
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
call fcn.14000c220
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400d24e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140060ce4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov rsi, r8
mov r14, rcx
and dword [rbp - 0x30], 0
and dword [rbp + 0x38], 0
lea rdi, [0x14017bcd0]
mov rdx, rdi
cmp qword [0x14017bce8], 8
cmovae rdx, qword [0x14017bcd0]
lea rax, [rbp + 0x38]
mov qword [r11 - 0x50], rax
and qword [r11 - 0x58], 0
lea r9, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140060deb
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x140060de6
mov eax, dword [rbp - 0x30]
dec eax
cmp eax, 1
ja 0x140060de6
mov byte [rbp + 0x28], 0
lea rdx, [rcx + 2]
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.140043b84
nop
cmp qword [0x14017bce8], 8
cmovae rdi, qword [0x14017bcd0]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140060dce
mov rdx, rbx
mov rcx, rsi
call fcn.14000954c
nop
test rbx, rbx
je 0x140060de2
mov rdx, qword [rbp - 0x10]
sub rdx, rbx
mov rcx, rbx
call fcn.14000c220
mov eax, edi
jmp 0x140060deb
mov eax, 0x65e
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14006d298
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x14006d424
cmp ecx, 0x7c
je 0x14006d424
cmp ecx, 0x29
jne 0x14006d2db
cmp dword [rbx + 0x1c], 0
jne 0x14006d424
test dword [rbx + 0x80], 0x10000000
je 0x14006d451
cmp ecx, 0x2e
jne 0x14006d2fb
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14006d578
mov rcx, rbx
call fcn.14006d258
jmp 0x14006d412
cmp ecx, 0x5c
jne 0x14006d35f
mov rcx, rbx
call fcn.14006d258
test byte [rbx + 0x80], 0x80
je 0x14006d352
cmp word [rbx + 0x78], 0x62
jne 0x14006d333
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14006d578
mov rcx, rbx
call fcn.14006d258
jmp 0x14006d41a
cmp word [rbx + 0x78], 0x42
jne 0x14006d352
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14006d578
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14006d326
mov rcx, rbx
call fcn.14006d720
jmp 0x14006d412
cmp ecx, 0x5b
jne 0x14006d383
mov rcx, rbx
call fcn.14006d258
mov rcx, rbx
call fcn.14006d5cc
cmp dword [rbx + 0x7c], 0x5d
jne 0x14006d43b
jmp 0x14006d2ee
cmp ecx, 0x28
jne 0x14006d3a7
mov rcx, rbx
call fcn.14006d258
mov rcx, rbx
call fcn.14006d868
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14006d446
jmp 0x14006d405
cmp ecx, 0x5e
jne 0x14006d3b4
lea edx, [rcx - 0x5c]
jmp 0x14006d31d
cmp ecx, 0x24
jne 0x14006d3c1
lea edx, [rcx - 0x21]
jmp 0x14006d31d
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14006d430
cmp ecx, 0x3f
je 0x14006d430
cmp ecx, 0x7b
je 0x14006d430
cmp ecx, 0x7d
jne 0x14006d3e4
test dword [rbx + 0x80], 0x10000000
je 0x14006d45c
cmp ecx, 0x5d
jne 0x14006d3f5
test dword [rbx + 0x80], 0x10000000
je 0x14006d467
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14006daac
mov dil, 1
mov rcx, rbx
call fcn.14006d258
test dil, dil
je 0x14006d41a
mov rcx, rbx
call fcn.14006d968
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x14006d2aa
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
call fcn.14006ce18
int3
mov edx, 4
call fcn.14006ce18
int3
mov edx, 5
call fcn.14006ce18
int3
mov edx, 5
call fcn.14006ce18
int3
mov edx, 6
call fcn.14006ce18
int3
mov edx, 4
call fcn.14006ce18
int3
Function at 0x14006fec8
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov rbx, rcx
xor r14d, r14d
mov word [rbp + 0x28], r14w
lea r8, [rbp + 0x28]
mov edi, 0x105
mov edx, edi
lea rcx, [rbp - 0x18]
call fcn.140060e08
nop
mov rdx, qword [rbp - 0x18]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x14006ffd0
cmp esi, 0x104
jbe 0x14006ffa4
mov word [rbp + 0x28], r14w
mov edx, esi
mov r8, qword [rbp - 0x10]
mov rcx, r8
mov rdi, qword [rbp - 0x18]
sub rcx, rdi
sar rcx, 1
cmp rsi, rcx
jae 0x14006ff51
lea rax, [rdi + rsi*2]
mov qword [rbp - 0x10], rax
jmp 0x14006ff93
jbe 0x14006ff93
mov rax, qword [rbp - 8]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x14006ff75
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call fcn.140060f44
mov rdi, qword [rbp - 0x18]
jmp 0x14006ff93
sub rdx, rcx
je 0x14006ff8f
movzx eax, r14w
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x18]
mov qword [rbp - 0x10], r8
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
lea rdx, [0x14010caf0]
mov rax, qword [rbp - 0x18]
test rax, rax
cmovne rdx, rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rcx, rbx
call fcn.14000954c
jmp 0x14006ffe0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14006fffb
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.14000c220
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140070020
Capabilities:
Query environment variable

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
mov word [rbp + 0x28], r15w
lea r8, [rbp + 0x28]
mov edi, 0x400
mov edx, edi
lea rcx, [rbp - 0x18]
call fcn.140060e08
nop
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140070074
mov rcx, qword [rsi]
mov r8d, edi
mov rdx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x140070154
cmp r14d, 0x3ff
jbe 0x140070128
mov word [rbp + 0x28], r15w
mov edx, r14d
mov r8, qword [rbp - 0x10]
mov rcx, r8
mov rdi, qword [rbp - 0x18]
sub rcx, rdi
sar rcx, 1
cmp r14, rcx
jae 0x1400700c7
lea rax, [rdi + r14*2]
mov qword [rbp - 0x10], rax
jmp 0x140070109
jbe 0x140070109
mov rax, qword [rbp - 8]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x1400700eb
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call fcn.140060f44
mov rdi, qword [rbp - 0x18]
jmp 0x140070109
sub rdx, rcx
je 0x140070105
movzx eax, r15w
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x18]
mov qword [rbp - 0x10], r8
cmp qword [rsi + 0x18], 8
jb 0x140070113
mov rsi, qword [rsi]
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
lea rdx, [0x14010caf0]
mov rax, qword [rbp - 0x18]
test rax, rax
cmovne rdx, rax
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rcx, rbx
call fcn.14000954c
jmp 0x140070164
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14007017f
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.14000c220
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x1400701a4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rbx, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400701d3
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
lea edi, [rax + 1]
xor ebp, ebp
mov word [rsp + 0x58], bp
mov edx, edi
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140060e08
nop
cmp qword [rsi + 0x18], 8
jb 0x14007020a
mov rsi, qword [rsi]
mov r8d, edi
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
test eax, eax
je 0x14007024e
lea rdx, [0x14010caf0]
test rdi, rdi
cmovne rdx, rdi
mov rcx, rbx
call fcn.14000954c
nop
test rdi, rdi
je 0x140070269
mov rdx, qword [rsp + 0x38]
sub rdx, rdi
sar rdx, 1
add rdx, rdx
mov rcx, rdi
call fcn.14000c220
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140071d6c
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor esi, esi
mov qword [rbp - 8], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x140071dbb
lea edi, [rsi + 0xd]
jmp 0x140071e73
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x140071e73
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x10]
mov rcx, r8
mov rdi, qword [rbp - 0x18]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x140071dfb
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x10], rax
jmp 0x140071e3c
jbe 0x140071e3c
mov rax, qword [rbp - 8]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x140071e1f
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x18]
call fcn.140060f44
mov rdi, qword [rbp - 0x18]
jmp 0x140071e3c
sub rdx, rcx
je 0x140071e38
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x18]
mov qword [rbp - 0x10], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140071e65
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140071e73
mov rdx, qword [rbp - 0x18]
mov rcx, rbx
call fcn.14000954c
mov edi, esi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140071e8e
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.14000c220
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140073214
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14017bec0], eax
jg 0x140073258
mov al, byte [0x14017beb0]
add rsp, 0x58
ret
cmp eax, 2
lea rcx, [0x14017bec0]
sete byte [0x14017beb0]
call fcn.1400d2958
jmp 0x140073234
lea rcx, [0x14017bec0]
call fcn.1400d29c0
cmp dword [0x14017bec0], 0xffffffff
jne 0x140073234
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
xor edx, edx
test ecx, ecx
je 0x1400732a6
cmp ecx, 9
lea eax, [rdx + 2]
cmovne eax, edx
jmp 0x140073240
mov eax, 1
jmp 0x140073240