joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140061100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x1400a40f0]
test esi, esi
je 0x1400611d2
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400611c9
je 0x14006114d
test rdi, rdi
je 0x140061151
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140061153
mov rbx, qword [rdi + 8]
jmp 0x140061153
xor eax, eax
jmp 0x1400611c9
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x14024eac8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140003330
test rax, rax
je 0x1400611f3
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400611c6
mov rax, qword [rdi]
test rax, rax
je 0x1400611b3
lock dec qword [rax]
jne 0x1400611b3
mov rcx, rdi
call fcn.14001bed0
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140003340
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400a40d8]
call fcn.14005afd0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140061131
jmp 0x1400611c9
mov ecx, 8
mov edx, 0x10
call fcn.14007f650
ud2

Function at 0x140061230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x1400a4130]
test esi, esi
je 0x1400612e1
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400612d8
je 0x140061279
test rdi, rdi
je 0x14006127d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x14006127f
mov rbx, qword [rdi + 8]
jmp 0x14006127f
xor eax, eax
jmp 0x1400612d8
xor ebx, ebx
mov rax, qword [0x14024eac8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140003330
test rax, rax
je 0x140061302
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400612d5
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140003340
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400a4118]
call fcn.14005afd0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x14006125d
jmp 0x1400612d8
mov ecx, 8
mov edx, 0x10
call fcn.14007f650
int3
Function at 0x140061320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x1400a4150]
test esi, esi
je 0x1400613f2
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1400613e9
je 0x14006136d
test rdi, rdi
je 0x140061371
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140061373
mov rbx, qword [rdi + 8]
jmp 0x140061373
xor eax, eax
jmp 0x1400613e9
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x14024eac8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.140003330
test rax, rax
je 0x140061413
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x1400613e6
mov rax, qword [rdi]
test rax, rax
je 0x1400613d3
lock dec qword [rax]
jne 0x1400613d3
mov rcx, rdi
call fcn.14001be10
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.140003340
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1400a4138]
call fcn.14005afd0
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140061351
jmp 0x1400613e9
mov ecx, 8
mov edx, 0x10
call fcn.14007f650
ud2
Function at 0x1400951d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14009525a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140095250
cmp r10, r11
jb 0x1400952d6
cmp r10, rdx
ja 0x1400952e8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140095252
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140095230
jmp 0x1400952b7
ja 0x14009525a
mov r11, r10
cmp rax, r8
jne 0x1400951f7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1400952bb
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140095290
mov r8, r10
sub ecx, r9d
jns 0x1400952ae
jmp 0x1400952bd
cmp r10, rdx
je 0x1400952ca
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400952bd
xor al, 1
cmp r8, rdx
jne 0x140095270
jmp 0x1400952bd
xor eax, eax
jmp 0x1400952bd
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1402438e8]
call fcn.14008c1f0
lea r8, [0x140243900]
mov rcx, r11
mov rdx, r10
call fcn.140092710
lea r8, [0x140243900]
mov rcx, r10
call fcn.1400926a0
int3

Function at 0x1400a28c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400a3750
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400a3750
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400a2930
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402611e4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400a2ac0
mov rax, qword [0x1402611e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400a297c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400a2a05
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400a2960
mov rcx, rdi
call fcn.1400a3490
test rax, rax
mov r12, rax
je 0x1400a2b12
mov rax, qword [0x1402611e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400a35d0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402611e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a2af5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400a29fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400a2a70
add dword [0x1402611e4], 1
cmp ebx, 8
jae 0x1400a2a31
test bl, 4
jne 0x1400a2ad0
test ebx, ebx
je 0x1400a2a26
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400a2ae4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400a2a26
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400a2a4a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1402611e8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a29fe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400a28c0
xor esi, esi
jmp 0x1400a2987
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400a2a26
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400a2a26
mov rax, qword [0x1402611e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1400a28c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.1400a28c0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400a30e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140261240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140261220]
test rbx, rbx
je 0x1400a3134
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400a312b
test rsi, rsi
je 0x1400a312b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400a3110
lea rcx, [0x140261240]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400a3490
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14024ea00]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400a34ff
mov rcx, r9
call fcn.1400a3360
test eax, eax
je 0x1400a34ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400a34fd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400a34f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400a34ff
add rdx, 0x28
cmp rdx, r9
jne 0x1400a34e0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140013ee8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013d14
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x1400133b0
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]
nop
add rsp, 0x28
ret
Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400146f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014710
xor al, al
jmp 0x140014791
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014723
xor al, al
jmp 0x140014791
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 0x14001474d
xor al, al
jmp 0x140014791
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014761
xor al, al
jmp 0x140014791
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014773
xor al, al
jmp 0x140014791
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001478f
xor al, al
jmp 0x140014791
mov al, 1
add rsp, 0x38
ret
Function at 0x1400125f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113bb
movzx eax, al
test eax, eax
jne 0x140012610
mov ecx, 7
call fcn.14001132f
nop
mov byte [rsp + 0x20], 0
call fcn.140011343
mov byte [rsp + 0x21], al
cmp dword [0x14001e878], 1
jne 0x140012634
mov ecx, 7
call fcn.14001132f
nop
jmp 0x14001268c
cmp dword [0x14001e878], 0
jne 0x140012687
mov dword [0x14001e878], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x140012668
mov eax, 0xff
jmp 0x140012791
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011339
mov dword [0x14001e878], 2
jmp 0x14001268c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001131b
call fcn.1400112b7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400126e9
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400126e9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.1400112e9
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001271d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001271d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001137a
nop
call fcn.140012840
mov dword [rsp + 0x28], eax
call fcn.140011294
movzx eax, al
test eax, eax
jne 0x14001273c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001274b
call fcn.140011384
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012791
add rsp, 0x68
ret
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
push rsi
call [rbx]
add al, 0x1a
jmp [rbx]
xor bh, bh
push rsi
pop rcx
jmp [rdi]
sbb dh, byte cs:[rcx]
jmp qword [rsi]
xor edi, edi
pop rbp
pop r15
invalid
imul edi, edi, 0xff3e2f42
invalid
sbb edi, edi
mov dword [rbx], ebx
int 0xff
jnp 0x14003f710
scasb al, byte [rdi]
invalid
jp 0x14003f73b
jns 0x14003f70b
inc dword [rsi - 0x7b007bc2]
cmp eax, 0x76baff7f
jg 0x14003f713
invalid
invalid
xchg byte [rsi], bh
test bh, bh
test byte [0x1b6bef695], bh
mov edx, 0x8dffaf76
cmp rdi, 0xffffffffff7e4385
scasd eax, dword [rdi]
dec dword [rbp - 0x7a007eb6]
jle 0x14003f71f
invalid
jle 0x14003f75f
jne 0x14003f723
jmp qword [rdi + 0x28]
sub byte [edx - 1], bl
mov cl, byte [rsi + 0x7e]
push qword [rsi + 0x36]
push 0xffffffffffffffff
jg 0x14003f76f
js 0x14003f733
inc dword [rsi + 0x7dff843e]
xor eax, 0x387eff81
test edi, edi
xchg byte [rsi], bh
test bh, bh
jge 0x14003f76f
cmp edi, 0xff85387e
invalid
jb 0x14003f770
jnp 0x14003f743
inc dword [rcx - 0x7d0071c1]
xchg ecx, eax
cmp dword [rdi], 0x4082ff8e
xchg ecx, eax
call [rcx + 0x17]
push 0x6b195bff
call qword [rax + 0xe]
invalid
call [rsi + 0x21]
jno 0x14003f763
call [rbx + 0x22]
jno 0x14003f767
pop rbx
and dh, byte [rcx - 1]
call qword [rdx - 0x3b0053a2]
xchg edx, eax
pop rsi
lodsb al, byte [rsi]
inc esp
xchg ebx, eax
invalid
inc ebp
invalid
invalid
Function at 0x140001eb0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
cmp dword [0x140068168], 0
movsxd rbx, edx
jne 0x140001eeb
xor ecx, ecx
call fcn.14003d31c
mov ecx, eax
mov dword [0x140068168], eax
call fcn.1400392b4
call fcn.140039288
cmp dword [0x140068168], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14005fc60]
mulsd xmm0, qword [0x14005fc90]
cvttsd2si eax, xmm0
mov word [rsp + 0x20], ax
jne 0x140001f2e
xor ecx, ecx
call fcn.14003d31c
mov ecx, eax
mov dword [0x140068168], eax
call fcn.1400392b4
call fcn.140039288
mov byte [rsp + 0x30], 0x82
mov rdx, rbx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14005fc60]
mulsd xmm0, qword [0x14005fc90]
cvttsd2si eax, xmm0
mov word [rsp + 0x22], ax
cmp rbx, 0x7e
jae 0x140001f86
movzx eax, dl
mov r9d, 2
or al, 0x80
mov byte [rsp + 0x31], al
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x32], eax
test ebx, ebx
je 0x140002050
jmp 0x140002010
mov rcx, rdx
shr rcx, 8
cmp rdx, 0xffff
ja 0x140001fb3
mov eax, dword [rsp + 0x20]
mov r9d, 4
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x31], 0xfe
mov byte [rsp + 0x32], cl
mov byte [rsp + 0x33], dl
jmp 0x140002010
mov rax, rdx
mov byte [rsp + 0x31], 0xff
shr rax, 0x38
mov r9d, 0xa
mov byte [rsp + 0x32], al
mov rax, rdx
shr rax, 0x30
mov byte [rsp + 0x33], al
mov rax, rdx
shr rax, 0x28
mov byte [rsp + 0x34], al
mov rax, rdx
shr rax, 0x20
mov byte [rsp + 0x35], al
mov rax, rdx
shr rax, 0x18
mov byte [rsp + 0x36], al
mov rax, rdx
shr rax, 0x10
mov byte [rsp + 0x37], al
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x3a], eax
mov byte [rsp + 0x38], cl
mov byte [rsp + 0x39], dl
lea r11, [0x140068230]
mov rax, r9
sub rax, r11
lea r10, [rsp + 0x34]
add r10, rax
xor r8d, r8d
nop dword [rax + rax]
mov rax, r8
lea rcx, [r8 + r11]
and eax, 3
inc r8
add rax, r9
movzx eax, byte [rsp + rax + 0x30]
xor al, byte [rcx]
mov byte [r10 + rcx], al
cmp r8, rdx
jb 0x140002030
mov rcx, qword [0x140068228]
add r9, 4
add dx, r9w
movsx r8, dx
lea rdx, [rsp + 0x30]
call fcn.140008420
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140035400
add rsp, 0xb0
pop rbx
ret
Function at 0x140003440
Capabilities:
Check for sandbox and av modules

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14000352d
lea rcx, str.sbiedll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.sbieDll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.vboxhook.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.VBoxHook.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.vmcheck.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.vmsrvc.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.vmtools.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.vgauth.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.vmhgfs.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.vmguestlib.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
lea rcx, str.vmhgfs.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000352d
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x140006320
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rdx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x140006338
mov qword [rdx], rcx
cmp dword [rdx + 8], 0
jne 0x140006345
mov dword [rdx + 8], 0x400
cmp qword [rdx + 0x10], 0
jne 0x140006365
mov eax, dword [0x14006815c]
inc eax
mov dword [0x14006815c], eax
movsxd rax, dword [0x14006815c]
mov qword [rdx + 0x10], rax
mov qword [rsp + 0x40], rbp
add rcx, 0x178
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x154], 0xffffffff
jne 0x14000639f
mov rcx, rbx
call fcn.140006290
test eax, eax
jne 0x140006530
movsxd rcx, dword [rbx + 0x154]
lea rdx, [0x14005c530]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400063e3
call fcn.14000a750
mov rcx, rax
lea r9, str.hloop_post_event
lea r8, str._s:_hloop_post_event_failed_
mov edx, 4
call fcn.140009d10
jmp 0x140006530
xor ebp, ebp
lea r14d, [rbp + 0x10]
cmp qword [rbx + 0x168], rbp
jne 0x14000643b
mov qword [rbx + 0x170], rbp
mov qword [rbx + 0x160], rbp
mov qword [rbx + 0x168], r14
lock inc dword [0x140068160]
mov ecx, 0x400
call fcn.14003cd4c
mov rsi, rax
test rax, rax
je 0x14000655a
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call fcn.1400366d0
mov qword [rbx + 0x158], rsi
mov r8, qword [rbx + 0x160]
mov rsi, qword [rbx + 0x168]
cmp r8, rsi
jne 0x1400064c0
mov rcx, qword [rbx + 0x158]
lea eax, [rsi + rsi]
test eax, eax
cmove eax, r14d
shl rsi, 6
movsxd r12, eax
mov rbp, r12
shl rbp, 6
lock inc dword [0x140068160]
test rcx, rcx
je 0x14000647f
lock inc dword [0x140068164]
mov rdx, rbp
call fcn.14003cd54
mov r14, rax
test rax, rax
je 0x14000657e
cmp rbp, rsi
jbe 0x1400064a9
sub rbp, rsi
lea rcx, [rax + rsi]
mov r8, rbp
xor edx, edx
call fcn.1400366d0
mov r9, qword [rbx + 0x170]
mov qword [rbx + 0x158], r14
mov qword [rbx + 0x168], r12
jmp 0x1400064f2
mov r9, qword [rbx + 0x170]
lea rax, [r9 + r8]
cmp rax, rsi
jne 0x1400064f2
mov rcx, qword [rbx + 0x158]
shl r9, 6
shl r8, 6
lea rdx, [rcx + r9]
call fcn.140037380
mov r9, rbp
mov qword [rbx + 0x170], rbp
mov rdx, qword [rbx + 0x160]
movups xmm0, xmmword [rdi]
mov rax, qword [rbx + 0x158]
add rdx, r9
shl rdx, 6
movups xmmword [rdx + rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + rax + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rdx + rax + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rdx + rax + 0x30], xmm1
inc qword [rbx + 0x160]
lea rcx, [rbx + 0x178]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 2
call fcn.1400393ec
mov rcx, rax
lea rdx, str.malloc_failed__n
call fcn.1400095a0
mov ecx, 0xffffffff
call fcn.14003e96c
int3
mov ecx, 2
call fcn.1400393ec
mov rcx, rax
lea rdx, str.realloc_failed__n
call fcn.1400095a0
mov ecx, 0xffffffff
call fcn.14003e96c
int3
Function at 0x1400077b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov qword [rsp + 0x50], rbx
xor ebp, ebp
nop dword [rax]
movsxd rcx, dword [rdi + 0x48]
lea r8, [rsp + 0x58]
mov rdx, qword [rdi + 0x60]
inc ebp
mov dword [rsp + 0x58], 0x1c
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
test eax, eax
js 0x1400078e0
mov rdx, qword [rdi + 0x58]
lea r8, [rsp + 0x58]
movsxd rcx, esi
mov dword [rsp + 0x58], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
mov rcx, qword [rdi]
mov edx, esi
call fcn.140006db0
mov rbx, rax
mov rax, qword [rdi + 0x110]
mov qword [rbx + 0x110], rax
mov rax, qword [rdi + 0x20]
mov qword [rbx + 0x20], rax
mov rdx, qword [rdi + 0x178]
test rdx, rdx
je 0x140007849
mov rcx, rbx
call fcn.1400094c0
cmp dword [rdi + 0x40], 0x1000000
jne 0x1400078b3
cmp qword [rbx + 0x180], 0
jne 0x1400078a2
mov rax, qword [rdi + 0x188]
test rax, rax
jne 0x14000788c
mov rax, qword [0x140068180]
test rax, rax
jne 0x14000788c
call fcn.14000cbc0
or dword [rdi + 0x3c], 0x8000
mov qword [rdi + 0x188], rax
test rax, rax
je 0x1400078d9
mov edx, esi
mov rcx, rax
call fcn.14000d080
test rax, rax
je 0x1400078d2
mov qword [rbx + 0x180], rax
mov rcx, rbx
mov dword [rbx + 0x40], 0x1000000
call fcn.1400075e0
jmp 0x1400078c4
mov rax, qword [rbx + 0x110]
test rax, rax
je 0x1400078c4
mov rcx, rbx
call rax
cmp ebp, 3
jl 0x1400077d0
jmp 0x140007973
mov ebx, 0x412
jmp 0x140007906
mov ebx, 0x411
jmp 0x140007906
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
je 0x140007973
cmp eax, 0x2714
je 0x140007973
lea rcx, str.accept
call fcn.14003d290
mov eax, ebx
mov dword [rdi + 0x4c], ebx
cdq
mov qword [rsp + 0x30], 0
xor eax, edx
mov dword [rsp + 0x28], pe_nt_image_headers64
sub eax, edx
lea rbx, [0x140068270]
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.14000a750
mov rcx, rax
lea r9, str.nio_accept
mov eax, dword [rdi + 0x4c]
lea r8, str._s:_listenfd_d_accept_error:__s:_d
mov dword [rsp + 0x30], eax
mov edx, 4
mov eax, dword [rdi + 0x48]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.140009d10
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret