joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c094
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400429b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001c0eb
cmp word [rdx], r13w
jne 0x14001c0eb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c0f0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001c215
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001c236
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001c129
mov rdx, r9
mov word [rbx], cx
jmp 0x14001c150
cmp r9, r8
jae 0x14001c160
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001c10a
jmp 0x14001c215
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c20a
cmp dword [rsp + 0x80], esi
je 0x14001c20a
lea r8, [0x1400429b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001c1e2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c1b2
mov word [rbx], r13w
jmp 0x14001c212
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001c1bf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001c212
cmp word [rsp + 0x70], r13w
jne 0x14001c1ef
cmp rbx, r14
je 0x14001c1ac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001ce64
cmp word [rsp + 0x70], r13w
je 0x14001c215
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400429b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001c20f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001c215
Function at 0x14001df40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001df56
mov al, 1
jmp 0x14001dfb6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001df67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001dfb4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018c50
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001dfb4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001dfb4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001dfb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001dfb6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140020a3c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140040058]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140020a86
call fcn.140015ac4
mov dword [rax], 0xf
call fcn.140015ae4
mov dword [rax], 0xd
call fcn.14001b4c4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000c2e0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140020a91
lea eax, [rbx + 1]
jmp 0x140020a73
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140020a71
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140020a73
Function at 0x1400235bc
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 0x1400235ec
xor eax, eax
jmp 0x1400236af
mov rbp, rbx
cmp word [rax], si
je 0x140023611
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400235f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400235f4
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.140020ae8
movsxd r14, eax
test eax, eax
jne 0x14002364f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400235e5
mov rcx, r14
call fcn.14001e1dc
mov rdi, rax
test rax, rax
jne 0x140023668
xor ecx, ecx
call fcn.14001b52c
jmp 0x140023644
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.140020ae8
test eax, eax
jne 0x140023699
mov rcx, rdi
call fcn.14001b52c
jmp 0x1400236a3
xor ecx, ecx
call fcn.14001b52c
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 0x1400236cc
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 0x140023753
mov rsi, rbx
cmp word [rax], bp
je 0x140023712
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400236fc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400236f8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e1dc
mov rdi, rax
test rax, rax
je 0x140023740
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d060
mov rbp, rdi
xor ecx, ecx
call fcn.14001b52c
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 0x140028134
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400155b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400281be
cmp byte [rbp - 0x21], r15b
je 0x1400281b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400281f4
call fcn.14001fa04
test eax, eax
jne 0x1400281e0
cmp byte [rbp - 0x21], r15b
je 0x1400281d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400281f4
cmp byte [rbp - 0x21], r15b
je 0x1400281f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140015ba4
test eax, eax
jne 0x140028294
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400155b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140028233
cmp byte [rbp - 0x21], r15b
je 0x140028268
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140028268
call fcn.14001fa04
test eax, eax
jne 0x140028254
cmp byte [rbp - 0x21], r15b
je 0x14002824d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140028268
cmp byte [rbp - 0x21], r15b
je 0x140028265
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140015ba4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140028294
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140028297
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400282a5
mov rcx, rdi
call fcn.14001b52c
cmp byte [rbp + 0x3f], r15b
je 0x1400282b4
mov rcx, qword [rbp + 0x27]
call fcn.14001b52c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002986c
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.14001ce64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ce64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400299bc
cmp rax, 0xffffffffffffffff
je 0x1400299bc
xor edi, edi
test rbp, rbp
jle 0x140029967
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f778
mov rbx, rax
test rax, rax
jne 0x1400298f4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002995d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a798
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.14001db40
cmp eax, 0xffffffff
je 0x14002993d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029904
mov edx, r15d
mov ecx, r14d
call fcn.14001a798
jmp 0x14002995d
cmp byte [rsi + 0x38], dil
je 0x140029954
cmp dword [rsi + 0x34], 5
jne 0x140029954
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002995d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b52c
jmp 0x1400299d0
jns 0x1400299d0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ce64
cmp rax, 0xffffffffffffffff
jne 0x140029988
cmp byte [rsi + 0x30], dil
je 0x1400299d0
mov edi, dword [rsi + 0x2c]
jmp 0x1400299d0
mov ecx, r14d
call fcn.140018c50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400299d0
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 0x1400299d0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400299c9
mov eax, dword [rsi + 0x2c]
jmp 0x1400299ce
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ce64
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 0x140011244
Capabilities:
Terminate process

Disassembly:
jmp 0x140013a00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112df
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d50
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d70
xor al, al
jmp 0x140014df1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d83
xor al, al
jmp 0x140014df1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014dad
xor al, al
jmp 0x140014df1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014dc1
xor al, al
jmp 0x140014df1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014dd3
xor al, al
jmp 0x140014df1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014def
xor al, al
jmp 0x140014df1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400011e0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0xb
mov ebx, edx
call fcn.1400088a0
mov r8, rax
mov edx, ebx
mov rcx, qword [rax]
mov byte [rcx], 3
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 0
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 0
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 0xb
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], 6
mov rcx, r8
inc qword [rax]
mov rax, qword [rax]
mov byte [rax], 0x80
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov byte [rax], 0
inc qword [r8]
mov rax, qword [r8]
mov qword [r8 + 8], rax
add rsp, 0x20
pop rbx
jmp 0x140008910
Function at 0x140001600
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx + 0x20]
movzx r9d, word [rcx + 8]
mov qword [rcx], rax
sub r9w, ax
mov byte [rax], 3
inc qword [rcx]
mov rax, qword [rcx]
mov byte [rax], 0
movzx eax, r9w
inc qword [rcx]
mov r8, qword [rcx]
shr ax, 8
mov byte [r8], al
inc qword [rcx]
mov rax, qword [rcx]
mov byte [rax], r9b
inc qword [rcx]
mov rax, qword [rcx]
mov byte [rax], 2
inc qword [rcx]
mov rax, qword [rcx]
mov byte [rax], 0xf0
inc qword [rcx]
mov rax, qword [rcx]
mov byte [rax], 0x80
inc qword [rcx]
jmp 0x140008910

Function at 0x140001c40
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, 5
call fcn.1400015e0
xor r8d, r8d
mov r9d, r8d
mov rdx, qword [rax]
mov byte [rdx], 4
inc qword [rax]
mov rdx, qword [rax]
mov byte [rdx], r9b
inc r9d
cmp r9d, 2
jl 0x140001c60
nop dword [rax]
nop word [rax + rax]
inc qword [rax]
mov rcx, qword [rax]
mov byte [rcx], r8b
inc r8d
cmp r8d, 2
jl 0x140001c80
inc qword [rax]
mov edx, ebx
mov rcx, qword [rax]
mov qword [rax + 8], rcx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140001600

Function at 0x140001cb0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, 1
call fcn.1400015e0
mov rcx, rax
mov rdx, qword [rax]
mov byte [rdx], 0x28
inc qword [rax]
mov rdx, qword [rax]
mov qword [rax + 8], rdx
mov edx, ebx
add rsp, 0x20
pop rbx
jmp fcn.140001600

Function at 0x140001da0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx ebx, cx
mov edi, edx
mov ecx, 5
call fcn.1400015e0
mov r10, rax
movzx ecx, bx
shr cx, 8
mov r8, qword [rax]
mov byte [r8], 0x38
inc qword [rax]
mov r9, qword [rax]
movzx r8d, byte [0x140032205]
mov byte [r9], r8b
inc qword [rax]
mov r8, qword [rax]
movzx edx, byte [0x140032204]
mov byte [r8], dl
inc qword [rax]
mov rdx, qword [rax]
mov byte [rdx], cl
mov edx, edi
inc qword [rax]
mov rcx, r10
mov rax, qword [rax]
mov byte [rax], bl
inc qword [r10]
mov rax, qword [r10]
mov qword [r10 + 8], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140001600
Function at 0x140006ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov edx, ecx
mov ecx, 2
call fcn.1400015e0
mov rcx, rax
mov rdx, qword [rax]
mov byte [rdx], 0x21
inc qword [rax]
mov rdx, qword [rax]
mov byte [rdx], 0x80
inc qword [rax]
mov rdx, qword [rax]
mov qword [rax + 8], rdx
mov edx, ebx
add rsp, 0x20
pop rbx
jmp fcn.140001600

Function at 0x1400087a0
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
movsxd rax, ecx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
inc ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x34], 0x186a0
xor edx, edx
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg bl
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000a520
add rsp, 0x260
pop rbx
ret

Function at 0x140008820
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
movsxd rax, ecx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
inc ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x34], 0x2710
xor r8d, r8d
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg bl
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000a520
add rsp, 0x260
pop rbx
ret
Function at 0x140009900
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rdi, ecx
mov rsi, r8
xor ecx, ecx
mov r14, rdx
call fcn.14000f850
xor ebx, ebx
test rsi, rsi
je 0x140009970
lea rbp, [rax + 4]
xor ecx, ecx
call fcn.14000f850
cmp rbp, rax
jl 0x1400099bc
mov ecx, edi
call fcn.1400087a0
test eax, eax
je 0x14000996b
mov r8d, esi
lea rdx, [rbx + r14]
sub r8d, ebx
mov rcx, rdi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x14000998d
cdqe
add rbx, rax
cmp rbx, rsi
jb 0x140009935
mov eax, edi
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
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14000a360
mov r8, rax
lea rdx, str.____SOCKS:_send__:__s_n
mov ecx, 1
call fcn.14000a300
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x140009972
lea rdx, str.____SOCKS5:_timeout_n
mov ecx, 1
call fcn.14000a300
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x140009972

Function at 0x1400099e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rdi, ecx
mov rsi, r8
xor ecx, ecx
mov r14, rdx
call fcn.14000f850
xor ebx, ebx
test rsi, rsi
je 0x140009a50
lea rbp, [rax + 4]
xor ecx, ecx
call fcn.14000f850
cmp rbp, rax
jl 0x140009a9c
mov ecx, edi
call fcn.140008820
test eax, eax
je 0x140009a4b
mov r8d, esi
lea rdx, [rbx + r14]
sub r8d, ebx
mov rcx, rdi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x140009a6d
cdqe
add rbx, rax
cmp rbx, rsi
jb 0x140009a15
mov eax, edi
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
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14000a360
mov r8, rax
lea rdx, str.____SOCKS:_recv__:__s_n
mov ecx, 1
call fcn.14000a300
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x140009a52
lea rdx, str.____SOCKS5:_timeout_n
mov ecx, 1
call fcn.14000a300
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x140009a52
Function at 0x140009e30
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movsxd rdi, edx
mov rbx, rcx
mov ecx, 0x201
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [0x140032218]
test rcx, rcx
je 0x140009e8c
mov r9d, dword [0x140030df4]
mov r8, rbx
mov edx, 0x23be
call fcn.140009ac0
jmp 0x140009e9a
mov edx, dword [0x140030df4]
mov rcx, rbx
call fcn.140009230
lea rsi, [0x140000000]
mov dword [rsi + rdi*4 + 0x32b50], eax
cmp eax, 0xffffffff
jne 0x140009eb1
xor eax, eax
jmp 0x140009f08
lea rax, [rdi + rdi*8]
mov ecx, 0x1000
lea rbx, [rax*8]
mov dword [rbx + rsi + 0x32bb8], 0x1000
call fcn.14000a480
mov qword [rbx + rsi + 0x32bb0], rax
mov ecx, 0x1000
lea rax, [rdi + rdi*8]
lea rbx, [rax*8]
mov dword [rbx + rsi + 0x325c8], 0x1000
call fcn.14000a480
mov qword [rbx + rsi + 0x325c0], rax
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14000a520
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000abb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000ac41
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14000ac41
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ac41
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000ac25
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000ac1f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000ac27
add rdx, 0x28
jmp 0x14000ac04
xor edx, edx
test rdx, rdx
jne 0x14000ac30
xor al, al
jmp 0x14000ac47
test dword [rdx + 0x24], 0x80000000
je 0x14000ac3d
xor al, al
jmp 0x14000ac47
mov al, 1
jmp 0x14000ac47
xor al, al
jmp 0x14000ac47
add rsp, 0x18
ret
Function at 0x14000c8ac
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000c680
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c680
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c680
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c680
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c680
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c680
cmp dword [rcx + 0xf8], esi
je 0x14000c680
mov ecx, r14d
call fcn.14000c7c8
mov ecx, 2
call fcn.14001702c
nop
cmp byte [0x140031640], 0
jne 0x14000c74a
mov r15d, 1
mov eax, r15d
xchg dword [0x140031630], eax
test ebx, ebx
jne 0x14000c6f3
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140031638]
cmp rcx, rax
je 0x14000c6ea
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000add4]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400317d8]
jmp 0x14000c6ff
cmp ebx, r15d
jne 0x14000c705
lea rcx, [0x1400317f0]
call fcn.140016a8c
nop
test ebx, ebx
jne 0x14000c71c
lea rdx, [0x140024488]
lea rcx, [0x140024460]
call fcn.140016378
lea rdx, [0x140024498]
lea rcx, [0x140024490]
call fcn.140016378
movzx eax, byte [0x140031640]
test esi, esi
cmove eax, r15d
mov byte [0x140031640], al
jmp 0x14000c74a
mov ecx, 2
call fcn.140017080
test esi, esi
jne 0x14000c761
mov ecx, r14d
call fcn.14000c77c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000c610