joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400804d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
lea rdi, [rsp + 0x20]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x220]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x208], rax
mov dword [rsp + 0x1e4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.1400f5d10
lea r8, [rsp + 0x1e4]
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14008059e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x1f4], eax
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, dword [rsp + 0x1f4]
call fcn.1400a2000
mov r9, rax
mov r8d, dword [rsp + 0x1f4]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x220]
call fcn.14007d9d0
jmp 0x14008060f
mov r9, qword [rsp + 0x238]
mov r8, qword [rsp + 0x230]
mov edx, dword [rsp + 0x1e4]
lea rcx, [rsp + 0x150]
call fcn.14007fe90
movzx eax, al
test eax, eax
jne 0x14008060f
call fcn.1400fdde8
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, dword [rax]
call fcn.1400a2000
mov qword [rsp + 0x200], rax
call fcn.1400fdde8
mov rcx, qword [rsp + 0x200]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x220]
call fcn.14007d9d0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400f29e0
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.1400f1e20
add rsp, 0x210
pop rdi
ret
Function at 0x140080d50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xb44]
test eax, eax
je 0x140080dad
mov dword [rsp + 0xc0], 1
jmp 0x140080db8
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140080e0e
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, qword [rsp + 0xe0]
call fcn.14007d890
jmp 0x140080ee6
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xaa4]
call fcn.1400824b0
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xaa8]
call fcn.1400824b0
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, listen
lea r8, [rsp + 0x78]
mov edx, 0x98000004
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140080ee6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, qword [rsp + 0xe0]
call fcn.14007d890
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1400f29e0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400f1e20
add rsp, 0xd0
pop rdi
ret
Function at 0x140082290
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140082335
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400a2000
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.14007d890
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400f29e0
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400f1e20
add rsp, 0x180
pop rdi
ret

Function at 0x140082620
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x40]
call fcn.140082480
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call fcn.14010f75c
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x140082b80
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x140082c57
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x140082bfd
mov eax, 2
jmp 0x140082d0f
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x140082c47
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x140082c57
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x140082d0f
call fcn.1400d9f10
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x140082c79
mov eax, dword [rsp + 0x1f8]
jmp 0x140082d0f
lea rcx, str.iphlpapi.dll
call fcn.140082db0
mov qword [0x140235e60], rax
cmp qword [0x140235e60], 0
je 0x140082ccc
lea rdx, str.if_nametoindex
mov rcx, qword [0x140235e60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x140082ccc
mov rax, qword [rsp + 0x200]
mov qword [0x140235e58], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1400d8400
movzx eax, al
test eax, eax
je 0x140082cf9
mov byte [0x140237b20], 1
jmp 0x140082d00
mov byte [0x140237b20], 0
lea rcx, [0x140237b28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400f29e0
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400f1e20
add rsp, 0x220
pop rdi
ret
Function at 0x140082db0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140082ded
xor eax, eax
jmp 0x140082f89
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x140228814]
mov rcx, qword [rsp + 0x70]
call fcn.14010a560
test rax, rax
je 0x140082e59
cmp qword [rsp + 0x28], 0
je 0x140082e3a
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x140082e4a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x140082f84
cmp qword [rsp + 0x28], 0
je 0x140082e93
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140082e93
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x140082f84
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140082f84
mov rcx, qword [rsp + 0x70]
call fcn.140109a50
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
add rax, qword [rsp + 0x40]
mov rcx, rax
call qword [section..data]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140082f79
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140082f79
mov rcx, qword [rsp + 0x48]
call fcn.140109a50
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x140228838]
mov rcx, rax
call fcn.140109f00
mov rcx, qword [rsp + 0x48]
call fcn.140109a50
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.140109f00
cmp qword [rsp + 0x28], 0
je 0x140082f5f
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x140082f6f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
call qword [fcn.1401004bc]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x14008a300
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14008a3a1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400f29e0
add rsp, 0xa0
pop rdi
ret
Function at 0x140092030
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x70]
mov dword [rax + 0x1350], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b0]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1358], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1181]
test eax, eax
je 0x1400920a5
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1181]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x1b0]
cmp eax, ecx
jle 0x1400920bc
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x1b0]
mov byte [rax + 0x1181], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1190], 0
je 0x1400920f3
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1220], 0
jne 0x1400920f3
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x1a0
jne 0x1400920f3
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdb], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b0]
cmp eax, 0xa
jne 0x140092126
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.14007d890
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140080ae0
jmp 0x140092191
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b0]
cmp eax, 0x14
je 0x140092150
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x8c], 1
jne 0x14009216a
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x65
jne 0x14009216a
xor eax, eax
test eax, eax
jne 0x140092150
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x800]
mov dword [rax], 2
jmp 0x140092191
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x1b0]
cmp eax, 0xb
jl 0x140092191
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3d1]
test eax, eax
jne 0x140092191
xor eax, eax
test eax, eax
jne 0x14009218b
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0x64
jl 0x1400921b4
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x70], 0xc8
jge 0x1400921b4
mov dword [rsp + 0x28], 1
jmp 0x1400921bc
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x1400921cd
mov dword [rsp + 0x2c], 0
jmp 0x1400921d5
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xdc], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x70]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x140092221
cmp dword [rsp + 0x30], 0x130
je 0x140092207
jmp 0x140092246
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x580], 0
je 0x140092221
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x142c], 1
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdc], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x14009b830
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
cmp qword [rsp + 0x98], 0
je 0x14009b87d
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x14009b8bf
cmp qword [rsp + 0xa0], 0
je 0x14009b895
mov rax, qword [rsp + 0xa0]
cmp dword [rax], 0
jne 0x14009b8bf
cmp qword [rsp + 0xa8], 0
je 0x14009b8ad
mov rax, qword [rsp + 0xa8]
cmp dword [rax], 0
jne 0x14009b8bf
mov rcx, qword [rsp + 0xb0]
call fcn.14009b7b0
jmp 0x14009ba12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0xb0], 0
jge 0x14009b8df
mov qword [rsp + 0x48], 0
jmp 0x14009b958
cmp qword [rsp + 0xb0], 0
jle 0x14009b948
mov rax, qword [rsp + 0xb0]
cqo
mov ecx, 0x3e8
idiv rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
cqo
mov ecx, 0x3e8
idiv rcx
mov rax, rdx
imul rax, rax, 0x3e8
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x50], 0x7fffffff
jle 0x14009b936
mov qword [rsp + 0x50], 0x7fffffff
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x3c], eax
jmp 0x14009b958
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
cmp qword [rsp + 0xa8], 0
je 0x14009b97f
mov rax, qword [rsp + 0xa8]
cmp dword [rax], 0
je 0x14009b97f
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x60], rax
jmp 0x14009b988
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0xa0], 0
je 0x14009b9af
mov rax, qword [rsp + 0xa0]
cmp dword [rax], 0
je 0x14009b9af
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
jmp 0x14009b9b8
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x98], 0
je 0x14009b9df
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x14009b9df
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
jmp 0x14009b9e8
mov qword [rsp + 0x70], 0
mov eax, dword [rsp + 0x90]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400f29e0
mov rax, rdi
add rsp, 0x80
pop rdi
ret
Function at 0x1400a4b10
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.14008c5c0
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call fcn.14010f14c
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call fcn.14010f14c
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1400a4bf7
cmp qword [rsp + 0x58], 0
je 0x1400a4bcb
mov rcx, qword [rsp + 0x58]
call fcn.1401004bc
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1400a4bb0
cmp qword [rsp + 0x60], 0
je 0x1400a4bec
mov rcx, qword [rsp + 0x60]
call fcn.1401004bc
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1400a4bd1
jmp 0x1400a4cba
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.14008c5c0
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.14008c6d0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x1400a4c61
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x1400a4caa
cmp qword [rsp + 0x58], 0
je 0x1400a4c7c
mov rcx, qword [rsp + 0x58]
call fcn.1401004bc
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1400a4c61
cmp qword [rsp + 0x60], 0
je 0x1400a4c9d
mov rcx, qword [rsp + 0x60]
call fcn.1401004bc
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1400a4c82
mov eax, 1
jmp 0x1400a4cbc
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400a4b96
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400f29e0
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400f1e20
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x1400a5c10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call fcn.14010ce24
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400a5c6b
mov ecx, 0xffffffff
call fcn.1400a5d20
cmp qword [rsp + 0x30], rax
jne 0x1400a5c6f
xor eax, eax
jmp 0x1400a5c74
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ac190
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x94], 4
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0xf8]
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.1400f5d10
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400ac238
jmp 0x1400ac322
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400ac263
jmp 0x1400ac2fa
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400ac287
jmp 0x1400ac2fa
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x74]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400ac2b2
jmp 0x1400ac2fa
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x1400ac2c2
jmp 0x1400ac2fa
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8, qword [rsp + 0xf0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400ac2f0
jmp 0x1400ac2fa
xor eax, eax
test eax, eax
jne 0x1400ac238
cmp qword [rsp + 0x58], 0
je 0x1400ac30d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x38], 0
je 0x1400ac322
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.1400f29e0
add rsp, 0xd0
pop rdi
ret
Function at 0x1400ac3e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x8000
mov eax, dword [rsp + 0x34]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [fcn.1400fec4c]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400ac430
mov rcx, qword [rsp + 0x20]
call qword [fcn.1401004bc]
xor eax, eax
jmp 0x1400ac49b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400ac476
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x1400ac476
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x1400ac485
mov rcx, qword [rsp + 0x20]
call qword [fcn.1401004bc]
xor eax, eax
jmp 0x1400ac49b
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x1400ac496
mov rax, qword [rsp + 0x20]
jmp 0x1400ac49b
jmp 0x1400ac403
add rsp, 0x40
pop rdi
ret
Function at 0x1400bb1a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_60
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov rax, qword [0x140234cc0]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax + 0x1e8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
mov dword [rsp + 0xe4], 0x80
lea r8, [rsp + 0xe4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400bb25c
mov dword [rsp + 0xe4], 0x80
lea r8, [rsp + 0xe4]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
call fcn.140080740
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x1400bb299
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x120]
call fcn.14007d9d0
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400bb37e
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x120]
call fcn.14007d890
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x3da], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov qword [rcx + rax + 0x1e8], rdx
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.1400d7680
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x3ed], 1
mov rax, qword [rsp + 0x120]
cmp qword [rax + 0x288], 0
je 0x1400bb37c
mov dword [rsp + 0xf4], 0
mov dl, 1
mov rcx, qword [rsp + 0x120]
call fcn.1400604b0
mov r8d, 1
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x120]
mov rcx, qword [rax + 0x290]
mov rax, qword [rsp + 0x120]
call qword [rax + 0x288]
mov dword [rsp + 0xf4], eax
xor edx, edx
mov rcx, qword [rsp + 0x120]
call fcn.1400604b0
cmp dword [rsp + 0xf4], 0
je 0x1400bb37c
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
call fcn.1400baff0
mov eax, Ordinal_46
jmp 0x1400bb37e
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400f29e0
mov rax, rdi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400f1e20
add rsp, 0x110
pop rdi
ret