joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140139520
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rdi]
mov rbx, qword [rsi + 0x228]
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x14013956d
cmp qword [rax], 0
jne 0x1401396e7
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [rbx + 0x30], 0
lea r9, [rbx + 0x30]
jle 0x1401395b8
mov rcx, qword [rdi + 8]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1401396e0
cmp dword [rbx + 0x34], 0
lea r9, [rbx + 0x34]
jle 0x1401395e7
mov rcx, qword [rdi + 8]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1401396e0
mov eax, dword [rsi + 8]
xor ebp, ebp
cmp eax, 2
jne 0x140139620
cmp dword [rbx + 0x94], ebp
je 0x140139684
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x38], ax
mov ecx, dword [rbx + 0x94]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
lea r8d, [rbp + 0x10]
jmp 0x140139671
cmp eax, 0x17
jne 0x140139684
cmp dword [rsi + 0x60], ebp
jne 0x140139684
mov rax, qword [rbx + 0x98]
cmp rax, qword [0x1401d3d68]
jne 0x14013964a
mov rax, qword [rbx + 0xa0]
cmp rax, qword [0x1401d3d70]
je 0x140139684
mov eax, reloc.WS2_32.dll_socket
mov dword [rsp + 0x3a], ebp
mov word [rsp + 0x38], ax
mov word [rsp + 0x3e], bp
mov dword [rsp + 0x50], ebp
movups xmm0, xmmword [rbx + 0x98]
lea r8d, [rax + 5]
movups xmmword [rsp + 0x40], xmm0
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1401396e0
cmp dword [rsi + 8], 0x17
jne 0x1401396ae
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov edx, 0x29
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test byte [rdi + 0x24], 1
je 0x1401396e7
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov edx, 6
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1401396e7
mov eax, ntohs
jmp 0x1401396e9
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140144310
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14013ac30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
xor ecx, ecx
mov r8, qword [rsp + 0x10]
mov edx, dword [rsp + 0x18]
test r8, r8
je 0x14013ac75
mov r9, qword [rsp + 8]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r9]
inc rcx
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jb 0x14013ac60
mov eax, edx
ret
Function at 0x14013b8b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
sub rsp, 0x40
mov rbx, r8
lea rax, [r11 - 0x18]
xor ebp, ebp
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov qword [r11 - 0x28], rbp
mov qword [rbx], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14013b8f7
cmp eax, 0xea
jne 0x14013b975
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14013b975
lea ecx, [rax + 1]
mov rax, qword [0x140241ac8]
call qword [case.0x1400cd6b1.0]
mov qword [rbx], rax
test rax, rax
je 0x14013b975
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14013b962
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x14013b962
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], bpl
mov eax, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
mov rcx, qword [rbx]
mov rax, qword [0x140241ad8]
call qword [case.0x1400cd6b1.0]
mov qword [rbx], rbp
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rbp
ret
Function at 0x14013e830
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
cmp ecx, 2
jne 0x14013e851
lea r9d, [rcx + 2]
jmp 0x14013e85a
cmp ecx, 0x17
jne 0x14013e8a5
lea r9d, [rcx - 7]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rbx
call fcn.14013e300
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14013e88c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14013e88c
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
mov eax, 0xffffffff
mov ecx, 1
cmp ebx, eax
mov rbx, qword [rsp + 0x20]
cmovg eax, ecx
add rsp, 0x28
ret
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x14013f160
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
sub rsp, 0x60
mov rsi, qword [rsp + 0x88]
xor ebx, ebx
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x14013f399
nop dword [rax + rax]
mov rax, qword [rax + 0x20]
mov rbp, rbx
inc rbx
test rax, rax
jne 0x14013f190
test rbx, rbx
je 0x14013f399
mov rax, qword [0x140241ac8]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x58], r12
lea r12, [rbx + rbx*2]
shl r12, 4
mov rcx, r12
mov qword [rsp + 0x30], r12
call qword [case.0x1400cd6b1.0]
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
jne 0x14013f1e7
lea eax, [rdi + 0xf]
jmp 0x14013f366
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r14
xor r14d, r14d
mov qword [rsp + 0x40], r15
mov r15, qword [rsi + 0x20]
test rbx, rbx
je 0x14013f2ec
mov r13, qword [rsp + 0x80]
lea rsi, [rax + 0xc]
mov qword [rsi - 0xc], r15
mov qword [rsi + 0x1c], r14
mov r12, qword [r15 + 0x18]
movzx edx, word [r12]
cmp edx, 2
je 0x14013f23b
cmp edx, 0x17
je 0x14013f234
xor eax, eax
jmp 0x14013f2c3
mov eax, 0x1c
jmp 0x14013f240
mov eax, reloc.WS2_32.dll_recv
mov r9d, reloc.WS2_32.dll_recvfrom
mov dword [rsp + 0x20], eax
mov rcx, r13
lea r8d, [r9 - 0xf]
call fcn.140139370
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14013f274
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273f
jne 0x14013f380
xor eax, eax
jmp 0x14013f2c3
mov r9d, dword [rsp + 0x20]
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.140138ed0
test eax, eax
je 0x14013f29a
mov rdx, rdi
mov rcx, r13
call fcn.140138de0
xor eax, eax
jmp 0x14013f2c3
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov rdx, rdi
mov rcx, r13
test eax, eax
jne 0x14013f37b
call fcn.140138de0
mov eax, 1
mov dword [rsi - 4], eax
inc r14
mov r15, qword [r15 + 0x20]
add rsi, 0x30
cmp r14, rbx
jb 0x14013f212
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x88]
mov r12, qword [rsp + 0x30]
lea r9, [0x14013f780]
mov r8d, 0x30
mov rdx, rbx
mov rcx, rdi
call fcn.140180020
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
test rbp, rbp
je 0x14013f338
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rcx + 0x30]
lea rdx, [rcx + 0x30]
mov rcx, qword [rcx]
mov qword [rcx + 0x20], rax
lea rcx, [rdx]
sub rbp, 1
jne 0x14013f320
mov rax, qword [r12 + rdi - 0x30]
mov rcx, rdi
mov qword [rax + 0x20], 0
mov rax, qword [0x140241ad8]
call qword [case.0x1400cd6b1.0]
xor eax, eax
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x90]
mov r12, qword [rsp + 0x58]
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret
call fcn.140138de0
mov rcx, qword [rsp + 0x28]
mov rax, qword [0x140241ad8]
call qword [case.0x1400cd6b1.0]
mov eax, 4
jmp 0x14013f357
mov eax, 1
add rsp, 0x60
pop rsi
pop rbp
pop rbx
ret
Function at 0x140144ffc
Capabilities:
Parse pe header

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

Function at 0x14014e780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmm1
mov rsi, r8
movaps xmm6, xmm1
mov rbx, rcx
call fcn.14014e920
test rax, rax
je 0x14014e7c3
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
mov byte [rbx + 8], 0
jmp 0x14014e903
lea r9, [rsp + 0x20]
mov qword [rsp + 0x70], rdi
lea r8, [rsp + 0x28]
movaps xmm0, xmm6
lea rdx, [rsp + 0x30]
call fcn.14014e700
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14014e7f0
mov edi, dword [rsp + 0x20]
mov rcx, rsi
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cdqe
add r8, rax
lea rdx, [r8*2 + 8]
call fcn.14014dba0
mov r10, rax
test rax, rax
jne 0x14014e83b
lea rax, [0x140205128]
mov byte [rbx + 8], r10b
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 0x10], rax
jmp 0x14014e8fe
xorps xmm0, xmm0
mov r8, r10
comisd xmm0, xmm6
jbe 0x14014e854
mov eax, 0x2d
lea r8, [r10 + 2]
mov word [r10], ax
mov r9, qword [rsp + 0x28]
mov ecx, 0x30
test edi, edi
jg 0x14014e870
mov word [r8], cx
add r8, 2
jmp 0x14014e891
movzx eax, byte [r9]
test al, al
je 0x14014e87d
inc r9
jmp 0x14014e880
movzx eax, cl
movsx eax, al
dec edi
mov word [r8], ax
add r8, 2
test edi, edi
jg 0x14014e870
cmp byte [r9], 0
je 0x14014e8e7
mov eax, 0x2e
mov word [r8], ax
add r8, 2
test edi, edi
jns 0x14014e8bb
neg edi
movzx eax, cx
mov edx, edi
mov rdi, r8
mov ecx, edx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
movzx eax, byte [r9]
test al, al
je 0x14014e8e7
nop dword [rax]
nop word [rax + rax]
movsx eax, al
lea r9, [r9 + 1]
mov word [r8], ax
add r8, 2
movzx eax, byte [r9]
test al, al
jne 0x14014e8d0
xor eax, eax
mov word [r8], ax
sub r8, r10
sar r8, 1
mov qword [rbx + 0x10], r8
mov qword [rbx], r10
mov byte [rbx + 8], 1
mov rdi, qword [rsp + 0x70]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140144310
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rsi
pop rbx
ret

Function at 0x140151810
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
mov eax, r8d
lea r10, [rdx - 1]
shr eax, 0x10
mov rbx, rcx
xor eax, r8d
mov r11, r8
imul r9d, eax, 0x85ebca6b
mov eax, r9d
shr eax, 0xd
xor eax, r9d
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr rax, 0x10
xor rax, rdx
and rax, r10
xor ecx, ecx
nop dword [rax]
mov rdx, qword [rbx + rax*8]
lea r8, [rbx + rax*8]
test rdx, rdx
je 0x14015187b
cmp rdx, r11
je 0x140151873
inc rax
add rax, rcx
inc rcx
and rax, r10
cmp rcx, r10
jbe 0x140151850
xor al, al
mov rbx, qword [rsp + 8]
ret
mov rbx, qword [rsp + 8]
mov al, 1
mov qword [r8], r11
ret
Function at 0x140151890
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor eax, eax
movzx ecx, word [rcx]
test cx, cx
je 0x1401518bf
nop dword [rax]
movzx edx, cx
lea r8, [r8 + 2]
add edx, eax
imul eax, edx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
movzx ecx, word [r8]
test cx, cx
jne 0x1401518a0
lea ecx, [rax + rax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x140151d20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r12d, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
test r8, r8
jne 0x140151d5f
call fcn.14014cfa0
xor edi, edi
mov dword [rbx], 1
mov qword [rbx + 8], rdi
mov rax, rbx
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
xor edi, edi
mov qword [rsp + 0x88], rsi
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x90], rdi
mov rcx, r14
call fcn.1401512f0
mov esi, eax
test eax, eax
je 0x140151d9a
mov rcx, rbx
call fcn.14014cfa0
mov dword [rbx], esi
mov qword [rbx + 8], rdi
jmp 0x140151e67
mov qword [rsp + 0x80], rbp
mov rbp, qword [rsp + 0x90]
lea rcx, [rbp + 2]
call qword [0x140241d10]
mov rsi, rax
test rax, rax
jne 0x140151dd3
mov rcx, rbx
call fcn.14014cfa0
mov dword [rbx], 3
mov qword [rbx + 8], rdi
jmp 0x140151e5f
mov r9, r14
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140178650
cmp rax, rbp
je 0x140151e08
mov rcx, rsi
call qword [0x140241d18]
mov rcx, rbx
call fcn.14014cfa0
mov dword [rbx], 2
mov qword [rbx + 8], rdi
jmp 0x140151e5f
mov ecx, dword [rsp + 0xa0]
mov r8, rbp
mov rdx, rsi
call fcn.140151290
mov r8d, eax
mov rdx, rbp
mov rcx, rsi
call fcn.140158a80
mov rcx, qword [rsp + 0xa8]
mov r9, rsi
mov qword [rsp + 0x48], rcx
mov rdx, r15
mov byte [rsp + 0x40], 1
mov rcx, rbx
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x30], r8d
mov r8, r15
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call fcn.1401519e0
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rax, rbx
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret

Function at 0x14017875c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140178739
call fcn.140169964
mov dword [rax], socket
call fcn.1401678e0
or eax, 0xffffffff
jmp 0x140178756
sub dword [rcx + 0x10], 1
jns 0x140178748
add rsp, 0x28
jmp fcn.14018ee78
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140178718

Function at 0x140181634
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140181424
Function at 0x140182834
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.1401451c0
sub rsp, rax
mov rax, qword [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14018aab0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140182883
mov rax, rbp
jmp 0x14018298b
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 + 0x24b8e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14018eb94
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x24b8e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140182987
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 0x140182987
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14018eb94
test rax, rax
js 0x140182987
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140182987
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140182979
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140182979
cmp byte [rcx], 0xd
jne 0x14018295f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14018296e
cmp byte [rcx + 1], 0xa
jne 0x14018296e
inc rcx
jmp 0x14018296e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x241f30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140182941
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14018298b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140144310
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 0x140184b20
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 [0x140241cc0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1401f79d8]
mov rbp, rcx
call fcn.1401928ec
xor edi, edi
test rax, rax
je 0x140184c06
mov ebx, edi
call fcn.140169964
mov r14d, dword [rax]
call fcn.140169964
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140196b24
mov rsi, rax
test rax, rax
je 0x140184b97
call fcn.140169964
mov dword [rax], r14d
jmp 0x140184bc1
call fcn.140169964
cmp dword [rax], 0x22
jne 0x140184bfe
call fcn.140169964
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140196b24
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140184bfe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140184bc5
cmp rax, 3
je 0x140184be0
mov rcx, rsi
call fcn.140184a7c
test al, al
je 0x140184bf1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140184bf1
mov dil, 1
mov rcx, rbx
call fcn.140167c30
mov al, dil
jmp 0x140184c08
mov rcx, rbx
call fcn.140167c30
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140144310
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 0x140188cf4
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, [0x14024b8e0]
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 0x140188d52
cmp word [rdx], r12w
jne 0x140188d52
or byte [rax + r8*8 + 0x38], cl
jmp 0x140188d58
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140188eb3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140188e8e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140188d91
mov rcx, r9
jmp 0x140188db4
cmp r9, rdx
jae 0x140188dcb
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 0x140188d75
jmp 0x140188eb3
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 0x140188e88
cmp dword [rsp + 0x80], edi
je 0x140188e88
mov rdx, r14
lea r11, [0x14024b8e0]
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 0x140188e61
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140188e34
mov word [rbx], r12w
jmp 0x140188eaf
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 0x140188e3d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140188eaf
cmp word [rsp + 0x70], r12w
jne 0x140188e6e
cmp rbx, rsi
je 0x140188e2e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14018eb9c
cmp word [rsp + 0x70], r12w
je 0x140188eb3
mov word [rbx], r13w
jmp 0x140188eaf
lea r11, [0x14024b8e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140188eab
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140188eb3
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 0x14018ee78
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 0x14018eeaa
call fcn.140169964
mov dword [rax], socket
call fcn.1401678e0
jmp 0x14018efc9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14018efc9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14018efc9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14018eed9
lock or dword [rcx + 0x14], 0x10
jmp 0x14018efc9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14018eeed
call fcn.14018efe4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14018aab0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1401891a0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14018efb7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14018ef82
mov rcx, rsi
call fcn.14018aab0
cmp eax, edi
je 0x14018ef6d
mov rcx, rsi
call fcn.14018aab0
cmp eax, 0xfffffffe
je 0x14018ef6d
mov rcx, rsi
call fcn.14018aab0
movsxd rbx, eax
lea r14, [0x14024b8e0]
mov rcx, rsi
sar rbx, 6
call fcn.14018aab0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14018ef74
lea rdx, [0x1402421b0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14018ef82
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14018efa6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14018efa6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14018efa6
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 0x14018efcc
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 0x1401954e8
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 0x140195518
xor eax, eax
jmp 0x1401955db
mov rbp, rbx
cmp word [rax], si
je 0x14019553d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140195524
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140195520
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.140195438
movsxd r14, eax
test eax, eax
jne 0x14019557b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140195511
mov rcx, r14
call fcn.14018cd44
mov rdi, rax
test rax, rax
jne 0x140195594
xor ecx, ecx
call fcn.14018bda4
jmp 0x140195570
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.140195438
test eax, eax
jne 0x1401955c5
mov rcx, rdi
call fcn.14018bda4
jmp 0x1401955cf
xor ecx, ecx
call fcn.14018bda4
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 0x1401955f8
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 0x14019567f
mov rsi, rbx
cmp word [rax], bp
je 0x14019563e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140195628
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140195624
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14018cd44
mov rdi, rax
test rax, rax
je 0x14019566c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14019ace0
mov rbp, rdi
xor ecx, ecx
call fcn.14018bda4
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