joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002390
Capabilities:
Enumerate pe sections

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

Function at 0x1400023e0
Capabilities:
Parse pe header

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

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

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

Function at 0x140002500
Capabilities:
Parse pe header

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

Function at 0x140002540
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400097e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002560
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002568
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002560
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400025b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025a7
test rcx, rcx
je 0x140002560
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002598
xor eax, eax
ret
Function at 0x1400025c0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400097e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400026b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002715
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002728
add rdx, 0x28
cmp rdx, r10
jne 0x140002700
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002737
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002747
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000271e
test ecx, ecx
jg 0x140002730
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180003700
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1802380a6]
call fcn.180141ee0
nop
mov rax, qword [rbp + 0x178]
sub rax, 0x10000
mov rcx, rax
call fcn.1800039e0
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x170]
cmp qword [rbp + 8], rax
jbe 0x18000383a
mov rax, qword [section..data]
cmp qword [rbp + 8], rax
jb 0x1800037a3
mov rax, qword [0x1801b1008]
cmp qword [rbp + 8], rax
ja 0x1800037a3
mov rax, qword [rbp + 8]
sub rax, 0x8000000
mov qword [rbp + 8], rax
jmp 0x180003768
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
nop
mov r8d, 0x30
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800037d0
jmp 0x18000383a
cmp dword [rbp + 0x48], 0x10000
jne 0x18000381f
cmp qword [rbp + 0x40], 0x10000
jb 0x18000381f
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x18000380f
mov rax, qword [rbp + 0x78]
jmp 0x18000383c
mov rax, qword [rbp + 8]
sub rax, 0x10000
mov qword [rbp + 8], rax
jmp 0x180003835
mov rax, qword [rbp + 0x30]
sub rax, 0x10000
mov rcx, rax
call fcn.1800039e0
mov qword [rbp + 8], rax
jmp 0x180003768
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014d430]
call fcn.180141cb0
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x180003870
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1802380a6]
call fcn.180141ee0
nop
mov rcx, qword [rbp + 0x170]
call fcn.180003a50
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x178]
cmp qword [rbp + 8], rax
jae 0x1800039a5
mov rax, qword [section..data]
cmp qword [rbp + 8], rax
jb 0x18000390a
mov rax, qword [0x1801b1008]
cmp qword [rbp + 8], rax
ja 0x18000390a
mov rax, qword [rbp + 8]
add rax, 0x8000000
mov qword [rbp + 8], rax
jmp 0x1800038cf
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
nop
mov r8d, 0x30
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003937
jmp 0x1800039a5
cmp dword [rbp + 0x48], 0x10000
jne 0x180003986
cmp qword [rbp + 0x40], 0x10000
jb 0x180003986
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
je 0x180003976
mov rax, qword [rbp + 0x78]
jmp 0x1800039a7
mov rax, qword [rbp + 8]
add rax, 0x10000
mov qword [rbp + 8], rax
jmp 0x1800039a0
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003a50
mov qword [rbp + 8], rax
jmp 0x1800038cf
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014d3d0]
call fcn.180141cb0
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x180004ce0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x1802380a6]
call fcn.180141ee0
nop
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180004d64
xor al, al
jmp 0x180004dfb
mov rax, qword [rbp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp dword [rax], 0x4550
je 0x180004d8a
xor al, al
jmp 0x180004dfb
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rbp + 0x78]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x58]
add rcx, rax
mov rax, rcx
cmp qword [rbp + 0x1b8], rax
jb 0x180004df3
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rbp + 0x78]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x58]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rbp + 0x78]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rbp + 0x1b8], rax
jae 0x180004df3
mov al, 1
jmp 0x180004dfb
jmp 0x180004df9
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014d2b0]
call fcn.180141cb0
mov rax, rdi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret

Function at 0x180004e30
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1802380a6]
call fcn.180141ee0
nop
mov rax, qword [rbp + 0x160]
cmp dword [rax], 0x52727464
je 0x180004e66
xor eax, eax
jmp 0x180004ef5
mov rax, qword [rbp + 0x160]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
add rax, 0x10000
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x160]
add rax, 0x60
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x180004e9f
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0x2a9
jae 0x180004ef0
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
cmp qword [rcx + rax + 0x48], 0
je 0x180004eee
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 8]
cmp qword [rcx + rax + 0x48], rdx
jb 0x180004eea
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x28]
cmp qword [rcx + rax + 0x48], rdx
jb 0x180004eee
xor eax, eax
jmp 0x180004ef5
jmp 0x180004e97
mov eax, 1
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1800051e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, send
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1802380a6]
call fcn.180141ee0
nop
mov rax, qword [0x18021f860]
mov qword [rbp + 8], rax
jmp 0x180005237
mov rax, qword [rbp + 8]
mov rax, qword [rax + 8]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180005265
lea r9, [rbp + 0x24]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180005263
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180005267
jmp 0x18000522b
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014d310]
call fcn.180141cb0
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x180005f20
Capabilities:
Resume thread

Disassembly:
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1802380a6]
call fcn.180141ee0
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18021f878], eax
je 0x180005f76
mov eax, 0x10dd
jmp 0x1800060ec
mov rax, qword [0x18021f890]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180006042
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rbp + 0x24]
mov rcx, qword [rbp + 8]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
jne 0x180005fe4
mov rax, qword [rbp + 8]
cmp qword [rax + 0x20], 0
je 0x180005fe4
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.1800042a0
nop
mov rax, qword [rbp + 8]
mov qword [rax + 0x20], 0
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x168], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x168]
call fcn.180141c50
cmp qword [rbp + 0x168], 0
jne 0x180006022
mov qword [rbp + 0x198], 0
jmp 0x180006035
mov qword [rbp + 8], 0x8123
mov rax, qword [rbp + 8]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 8], rax
jmp 0x180005f81
mov qword [0x18021f890], 0
call fcn.180004f00
nop
mov rax, qword [0x18021f888]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x1800060d5
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x188], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rbp + 0x188]
call fcn.180141c50
cmp qword [rbp + 0x188], 0
jne 0x1800060b5
mov qword [rbp + 0x198], 0
jmp 0x1800060c8
mov qword [rbp + 0x68], 0x8123
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x68], rax
jmp 0x18000605e
mov qword [0x18021f888], 0
mov dword [0x18021f878], 0
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014cf60]
call fcn.180141cb0
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x180006700
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1802380a6]
call fcn.180141ee0
nop
cmp dword [0x18021f87c], 0
je 0x180006734
mov eax, dword [0x18021f87c]
jmp 0x18000682c
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp qword [rbp + 0x160], rax
jne 0x18000674a
xor eax, eax
jmp 0x18000682c
mov ecx, reloc.WS2_32.dll_recv
call fcn.180141bf0
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1800067e2
mov dword [rbp + 4], 8
cmp qword [rbp + 0x28], 0
je 0x1800067c9
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x128], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rbp + 0x128]
call fcn.180141c50
cmp qword [rbp + 0x128], 0
jne 0x1800067ae
mov qword [rbp + 0x138], 0
jmp 0x1800067c1
mov qword [rbp + 0x28], 0x8123
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x28], 0
mov eax, dword [rbp + 4]
mov dword [0x18021f87c], eax
mov qword [0x18021f880], 0
mov eax, dword [rbp + 4]
jmp 0x18000682c
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180006802
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x180006774
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x160]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [0x18021f888]
mov qword [rax], rcx
mov rax, qword [rbp + 0x28]
mov qword [0x18021f888], rax
xor eax, eax
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x180009ba0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1802381e0]
call fcn.180141ee0
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.18000e4a0
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.18000ad80
nop
lea rax, [0x180009630]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.180011010
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x180009c7c
lea rcx, [rbp + 8]
call fcn.180012260
nop
jmp 0x180009c95
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140D.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rbp + 8]
call fcn.18000bdf0
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x18014e220]
call fcn.180141cb0
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x180009cd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1802381e0]
call fcn.180141ee0
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.18000e460
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.18000acd0
nop
lea rax, [0x180009550]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.180010fd0
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x180009dac
lea rcx, [rbp + 8]
call fcn.180012210
nop
jmp 0x180009dc5
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140D.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rbp + 8]
call fcn.18000bd70
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x18014e1c0]
call fcn.180141cb0
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x18000eed0
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Terminate process

Disassembly:
push rbp
push rdi
sub rsp, 0x738
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x708], rax
lea rcx, [0x18023820c]
call fcn.180141ee0
nop
lea rax, str.127.0.0.1
mov qword [rbp + 8], rax
mov dword [rbp + 0x24], 0x63df
lea rdx, [rbp + 0x50]
mov cx, 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x18000ef36
jmp 0x18000f0e7
xor r8d, r8d
mov edx, 1
mov ecx, 2
call sub.WS2_32.dll_socket
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0xffffffffffffffff
jne 0x18000ef64
call sub.WS2_32.dll_WSACleanup
nop
jmp 0x18000f0e7
mov eax, 2
mov word [rbp + 0x228], ax
mov rcx, qword [rbp + 8]
call sub.WS2_32.dll_inet_addr
mov dword [rbp + 0x22c], eax
mov cx, 0x63df
call sub.WS2_32.dll_htons
mov word [rbp + 0x22a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x228]
mov rcx, qword [rbp + 0x208]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x18000efc9
mov rcx, qword [rbp + 0x208]
call sub.WS2_32.dll_closesocket
nop
call sub.WS2_32.dll_WSACleanup
nop
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea rdx, [rbp + 0x618]
lea rcx, [rbp + 0x5f4]
call fcn.18000c430
mov rcx, rax
call fcn.18000c330
mov qword [rbp + 0x258], rax
mov rcx, qword [rbp + 0x258]
call sub.ucrtbased.dll_strlen
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rbp + 0x258]
mov rcx, qword [rbp + 0x208]
call sub.WS2_32.dll_send
nop
xor eax, eax
cmp eax, 1
je 0x18000f0e7
xor r9d, r9d
mov r8d, 0xff
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x208]
call sub.WS2_32.dll_recv
mov dword [rbp + 0x394], eax
cmp dword [rbp + 0x394], 0
jle 0x18000f0cd
movsxd rax, dword [rbp + 0x394]
mov qword [rbp + 0x668], rax
cmp qword [rbp + 0x668], 0x100
jae 0x18000f068
jmp 0x18000f06e
call fcn.180142970
nop
mov rax, qword [rbp + 0x668]
mov byte [rbp + rax + 0x280], 0
lea rdx, [rbp + 0x6b0]
lea rcx, [rbp + 0x684]
call fcn.18000c520
mov rcx, rax
call fcn.18000c3b0
mov rdx, rax
lea rcx, [rbp + 0x280]
call sub.ucrtbased.dll_strcmp
test eax, eax
je 0x18000f0bc
mov dl, 1
lea rcx, [0x18021f91e]
call fcn.180012660
nop
jmp 0x18000f0cb
mov dl, 1
lea rcx, [0x18021f91e]
call fcn.180012660
nop
jmp 0x18000f0d6
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov ecx, socket
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x18000f011
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.180141cb0
mov rcx, qword [rbp + 0x708]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x718]
pop rdi
pop rbp
ret