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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140169290]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001f2a7
cmp word [rdx], r13w
jne 0x14001f2a7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f2ac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f3d1
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f3f2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f2e5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f30c
cmp r9, r8
jae 0x14001f31c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001f2c6
jmp 0x14001f3d1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f3c6
cmp dword [rsp + 0x80], esi
je 0x14001f3c6
lea r8, [0x140169290]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f39e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f36e
mov word [rbx], r13w
jmp 0x14001f3ce
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001f37b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f3ce
cmp word [rsp + 0x70], r13w
jne 0x14001f3ab
cmp rbx, r14
je 0x14001f368
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400207ec
cmp word [rsp + 0x70], r13w
je 0x14001f3d1
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140169290]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f3cb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f3d1
Function at 0x1400308e4
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1400309a8
lea rcx, [0x14016f1a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140169a58]
jmp 0x14003096e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14003096b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140169a58]
mov rdx, rsi
call fcn.140038a1c
jmp 0x14003096e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14003093b
mov rdi, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x140169a58]
lea rdx, [rdi + 1]
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.140038a64
lea rcx, [0x14016f1a0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14003173c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov ebp, r9d
mov rdx, rcx
mov r15d, r8d
mov rcx, qword [0x14016f280]
xor edi, edi
call fcn.140037f1c
mov rsi, rax
test rax, rax
je 0x1400318d5
test r14, r14
je 0x1400318d5
mov r8, qword [rax + 0x30]
mov dword [rax + 0x70], edi
mov dword [rax + 0x50], 0xa
test r8, r8
je 0x1400317a5
mov rcx, qword [0x1401683f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsi + 0x38]
test r8, r8
je 0x1400317bd
mov rcx, qword [0x1401683f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsi + 0x40]
test r8, r8
je 0x1400317d5
mov rcx, qword [0x1401683f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x80]
mov qword [rsi + 0x30], rdi
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x48], ebp
test rcx, rcx
je 0x140031809
call fcn.1400ac730
mov rcx, rax
mov rbx, rax
call fcn.140031dbc
mov rcx, rbx
mov qword [rsi + 0x30], rax
call fcn.1400ac720
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140031832
call fcn.1400ac730
mov rcx, rax
mov rbx, rax
call fcn.140031dbc
mov rcx, rbx
mov qword [rsi + 0x38], rax
call fcn.1400ac720
mov rcx, r14
call fcn.1400ac730
mov rcx, rax
mov rbx, rax
call fcn.1400cc9a0
mov rcx, qword [0x1401683f0]
xor edx, edx
lea r8, [rax + 0x80]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, str.smtp:___s:_d
test bpl, 4
lea rdx, str.smtps:___s:_d
mov qword [rsi + 0x40], rax
cmove rdx, rcx
mov r9d, r15d
mov rcx, rax
mov r8, rbx
call fcn.14003088c
mov rcx, rbx
call fcn.1400ac720
test bpl, 1
je 0x1400318cb
lea rax, [rsp + 0x30]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140031b78]
mov edx, 0x20000
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400318d5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x1400318d5
mov rcx, rsi
call fcn.140031978
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movsxd rax, edi
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140032990
Capabilities:
Create thread

Disassembly:
xor r9d, r9d
jmp 0x140032998
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14d, r9d
mov rsi, r8
mov rbp, rdx
test rdx, rdx
je 0x140032a91
test r8, r8
je 0x140032a91
mov rdx, rcx
mov rcx, qword [0x14016f340]
call fcn.140037f1c
mov rdi, rax
test rax, rax
je 0x140032a91
or qword [rax + 0x40], 0xffffffffffffffff
test r14d, r14d
je 0x140032a81
mov rcx, qword [0x1401683f0]
lea r8d, [rbx + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rsi
mov r14, rax
lea rcx, [rax + 8]
mov qword [rax], rdi
call fcn.140039f10
mov rdx, rbp
lea rcx, [r14 + 0x10]
call fcn.140039f10
lea rax, [rsp + 0x58]
mov r9, r14
mov qword [rsp + 0x28], rax
lea r8, [0x140032c94]
mov edx, 0x10000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140032a5b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
jmp 0x140032a91
mov rcx, qword [r14 + 8]
call fcn.140039e60
mov rcx, qword [r14 + 0x10]
call fcn.140039e60
mov rcx, qword [0x1401683f0]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140032a91
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.140032aa8
mov ebx, eax
mov rbp, qword [rsp + 0x60]
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140032aa8
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x10b0
call fcn.1400acf10
sub rsp, rax
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0x10a0], rax
mov rbx, rcx
mov rbp, r8
mov rcx, rdx
xor edi, edi
xor esi, esi
call fcn.1400ac730
lea r8, [0x14012245c]
mov rcx, rbx
lea rdx, str.TYPE
mov r14, rax
call fcn.140033360
test rax, rax
je 0x140032c5c
lea rdx, [0x140122468]
mov rcx, rbx
call fcn.140033228
test rax, rax
je 0x140032c5c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140033524
test rax, rax
je 0x140032c5c
mov r8, r14
lea rdx, str.RETR
mov rcx, rbx
call fcn.140033360
test rax, rax
je 0x140032c43
lea rdx, str.125_150
mov rcx, rbx
call fcn.140033228
test rax, rax
je 0x140032c43
cmp dword [rbx + 0x30], esi
jne 0x140032b7e
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140033494
test rax, rax
je 0x140032c43
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov esi, 1
call fcn.14003371c
test rax, rax
je 0x140032c43
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, esi
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
test rax, rax
je 0x140032c43
and qword [rbx + 0x40], rdi
lea rdx, [rsp + 0xa0]
and dword [rbx + 0x48], edi
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
call fcn.140033234
mov rdi, rax
jmp 0x140032c34
cmp dword [rbx + 0x48], 0
jne 0x140032c38
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
lea rdx, [rsp + 0xa0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, edi
lea rdx, [rsp + 0xa0]
add qword [rbx + 0x40], rax
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
call fcn.140033234
mov edi, eax
test eax, eax
jne 0x140032bee
mov rcx, rbp
mov edi, esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140033704
test esi, esi
je 0x140032c5c
mov rcx, rbx
call fcn.14003330c
mov rcx, r14
call fcn.1400ac720
mov ecx, edi
mov eax, edi
neg ecx
sbb rdx, rdx
add rdx, 0xfffffffffffffffe
mov qword [rbx + 0x40], rdx
mov rcx, qword [rsp + 0x10a0]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0x10b0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140033524
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xb70]
sub rsp, 0xc70
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rbp + 0xb60], rax
xor r14d, r14d
mov r15, rdx
mov rdi, rcx
cmp dword [rcx + 0x30], r14d
je 0x140033654
lea r8, [0x14011a180]
lea rdx, [0x1401224c8]
call fcn.140033360
mov r9d, 0x400
lea r8, [rsp + 0x60]
lea rdx, [0x1401224d0]
mov rcx, rdi
xor ebx, ebx
call fcn.140033248
test rax, rax
je 0x1400336d9
mov dl, byte [rsp + 0x63]
lea rbx, [rsp + 0x63]
lea edi, [r14 + 1]
test dl, dl
je 0x1400335e8
xor esi, esi
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400335df
mov rcx, rbx
cmp dl, 0x39
jg 0x1400335c7
add rbx, rdi
mov dl, byte [rbx]
cmp dl, 0x30
jge 0x1400335b8
mov byte [rbx], 0
call fcn.14001c014
mov dword [rsp + rsi*4 + 0x48], eax
add r14d, edi
add rsi, rdi
cmp rsi, 6
je 0x1400335e8
add rbx, rdi
mov dl, byte [rbx]
test dl, dl
jne 0x1400335ae
xor ebx, ebx
cmp r14d, 6
jne 0x1400336d9
mov eax, dword [rsp + 0x54]
lea rdx, [0x1401224d8]
mov r9d, dword [rsp + 0x4c]
lea rcx, [rbp + 0x360]
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
call fcn.140033804
mov edx, dword [rsp + 0x58]
lea rcx, [rbp + 0x360]
shl edx, 8
add edx, dword [rsp + 0x5c]
call fcn.14003423c
mov qword [r15], rax
test rax, rax
je 0x1400336d9
mov dword [r15 + 0x34], 5
mov rbx, rdi
jmp 0x1400336d9
xor edx, edx
or rcx, 0xffffffffffffffff
call fcn.140034c68
xor ebx, ebx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400336d9
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
mov rcx, qword [rax]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
movzx ecx, word [rsp + 0x3a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r8d, ax
lea rdx, str.127_0_0_1__d__d
movzx r9d, r8b
lea rcx, [rsp + 0x60]
shr r8d, 8
call fcn.14003088c
lea r8, [rsp + 0x60]
mov rcx, rdi
lea rdx, [0x140122500]
call fcn.140033360
lea rdx, [0x140122468]
mov rcx, rdi
call fcn.140033228
test rax, rax
lea edi, [rbx + 1]
cmovne ebx, edi
mov rax, rbx
mov rcx, qword [rbp + 0xb60]
xor rcx, rsp
call fcn.1400acab0
mov rbx, qword [rsp + 0xcb0]
add rsp, 0xc70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140033f44
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140033e60]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14003804c
xor r8d, r8d
mov qword [0x140169a98], rax
xor edx, edx
mov ecx, ebx
call fcn.140037dac
xor ebx, ebx
mov qword [0x14016f3a0], rax
cmp word [0x140169a90], bx
jne 0x140034079
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140033fbe
movzx eax, di
jmp 0x140033fc0
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140169a90], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140169aa0], rax
test rax, rax
je 0x140034079
lea rdx, [0x140122890]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140169aa0]
lea rdx, [0x1401228a0]
mov qword [0x140169a70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140169aa0]
lea rdx, str.getnameinfo
mov qword [0x140169a78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140169aa0]
lea rdx, str.WSAStringToAddressA
mov qword [0x140169a80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140169a70], rbx
mov qword [0x140169a88], rax
je 0x140034079
cmp qword [0x140169a78], rbx
je 0x140034079
cmp qword [0x140169a80], rbx
je 0x140034079
mov ecx, dword [0x140169a94]
test rax, rax
cmovne ecx, edi
mov dword [0x140169a94], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400acab0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
Function at 0x14003477c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rax, rdx
cmp dword [rcx], 1
mov rdi, rcx
jne 0x1400347a9
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
jmp 0x1400347f1
cmp qword [rcx + 0x38], rsi
je 0x1400347f1
cmp r8d, dword [rcx + 0x40]
mov esi, r8d
mov rdx, qword [rcx + 0x48]
cmovg esi, dword [rcx + 0x40]
mov rcx, rax
movsxd rbx, esi
mov r8, rbx
call fcn.140022be0
sub dword [rdi + 0x40], esi
add qword [rdi + 0x48], rbx
cmp dword [rdi + 0x40], 0
jne 0x1400347f1
mov r8, qword [rdi + 0x38]
xor edx, edx
mov rcx, qword [0x1401683f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rdi + 0x38], 0
mov rbx, qword [rsp + 0x30]
movsxd rax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x38
cmp dword [rcx], 1
mov r10, rdx
jne 0x14003481f
mov rcx, qword [rcx + 8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140034857
mov al, byte [rcx + 0x20]
lea r9, [rcx + 4]
neg al
mov rax, qword [rcx + 0x28]
sbb edx, edx
and edx, 0xc
add edx, 0x10
test rax, rax
je 0x14003483e
mov rcx, qword [rax]
jmp 0x140034842
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x28], edx
mov rdx, r10
mov qword [rsp + 0x20], r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
add rsp, 0x38
ret
Function at 0x140034860
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7a8]
sub rsp, 0x880
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rdi, rcx
xor esi, esi
mov rcx, qword [0x14016f3a0]
mov r15d, esi
call fcn.140037d14
mov rcx, qword [rdi]
lea r12d, [rsi + 1]
mov r14, rax
cmp word [rdi + 0x24], r12w
jne 0x140034901
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140034a73
lea rcx, [rdi + 0x30]
lea edx, [rsi + 0x28]
call fcn.140038a64
mov rcx, rax
mov r15d, r12d
mov dword [rax], r12d
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [rdi + 0x28]
mov qword [r14 + 8], rax
mov qword [r14], rcx
jmp 0x140034a73
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov ebx, reloc.WS2_32.dll_recv
mov r8d, 0x800
cmp word [rdi + 0x26], si
je 0x140034933
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
jmp 0x140034946
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov r12d, eax
test eax, eax
jle 0x140034a73
mov rsi, qword [rdi + 0x30]
mov r15d, 2
xor eax, eax
test rsi, rsi
je 0x1400349a6
lea rcx, [rsi + 0x14]
cmp word [rdi + 0x26], ax
je 0x140034983
movsxd r8, dword [rsp + 0x30]
lea rdx, [rsp + 0x48]
jmp 0x14003498d
movsxd r8, dword [rsp + 0x34]
lea rdx, [rsp + 0x38]
call fcn.140021c60
test eax, eax
je 0x14003499b
mov rsi, qword [rsi]
jmp 0x140034966
mov rax, rsi
add rbx, rax
test rsi, rsi
jne 0x1400349f5
mov edx, 0x60
lea rcx, [rdi + 0x30]
call fcn.140038a64
mov rbx, rax
xor r8d, r8d
mov dword [rax], r15d
mov qword [rax + 0x28], rdi
mov al, byte [rdi + 0x26]
mov byte [rbx + 0x20], al
cmp word [rdi + 0x26], r8w
je 0x1400349eb
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx + 4], xmm0
movsd xmm1, qword [rsp + 0x58]
movsd qword [rbx + 0x14], xmm1
mov eax, dword [rsp + 0x60]
mov dword [rbx + 0x1c], eax
jmp 0x1400349f5
movups xmm0, xmmword [rsp + 0x38]
movdqu xmmword [rbx + 4], xmm0
mov r8, qword [rbx + 0x38]
movsxd rsi, r12d
test r8, r8
jne 0x140034a31
mov rcx, qword [0x1401683f0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rsi
mov dword [rbx + 0x40], r12d
mov rcx, rax
mov qword [rbx + 0x38], rax
lea rdx, [rsp + 0x70]
mov qword [rbx + 0x48], rax
call fcn.140022be0
jmp 0x140034a68
mov ecx, dword [rbx + 0x40]
mov edx, 8
add ecx, r12d
movsxd r9, ecx
mov rcx, qword [0x1401683f0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movsxd rcx, dword [rbx + 0x40]
lea rdx, [rsp + 0x70]
add rcx, rax
mov qword [rbx + 0x38], rax
mov r8, rsi
call fcn.140022be0
add dword [rbx + 0x40], r12d
mov qword [r14], rbx
mov rcx, qword [rdi + 0x28]
mov qword [r14 + 8], rcx
mov eax, r15d
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.1400acab0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140034c68
Capabilities:
Set socket configuration

Disassembly:
xor r9d, r9d
lea r8d, [r9 + 1]
jmp 0x140034c74
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, edx
mov rbx, rcx
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x140169a98]
mov r14d, r8d
mov ebp, edi
call fcn.140037f7c
mov rsi, rax
test rax, rax
je 0x140034dc0
cmp r12d, 0xffff
ja 0x140034da9
mov r15d, r14d
mov r13d, r14d
btr r15d, 0x1c
and r13d, 0x10000000
mov eax, r13d
cmove r15d, r14d
neg eax
lea eax, [rdi + 1]
sbb ecx, ecx
and ecx, 0x15
add ecx, 2
test r15d, r15d
cmove r15d, eax
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140034da9
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x140034da0
mov rax, qword [rsp + 0x88]
lea r8, [rsi + 8]
mov ecx, edi
mov dword [rsp + 0x28], r12d
test r13d, r13d
mov qword [rsp + 0x20], rax
mov r9, r8
mov rdx, r14
setne cl
call fcn.140034de4
test eax, eax
je 0x140034da0
lea r12d, [rdi + 1]
cmp r15d, r12d
jne 0x140034d7c
lea edx, [rdi + 0x64]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
cmove ebp, r12d
test rbp, rbp
je 0x140034da0
test r13d, r13d
mov qword [rsi], r14
mov word [rsi + 0x24], r15w
mov rbp, rsi
setne dil
cmp rbx, 0xffffffffffffffff
mov word [rsi + 0x26], di
cmove rbx, rsi
mov qword [rsi + 0x28], rbx
jmp 0x140034dc0
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [0x140169a98]
cmp rbx, 0xffffffffffffffff
cmove rbx, rsi
mov rdx, rbx
call fcn.140037eb0
lea r11, [rsp + 0x40]
mov rax, rbp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
xor ebx, ebx
movsxd rdi, ecx
mov rsi, r8
cmp edx, 0xffffffff
jne 0x140034f12
lea r8, [rax + 0x10]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x140034f55
mov r8d, edx
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140034f49
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
and eax, 0xfffffffa
neg eax
sbb ebx, ebx
not ebx
and ebx, 0xfffffffe
jmp 0x140034f55
test eax, eax
mov ecx, 0xfffffffe
cmove eax, ecx
mov ebx, eax
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140036620
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x14016f3c0]
call fcn.140037f1c
mov rbx, rax
test rax, rax
je 0x140036673
cmp qword [rax + 8], 0
je 0x140036652
cmp dword [rax + 0x1c], 0
jne 0x140036652
mov rcx, rax
call fcn.140036a00
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x38]
shl rcx, 0x20
mov eax, eax
or rax, rcx
add rsp, 0x20
pop rbx
ret
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x140036960
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x14016f3c0]
jne 0x140036980
add rsp, 0x30
pop rdi
jmp fcn.140038158
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140037f1c
mov rbx, rax
test rax, rax
je 0x1400369f5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400369dd
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x1400369ca
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1401683f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016f3c0]
mov rdx, rdi
call fcn.140037eb0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140036a00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140036a44
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret