joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104910
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x68], rax
movzx ebp, r8w
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor eax, eax
mov qword [rcx], rax
lea rdi, [rcx + 8]
mov qword [rdi], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, str.Simple_HttpFetcher_1.1
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea rcx, [rsp + 0x30]
cmp rbx, rcx
je 0x140104977
mov rcx, qword [rbx]
mov qword [rbx], rax
test rcx, rcx
je 0x140104985
jmp 0x14010497f
test rax, rax
je 0x140104985
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140104a5d
mov dword [rsp + 0x60], 0xaa0
mov r9d, 4
lea r8, [rsp + 0x60]
lea edx, [r9 + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x140104a9b
cmp qword [rsi + 0x18], 8
jb 0x1401049c0
mov rsi, qword [rsi]
xor r9d, r9d
movzx r8d, bp
mov rdx, rsi
mov rcx, qword [rbx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
lea rcx, [rsp + 0x30]
cmp rdi, rcx
je 0x1401049ea
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
je 0x1401049f8
jmp 0x1401049f2
test rax, rax
je 0x1401049f8
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp qword [rdi], 0
je 0x140104a1e
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14013af80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, eax
call fcn.1401017e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_connect_to_host
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400aa4a0
lea rdx, [0x140396998]
lea rcx, [rsp + 0x38]
call fcn.14013d01c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401017e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_create_session
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400aa4a0
lea rdx, [0x140396998]
lea rcx, [rsp + 0x38]
call fcn.14013d01c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401017e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_set_secure_protocols
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400aa4a0
lea rdx, [0x140396998]
lea rcx, [rsp + 0x38]
call fcn.14013d01c
int3
Function at 0x140104af0
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15d, r8d
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x30], rcx
xor r12d, r12d
mov dword [rbp - 0x30], r12d
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140104cce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x140104b90
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14013af80
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140104cef
mov esi, dword [rbp - 0x30]
shr rsi, 1
dec rsi
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
cmp rsi, 7
ja 0x140104be6
mov qword [rbp - 0x18], rsi
test rsi, rsi
je 0x140104bda
movzx eax, r12w
lea rdi, [rbp - 0x28]
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rbp + rsi*2 - 0x28], r12w
mov rdx, qword [rbp - 0x28]
jmp 0x140104c50
movabs rdi, 0x7ffffffffffffffe
cmp rsi, rdi
ja 0x140104d2b
mov rax, rsi
or rax, 7
cmp rax, rdi
ja 0x140104c14
mov rdi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rdi, rcx
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140033890
mov rdx, rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rdi
movzx eax, r12w
mov rdi, rdx
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rdx + rsi*2], r12w
mov qword [rbp - 0x28], rdx
lea r9, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r9, rdx
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, r15d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x140104c92
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140104b6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401017e0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_query_header_value
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400aa4a0
lea rdx, [0x140396998]
lea rcx, [rbp - 0x50]
call fcn.14013d01c
nop
lea rdx, str.WinHttp:_WinHttpQueryHeader_unexpectedly_returned_true
lea rcx, [rbp - 0x50]
call fcn.14003cbd0
lea rdx, [0x1403969d0]
lea rcx, [rbp - 0x50]
call fcn.14013d01c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401017e0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.WinHttp:_Failed_to_query_header_length
mov r8, rdi
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1400aa4a0
lea rdx, [0x140396998]
lea rcx, [rbp - 0x50]
call fcn.14013d01c
int3
call fcn.140026750
int3
Function at 0x140151a90
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x140300898]
mov rbp, rcx
call fcn.140163718
xor edi, edi
test rax, rax
je 0x140151b76
mov ebx, edi
call fcn.1401484c0
mov r14d, dword [rax]
call fcn.1401484c0
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140163664
mov rsi, rax
test rax, rax
je 0x140151b07
call fcn.1401484c0
mov dword [rax], r14d
jmp 0x140151b31
call fcn.1401484c0
cmp dword [rax], 0x22
jne 0x140151b6e
call fcn.1401484c0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140163664
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140151b6e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140151b35
cmp rax, 3
je 0x140151b50
mov rcx, rsi
call fcn.1401519ec
test al, al
je 0x140151b61
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140151b61
mov dil, 1
mov rcx, rbx
call fcn.1401483d0
mov al, dil
jmp 0x140151b78
mov rcx, rbx
call fcn.1401483d0
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14013af80
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401678f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140167922
call fcn.1401484c0
mov dword [rax], 0x16
call fcn.1401421b8
jmp 0x140167a41
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140167a41
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140167a41
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140167951
lock or dword [rcx + 0x14], 0x10
jmp 0x140167a41
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140167965
call fcn.1401693d8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140161c10
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1401684a0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140167a2f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401679fa
mov rcx, rsi
call fcn.140161c10
cmp eax, edi
je 0x1401679e5
mov rcx, rsi
call fcn.140161c10
cmp eax, 0xfffffffe
je 0x1401679e5
mov rcx, rsi
call fcn.140161c10
movsxd rbx, eax
lea r14, [0x1403b2390]
mov rcx, rsi
sar rbx, 6
call fcn.140161c10
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401679ec
lea rdx, [0x14039bff0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401679fa
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140167a1e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140167a1e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140167a1e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140167a44
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140167a5c
Capabilities:
Read file on windows

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
mov rbx, rcx
test rcx, rcx
jne 0x14016777e
call fcn.1401484c0
mov dword [rax], 0x16
call fcn.1401421b8
jmp 0x1401678ce
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401678ce
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401678ce
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401677ad
lock or dword [rcx + 0x14], 0x10
jmp 0x1401678ce
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401677c1
call fcn.1401693d8
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1401677d1
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1401677d4
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140161c10
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1401684a0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401678bc
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140167867
mov rcx, rbx
call fcn.140161c10
cmp eax, 0xffffffff
je 0x140167852
mov rcx, rbx
call fcn.140161c10
cmp eax, 0xfffffffe
je 0x140167852
mov rcx, rbx
call fcn.140161c10
movsxd rdi, eax
lea rsi, [0x1403b2390]
mov rcx, rbx
sar rdi, 6
call fcn.140161c10
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140167859
lea rdx, [0x14039bff0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140167867
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14016788b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14016788b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14016788b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1401678a9
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1401678b4
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1401678d3
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140167748
Function at 0x140167d74
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14013b700
sub rsp, rax
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140161c10
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140167dc3
mov rax, rbp
jmp 0x140167ecb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3b2390]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140168f34
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3b2390]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140167ec7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140167ec7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140168f34
test rax, rax
js 0x140167ec7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140167ec7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140167eb9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140167eb9
cmp byte [rcx], 0xd
jne 0x140167e9f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140167eae
cmp byte [rcx + 1], 0xa
jne 0x140167eae
inc rcx
jmp 0x140167eae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x39c200]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140167e81
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140167ecb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14013af80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140167ff4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1403b2390]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140168052
cmp word [rdx], r12w
jne 0x140168052
or byte [rax + r8*8 + 0x38], cl
jmp 0x140168058
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1401681b3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14016818e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140168091
mov rcx, r9
jmp 0x1401680b4
cmp r9, rdx
jae 0x1401680cb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140168075
jmp 0x1401681b3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140168188
cmp dword [rsp + 0x80], edi
je 0x140168188
mov rdx, r14
lea r11, [0x1403b2390]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140168161
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140168134
mov word [rbx], r12w
jmp 0x1401681af
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14016813d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1401681af
cmp word [rsp + 0x70], r12w
jne 0x14016816e
cmp rbx, rsi
je 0x14016812e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140168f3c
cmp word [rsp + 0x70], r12w
je 0x1401681b3
mov word [rbx], r13w
jmp 0x1401681af
lea r11, [0x1403b2390]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401681ab
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401681b3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14016ba6c
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 0x14016baf3
mov rsi, rbx
cmp word [rax], bp
je 0x14016bab2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14016ba9c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14016ba98
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140160860
mov rdi, rax
test rax, rax
je 0x14016bae0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14013d0f0
mov rbp, rdi
xor ecx, ecx
call fcn.14015f44c
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 0x14017262c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140168f3c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140168f3c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14017277c
cmp rax, 0xffffffffffffffff
je 0x14017277c
xor edi, edi
test rbp, rbp
jle 0x140172727
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14015f3d4
mov rbx, rax
test rax, rax
jne 0x1401726b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14017271d
mov edx, 0x8000
mov ecx, r14d
call fcn.14015cb4c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140167438
cmp eax, 0xffffffff
je 0x1401726fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401726c4
mov edx, r15d
mov ecx, r14d
call fcn.14015cb4c
jmp 0x14017271d
cmp byte [rsi + 0x38], dil
je 0x140172714
cmp dword [rsi + 0x34], 5
jne 0x140172714
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14017271d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14015f44c
jmp 0x140172790
jns 0x140172790
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140168f3c
cmp rax, 0xffffffffffffffff
jne 0x140172748
cmp byte [rsi + 0x30], dil
je 0x140172790
mov edi, dword [rsi + 0x2c]
jmp 0x140172790
mov ecx, r14d
call fcn.140163c54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140172790
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140172790
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140172789
mov eax, dword [rsi + 0x2c]
jmp 0x14017278e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140168f3c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14018ca10
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r9
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14018cb80
test rbx, rbx
je 0x14018cb80
mov rcx, rdx
call fcn.14018cba0
cmp rbp, rax
jb 0x14018cb80
xor edx, edx
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r9d, edx
cmp rsi, 2
jbe 0x14018cae9
lea r8, [rdi + 2]
nop dword [rax]
movzx eax, byte [r8 - 2]
add rdx, 4
shr rax, 2
add r9, 3
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx ecx, byte [r8 - 2]
movzx eax, byte [r8 - 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movzx ecx, byte [r8 - 1]
movzx eax, byte [r8]
and ecx, 0xf
shr rax, 6
shl rcx, 2
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 2], al
movzx eax, byte [r8]
add r8, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rbx + 3], al
mov rax, r8
sub rax, rdi
add rbx, 4
cmp rax, rsi
jb 0x14018ca70
add rdi, r9
sub rsi, r9
test sil, 2
je 0x14018cb44
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx ecx, byte [rdi]
movzx eax, byte [rdi + 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
jmp 0x14018cb82
test sil, 1
je 0x14018cb77
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx eax, byte [rdi]
and eax, 3
add rax, rax
movzx eax, byte [r10 + rax*8]
mov byte [rbx + 1], al
mov word [rbx + 2], 0x3d3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
jmp 0x14018cb82
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14018df60
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov edx, 0x108
call fcn.140033890
mov rdx, rax
mov qword [rbx + 0x10], 0x104
mov qword [rbx + 0x18], 0x107
movzx eax, si
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], si
mov qword [rbx], rdx
mov dword [rsp + 0x20], 1
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x48], eax
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14018dfe0
mov rcx, rdx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov r8, qword [rbx + 0x10]
mov rdi, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x14018dfff
mov rdi, qword [rbx]
test r8, r8
je 0x14018e034
mov rcx, r8
mov rax, rdi
mov rdx, rsi
cmp word [rdi], dx
je 0x14018e024
cmp rcx, 1
je 0x14018e027
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x14018e012
mov rdx, rax
test rdx, rdx
je 0x14018e034
sub rdx, rdi
sar rdx, 1
jmp 0x14018e03b
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x14018e067
mov rax, rbx
cmp r9, 8
jb 0x14018e04c
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], si
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140032160
int3

Function at 0x14018e070
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov esi, r8d
mov ebp, edx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 7
mov word [rcx], r14w
mov edx, 0x108
call fcn.140033890
mov rdx, rax
mov qword [rbx + 0x10], 0x104
mov qword [rbx + 0x18], 0x107
movzx eax, r14w
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], r14w
mov qword [rbx], rdx
mov dword [rsp + 0x20], 1
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14018e0f6
mov rax, rdx
mov r9d, esi
mov r8d, ebp
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r8, qword [rbx + 0x10]
mov rdi, rbx
mov r9, qword [rbx + 0x18]
cmp r9, 8
jb 0x14018e11b
mov rdi, qword [rbx]
test r8, r8
je 0x14018e152
mov rcx, r8
mov rax, rdi
mov rdx, r14
cmp word [rdi], dx
je 0x14018e142
nop
cmp rcx, 1
je 0x14018e145
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x14018e130
mov rdx, rax
test rdx, rdx
je 0x14018e152
sub rdx, rdi
sar rdx, 1
jmp 0x14018e159
mov rdx, 0xffffffffffffffff
cmp r8, rdx
jb 0x14018e189
mov rax, rbx
cmp r9, 8
jb 0x14018e16a
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], r14w
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call fcn.140032160
int3