joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400850b0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140249670]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx + 4], 0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
je 0x1400850dd
call fcn.14008507c
jmp 0x140085140
cmp dword [rcx], 0x17
movzx edx, r9w
jne 0x14008510a
lea rcx, [rsp + 0x30]
call fcn.140084d60
mov rcx, rbx
call fcn.140085078
movsxd rcx, eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 0x1c
jmp 0x14008512c
lea rcx, [rsp + 0x30]
call fcn.140084d20
mov rcx, rbx
call fcn.140085078
movsxd rcx, eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], setsockopt
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14015ade0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140086ef8
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12, r8
mov r14, rdx
mov r15, rcx
xor edi, edi
mov dword [rsp + 0x68], edi
cmp byte [rcx + 0x50], dil
je 0x140086fa0
call fcn.140067f0c
mov rbx, rax
test rax, rax
je 0x140086f91
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 1
jl 0x140086f91
lea edx, [rdi + 2]
lea r8d, [rdi + 1]
lea rcx, [rbp - 0x80]
call fcn.14005ba84
nop
lea rdx, str.Cipher_not_properly_initialized_for_decryption._Aborting
lea rcx, [rbp - 0x80]
call fcn.14002e2d0
mov rax, qword [rbx]
lea r9, [rbp - 0x80]
mov r8, qword [str.BCryptSymmetricCipherImpl]
lea edx, [rdi + 1]
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x80]
call fcn.14001bb60
xor edx, edx
mov rcx, r14
call fcn.14005ca8c
jmp 0x140087130
mov rcx, r12
call fcn.140067ef8
test rax, rax
je 0x140086f91
mov r13, rdi
mov dword [rbp + 0xc8], edi
cmp qword [r15 + 0x88], rdi
je 0x140086fdb
lea rcx, [r15 + 0x70]
call fcn.140068510
mov r13, rax
lea rcx, [r15 + 0x70]
call fcn.140067ef8
mov qword [rbp + 0xc8], rax
mov rcx, r12
call fcn.140067ef8
mov dword [rbp + 0xb0], eax
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14005ca8c
nop
lea rcx, [rsp + 0x50]
call fcn.140067ef8
mov rsi, rax
lea rcx, [rsp + 0x50]
call fcn.140068510
mov rbx, rax
mov rcx, r12
call fcn.140067ef8
mov rdi, rax
mov rcx, r12
call fcn.140068510
mov rdx, rax
mov ecx, dword [r15 + 0x68]
mov dword [rsp + 0x48], ecx
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rbx
mov rax, qword [rbp + 0xc8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r9, qword [r15 + 0x88]
mov r8d, edi
mov rcx, qword [r15 + 0x60]
call sub.bcrypt.dll_BCryptDecrypt
mov edi, eax
test eax, eax
jns 0x1400870e9
mov byte [r15 + 0x50], 1
call fcn.140067f0c
mov rbx, rax
test rax, rax
je 0x1400870dd
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 2
jl 0x1400870dd
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x80]
call fcn.14005ba84
nop
lea rdx, str.Failed_to_compute_encrypted_output_with_error_code
lea rcx, [rbp - 0x80]
call fcn.14002e2d0
mov rcx, rax
mov edx, edi
call fcn.14005f2a0
mov rax, qword [rbx]
lea r9, [rbp - 0x80]
mov r8, qword [str.BCryptSymmetricCipherImpl]
mov edx, 2
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x80]
call fcn.14001bb60
xor edx, edx
mov rcx, r14
call fcn.14005ca8c
jmp 0x140087126
mov ebx, dword [rbp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.140067ef8
cmp rbx, rax
jae 0x140087118
lea rcx, [rsp + 0x50]
call fcn.140068510
mov rdx, rax
mov r8d, ebx
mov rcx, r14
call fcn.14005ca68
jmp 0x140087126
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14005c9e4
nop
lea rcx, [rsp + 0x50]
call fcn.14005e214
mov rax, r14
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400884e8
Capabilities:
Generate random numbers via winapi

Disassembly:
test r8, r8
je 0x140088617
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14008859e
xor r9d, r9d
call sub.bcrypt.dll_BCryptGenRandom
mov esi, eax
test eax, eax
jns 0x140088607
mov byte [rdi + 8], 1
call fcn.140067f0c
mov rdi, rax
test rax, rax
je 0x140088607
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 1
jl 0x140088607
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
call fcn.14005ba84
nop
lea rdx, str.Failed_to_generate_random_number_with_status
lea rcx, [rsp + 0x30]
call fcn.14002e2d0
mov rcx, rax
mov edx, esi
call fcn.14005f2a0
mov rax, qword [rdi]
lea r9, [rsp + 0x30]
mov r8, qword [str.SecureRandom_BCrypt]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x18]
nop
jmp 0x1400885fd
mov byte [rdi + 8], 1
call fcn.140067f0c
mov rdi, rax
test rax, rax
je 0x140088607
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 1
jl 0x140088607
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
call fcn.14005ba84
nop
lea rdx, str.Algorithm_handle_not_initialized
lea rcx, [rsp + 0x30]
call fcn.14002e2d0
mov rax, qword [rdi]
lea r9, [rsp + 0x30]
mov r8, qword [str.SecureRandom_BCrypt]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x30]
call fcn.14001bb60
mov rsi, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x14008864c
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x140
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x170]
mov rdx, rax
mov rcx, qword [rsi]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x140088703
call fcn.140067f0c
mov rsi, rax
test rax, rax
je 0x1400886f6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov edi, 2
cmp eax, edi
jl 0x1400886f6
lea r8d, [rdi - 1]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.14005ba84
nop
lea rdx, str.Error_computing_hash.
lea rcx, [rsp + 0x50]
call fcn.14002e2d0
mov rax, qword [rsi]
lea r9, [rsp + 0x50]
mov r8, qword [str.CryptoHash]
mov edx, edi
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x50]
call fcn.14001bb60
mov rcx, rbx
call fcn.1400852e0
jmp 0x14008879f
xor r9d, r9d
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rsi]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x140088778
call fcn.140067f0c
mov rsi, rax
test rax, rax
je 0x1400886f6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov edi, 2
cmp eax, edi
jl 0x1400886f6
lea r8d, [rdi - 1]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.14005ba84
nop
lea rdx, str.Error_obtaining_computed_hash
lea rcx, [rsp + 0x50]
call fcn.14002e2d0
mov rax, qword [rsi]
lea r9, [rsp + 0x50]
mov r8, qword [str.CryptoHash]
mov edx, edi
mov rcx, rsi
call qword [rax + 0x18]
nop
jmp 0x1400886ec
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.14005b02c
mov rdx, rax
mov rcx, rbx
call fcn.1400852b4
lea rcx, [rsp + 0x30]
call fcn.14005da24
mov rax, rbx
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400887b8
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2040]
mov eax, 0x2140
call fcn.14015ba50
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2170], rbx
mov rax, qword [0x140249670]
xor rax, rsp
mov qword [rbp + 0x2030], rax
mov rbx, rdx
mov rdi, rcx
mov r9d, dword [rcx + 0x18]
mov r8, qword [rcx + 0x20]
mov rdx, qword [rcx]
lea rcx, [rsp + 0x20]
call fcn.1400857c4
nop
lea rcx, [rsp + 0x20]
call fcn.14005f8fc
test al, al
jne 0x140088885
call fcn.140067f0c
mov rsi, rax
test rax, rax
je 0x1400889e9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov ebx, 2
cmp eax, ebx
jl 0x1400889e9
lea edi, [rbx - 1]
mov r8d, edi
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
lea rdx, str.Error_creating_hash_handle.
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
mov r8, qword [str.CryptoHash]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x18]
nop
jmp 0x140088943
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400771f0
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.140003e60
test al, al
je 0x140088952
mov r8d, 0x2000
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140076e88
mov rcx, rbx
call fcn.140067ef8
test rax, rax
jle 0x140088892
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x140088892
call fcn.140067f0c
mov rsi, rax
test rax, rax
je 0x1400889e9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov ebx, 2
cmp eax, ebx
jl 0x1400889e9
lea edi, [rbx - 1]
mov r8d, edi
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
lea rdx, str.Error_computing_hash.
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
mov r8, qword [str.CryptoHash]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001bb60
jmp 0x1400889e9
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.140089444
test al, al
je 0x1400889e9
xor r9d, r9d
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x20]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x1400889e2
call fcn.140067f0c
mov rsi, rax
test rax, rax
je 0x1400889e9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov ebx, 2
cmp eax, ebx
jl 0x1400889e9
lea edi, [rbx - 1]
mov r8d, edi
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
lea rdx, str.Error_obtaining_computed_hash
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
mov r8, qword [str.CryptoHash]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x18]
nop
jmp 0x140088943
mov edi, 1
jmp 0x1400889ec
xor dil, dil
lea rcx, [rsp + 0x20]
call fcn.1400860fc
mov al, dil
mov rcx, qword [rbp + 0x2030]
xor rcx, rsp
call fcn.14015ade0
mov rbx, qword [rsp + 0x2170]
add rsp, 0x2140
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008a0f8
Capabilities:
Read data from internet
Receive data

Disassembly:
sub rsp, 0x28
mov rax, r9
mov r10, r8
mov r9, qword [rsp + 0x50]
mov rcx, rdx
mov r8d, eax
mov rdx, r10
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14008a16c
Capabilities:
Send data

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x20], 0
mov rax, r9
mov r10, r8
lea r9, [rsp + 0x20]
mov rcx, rdx
mov r8d, eax
mov rdx, r10
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x14008a197
xor eax, eax
jmp 0x14008a19b
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14008af98
Capabilities:
Set http header

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x150
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140249670]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, r8
call fcn.14000b840
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.140083374
nop
lea rcx, [rsp + 0x120]
call fcn.14000b830
mov rbx, rax
lea rcx, [rsp + 0x120]
call fcn.14000b4c0
mov rdx, rax
mov r9d, 0xa0000000
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14008b090
call fcn.140067f0c
mov rdi, rax
test rax, rax
je 0x14008b090
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 2
jl 0x14008b090
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
call fcn.14005ba84
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_add_HTTP_request_headers_with_error_code:
lea rcx, [rsp + 0x30]
call fcn.14002e2d0
mov rcx, rax
mov edx, ebx
call fcn.140029fd0
mov rbx, qword [rdi]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x30]
mov edx, 2
mov rcx, rdi
call qword [rbx + 0x18]
nop
lea rcx, [rsp + 0x30]
call fcn.14001bb60
nop
lea rcx, [rsp + 0x120]
call fcn.140004af0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14015ade0
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008b490
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rax, r9
mov r10, r8
mov r9, qword [rsp + 0x50]
mov rcx, rdx
mov r8d, eax
mov rdx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14008b4b8
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, rdx
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14008d864
Capabilities:
Connect to http server

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rdi, r8
mov rcx, rdx
call fcn.14000b840
mov rcx, rsi
mov rbx, rax
call fcn.140067ef8
and qword [rsp + 0x38], 0
mov rcx, rax
movzx r8d, word [rdi]
xor r9d, r9d
mov dword [rsp + 0x30], 0x400000
mov rdx, rbx
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rcx, rsi
mov rbx, rax
call fcn.140067f18
mov rcx, rsi
mov dword [rsp + 0x60], eax
call fcn.14008d92c
mov edi, 4
mov dword [rsp + 0x68], eax
mov r9d, edi
lea r8, [rsp + 0x60]
mov rcx, rbx
lea edx, [rdi - 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, edi
lea r8, [rsp + 0x68]
lea edx, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140169444
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.14015ba50
sub rsp, rax
mov rax, qword [0x140249670]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14017a100
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140169493
mov rax, rbp
jmp 0x14016959b
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 + 0x26a750]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14017de04
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x26a750]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140169597
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 0x140169597
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14017de04
test rax, rax
js 0x140169597
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140169597
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140169589
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140169589
cmp byte [rcx], 0xd
jne 0x14016956f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14016957e
cmp byte [rcx + 1], 0xa
jne 0x14016957e
inc rcx
jmp 0x14016957e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x249a80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140169551
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14016959b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14015ade0
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 0x140177534
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140177324
Function at 0x14017d180
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, [0x14026a750]
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 0x14017d1de
cmp word [rdx], r12w
jne 0x14017d1de
or byte [rax + r8*8 + 0x38], cl
jmp 0x14017d1e4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14017d33f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14017d31a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14017d21d
mov rcx, r9
jmp 0x14017d240
cmp r9, rdx
jae 0x14017d257
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 0x14017d201
jmp 0x14017d33f
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 0x14017d314
cmp dword [rsp + 0x80], edi
je 0x14017d314
mov rdx, r14
lea r11, [0x14026a750]
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 0x14017d2ed
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14017d2c0
mov word [rbx], r12w
jmp 0x14017d33b
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 0x14017d2c9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14017d33b
cmp word [rsp + 0x70], r12w
jne 0x14017d2fa
cmp rbx, rsi
je 0x14017d2ba
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14017de0c
cmp word [rsp + 0x70], r12w
je 0x14017d33f
mov word [rbx], r13w
jmp 0x14017d33b
lea r11, [0x14026a750]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14017d337
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14017d33f
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 0x140184f9c
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 0x140184fcc
xor eax, eax
jmp 0x14018508f
mov rbp, rbx
cmp word [rax], si
je 0x140184ff1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140184fd8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140184fd4
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.140181734
movsxd r14, eax
test eax, eax
jne 0x14018502f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140184fc5
mov rcx, r14
call fcn.14017e13c
mov rdi, rax
test rax, rax
jne 0x140185048
xor ecx, ecx
call fcn.14017bb90
jmp 0x140185024
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.140181734
test eax, eax
jne 0x140185079
mov rcx, rdi
call fcn.14017bb90
jmp 0x140185083
xor ecx, ecx
call fcn.14017bb90
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 0x1401850ac
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 0x140185133
mov rsi, rbx
cmp word [rax], bp
je 0x1401850f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401850dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401850d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14017e13c
mov rdi, rax
test rax, rax
je 0x140185120
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14015e660
mov rbp, rdi
xor ecx, ecx
call fcn.14017bb90
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 0x14018af48
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.14017de0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14017de0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14018b098
cmp rax, 0xffffffffffffffff
je 0x14018b098
xor edi, edi
test rbp, rbp
jle 0x14018b043
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14017c1f8
mov rbx, rax
test rax, rax
jne 0x14018afd0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14018b039
mov edx, 0x8000
mov ecx, r14d
call fcn.14017865c
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.14017b880
cmp eax, 0xffffffff
je 0x14018b019
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14018afe0
mov edx, r15d
mov ecx, r14d
call fcn.14017865c
jmp 0x14018b039
cmp byte [rsi + 0x38], dil
je 0x14018b030
cmp dword [rsi + 0x34], 5
jne 0x14018b030
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x14018b039
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14017bb90
jmp 0x14018b0ac
jns 0x14018b0ac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14017de0c
cmp rax, 0xffffffffffffffff
jne 0x14018b064
cmp byte [rsi + 0x30], dil
je 0x14018b0ac
mov edi, dword [rsi + 0x2c]
jmp 0x14018b0ac
mov ecx, r14d
call fcn.1401861b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14018b0ac
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], select
jmp 0x14018b0ac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14018b0a5
mov eax, dword [rsi + 0x2c]
jmp 0x14018b0aa
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14017de0c
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