joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095940
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400959b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d01f4]
mov rbx, rcx
test esi, esi
jle 0x140095ae0
mov rax, qword [0x1400d01f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400959fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140095a85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400959e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140095b02
mov rax, qword [0x1400d01f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d01f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140095ae7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140095a7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140095a90
add dword [0x1400d01f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d01f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140095a7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140095a08
mov rax, qword [0x1400d01f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400960a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d0260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d0240]
test rbx, rbx
je 0x140096104
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400960fb
test eax, eax
jne 0x1400960fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400960e0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140096340
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140096358
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140096360
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140096370
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400963bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400963b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400963bf
add rax, 0x28
cmp rax, r9
jne 0x1400963a0
xor eax, eax
ret

Function at 0x1400963c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140096450
mov rdx, qword [0x1400bd700]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14009643e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14009643e
cmp word [rax + 0x18], 0x20b
jne 0x14009643e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140096450
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140096429
add rbx, 0x28
cmp rbx, rdi
je 0x140096450
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140096420
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400bd700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140096480
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140096488
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140096480
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400964dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400964d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140096480
add rax, 0x28
cmp rax, r9
jne 0x1400964c0
xor eax, eax
ret

Function at 0x1400964e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bd700]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400964ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140096508
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400964ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140096520
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400bd700]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140096540
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140096548
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140096540
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140096598
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14009658f
test rcx, rcx
je 0x140096540
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140096580
xor eax, eax
ret

Function at 0x1400965a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bd700]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400965bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400965c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400bd700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140096600
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140096608
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140096600
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140096600
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140096654
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140096660
add rdx, 0x28
cmp r9, rdx
jne 0x140096640
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400bd700]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140096692
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400966a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140096692
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140096692
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140096692
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400966f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140096708
add rdx, 0x28
cmp r10, rdx
jne 0x1400966e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140096717
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140096727
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400966fe
test ecx, ecx
jg 0x140096710
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000a8d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140014db0
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.140014db0
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 0x14000a940
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e70b4]
mov rbx, rcx
test esi, esi
jle 0x14000aa70
mov rax, qword [0x1400e70b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000a98b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000aa15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000a970
mov rcx, rbx
call fcn.14000b390
mov rdi, rax
test rax, rax
je 0x14000aa92
mov rax, qword [0x1400e70b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000b4d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e70b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000aa77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000aa0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000aa20
add dword [0x1400e70b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e70b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000aa0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000a8d0
nop dword [rax]
xor esi, esi
jmp 0x14000a998
mov rax, qword [0x1400e70b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000a8d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000a8d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e7120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e7100]
test rbx, rbx
je 0x14000b05c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000b053
test rsi, rsi
je 0x14000b053
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b038
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b390
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c0320]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b3b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b3b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b3b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000b40d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b3b0
add rax, 0x28
cmp rax, r9
jne 0x14000b3f0
xor eax, eax
ret

Function at 0x14000b410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c0320]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000b42f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b438
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b42f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000b4d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c0320]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000b4ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000b4f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140017720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, edx
mov edx, ecx
mov byte [rbp + 0x10], dl
mov byte [rbp + 0x18], al
mov byte [rbp - 1], 0
movzx eax, byte [rbp + 0x10]
mov byte [rbp - 2], al
mov dword [rbp - 8], 0
jmp 0x140017773
movzx edx, byte [rbp + 0x18]
mov eax, dword [rbp - 8]
mov ecx, eax
sar edx, cl
mov eax, edx
and eax, 1
test eax, eax
je 0x140017761
movzx eax, byte [rbp - 2]
xor byte [rbp - 1], al
movzx eax, byte [rbp - 2]
mov ecx, eax
call fcn.140017790
mov byte [rbp - 2], al
add dword [rbp - 8], 1
cmp dword [rbp - 8], 7
jle 0x140017746
movzx eax, byte [rbp - 1]
add rsp, 0x30
pop rbp
ret
Function at 0x14007a050
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007a098
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007a06a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
lea rcx, [0x1400b9fa0]
jmp 0x14000c1e0

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

Disassembly:
lea rcx, [0x1400b9fa0]
jmp 0x14000c1e0
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 [0x140068148], 0
movsxd rbx, edx
jne 0x140001eeb
xor ecx, ecx
call fcn.14003d208
mov ecx, eax
mov dword [0x140068148], eax
call fcn.140039274
call fcn.140039248
cmp dword [0x140068148], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14005fc10]
mulsd xmm0, qword [0x14005fc40]
cvttsd2si eax, xmm0
mov word [rsp + 0x20], ax
jne 0x140001f2e
xor ecx, ecx
call fcn.14003d208
mov ecx, eax
mov dword [0x140068148], eax
call fcn.140039274
call fcn.140039248
mov byte [rsp + 0x30], 0x82
mov rdx, rbx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x14005fc10]
mulsd xmm0, qword [0x14005fc40]
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, [0x140068210]
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 [0x140068208]
add r9, 4
add dx, r9w
movsx r8, dx
lea rdx, [rsp + 0x30]
call fcn.1400083e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400353c0
add rsp, 0xb0
pop rbx
ret
Function at 0x1400062e0
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 0x1400062f8
mov qword [rdx], rcx
cmp dword [rdx + 8], 0
jne 0x140006305
mov dword [rdx + 8], 0x400
cmp qword [rdx + 0x10], 0
jne 0x140006325
mov eax, dword [0x14006813c]
inc eax
mov dword [0x14006813c], eax
movsxd rax, dword [0x14006813c]
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 0x14000635f
mov rcx, rbx
call fcn.140006250
test eax, eax
jne 0x1400064f0
movsxd rcx, dword [rbx + 0x154]
lea rdx, [0x14005c4e0]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400063a3
call fcn.14000a710
mov rcx, rax
lea r9, str.hloop_post_event
lea r8, str._s:_hloop_post_event_failed_
mov edx, 4
call fcn.140009cd0
jmp 0x1400064f0
xor ebp, ebp
lea r14d, [rbp + 0x10]
cmp qword [rbx + 0x168], rbp
jne 0x1400063fb
mov qword [rbx + 0x170], rbp
mov qword [rbx + 0x160], rbp
mov qword [rbx + 0x168], r14
lock inc dword [0x140068140]
mov ecx, 0x400
call fcn.14003cc38
mov rsi, rax
test rax, rax
je 0x14000651a
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call fcn.140036690
mov qword [rbx + 0x158], rsi
mov r8, qword [rbx + 0x160]
mov rsi, qword [rbx + 0x168]
cmp r8, rsi
jne 0x140006480
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 [0x140068140]
test rcx, rcx
je 0x14000643f
lock inc dword [0x140068144]
mov rdx, rbp
call fcn.14003cc40
mov r14, rax
test rax, rax
je 0x14000653e
cmp rbp, rsi
jbe 0x140006469
sub rbp, rsi
lea rcx, [rax + rsi]
mov r8, rbp
xor edx, edx
call fcn.140036690
mov r9, qword [rbx + 0x170]
mov qword [rbx + 0x158], r14
mov qword [rbx + 0x168], r12
jmp 0x1400064b2
mov r9, qword [rbx + 0x170]
lea rax, [r9 + r8]
cmp rax, rsi
jne 0x1400064b2
mov rcx, qword [rbx + 0x158]
shl r9, 6
shl r8, 6
lea rdx, [rcx + r9]
call fcn.140037340
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.1400393ac
mov rcx, rax
lea rdx, str.malloc_failed__n
call fcn.140009560
mov ecx, 0xffffffff
call fcn.14003e828
int3
mov ecx, 2
call fcn.1400393ac
mov rcx, rax
lea rdx, str.realloc_failed__n
call fcn.140009560
mov ecx, 0xffffffff
call fcn.14003e828
int3
Function at 0x140007770
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 0x1400078a0
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.140006d70
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 0x140007809
mov rcx, rbx
call fcn.140009480
cmp dword [rdi + 0x40], 0x1000000
jne 0x140007873
cmp qword [rbx + 0x180], 0
jne 0x140007862
mov rax, qword [rdi + 0x188]
test rax, rax
jne 0x14000784c
mov rax, qword [0x140068160]
test rax, rax
jne 0x14000784c
call fcn.14000cb80
or dword [rdi + 0x3c], 0x8000
mov qword [rdi + 0x188], rax
test rax, rax
je 0x140007899
mov edx, esi
mov rcx, rax
call fcn.14000d040
test rax, rax
je 0x140007892
mov qword [rbx + 0x180], rax
mov rcx, rbx
mov dword [rbx + 0x40], 0x1000000
call fcn.1400075a0
jmp 0x140007884
mov rax, qword [rbx + 0x110]
test rax, rax
je 0x140007884
mov rcx, rbx
call rax
cmp ebp, 3
jl 0x140007790
jmp 0x140007933
mov ebx, 0x412
jmp 0x1400078c6
mov ebx, 0x411
jmp 0x1400078c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
je 0x140007933
cmp eax, 0x2714
je 0x140007933
lea rcx, str.accept
call fcn.14003d17c
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, [0x140068250]
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.14000a710
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.140009cd0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret