joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002680
Capabilities:
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x18003f674], 0
lea rdi, [0x18003f670]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x180002758
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x1800026b0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x180002792
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
mov ecx, eax
shr ecx, 8
mov eax, dword [rdi + rdx*4]
xor eax, ecx
sub r9d, 1
jne 0x180002770
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x1800027d3
nop
cmp r9b, 0x23
jne 0x1800027b3
cmp byte [r8], r9b
jne 0x1800027b3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
mov ecx, eax
inc r8
shr ecx, 8
mov eax, dword [rdi + rdx*4]
xor eax, ecx
test r9b, r9b
jne 0x1800027a0
not eax
pop rdi
ret
Function at 0x1800029c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x1800029d9
mov qword [r8], 0
lea rdx, [0x180034810]
call fcn.1800027e0
mov rbx, rax
test rax, rax
jne 0x1800029f8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002ab8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x180002ab8
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002ab8
mov rax, qword [0x18003f0c0]
mov rbp, rsi
test rax, rax
je 0x180002a55
inc dword [rax + 0x3e0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180002ab8
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x180002aa5
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18003f0c0]
test rax, rax
je 0x180002a9a
dec dword [rax + 0x3e0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180002ac1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x180002ab3
mov qword [rdi], rbp
mov rax, rsi
jmp 0x180002ac3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800047f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
movsxd r8, dword [rcx + 0x1e0]
mov r9, rdx
mov rax, qword [rcx + 0x1e8]
xor edx, edx
mov rcx, r9
mov r8d, dword [rax + r8*4 - 4]
jmp fcn.180002680
Function at 0x180011550
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x20
mov rbx, qword [0x18003f0c0]
xor esi, esi
mov r15, rcx
mov dword [rbx + 0x2db4], esi
test rcx, rcx
je 0x18001167a
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
lea rdi, [rbx + 0x2db8]
mov dword [rbx + 0x2db4], esi
mov r8d, dword [rdi + 4]
test r8d, r8d
jns 0x1800115b2
mov eax, r8d
mov rcx, rdi
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, r8d
test eax, eax
cmovg edx, eax
call fcn.1800125c0
mov r8d, dword [rdi + 4]
mov dword [rdi], esi
mov eax, esi
test r8d, r8d
jne 0x1800115c9
lea edx, [r8 + 8]
mov rcx, rdi
call fcn.1800125c0
mov eax, dword [rdi]
movsxd rcx, eax
mov ebp, esi
mov rax, qword [rdi + 8]
mov byte [rcx + rax], sil
inc dword [rdi]
cmp dword [rbx + 0x2dc8], esi
jle 0x18001161a
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax + rax]
mov r9, qword [rbx + 0x2dd0]
mov r8, rdi
add r9, r14
mov rcx, rbx
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rbx + 0x2dc8]
jl 0x1800115f0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
cmp qword [rdi + 8], rsi
je 0x180011629
mov esi, dword [rdi]
dec esi
mov rax, qword [rbx + 0x2dc0]
lea rdi, [0x18003f0b8]
test rax, rax
movsxd rsi, esi
lea rdx, [0x180034814]
mov rcx, r15
cmovne rdi, rax
call fcn.1800027e0
mov rbx, rax
test rax, rax
je 0x180011675
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbx
ret
Function at 0x18001c510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x18001c6c7
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x18001c5a6
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18001be80
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.18001b530
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x18001c597
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.180012290
mov dword [rbx + 0x80], 0
jmp 0x18001c6b3
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.18001a500
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18001fd70
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx eax, byte [rdx + 1]
mov rbx, rdx
movzx r8d, byte [rdx]
mov rdi, rcx
shl r8d, 8
add r8d, eax
movzx eax, byte [rdx + 2]
shl r8d, 8
add r8d, eax
movzx eax, byte [rdx + 3]
shl r8d, 8
add r8d, eax
cmp r8d, 0x57bc0000
jne 0x18001ffd9
movzx eax, byte [rdx + 5]
movzx ecx, byte [rdx + 4]
shl ecx, 8
add ecx, eax
movzx eax, byte [rdx + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [rdx + 7]
shl ecx, 8
add ecx, eax
jne 0x18001ffd9
movzx r14d, byte [rdx + 8]
add rbx, 0x10
movzx eax, byte [rdx + 9]
mov rcx, rbx
shl eax, 0x10
shl r14d, 0x18
add r14d, eax
mov qword [0x18003f5a8], rdx
movzx eax, byte [rdx + 0xa]
shl eax, 8
add r14d, eax
mov qword [0x18003f5b8], rdi
movzx eax, byte [rdx + 0xb]
add r14d, eax
mov qword [0x18003f5c0], rdi
mov ebp, r14d
add rbp, rdi
mov qword [0x18003f5b0], rbp
call fcn.18001fb10
mov rsi, rax
cmp rax, rbx
je 0x18001fe61
cmp qword [0x18003f5c0], rbp
ja 0x18001ffd9
mov rcx, rsi
mov rbx, rsi
call fcn.18001fb10
mov rsi, rax
cmp rax, rbx
jne 0x18001fe41
cmp byte [rsi], 5
jne 0x18001ffd9
cmp byte [rsi + 1], 0xfa
jne 0x18001ffd9
cmp qword [0x18003f5c0], rbp
jne 0x18001ffd9
mov eax, 0x5e6ea9af
mov ebx, r14d
mul r14d
xor r9d, r9d
mov ebp, r14d
shr edx, 0xb
mov ecx, 1
imul eax, edx, 0x15b0
sub ebx, eax
test r14d, r14d
je 0x18001ffa4
nop dword [rax + rax]
xor edx, edx
cmp ebx, 7
jbe 0x18001ff17
lea r8d, [rdx + 7]
nop dword [rax + rax]
movzx eax, byte [rdi]
add edx, 8
add ecx, eax
add r8d, 8
movzx eax, byte [rdi + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [rdi + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [rdi + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [rdi + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [rdi + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [rdi + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [rdi + 7]
add r9d, ecx
add ecx, eax
add rdi, 8
add r9d, ecx
cmp r8d, ebx
jb 0x18001fec0
xor r8d, r8d
xor r10d, r10d
cmp edx, ebx
jae 0x18001ff71
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x18001ff5b
mov eax, ebx
sub eax, edx
sub eax, 2
shr eax, 1
inc eax
mov r11d, eax
lea edx, [rdx + rax*2]
nop dword [rax + rax]
movzx eax, byte [rdi]
add ecx, eax
movzx eax, byte [rdi + 1]
add r8d, ecx
add rdi, 2
add ecx, eax
add r10d, ecx
sub r11, 1
jne 0x18001ff40
cmp edx, ebx
jae 0x18001ff6a
movzx eax, byte [rdi]
add ecx, eax
add r9d, ecx
inc rdi
lea eax, [r10 + r8]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
sub ebp, ebx
mov ebx, 0x15b0
jne 0x18001feb0
movzx r8d, byte [rsi + 2]
movzx eax, byte [rsi + 3]
movzx edx, byte [rsi + 4]
shl r8d, 0x18
shl edx, 8
shl eax, 0x10
add r8d, eax
shl r9d, 0x10
add r8d, edx
add r9d, ecx
movzx edx, byte [rsi + 5]
add r8d, edx
cmp r9d, r8d
jne 0x18001ffd9
mov eax, r14d
jmp 0x18001ffdb
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18002da90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18003e010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
test edx, edx
je 0x18002dc3b
cmp edx, 1
jne 0x18002dcc5
call qword [sym.imp.KERNEL32.DLL_DisableThreadLibraryCalls]
lea rdi, [0x18003f400]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x18002dae3
test rax, rax
je 0x18002db01
cmp byte [rax + rdi], 0x5c
je 0x18002dc11
sub rax, 1
jne 0x18002daf1
mov qword [rsp + 0x58], rbp
xor ecx, ecx
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rdi, rax
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rax + 0x90]
add rbx, rax
cmp dword [rbx + 0xc], 0
je 0x18002db8b
nop word [rax + rax]
mov eax, dword [rbx + 0x10]
xor ebp, ebp
xor esi, esi
cmp qword [rax + rdi], rsi
je 0x18002db81
xor ecx, ecx
nop
mov eax, dword [rbx]
lea rdx, [rdi + 2]
add rax, rcx
mov rax, qword [rax + rdi]
add rdx, rax
js 0x18002db67
lea rcx, [0x180038da8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x18002dc29
mov eax, dword [rbx + 0x10]
inc rsi
inc ebp
lea rcx, [rsi*8]
add rax, rcx
cmp qword [rax + rdi], 0
jne 0x18002db40
add rbx, 0x14
cmp dword [rbx + 0xc], 0
jne 0x18002db30
xor ebx, ebx
mov rsi, qword [rsp + 0x60]
lea rdi, [0x18002da20]
mov rbp, qword [rsp + 0x58]
cmp qword [rbx], rdi
je 0x18002dbe7
mov edx, 8
mov dword [rsp + 0x30], 4
lea r9, [rsp + 0x34]
mov rcx, rbx
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
mov qword [rbx], rdi
mov edx, 8
mov r8d, dword [rsp + 0x34]
mov rcx, rbx
mov qword [0x18003f250], rax
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov qword [rsp + 0x28], 0
lea r8, [0x18002d6b0]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
jmp 0x18002dcc5
inc rax
cmp rax, 0x140
jae 0x18002dce2
mov byte [rax + rdi], 0
jmp 0x18002db01
mov ecx, dword [rbx + 0x10]
add rcx, rdi
movsxd rdx, ebp
lea rbx, [rcx + rdx*8]
jmp 0x18002db8d
call fcn.1800311a0
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov rcx, rax
call fcn.1800316d0
lea rdx, [0x18002b1d0]
lea rcx, [0x18003f320]
call fcn.180030e00
lea rdx, [0x18002b150]
lea rcx, [0x18003f2c8]
call fcn.180030e00
lea rdx, [0x18002c420]
lea rcx, [0x18003f340]
call fcn.180030e00
lea rdx, [0x18002c440]
lea rcx, [0x18003f220]
call fcn.180030e00
lea rdx, [0x18002c250]
lea rcx, [0x18003f308]
call fcn.180030e00
lea rdx, [0x18002c430]
lea rcx, [0x18003f2e8]
call fcn.180030e00
call fcn.180031220
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18002dd00
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call fcn.18002e604
int3
Function at 0x18002f100
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18002f320
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18002f207
mov rax, qword [0x18003e030]
cmp qword [rsp + 0x20], rax
jb 0x18002f164
mov rax, qword [0x18003e038]
cmp qword [rsp + 0x20], rax
ja 0x18002f164
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18002f126
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
jne 0x18002f193
jmp 0x18002f207
cmp dword [rsp + 0x50], 0x10000
jne 0x18002f1ea
cmp qword [rsp + 0x48], 0x10000
jb 0x18002f1ea
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002f1d8
mov rax, qword [rsp + 0x28]
jmp 0x18002f209
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18002f202
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18002f320
mov qword [rsp + 0x20], rax
jmp 0x18002f126
xor eax, eax
add rsp, 0x68
ret

Function at 0x18002f210
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18002f360
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18002f313
mov rax, qword [0x18003e030]
cmp qword [rsp + 0x20], rax
jb 0x18002f26b
mov rax, qword [0x18003e038]
cmp qword [rsp + 0x20], rax
ja 0x18002f26b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18002f22d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
jne 0x18002f29a
jmp 0x18002f313
cmp dword [rsp + 0x50], 0x10000
jne 0x18002f2f1
cmp qword [rsp + 0x48], 0x10000
jb 0x18002f2f1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002f2df
mov rax, qword [rsp + 0x28]
jmp 0x18002f315
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18002f30e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18002f360
mov qword [rsp + 0x20], rax
jmp 0x18002f22d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18002f3b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18002f940
mov qword [rsp + 0x28], 0
cmp qword [0x18003f078], 0
jne 0x18002f3f8
cmp qword [0x18003f070], 0
je 0x18002f3f8
mov rax, qword [0x18003f070]
mov qword [0x18003f078], rax
cmp qword [0x18003f078], 0
je 0x18002f49e
mov rax, qword [0x18003f078]
cmp qword [rax + 0x10], 0
je 0x18002f49e
mov rax, qword [0x18003f078]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18002f49e
mov rax, qword [0x18003f078]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18002f49e
mov rax, qword [0x18003f078]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18002f464
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18002f46b
xor eax, eax
jmp 0x18002f619
mov rax, qword [0x18003f078]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18002f619
mov rax, qword [0x18003f070]
mov qword [0x18003f078], rax
jmp 0x18002f4c0
mov rax, qword [0x18003f078]
mov rax, qword [rax + 8]
mov qword [0x18003f078], rax
cmp qword [0x18003f078], 0
je 0x18002f50d
cmp qword [0x18003f078], 0
je 0x18002f50b
mov rax, qword [0x18003f078]
cmp qword [rax + 0x10], 0
je 0x18002f50b
mov rax, qword [0x18003f078]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18002f50b
mov rax, qword [0x18003f078]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18002f50b
jmp 0x18002f43c
jmp 0x18002f4ae
mov rcx, qword [rsp + 0x60]
call fcn.1800317c0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18002f620
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18002f617
mov rax, qword [rsp + 0x48]
mov qword [0x18003f078], rax
mov rax, qword [0x18003f078]
mov dword [rax], 0x52727464
mov rax, qword [0x18003f078]
mov qword [rax + 0x10], 0
mov rax, qword [0x18003f078]
mov rcx, qword [0x18003f070]
mov qword [rax + 8], rcx
mov rax, qword [0x18003f078]
mov qword [0x18003f070], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18003f078]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18002f5c8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18002f602
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18002f5be
mov rax, qword [0x18003f078]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18002f43c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140001240
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14001b1f0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov esi, edx
mov rdi, rcx
mov ecx, esi
lea rdx, [rsp + 0x30]
mov r8d, 0x78
call fcn.140006f60
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
mov dword [rsp + 0x20], esi
mov rcx, rax
lea rdx, str._s:__s___d__n
mov r8, rdi
call fcn.140001620
mov edx, dword [0x14001b2b0]
test edx, edx
je 0x1400012b8
lea rcx, str.Total_of__d_requests_completed_n
call fcn.140004220
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400012d0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x38], 0
mov rdi, rcx
jne 0x140001304
cmp dword [rcx + 0x2064], 0
je 0x140001304
mov eax, dword [0x14001b2b8]
test eax, eax
je 0x140001423
dec eax
mov dword [0x14001b2b8], eax
jmp 0x140001423
cmp dword [0x14001b2b8], 1
mov rax, qword [rcx + 0x40]
jne 0x14000131a
mov qword [0x14001b290], rax
jmp 0x140001338
cmp rax, qword [0x14001b290]
je 0x140001338
cmp dword [0x14001b250], 0
jne 0x140001338
inc dword [0x14001b2bc]
inc dword [0x14001b2c4]
movsxd rax, dword [0x14001b2b0]
cmp eax, dword [reloc.WSOCK32.dll_accept]
jge 0x140001423
mov qword [rsp + 0x38], rbx
mov rbx, rax
inc eax
shl rbx, 5
add rbx, qword [0x14001bbc0]
mov dword [0x14001b2b0], eax
call fcn.1400076d0
mov qword [0x14001fc00], rax
mov qword [rdi + 0x2090], rax
mov rax, qword [rdi + 0x2070]
mov qword [rbx], rax
mov eax, 0
mov rcx, qword [rdi + 0x2078]
sub rcx, qword [rdi + 0x2070]
cmovns rax, rcx
mov qword [rbx + 0x10], rax
mov eax, 0
mov rcx, qword [rdi + 0x2090]
sub rcx, qword [rdi + 0x2070]
cmovns rax, rcx
mov qword [rbx + 0x18], rax
mov eax, 0
mov rcx, qword [rdi + 0x2088]
sub rcx, qword [rdi + 0x2080]
cmovns rax, rcx
mov qword [rbx + 8], rax
mov ecx, dword [0x14001b034]
mov rbx, qword [rsp + 0x38]
test ecx, ecx
je 0x140001423
mov eax, dword [0x14001b2b0]
cdq
idiv ecx
test edx, edx
jne 0x140001423
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [0x14001b2b0]
lea rdx, str.Completed__d_requests_n
mov rcx, rax
call fcn.140001620
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
cmp word [rdi + 0x1c], 0
mov dword [rdi + 0x30], 0
je 0x140001445
mov rcx, qword [0x14001bbb0]
lea rdx, [rdi + 0x10]
call fcn.14000d870
test eax, eax
jne 0x140001483
mov rcx, qword [rdi + 0x20a0]
test rcx, rcx
je 0x14000146d
call sub.libssl_1_1_x64.dll_SSL_shutdown
mov rcx, qword [rdi + 0x20a0]
call sub.libssl_1_1_x64.dll_SSL_free
mov qword [rdi + 0x20a0], 0
mov rcx, qword [rdi + 8]
call fcn.14000bd60
mov rcx, rdi
add rsp, 0x20
pop rdi
jmp fcn.140005430
mov edx, eax
lea rcx, str.apr_pollset_remove__
call fcn.140001240
int3
Function at 0x1400015d0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, [0x1400128cc]
mov rcx, rax
call fcn.140001620
mov edx, dword [0x14001b2b0]
test edx, edx
je 0x14000160c
lea rcx, str.Total_of__d_requests_completed_n
call fcn.140004220
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3