joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047990
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov bl, dl
mov rdi, rcx
mov eax, dword [0x1400d5e20]
and eax, dword [0x1400d5e24]
sub eax, 0xa5436461
mov ecx, 0xf26eb4
xor edx, edx
div ecx
and eax, 0x74ccc666
cmp eax, 0x1877648b
jae 0x140047b6b
jmp 0x1400479cd
mov eax, dword [0x1400d5e28]
add eax, dword [0x1400d5e2c]
add eax, 0xd07c6d
imul ecx, eax, 0x718cdd27
sub ecx, 0xb9dfbedf
cmp bl, 0
sete al
cmp rsi, 0
setl r8b
cmp ecx, 0x4c3d185f
ja 0x1400479cd
test al, 1
jne 0x140047a06
jmp 0x140047a48
xor ecx, ecx
test r8b, 1
jne 0x140047b4b
jmp 0x140047a14
mov r14d, 1
cmp rsi, 0
je 0x140047b49
mov rcx, rsi
mov edx, 1
call fcn.1400541f0
mov r14, rax
mov ecx, 1
cmp r14, 0
je 0x140047b4b
jmp 0x140047b49
mov eax, dword [0x1400d5e30]
or eax, dword [0x1400d5e34]
or eax, 0x2be97939
imul eax, eax, 0xa0382441
or eax, 0x85972858
cmp eax, 0x4559cacc
je 0x140047b78
mov eax, dword [0x1400d5e38]
imul eax, dword [0x1400d5e3c]
xor eax, 0xb631972c
mov ecx, 0xa91f6d70
xor edx, edx
div ecx
add eax, 0xc315a52
cmp eax, 0xc3d5c3e8
je 0x140047b78
xor ecx, ecx
test r8b, 1
jne 0x140047b32
jmp 0x140047aa8
mov eax, dword [0x1400d5e40]
imul eax, dword [0x1400d5e44]
mov ecx, 0xba114c31
xor edx, edx
div ecx
or eax, 0xee738869
sub eax, 0x94d4acc8
cmp eax, 0x13561d7e
jbe 0x140047b85
jmp 0x140047ad5
mov eax, dword [0x1400d5e48]
xor eax, dword [0x1400d5e4c]
and eax, 0xf3930dc9
mov ecx, 0x67f9cd74
xor edx, edx
div ecx
or eax, 0xb7a8ef6b
cmp rsi, 0
sete cl
cmp eax, 0x43577269
jbe 0x140047ad5
mov r14d, 1
test cl, 1
jne 0x140047b3a
jmp 0x140047b0f
mov al, byte [0x1400d7030]
mov rcx, rsi
mov edx, 1
call fcn.1400541c0
mov r14, rax
mov ecx, 1
cmp r14, 0
je 0x140047b32
jmp 0x140047b3a
mov rdx, rsi
call fcn.14005f780
mov rcx, r14
mov dl, bl
mov r8, rsi
call fcn.1400aed70
jmp 0x140047b53
jmp 0x140047b53
mov rdx, rsi
call fcn.14005f780
mov qword [rdi], rsi
mov qword [rdi + 8], r14
mov qword [rdi + 0x10], rsi
mov rax, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
and dh, byte [rax + 0x6c]
invalid
and dl, r10b
invalid
mov ebp, 0xcde7d734
fadd qword [rsi]
jmp 0x140047ad3
Function at 0x14004e1e0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [0x1400d61b0]
sub eax, dword [0x1400d61b4]
and eax, 0x33b72ed2
mov ecx, 0x4a64fc90
xor edx, edx
div ecx
add eax, 0xd088e0ab
stosd dword [rdi], eax
loopne 0x14004e195
sar byte [0x10f209477], 1
Function at 0x140054d40
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x140054dcc
movsxd rax, dword [rdx + 0x3c]
test rax, rax
je 0x140054dd1
cmp eax, 0x40
jb 0x140054ec1
cmp rax, r8
ja 0x140054ec1
movzx r9d, word [rax + rdx + 0x18]
cmp r9d, 0x10b
je 0x140054dd6
mov r10b, 5
cmp r9d, 0x20b
jne 0x140054e01
mov r10b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140054e01
lea r9, [rdx + rax]
movzx r11d, word [r9 + 4]
mov r10b, 3
cmp r11d, 0x8664
jne 0x140054e01
mov r10b, 4
test byte [r9 + 0x16], 2
je 0x140054e01
lea r10, [rax + 0x108]
mov r11d, 1
cmp r10, r8
jbe 0x140054e34
jmp 0x140054ec1
xor r10d, r10d
jmp 0x140054e01
mov r10b, 1
jmp 0x140054e01
mov r10b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140054e01
lea r9, [rdx + rax]
movzx r11d, word [r9 + 4]
mov r10b, 3
cmp r11d, 0x14c
jne 0x140054e01
mov r10b, 4
test byte [r9 + 0x16], 2
jne 0x140054e21
mov byte [rcx], r10b
mov r8d, 2
mov eax, 0x18
mov qword [rcx + rax], r8
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r10, [rax + 0xf8]
cmp r10, r8
ja 0x140054ec1
xor r11d, r11d
mov rsi, r8
sub rsi, r10
movzx ebx, word [rdx + rax + 6]
lea rdi, [rbx*8]
lea rdi, [rdi + rdi*4]
sub rsi, rdi
jb 0x140054ec1
add rax, 0xffffffffffffffc0
lea r14, [rdx + 0x40]
add r10, rdx
mov r15, rdx
shr r15, 8
add rdi, r10
mov ebp, ebx
shr ebp, 8
mov byte [rcx], dl
mov r12, rdx
shr r12, 0x38
mov byte [rcx + 7], r12b
mov r12, rdx
shr r12, 0x28
mov word [rcx + 5], r12w
mov dword [rcx + 1], r15d
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], r11
mov qword [rcx + 0x20], r9
mov qword [rcx + 0x28], r10
mov byte [rcx + 0x30], bl
mov dword [rcx + 0x31], ebp
mov byte [rcx + 0x37], 0
mov word [rcx + 0x35], 0
mov qword [rcx + 0x38], rdi
mov qword [rcx + 0x40], rsi
mov qword [rcx + 0x48], rdx
mov eax, 0x50
jmp 0x140054e0f
ud2
Function at 0x14005e690
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
nop word cs:[rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14005e6a0
test al, 1
je 0x14005e6bb
test al, 2
jne 0x14005e6bb
xor rax, 3
ret
ud2

Function at 0x140060c20
Capabilities:
Set socket configuration

Disassembly:
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140060c30
add rcx, 0x18
jmp 0x140072b10
ud2
jmp 0x140079ea0
sub rsp, 0x38
movzx eax, dl
mov rcx, qword [rcx]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140079ed8
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x140060cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400690e0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x14006912a
mov r15, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, rdi
xor r9d, r9d
call fcn.14005e2b0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x140069155
mov eax, 1
jmp 0x1400692c3
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rdi
xor r9d, r9d
call fcn.14005e2b0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x14006928c
mov eax, 1
jmp 0x1400692c3
add rbx, 0x18
lea r13, [rsp + 0x20]
mov qword [rsp + 0x30], rdi
jmp 0x1400691af
dec r13
mov edx, 0x18
mov r8d, 8
mov rcx, r13
call fcn.1400541d0
mov r13, rbx
mov rcx, rbx
mov rdx, r15
mov r8, qword [rsp + 0x30]
xor r9d, r9d
call fcn.14005e2b0
movzx eax, byte [rsp + 0x29]
cmp al, 3
mov rbx, rsi
mov rsi, r14
je 0x140069120
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x140069295
mov r8, qword [rsi + 8]
mov r12, qword [rsi + 0x10]
sub r8, r12
jb 0x1400692df
movzx edi, byte [rsp + 0x28]
mov r14, rsi
mov rdx, qword [rsi]
add rdx, r12
mov rsi, rbx
mov qword [rsp + 0x20], rbx
mov rbx, r13
mov rcx, r13
call fcn.140072b30
mov r13, rdx
test rax, rax
je 0x140069299
mov rcx, r13
call fcn.140068d80
cmp al, 0xd
jne 0x1400692be
and ebp, 0x23
mov rax, qword [r15 + 0x90]
xor rbp, 0x2f
mov rcx, rdi
shl rcx, 0x10
nop
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x14006923c
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [r15 + 0x90], rdx
jne 0x140069220
mov eax, r13d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140069186
test rax, rax
je 0x140069186
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x14006926e
mov rcx, rbp
call rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x140069170
mov r8, qword [rdi + 0x10]
mov rcx, rbp
call fcn.1400541d0
jmp 0x140069170
cmp al, 2
jne 0x1400692d7
mov rbp, qword [rsp + 0x20]
xor eax, eax
jmp 0x1400692c3
lea rax, [r12 + r13]
mov rcx, qword [r14 + 0x18]
cmp rax, rcx
jbe 0x1400692ad
mov qword [r14 + 0x18], rax
mov rcx, rax
add r12, r13
jb 0x1400692df
cmp rax, rcx
ja 0x1400692df
mov qword [r14 + 0x10], rax
xor r13d, r13d
xor eax, eax
mov rbp, r13
mov rdx, rbp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 8]
ud2

Function at 0x140061df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx]
add rcx, 0x10
jmp 0x1400690e0
Function at 0x1400690e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400690e0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x14006912a
mov r15, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, r15
mov r8, rdi
xor r9d, r9d
call fcn.14005e2b0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x140069155
mov eax, 1
jmp 0x1400692c3
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rdi
xor r9d, r9d
call fcn.14005e2b0
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x14006928c
mov eax, 1
jmp 0x1400692c3
add rbx, 0x18
lea r13, [rsp + 0x20]
mov qword [rsp + 0x30], rdi
jmp 0x1400691af
dec r13
mov edx, 0x18
mov r8d, 8
mov rcx, r13
call fcn.1400541d0
mov r13, rbx
mov rcx, rbx
mov rdx, r15
mov r8, qword [rsp + 0x30]
xor r9d, r9d
call fcn.14005e2b0
movzx eax, byte [rsp + 0x29]
cmp al, 3
mov rbx, rsi
mov rsi, r14
je 0x140069120
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x140069295
mov r8, qword [rsi + 8]
mov r12, qword [rsi + 0x10]
sub r8, r12
jb 0x1400692df
movzx edi, byte [rsp + 0x28]
mov r14, rsi
mov rdx, qword [rsi]
add rdx, r12
mov rsi, rbx
mov qword [rsp + 0x20], rbx
mov rbx, r13
mov rcx, r13
call fcn.140072b30
mov r13, rdx
test rax, rax
je 0x140069299
mov rcx, r13
call fcn.140068d80
cmp al, 0xd
jne 0x1400692be
and ebp, 0x23
mov rax, qword [r15 + 0x90]
xor rbp, 0x2f
mov rcx, rdi
shl rcx, 0x10
nop
mov edx, eax
shr edx, 0x10
cmp dil, dl
jne 0x14006923c
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [r15 + 0x90], rdx
jne 0x140069220
mov eax, r13d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140069186
test rax, rax
je 0x140069186
mov rbp, qword [r13 - 1]
mov rdi, qword [r13 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x14006926e
mov rcx, rbp
call rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x140069170
mov r8, qword [rdi + 0x10]
mov rcx, rbp
call fcn.1400541d0
jmp 0x140069170
cmp al, 2
jne 0x1400692d7
mov rbp, qword [rsp + 0x20]
xor eax, eax
jmp 0x1400692c3
lea rax, [r12 + r13]
mov rcx, qword [r14 + 0x18]
cmp rax, rcx
jbe 0x1400692ad
mov qword [r14 + 0x18], rax
mov rcx, rax
add r12, r13
jb 0x1400692df
cmp rax, rcx
ja 0x1400692df
mov qword [r14 + 0x10], rax
xor r13d, r13d
xor eax, eax
mov rbp, r13
mov rdx, rbp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 8]
ud2
Function at 0x1400692f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx]
add rcx, 0x10
jmp 0x1400692f0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
mov rdi, rdx
mov r15, rcx
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140069341
mov r12, qword [r15 + 0x10]
lea rcx, [rsp + 0x28]
mov rdx, r12
mov r8, rdi
mov r9b, 1
call fcn.14005e2b0
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x14006936c
mov eax, 2
jmp 0x1400694a6
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x28]
mov r8, rdi
mov r9b, 1
call fcn.14005e2b0
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x14006948c
mov eax, 2
jmp 0x1400694a6
add r15, 0x18
lea rsi, [rsp + 0x28]
jmp 0x1400693b3
dec r13
mov edx, 0x18
mov r8d, 8
mov rcx, r13
call fcn.1400541d0
mov rsi, r14
mov rcx, r14
mov rdx, r12
mov r8, rdi
mov r9b, 1
call fcn.14005e2b0
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x140069337
mov rbp, qword [rsp + 0x28]
cmp al, 2
je 0x1400694a1
movzx ebx, byte [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov r14, rsi
mov rcx, rsi
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call fcn.140072b40
mov rsi, rax
mov r13, rdx
test rax, rax
je 0x14006949c
mov rcx, r13
call fcn.140068d80
cmp al, 0xd
jne 0x14006949c
and ebp, 0x23
mov rax, qword [r12 + 0x90]
xor rbp, 0x2f
mov rcx, rbx
shl rcx, 0x10
nop word cs:[rax + rax]
mov edx, eax
shr edx, 0x10
cmp bl, dl
jne 0x14006943c
mov edx, eax
and edx, ebp
or rdx, rcx
lock cmpxchg qword [r12 + 0x90], rdx
jne 0x140069420
mov eax, r13d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140069396
test rax, rax
je 0x140069396
mov rsi, qword [r13 - 1]
mov rbx, qword [r13 + 7]
mov rax, qword [rbx]
test rax, rax
je 0x14006946e
mov rcx, rsi
call rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140069380
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.1400541d0
jmp 0x140069380
cmp al, 2
jne 0x1400694bd
mov r13, qword [rsp + 0x28]
mov eax, 1
jmp 0x1400694a9
mov rax, rsi
jmp 0x1400694a9
mov eax, 1
mov r13, rbp
mov rdx, r13
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x140071e50
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [rcx]
nop dword [rax + rax]
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rsi], rcx
jne 0x140071e60
test al, 1
je 0x140071f53
test al, 2
jne 0x140071f53
test al, 8
jne 0x140071e9b
lea rcx, [rsi + 0x20]
mov qword [rsp + 0x28], 4
lea rdx, [rsp + 0x28]
call fcn.140061a60
jmp 0x140071eb3
test al, 0x10
je 0x140071eb3
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x140071f53
mov rcx, qword [rsi + 0x68]
call qword [rax + 0x10]
mov rax, 0xffffffffffffffc0
lock xadd qword [rsi], rax
cmp rax, 0x3f
jbe 0x140071f53
and rax, 0xffffffffffffffc0
cmp rax, 0x40
jne 0x140071f1c
mov rcx, qword [rsi + 0x28]
add rcx, 0xfffffffffffffffe
cmp rcx, 3
mov eax, 1
cmovb rax, rcx
cmp rax, 1
je 0x140071f22
test rax, rax
jne 0x140071f2b
mov rdx, qword [rsi + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
je 0x140071f2b
test rdx, rdx
je 0x140071f2b
mov rcx, qword [rsi + 0x38]
mov r8d, 1
call fcn.1400541d0
jmp 0x140071f2b
add rsp, 0x50
pop rsi
ret
lea rcx, [rsi + 0x28]
call fcn.14005f000
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x140071f3b
mov rcx, qword [rsi + 0x68]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, rsi
add rsp, 0x50
pop rsi
jmp fcn.1400541d0
ud2

Function at 0x140072940
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov esi, edx
cmp word [rcx], 0
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov eax, dword [0x1400d7058]
cmp eax, 3
jne 0x1400729dd
mov ecx, edi
mov edx, esi
xor r8d, r8d
call qword [sym.imp.ws2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x1400729b8
mov rsi, rax
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x1400729ce
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov eax, 1
jmp 0x1400729d3
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov eax, 1
jmp 0x1400729d3
xor eax, eax
mov rdi, rsi
mov rdx, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsp + 0x2b], 1
lea rax, [rsp + 0x2b]
mov qword [rsp + 0x30], rax
lea rax, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_1.0.2_src_syswindows_net.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1400d7058]
lea r9, [0x1400b9d60]
lea r8, [rsp + 0x30]
xor edx, edx
call fcn.1400b2160
jmp 0x140072964
Function at 0x140072a20
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
mov rcx, rdx
mov edx, 1
call fcn.140072940
mov rdi, rdx
test rax, rax
je 0x140072a52
mov qword [rsi + 8], rdi
mov qword [rsi], 0xffffffffffffffff
jmp 0x140072af3
cmp word [rbx], 0
je 0x140072a77
movups xmm0, xmmword [rbx + 4]
movzx eax, word [rbx + 0x1c]
rol ax, 8
mov ecx, dword [rbx + 0x18]
add rbx, 0x14
mov r8d, 0x1c
mov dx, 0x17
jmp 0x140072a90
movzx eax, word [rbx + 6]
rol ax, 8
add rbx, 2
xorps xmm0, xmm0
mov r8d, 0x10
mov dx, 2
mov r9d, dword [rbx]
mov word [rsp + 0x24], dx
mov word [rsp + 0x26], ax
mov dword [rsp + 0x28], r9d
movups xmmword [rsp + 0x2c], xmm0
mov dword [rsp + 0x3c], ecx
lea rdx, [rsp + 0x24]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140072aca
call sub.kernel32.dll_GetLastError
cmp eax, 0x2733
jne 0x140072ad7
mov qword [rsi], rdi
mov qword [rsi + 8], 0
jmp 0x140072af3
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 0xffffffffffffffff
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140076390
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 2
mov qword [rsp + 0x48], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r14, qword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
mov ebx, 0xffffffff
xor r12d, r12d
cmp r8, 0x201
jae 0x140076420
jmp 0x14007640f
jae 0x1400764dc
cmp r8, 0x201
jae 0x140076420
mov esi, 0x200
lea r13, [rsp + 0x78]
mov rbp, r8
jmp 0x14007644b
sub r8, r12
mov rax, rdi
sub rax, r12
cmp r8, rax
ja 0x1400764ac
cmp rdi, rbx
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rsp + 0x48], r12
mov rsi, r12
mov r13, qword [rsp + 0x28]
mov rbp, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, r13
mov edx, ebp
call r14
mov r15d, eax
test eax, eax
jne 0x140076470
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14007658f
mov r8d, r15d
cmp rbp, r8
jne 0x140076400
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400765ba
lea r8, [rbp*2]
cmp rbp, 0x7fffffff
cmova r8, rbx
cmp r8, 0x201
jb 0x14007640f
jmp 0x140076420
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rsp + 0x38]
mov rdx, r12
call fcn.1400af2f0
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x14007642e
cmp rsi, r8
jb 0x1400765ba
mov rax, qword [rsp + 0x50]
mov rsi, qword [rax]
mov rbx, qword [rax + 8]
lea r14, [rsp + 0x58]
mov rcx, r14
mov rdx, r13
call fcn.140081830
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
mov rcx, r14
call fcn.140083fc0
cmp byte [rbx], 0
jne 0x14007652c
lea rdx, [0x1400ba598]
lea rcx, [rsp + 0x58]
mov r8d, 3
call fcn.140084960
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.14007c6f0
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14007655d
mov rcx, qword [rsp + 0x60]
mov r8d, 1
call fcn.1400541d0
test rdi, rdi
je 0x140076578
add rdi, rdi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.1400541d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x30]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000001
mov qword [rsi], rax
test rdi, rdi
jne 0x140076562
jmp 0x140076578
ud2
Function at 0x1400768b0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 2
mov qword [rsp + 0x48], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r14, qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov ebx, 0xffffffff
xor r12d, r12d
cmp r8, 0x201
jae 0x140076940
jmp 0x14007692f
jae 0x1400769fc
cmp r8, 0x201
jae 0x140076940
mov esi, 0x200
lea r13, [rsp + 0x78]
mov rbp, r8
jmp 0x14007696b
sub r8, r12
mov rax, rdi
sub rax, r12
cmp r8, rax
ja 0x1400769cc
cmp rdi, rbx
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rsp + 0x48], r12
mov rsi, r12
mov r13, qword [rsp + 0x28]
mov rbp, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, r13
mov edx, ebp
call r14
mov r15d, eax
test eax, eax
jne 0x140076990
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140076aaf
mov r8d, r15d
cmp rbp, r8
jne 0x140076920
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140076ada
lea r8, [rbp*2]
cmp rbp, 0x7fffffff
cmova r8, rbx
cmp r8, 0x201
jb 0x14007692f
jmp 0x140076940
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rsp + 0x38]
mov rdx, r12
call fcn.1400af2f0
mov rdi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x14007694e
cmp rsi, r8
jb 0x140076ada
mov rax, qword [rsp + 0x50]
mov rsi, qword [rax]
mov rbx, qword [rax + 8]
lea r14, [rsp + 0x58]
mov rcx, r14
mov rdx, r13
call fcn.140081830
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
mov rcx, r14
call fcn.140083fc0
cmp byte [rbx], 0
jne 0x140076a4c
lea rdx, [0x1400ba598]
lea rcx, [rsp + 0x58]
mov r8d, 3
call fcn.140084960
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.14007c6f0
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140076a7d
mov rcx, qword [rsp + 0x60]
mov r8d, 1
call fcn.1400541d0
test rdi, rdi
je 0x140076a98
add rdi, rdi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.1400541d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x30]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000001
mov qword [rsi], rax
test rdi, rdi
jne 0x140076a82
jmp 0x140076a98
ud2
Function at 0x140077160
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x50], 0
mov r14, qword [rdx + 8]
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x30], rax
xor edi, edi
mov esi, 0xffffffff
xor r12d, r12d
cmp r8, 0x201
jae 0x1400771e0
jmp 0x1400771cf
jae 0x1400772ab
cmp r8, 0x201
jae 0x1400771e0
mov ebx, 0x200
lea r13, [rsp + 0x58]
mov rbp, r8
jmp 0x14007720f
sub r8, r12
mov rax, rdi
sub rax, r12
cmp r8, rax
ja 0x14007727b
cmp rdi, rsi
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rsp + 0x50], r12
mov rbx, r12
mov r13, qword [rsp + 0x30]
mov rbp, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, r14
mov rdx, r13
mov r8d, ebp
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r15d, eax
test eax, eax
jne 0x14007723b
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400772f2
mov r8d, r15d
cmp rbp, r8
jne 0x1400771c0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14007731d
lea r8, [rbp*2]
cmp rbp, 0x7fffffff
cmova r8, rsi
cmp r8, 0x201
jb 0x1400771cf
jmp 0x1400771e0
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.1400af2f0
mov rdi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
jmp 0x1400771f2
cmp rbx, r8
jb 0x14007731d
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
mov rdx, r13
call fcn.140081830
test rdi, rdi
je 0x1400772db
add rdi, rdi
mov r8d, 2
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call fcn.1400541d0
mov rax, rsi
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x38]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rdi, rdi
jne 0x1400772c5
jmp 0x1400772db
ud2