joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114284
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.1400e9098
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14011430e
cmp byte [rbp - 0x21], r15b
je 0x140114309
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140114344
call fcn.140103da8
test eax, eax
jne 0x140114330
cmp byte [rbp - 0x21], r15b
je 0x140114328
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140114344
cmp byte [rbp - 0x21], r15b
je 0x140114341
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.1400fb9ec
test eax, eax
jne 0x1401143e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400e9098
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140114383
cmp byte [rbp - 0x21], r15b
je 0x1401143b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401143b8
call fcn.140103da8
test eax, eax
jne 0x1401143a4
cmp byte [rbp - 0x21], r15b
je 0x14011439d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401143b8
cmp byte [rbp - 0x21], r15b
je 0x1401143b5
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.1400fb9ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401143e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401143e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401143f5
mov rcx, rdi
call fcn.1401017e0
cmp byte [rbp + 0x3f], r15b
je 0x140114404
mov rcx, qword [rbp + 0x27]
call fcn.1401017e0
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 0x1401148e0
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.14010e67c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14010e67c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140114a30
cmp rax, 0xffffffffffffffff
je 0x140114a30
xor edi, edi
test rbp, rbp
jle 0x1401149db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140104960
mov rbx, rax
test rax, rax
jne 0x140114968
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401149d1
mov edx, 0x8000
mov ecx, r14d
call fcn.140101634
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.14010a618
cmp eax, 0xffffffff
je 0x1401149b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140114978
mov edx, r15d
mov ecx, r14d
call fcn.140101634
jmp 0x1401149d1
cmp byte [rsi + 0x38], dil
je 0x1401149c8
cmp dword [rsi + 0x34], 5
jne 0x1401149c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x1401149d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401017e0
jmp 0x140114a44
jns 0x140114a44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14010e67c
cmp rax, 0xffffffffffffffff
jne 0x1401149fc
cmp byte [rsi + 0x30], dil
je 0x140114a44
mov edi, dword [rsi + 0x2c]
jmp 0x140114a44
mov ecx, r14d
call fcn.14010cedc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140114a44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x140114a44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140114a3d
mov eax, dword [rsi + 0x2c]
jmp 0x140114a42
mov eax, SafeArrayCopy
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14010e67c
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 0x140116960
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140116988
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140116988
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140128740
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rcx, qword [rcx + 8]
add rcx, 0x318
call fcn.1400083f0
movzx ebx, al
call fcn.140003070
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test bl, bl
je 0x1401287e0
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1402d63d8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1401287ed
lea rdx, [0x1402d63e8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400d9d70
add rsp, 0x260
pop rbx
ret
Function at 0x140142b60
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov edi, r8d
mov ebx, edx
test dl, 2
je 0x140142c16
xor ecx, ecx
mov qword [rsp + 0x170], rsi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
mov rsi, rax
call fcn.1402a2d50
mov byte [rsp + 0x61], 0x80
test bl, 1
je 0x140142bc1
mov byte [rsp + 0x62], 0x80
test bl, 4
je 0x140142bcb
mov byte [rsp + 0x60], 0x80
xor eax, eax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 3
xor edx, edx
mov dword [rsp + 0x40], eax
mov ecx, edi
mov word [rsp + 0x44], ax
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov rsi, qword [rsp + 0x170]
test eax, eax
jle 0x140142c12
cmp word [rsp + 0x40], 0x20
setb al
jmp 0x140142c18
mov al, 1
jmp 0x140142c18
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400d9d70
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x1401476c0
Capabilities:
Read data from internet
Receive data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, qword [rcx + 8]
mov rdi, rdx
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x1401476e0
xor al, al
add rsp, 0x38
pop rdi
pop rsi
ret
cmp rdi, qword [rsi + 0x80]
je 0x1401477c2
xor r9d, r9d
mov byte [rsi + 0x88], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetSetFilePointer]
mov eax, eax
mov qword [rsi + 0x80], rax
cmp rax, rdi
je 0x1401477c2
jg 0x1401476d7
sub rdi, rax
mov qword [rsp + 0x58], rbx
mov ecx, 0x4000
mov qword [rsp + 0x60], rbp
cmp rdi, rcx
mov qword [rsp + 0x30], r14
mov eax, edi
cmovg eax, ecx
movsxd rbp, eax
mov r14d, eax
mov rcx, rbp
call fcn.1400e0cb8
mov rbx, rax
test rdi, rdi
jle 0x1401477ab
cmp byte [rsi + 0x88], 0
jne 0x1401477ab
xor ecx, ecx
test rbx, rbx
je 0x1401477a0
mov rax, qword [rsi + 0x60]
mov dword [rsp + 0x50], ecx
test rax, rax
je 0x1401477a0
mov r8d, edi
lea r9, [rsp + 0x50]
cmp rbp, rdi
mov rdx, rbx
mov rcx, rax
cmovl r8d, r14d
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x50]
add qword [rsi + 0x80], rcx
test ecx, ecx
jne 0x1401477a0
mov byte [rsi + 0x88], 1
movsxd rax, ecx
sub rdi, rax
test rdi, rdi
jg 0x140147752
mov rcx, rbx
call fcn.1400e0818
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov al, 1
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1401477e0
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x10], 0
lea rbx, [rcx + 8]
mov esi, r8d
mov rdi, rdx
jne 0x14014780d
mov byte [rcx + 0x10], 1
xor edx, edx
mov rcx, qword [rbx]
call fcn.140013ed0
mov rbx, qword [rbx]
xor eax, eax
test rdi, rdi
je 0x140147853
mov dword [rsp + 0x30], eax
cmp byte [rbx + 0x88], al
jne 0x140147853
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140147853
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x30]
add qword [rbx + 0x80], rax
test eax, eax
jne 0x140147853
mov byte [rbx + 0x88], 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140147870
Capabilities:
Get http content length

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x10], 0
lea rbx, [rcx + 8]
jne 0x14014788e
mov byte [rcx + 0x10], 1
xor edx, edx
mov rcx, qword [rbx]
call fcn.140013ed0
mov rax, qword [rbx]
mov rcx, qword [rax + 0x60]
test rcx, rcx
je 0x1401478d3
xor eax, eax
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x40], eax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov edx, 0x20000005
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov eax, dword [rsp + 0x40]
jne 0x1401478da
mov rax, 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
Function at 0x14014bab0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov eax, dword [rdx - 0x10]
nop
test eax, 0x30000000
jne 0x14014bacd
lock inc dword [rdx - 0x10]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea r8, [0x140379319]
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rsp + 0x30]
call fcn.1401691c0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov ecx, dword [rax - 0x10]
nop
test ecx, 0x30000000
jne 0x14014bb09
lock inc dword [rax - 0x10]
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
mov ebx, 0xffffffff
test eax, 0x30000000
jne 0x14014bb33
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x14014bb33
call fcn.1400da0f0
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140015780
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14014bb6f
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x14014bb6f
call fcn.1400da0f0
add rsp, 0x20
pop rbx
ret
Function at 0x14014be40
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov ebp, r9d
mov r14d, r8d
mov r15, rdx
mov rbx, rcx
lea rsi, [rcx + 0x10]
mov qword [rax + 8], rsi
mov rcx, rsi
call fcn.140162a50
nop
mov rbx, qword [rbx]
test rbx, rbx
je 0x14014bfaf
mov edx, ebp
mov rcx, rbx
call fcn.140013ae0
test al, al
je 0x14014bfaf
xor edi, edi
test r14d, r14d
jle 0x14014bfb4
mov qword [rsp + 0x40], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
mov r8d, r14d
mov rdx, r15
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14014bf01
mov edi, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14014bfb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14014bfa4
movzx eax, byte [rbx + 0x1a]
nop
test al, al
jne 0x14014bf51
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x38], rax
mov r9d, 0xffffffff
test ebp, ebp
cmovns r9d, ebp
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14014bf5d
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x14014bfa4
xor r9d, r9d
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14014beea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14014bfa4
cmp byte [rbx + 0x19], dil
je 0x14014bfa4
cmp byte [rbx + 0x18], dil
je 0x14014bfa4
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [rbx + 0x18], dil
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xffffffff
mov rcx, rsi
call fcn.140162820
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140153f20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r14
sub rsp, 0x20
mov esi, dword [rcx + 0x44]
mov rbx, rcx
mov qword [rsp + 0x40], rdi
xor r12d, r12d
mov qword [rsp + 0x48], r15
nop word [rax + rax]
mov edx, dword [rbx + 0x94]
mov ebp, dword [rbx + 0x58]
sub ebp, dword [rbx + 0x9c]
mov ecx, dword [rbx + 0x44]
sub ebp, edx
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x140154000
mov rcx, qword [rbx + 0x50]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.1402a26b0
mov r8d, dword [rbx + 0x74]
mov rax, qword [rbx + 0x68]
sub dword [rbx + 0x98], esi
sub dword [rbx + 0x94], esi
sub dword [rbx + 0x84], esi
lea rdx, [rax + r8*2]
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x140153fb0
mov rax, qword [rbx + 0x60]
mov r8d, esi
lea rdx, [rax + rsi*2]
nop dword [rax]
movzx ecx, word [rdx - 2]
lea rdx, [rdx - 2]
movzx eax, cx
sub ax, si
cmp ecx, esi
cmovb ax, r12w
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x140153fe0
add ebp, esi
mov r14, qword [rbx]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x1401540ed
mov r10, qword [rbx + 0x50]
mov r15d, dword [rbx + 0x9c]
mov r9d, dword [rbx + 0x94]
add r15, r10
add r15, r9
cmp ecx, ebp
cmovbe ebp, ecx
test ebp, ebp
jne 0x140154035
mov ebp, r12d
jmp 0x14015409c
mov rax, qword [r14 + 0x28]
sub ecx, ebp
mov dword [r14 + 8], ecx
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x140154058
mov rdx, qword [r14]
mov r8d, ebp
mov ecx, dword [r14 + 0x4c]
call fcn.140155c00
jmp 0x140154076
cmp ecx, 2
jne 0x14015407a
mov rdx, qword [r14]
test rdx, rdx
jne 0x14015406a
mov eax, r12d
jmp 0x140154076
mov ecx, dword [r14 + 0x4c]
mov r8d, ebp
call fcn.1401558e0
mov dword [r14 + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r15
mov r8d, ebp
mov edi, ebp
call fcn.1402a26b0
add qword [r14], rdi
add dword [r14 + 0xc], ebp
mov r9d, dword [rbx + 0x94]
mov r10, qword [rbx + 0x50]
mov r8d, dword [rbx + 0x9c]
add r8d, ebp
mov dword [rbx + 0x9c], r8d
cmp r8d, 3
jb 0x1401540d7
mov ecx, dword [rbx + 0x80]
mov eax, r9d
movzx edx, byte [rax + r10]
lea eax, [r9 + 1]
mov dword [rbx + 0x70], edx
movzx eax, byte [rax + r10]
shl edx, cl
xor edx, eax
and edx, dword [rbx + 0x7c]
mov dword [rbx + 0x70], edx
cmp r8d, 0x106
jae 0x1401540ed
mov rax, qword [rbx]
cmp dword [rax + 8], r12d
jne 0x140153f50
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rsi
ret
Function at 0x14015e260
Capabilities:
Print debug messages

Disassembly:
mov rcx, qword [0x140444c68]
test rcx, rcx
je 0x14015e273
mov rax, qword [rcx]
jmp qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, rdx
jmp fcn.14014bab0

Function at 0x140161c30
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
lea rsi, [rcx + 0x20]
mov qword [rsp + 0x40], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x10]
nop
test rax, rax
je 0x140161d1a
mov rcx, rbx
call fcn.140161e70
lea rcx, [rbx + 0xf8]
call fcn.14014b0f0
test edi, edi
je 0x140161c87
mov edx, edi
mov rcx, rbx
call fcn.140161d40
mov rax, qword [rbx + 0x10]
nop
test rax, rax
je 0x140161d1a
lea rdx, str.___killing_thread_by_force___
lea rcx, [rsp + 0x30]
call fcn.140019df0
nop
mov rcx, qword [0x140444c68]
test rcx, rcx
je 0x140161cc0
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140161ccb
lea rcx, [rsp + 0x30]
call fcn.14014bab0
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140161cf3
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140161cf3
call fcn.1400da0f0
mov rax, qword [rbx + 0x10]
nop
test rax, rax
je 0x140161d0a
mov rcx, qword [rbx + 0x10]
nop
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
mov eax, ecx
xchg qword [rbx + 0x10], rax
xchg qword [rbx + 0x18], rcx
xor bl, bl
jmp 0x140161d1c
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14016f5f0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
movzx eax, byte [rcx + 0x10]
nop
test al, al
je 0x14016f71b
movzx eax, byte [rcx + 0x11]
nop
test al, al
je 0x14016f71b
mov dword [rsp + 0x20], 0x80
movsxd rcx, dword [rcx + 0xc]
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
test eax, eax
js 0x14016f71b
movzx ecx, byte [rdi + 0x10]
nop
test cl, cl
je 0x14016f71b
mov ecx, 0x48
call fcn.1400da124
mov rbx, rax
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140019df0
mov edx, dword [rdi + 8]
nop
mov rcx, qword [rsp + 0x28]
mov qword [rbx], rcx
mov eax, dword [rcx - 0x10]
nop
test eax, 0x30000000
jne 0x14016f6aa
lock inc dword [rcx - 0x10]
mov dword [rbx + 8], edx
mov dword [rbx + 0xc], esi
mov word [rbx + 0x10], 1
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [0x14044aea8], 0
jne 0x14016f6e5
mov ecx, 0x101
lea rdx, [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete byte [0x14044aea8]
movsxd rcx, esi
call fcn.14016fe90
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14016f716
mov eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14016f716
call fcn.1400da0f0
mov rax, rbx
jmp 0x14016f71d
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400d9d70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14016f9e0
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor esi, esi
mov dword [rsp + 0x38], 2
mov rdi, rdx
mov dword [rsp + 0x5c], esi
xorps xmm0, xmm0
mov dword [rsp + 0x34], esi
xorps xmm1, xmm1
mov qword [r11 - 0x78], rsi
mov edx, r8d
mov dword [rsp + 0x30], 8
lea rcx, [r11 - 0x18]
movdqu xmmword [rsp + 0x3c], xmm0
movdqu xmmword [rsp + 0x4c], xmm1
call fcn.14016a2a0
lea r8, [rsp + 0x7f]
mov rdx, rax
sub r8, rax
lea rcx, [rsp + 0x28]
call fcn.140010d70
mov rbx, qword [rsp + 0x28]
lea r9, [rsp + 0x20]
mov rcx, qword [rdi]
lea r8, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, dword [rbx - 0x10]
lea rcx, [rbx - 0x10]
mov edi, eax
nop
test edx, 0x30000000
jne 0x14016fa9b
mov edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x14016fa9b
call fcn.1400da0f0
test edi, edi
cmove rsi, qword [rsp + 0x20]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400d9d70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14016fb50
Capabilities:
Get socket status

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140425440]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov esi, r9d
mov rcx, rdx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x14016fc4e
movsxd rcx, dword [rbx]
mov eax, 0x10624dd3
imul esi
nop
xor r9d, r9d
sar edx, 6
xor r8d, r8d
mov eax, edx
mov qword [rsp + 0x48], rcx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x40], 1
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x40]
sub esi, eax
imul eax, esi, 0x3e8
mov rsi, rcx
inc ecx
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14016fc45
movsxd rax, dword [rbx]
nop
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x14016fc45
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x14016fc45
cmp dword [rsp + 0x34], 0
jne 0x14016fc45
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
xor ebx, ebx
mov rcx, rdi
test eax, eax
setne bl
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x14016fc53
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400d9d70
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x14016fc80
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, r9
mov ebp, r8d
mov r13, rdx
mov qword [rsp + 0x28], rcx
mov r15, qword [rsp + 0x98]
movzx r14d, byte [rsp + 0x90]
mov eax, r14d
xor eax, 1
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
test ebp, ebp
jle 0x14016fd33
movsxd rdi, ebx
add rdi, r13
mov esi, ebp
sub esi, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x14016fd24
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jle 0x14016fd24
movzx ecx, byte [r12]
nop
test cl, cl
je 0x14016fd24
add ebx, edi
test r14b, r14b
je 0x14016fd33
cmp ebx, ebp
jl 0x14016fcd3
jmp 0x14016fd33
test ebx, ebx
jne 0x14016fd33
mov eax, 0xffffffff
test r14b, r14b
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret