joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180059d60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
movzx r10d, byte [rdx]
mov edi, 1
mov r9d, r10d
mov rbx, rdx
and r9d, edi
mov r11d, ecx
cmp ecx, 0x100
jge 0x180059db1
test r10b, 2
je 0x180059db1
mov eax, r11d
and ecx, 7
cdq
mov r8d, edi
and edx, 7
shl r8d, cl
add eax, edx
sar eax, 3
add eax, edi
cdqe
test byte [rax + rbx], r8b
jne 0x180059e2d
lea rax, [rbx + 1]
test r10b, 2
lea rdx, [rax + 0x20]
cmove rdx, rax
movzx eax, byte [rdx]
test eax, eax
je 0x180059e30
lea r14, [0x180000000]
add rdx, rdi
cmp eax, edi
jne 0x180059e43
movzx r8d, byte [rdx]
add rdx, rdi
mov eax, r8d
cmp r8d, 0xc0
jb 0x180059e24
and eax, 0x3f
movzx r10d, byte [rax + r14 + 0x61be0]
and r8d, dword [r14 + r10*4 + 0x61bc0]
lea ecx, [r10 + r10*2]
add ecx, ecx
shl r8d, cl
test r10d, r10d
je 0x180059e24
movzx eax, byte [rdx]
sub ecx, 6
and eax, 0x3f
sub r10d, edi
shl eax, cl
add rdx, rdi
or r8d, eax
test r10d, r10d
jg 0x180059e0b
cmp r11d, r8d
jne 0x180059ef2
xor r9d, edi
mov rbx, qword [rsp + 8]
mov eax, r9d
mov rdi, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
ret
cmp eax, 2
jne 0x180059ef2
movzx r10d, byte [rdx]
add rdx, rdi
mov eax, r10d
cmp r10d, 0xc0
jb 0x180059e9a
and eax, 0x3f
movzx r8d, byte [rax + r14 + 0x61be0]
and r10d, dword [r14 + r8*4 + 0x61bc0]
lea ecx, [r8 + r8*2]
add ecx, ecx
shl r10d, cl
test r8d, r8d
je 0x180059e9a
movzx eax, byte [rdx]
sub ecx, 6
and eax, 0x3f
sub r8d, edi
shl eax, cl
add rdx, rdi
or r10d, eax
test r8d, r8d
jg 0x180059e81
movzx r8d, byte [rdx]
add rdx, rdi
mov eax, r8d
cmp r8d, 0xc0
jb 0x180059ee4
and eax, 0x3f
movzx ebx, byte [rax + r14 + 0x61be0]
and r8d, dword [r14 + rbx*4 + 0x61bc0]
lea ecx, [rbx + rbx*2]
add ecx, ecx
shl r8d, cl
test ebx, ebx
je 0x180059ee4
movzx eax, byte [rdx]
sub ecx, 6
and eax, 0x3f
sub ebx, edi
shl eax, cl
add rdx, rdi
or r8d, eax
test ebx, ebx
jg 0x180059ecd
cmp r11d, r10d
jl 0x180059ef2
cmp r11d, r8d
jle 0x180059e2d
movzx eax, byte [rdx]
test eax, eax
je 0x180059e30
jmp 0x180059dcf
Function at 0x4031a6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov eax, ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov byte [rbp + 0x10], al
mov byte [rbp - 1], 0
jmp 0x403240
mov byte [rbp - 2], 0
jmp 0x403236
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx r8d, byte [rax]
movzx eax, byte [rbp + 0x10]
lea edx, [rax*4]
movzx eax, byte [rbp - 1]
add eax, edx
lea edx, [rax*4]
movzx eax, byte [rbp - 2]
add eax, edx
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
movzx ecx, byte [rax]
movzx eax, byte [rbp - 1]
movzx edx, byte [rbp - 2]
xor r8d, ecx
mov rcx, qword [rbp + 0x18]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
mov byte [rax], r8b
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x4031c7
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x4031c1
nop
add rsp, 0x10
pop rbp
ret

Function at 0x403251
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x4032c5
mov byte [rbp - 2], 0
jmp 0x4032bb
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx r9d, byte [rbp - 2]
movzx ecx, byte [rbp - 1]
movsxd rdx, eax
lea rax, str.cw
movzx edx, byte [rdx + rax]
mov r8, qword [rbp + 0x10]
movsxd rcx, ecx
movsxd rax, r9d
shl rax, 2
add rax, r8
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x403269
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x403263
nop
add rsp, 0x10
pop rbp
ret

Function at 0x403d7b
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov byte [rbp - 1], 0
jmp 0x403def
mov byte [rbp - 2], 0
jmp 0x403de5
movzx eax, byte [rbp - 2]
movzx edx, byte [rbp - 1]
mov rcx, qword [rbp + 0x10]
movsxd rdx, edx
cdqe
shl rax, 2
add rax, rcx
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
movzx r9d, byte [rbp - 2]
movzx ecx, byte [rbp - 1]
movsxd rdx, eax
lea rax, [0x004c5880]
movzx edx, byte [rdx + rax]
mov r8, qword [rbp + 0x10]
movsxd rcx, ecx
movsxd rax, r9d
shl rax, 2
add rax, r8
add rax, rcx
mov byte [rax], dl
add byte [rbp - 2], 1
cmp byte [rbp - 2], 3
jbe 0x403d93
add byte [rbp - 1], 1
cmp byte [rbp - 1], 3
jbe 0x403d8d
nop
add rsp, 0x10
pop rbp
ret

Function at 0x404026
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 1], 0
jmp 0x40406f
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx r8d, byte [rax]
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx ecx, byte [rax]
movzx edx, byte [rbp - 1]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add byte [rbp - 1], 1
cmp byte [rbp - 1], 0xf
jbe 0x40403c
nop
add rsp, 0x10
pop rbp
ret
Function at 0x4047e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004c8624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x404968
mov rax, qword [0x004c8628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40482c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4048b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x404810
mov rcx, rbx
call fcn.00405480
test rax, rax
mov r12, rax
je 0x40499d
mov rax, qword [0x004c8628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004055b0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004c8628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x404980
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4048ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x404910
add dword [0x004c8624], 1
cmp edi, 8
jae 0x4048e3
test dil, 4
jne 0x404954
test edi, edi
je 0x4048d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40496f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4048d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4048fc
jmp 0x4048d8
add rsi, qword [0x004c8628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4048ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00405980
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4048d8
xor esi, esi
jmp 0x404837
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4048d8
mov rax, qword [0x004c8628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00405980
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00405980
nop
nop dword [rax]

Function at 0x4050f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004c8900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004c88e0]
test rbx, rbx
je 0x405144
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40513b
test rsi, rsi
je 0x40513b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x405120
lea rcx, [0x004c8900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x405480
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004c5ce0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4054ed
mov rcx, r8
call fcn.00405360
test eax, eax
je 0x4054ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4054ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4054e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4054ef
add rax, 0x28
cmp rax, r9
jne 0x4054d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x405980
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00405840
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00405840
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.00401530
Function at 0x180003300
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1802380a6]
call fcn.180140630
mov rax, qword [rbp + 0x178]
sub rax, 0x10000
mov rcx, rax
call fcn.1800035e0
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x170]
cmp qword [rbp + 8], rax
jbe 0x180003438
mov rax, qword [section..data]
cmp qword [rbp + 8], rax
jb 0x1800033a2
mov rax, qword [0x1801b1008]
cmp qword [rbp + 8], rax
ja 0x1800033a2
mov rax, qword [rbp + 8]
sub rax, 0x8000000
mov qword [rbp + 8], rax
jmp 0x180003367
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov r8d, 0x30
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800033ce
jmp 0x180003438
cmp dword [rbp + 0x48], 0x10000
jne 0x18000341d
cmp qword [rbp + 0x40], 0x10000
jb 0x18000341d
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 0x18000340d
mov rax, qword [rbp + 0x78]
jmp 0x18000343a
mov rax, qword [rbp + 8]
sub rax, 0x10000
mov qword [rbp + 8], rax
jmp 0x180003433
mov rax, qword [rbp + 0x30]
sub rax, 0x10000
mov rcx, rax
call fcn.1800035e0
mov qword [rbp + 8], rax
jmp 0x180003367
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014c4d0]
call fcn.180140400
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x180003470
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1802380a6]
call fcn.180140630
mov rcx, qword [rbp + 0x170]
call fcn.180003640
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x178]
cmp qword [rbp + 8], rax
jae 0x1800035a3
mov rax, qword [section..data]
cmp qword [rbp + 8], rax
jb 0x180003509
mov rax, qword [0x1801b1008]
cmp qword [rbp + 8], rax
ja 0x180003509
mov rax, qword [rbp + 8]
add rax, 0x8000000
mov qword [rbp + 8], rax
jmp 0x1800034ce
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov r8d, 0x30
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003535
jmp 0x1800035a3
cmp dword [rbp + 0x48], 0x10000
jne 0x180003584
cmp qword [rbp + 0x40], 0x10000
jb 0x180003584
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 0x180003574
mov rax, qword [rbp + 0x78]
jmp 0x1800035a5
mov rax, qword [rbp + 8]
add rax, 0x10000
mov qword [rbp + 8], rax
jmp 0x18000359e
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003640
mov qword [rbp + 8], rax
jmp 0x1800034ce
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014c470]
call fcn.180140400
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x1800048c0
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x1802380a6]
call fcn.180140630
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 0x180004943
xor al, al
jmp 0x1800049da
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 0x180004969
xor al, al
jmp 0x1800049da
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 0x1800049d2
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 0x1800049d2
mov al, 1
jmp 0x1800049da
jmp 0x1800049d8
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014c350]
call fcn.180140400
mov rax, rdi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret

Function at 0x180004a10
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.180140630
mov rax, qword [rbp + 0x160]
cmp dword [rax], 0x52727464
je 0x180004a45
xor eax, eax
jmp 0x180004ad4
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 0x180004a7e
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0x2a9
jae 0x180004acf
movsxd rax, dword [rbp + 0x64]
imul rax, rax, 0x60
mov rcx, qword [rbp + 0x48]
cmp qword [rcx + rax + 0x48], 0
je 0x180004acd
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 0x180004ac9
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 0x180004acd
xor eax, eax
jmp 0x180004ad4
jmp 0x180004a76
mov eax, 1
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x180004db0
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1802380a6]
call fcn.180140630
mov rax, qword [0x18021f8f0]
mov qword [rbp + 8], rax
jmp 0x180004e06
mov rax, qword [rbp + 8]
mov rax, qword [rax + 8]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180004e34
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 0x180004e32
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180004e36
jmp 0x180004dfa
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014c3b0]
call fcn.180140400
mov rax, rdi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x180005ab0
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1802380a6]
call fcn.180140630
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18021f908], eax
je 0x180005b05
mov eax, 0x10dd
jmp 0x180005c77
mov rax, qword [0x18021f920]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180005bcf
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]
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
jne 0x180005b71
mov rax, qword [rbp + 8]
cmp qword [rax + 0x20], 0
je 0x180005b71
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.180003e90
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.1801403a0
cmp qword [rbp + 0x168], 0
jne 0x180005baf
mov qword [rbp + 0x198], 0
jmp 0x180005bc2
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 0x180005b10
mov qword [0x18021f920], 0
call fcn.180004ae0
mov rax, qword [0x18021f918]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x180005c60
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
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.1801403a0
cmp qword [rbp + 0x188], 0
jne 0x180005c40
mov qword [rbp + 0x198], 0
jmp 0x180005c53
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 0x180005bea
mov qword [0x18021f918], 0
mov dword [0x18021f908], 0
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014c000]
call fcn.180140400
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x180006280
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.180140630
cmp dword [0x18021f90c], 0
je 0x1800062b3
mov eax, dword [0x18021f90c]
jmp 0x1800063ab
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp qword [rbp + 0x160], rax
jne 0x1800062c9
xor eax, eax
jmp 0x1800063ab
mov ecx, reloc.WS2_32.dll_recv
call fcn.180140350
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x180006361
mov dword [rbp + 4], 8
cmp qword [rbp + 0x28], 0
je 0x180006348
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x128], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rbp + 0x128]
call fcn.1801403a0
cmp qword [rbp + 0x128], 0
jne 0x18000632d
mov qword [rbp + 0x138], 0
jmp 0x180006340
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 [0x18021f90c], eax
mov qword [0x18021f910], 0
mov eax, dword [rbp + 4]
jmp 0x1800063ab
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180006381
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x1800062f3
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x160]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [0x18021f918]
mov qword [rax], rcx
mov rax, qword [rbp + 0x28]
mov qword [0x18021f918], rax
xor eax, eax
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x180009840
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1802381de]
call fcn.180140630
mov edx, 8
lea rcx, [rbp + 8]
call fcn.18000e120
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.18000aac0
nop
lea rax, [0x1800092f0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.180010c20
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 0x18000991a
lea rcx, [rbp + 8]
call fcn.180011d70
jmp 0x180009933
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.18000bb40
lea rcx, [rbp - 0x30]
lea rdx, [0x18014d3f0]
call fcn.180140400
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x180009970
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1802381de]
call fcn.180140630
mov edx, 8
lea rcx, [rbp + 8]
call fcn.18000e0e0
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.18000aa10
nop
lea rax, [0x180009220]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.180010be0
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 0x180009a4a
lea rcx, [rbp + 8]
call fcn.180011d20
jmp 0x180009a63
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.18000bad0
lea rcx, [rbp - 0x30]
lea rdx, [0x18014d390]
call fcn.180140400
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret