joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003f064
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x1801572e0]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x180157308]
js 0x18003f08c
cvtsi2ss xmm0, rcx
jmp 0x18003f0a1
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1801572d0]
call fcn.1800e30b8
movss xmm1, dword [0x180139ea8]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x18003f0d3
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x18003f0d3
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x18003f101
cmp rbx, 0x200
jae 0x18003f0fe
shl rbx, 3
cmp rbx, rcx
jae 0x18003f101
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
ja 0x18003f28a
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [0x1801572d8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1801572e8]
lea rdx, [rdi + rdi]
call fcn.18002ebe4
mov rax, qword [0x1801572d8]
lea r9, [rdi - 1]
mov qword [0x180157300], r9
mov qword [0x180157308], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18003f26f
mov rcx, qword [rcx]
movabs r11, 0xcbf29ce484222325
xor r8d, r8d
movzx edx, byte [r8 + rax + 0x10]
movabs r10, 0x100000001b3
xor r11, rdx
inc r8
imul r11, r10
cmp r8, 8
jb 0x18003f188
mov rdi, qword [0x1801572e8]
and r11, r9
add r11, r11
cmp qword [rdi + r11*8], rbx
jne 0x18003f1c6
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x18003f235
mov r10, qword [rdi + r11*8 + 8]
mov rdx, qword [rax + 0x10]
cmp rdx, qword [r10 + 0x10]
jne 0x18003f20a
mov r10, qword [r10]
cmp r10, rax
je 0x18003f1bf
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18003f1bf
mov r10, qword [r10 + 8]
cmp rdx, qword [r10 + 0x10]
je 0x18003f249
cmp qword [rdi + r11*8], r10
jne 0x18003f200
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
je 0x18003f26f
mov r9, qword [0x180157300]
jmp 0x18003f178
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18003f235
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.18003f5d0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.1800cdcd0
int3
Function at 0x18003f6a4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], rcx
mov rbp, r8
mov r13, rdx
cmp rdx, r8
je 0x18003f774
mov rax, qword [rcx + 8]
mov rsi, rdx
mov r14, qword [rdx + 8]
movabs r15, 0xcbf29ce484222325
mov r12, qword [rcx + 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
movabs r8, 0x100000001b3
movzx eax, byte [rdx + r13 + 0x10]
inc rdx
xor r15, rax
imul r15, r8
cmp rdx, 8
jb 0x18003f6fe
and r15, qword [rcx + 0x30]
add r15, r15
mov rax, qword [r12 + r15*8]
mov qword [rsp + 0x30], rax
mov rax, qword [r12 + r15*8 + 8]
mov qword [rsp + 0x28], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x18]
call fcn.180029378
mov edx, 0x58
mov rcx, rbx
call fcn.1800d0680
mov rdx, qword [rsp + 0x38]
dec qword [rdx + 0x10]
cmp rbx, qword [rsp + 0x28]
je 0x18003f795
cmp rsi, rbp
jne 0x18003f72e
cmp qword [rsp + 0x30], r13
jne 0x18003f76d
mov qword [r12 + r15*8], rsi
mov qword [r14], rsi
mov qword [rsi + 8], r14
lea r11, [rsp + 0x40]
mov rax, rbp
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp qword [rsp + 0x30], r13
jne 0x18003f7aa
mov r13, qword [rsp + 0x20]
mov qword [r12 + r15*8], r13
mov rax, r13
jmp 0x18003f7ad
mov rax, r14
mov qword [r12 + r15*8 + 8], rax
jmp 0x18003f83f
movabs rcx, 0xcbf29ce484222325
xor r8d, r8d
movabs r13, 0x100000001b3
movzx eax, byte [rsi + r8 + 0x10]
inc r8
xor rcx, rax
imul rcx, r13
cmp r8, 8
jb 0x18003f7ce
mov r15, qword [rdx + 0x30]
mov r13, qword [rsp + 0x20]
and r15, rcx
add r15, r15
mov rax, qword [r12 + r15*8 + 8]
mov qword [rsp + 0x28], rax
mov rbx, rsi
mov rdi, rsi
mov rsi, qword [rsi]
lea rcx, [rbx + 0x18]
call fcn.180029378
mov edx, 0x58
mov rcx, rbx
call fcn.1800d0680
mov rdx, qword [rsp + 0x38]
dec qword [rdx + 0x10]
cmp rbx, qword [rsp + 0x28]
je 0x18003f836
cmp rsi, rbp
jne 0x18003f7fd
jmp 0x18003f769
mov qword [r12 + r15*8], r13
mov qword [r12 + r15*8 + 8], r13
cmp rsi, rbp
jne 0x18003f7b7
jmp 0x18003f76d
Function at 0x180042398
Capabilities:
Access peb ldr_data
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180156c88]
xor edx, edx
test rax, rax
jne 0x180042499
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov r8, qword [rcx]
mov qword [rsp + 0x30], r8
mov rdi, r8
mov qword [rsp + 0x38], r8
mov rax, r8
mov r11, qword [rax + 0x30]
mov qword [rsp + 0x40], r11
movsxd rax, dword [r11 + 0x3c]
mov rax, qword [rax + r11 + 0x88]
mov qword [rsp + 0x70], rax
mov ebx, eax
add rbx, r11
mov qword [rsp + 0x48], rbx
shr rax, 0x20
mov dword [rsp + 0x50], eax
cmp rbx, r11
je 0x180042475
mov r9d, dword [rbx + 0x18]
mov dword [rsp + 0x20], r9d
mov eax, r9d
dec r9d
mov dword [rsp + 0x20], r9d
test eax, eax
je 0x180042475
mov eax, dword [rbx + 0x20]
add rax, r11
mov r10d, dword [rax + r9*4]
add r10, r11
mov qword [rsp + 0x28], r10
mov ecx, 0x75401042
movsx eax, byte [r10]
inc r10
mov qword [rsp + 0x28], r10
test al, al
jne 0x18004246b
cmp ecx, 0x80c6423f
jne 0x180042469
mov edx, dword [rbx + 0x1c]
add rdx, r11
mov ecx, dword [rbx + 0x24]
add rcx, r11
movzx ecx, word [rcx + r9*2]
mov edx, dword [rdx + rcx*4]
add rdx, r11
jmp 0x18004248f
jmp 0x180042412
xor eax, ecx
imul ecx, eax, 0x1000193
jmp 0x180042438
mov r8, qword [r8]
mov rax, r8
mov qword [rsp + 0x30], r8
cmp r8, rdi
je 0x18004248f
cmp qword [r8 + 0x30], rdx
jne 0x1800423d8
mov qword [0x180156c88], rdx
mov rax, rdx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x40010006
call rax
nop
mov al, 1
jmp 0x1800424af
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x18004584c
Capabilities:
Access peb ldr_data
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x100
mov rax, qword [0x180150340]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 0x20
mov qword [rsp + 0x68], rcx
mov ebx, 0x58
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1800f9820
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x98], 2
xor ebx, ebx
mov dword [rsp + 0xa0], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], 1
mov dword [rsp + 0xc8], 0x100
mov dword [rsp + 0xe0], 0xaac56b
mov dword [rsp + 0xe4], 0x11d0cd44
mov dword [rsp + 0xe8], 0xc000c28c
mov dword [rsp + 0xec], 0xee95c24f
mov rax, qword [0x180157358]
test rax, rax
jne 0x180045a04
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov rdi, rdx
mov qword [rsp + 0x38], rdx
mov rax, rdx
mov r10, qword [rax + 0x30]
mov qword [rsp + 0x48], r10
movsxd rax, dword [r10 + 0x3c]
mov rax, qword [rax + r10 + 0x88]
mov qword [rsp + 0x40], rax
mov r11d, eax
add r11, r10
mov qword [rsp + 0x50], r11
shr rax, 0x20
mov dword [rsp + 0x58], eax
cmp r11, r10
je 0x1800459e0
mov r8d, dword [r11 + 0x18]
mov dword [rsp + 0x20], r8d
mov eax, r8d
dec r8d
mov dword [rsp + 0x20], r8d
test eax, eax
je 0x1800459e0
mov eax, dword [r11 + 0x20]
add rax, r10
mov r9d, dword [rax + r8*4]
add r9, r10
mov qword [rsp + 0x28], r9
mov ecx, 0x941b5fe
movsx eax, byte [r9]
inc r9
mov qword [rsp + 0x28], r9
test al, al
jne 0x1800459d6
cmp ecx, 0xeafad245
jne 0x1800459d4
mov edx, dword [r11 + 0x1c]
add rdx, r10
mov ecx, dword [r11 + 0x24]
add rcx, r10
movzx ecx, word [rcx + r8*2]
mov eax, dword [rdx + rcx*4]
add rax, r10
jmp 0x1800459fd
jmp 0x18004597a
xor eax, ecx
imul ecx, eax, 0x1000193
jmp 0x1800459a1
mov rdx, qword [rdx]
mov rax, rdx
mov qword [rsp + 0x30], rdx
cmp rdx, rdi
je 0x1800459fa
cmp qword [rdx + 0x30], rbx
jne 0x18004593f
mov rax, rbx
mov qword [0x180157358], rax
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call rax
mov dword [rsp + 0xb0], 2
test eax, eax
je 0x180045a2e
cmp eax, 0x800b010a
jne 0x180045a30
mov bl, 1
mov al, bl
jmp 0x180045a36
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1800d0660
mov rbx, qword [rsp + 0x118]
add rsp, 0x100
pop rdi
ret

Function at 0x180048250
Capabilities:
Check for software breakpoints

Disassembly:
sub rsp, 0x18
mov r10, rdx
mov r9, rcx
xor eax, eax
mov dword [rsp], eax
mov r8d, eax
mov dword [rsp + 4], eax
mov edx, r8d
mov cl, byte [rdx + r9]
cmp cl, 0xcc
je 0x18004828c
cmp cl, 0xc3
je 0x18004828c
cmp cl, byte [rdx + r10]
jne 0x180048282
inc eax
mov dword [rsp], eax
inc r8d
mov dword [rsp + 4], r8d
jmp 0x180048266
cmp eax, r8d
sete al
jmp 0x180048296
add rsp, 0x18
ret
Function at 0x18004b46c
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, edx
mov rbx, rcx
cmp byte [rdi + rcx], 0
jne 0x18004b489
mov eax, 0x1505
jmp 0x18004b499
inc edx
call fcn.18004b46c
imul ecx, eax, 0x21
movsx eax, byte [rdi + rbx]
xor eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18004c23c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x180150340]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp - 0x21], rcx
xor edi, edi
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x20]
movups xmm1, xmmword [rcx + 0x70]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rdi
psrldq xmm1, 8
movq rdx, xmm1
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x18004c298
lea rcx, [rbp + 7]
call fcn.180032d28
nop
lea rdx, [0x180139bf8]
lea rcx, [rbp + 7]
call fcn.18003dec8
mov rcx, rax
xorps xmm0, xmm0
cmp rax, 0xffffffffffffffff
je 0x18004c39c
mov rax, qword [rbp + 0x17]
lea r8, [rax - 1]
add rcx, 3
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
cmp rax, rcx
jb 0x18004c3e7
sub rax, rcx
cmp rax, r8
cmovb r8, rax
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rax, qword [rbp + 7]
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x19]
call fcn.180032d28
nop
lea rdx, [0x180139c04]
lea rcx, [rbp - 0x19]
call fcn.18003dec8
mov rdx, rax
cmp rax, 0xffffffffffffffff
je 0x18004c35a
cmp rax, qword [rbp - 9]
ja 0x18004c34a
mov qword [rbp - 9], rax
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rax, qword [rbp - 0x19]
mov word [rax + rdx*2], di
jmp 0x18004c35a
xor r8d, r8d
sub rdx, qword [rbp - 9]
lea rcx, [rbp - 0x19]
call fcn.1800480d0
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rcx, qword [rbp - 0x19]
mov rax, qword [rbp - 9]
lea r8, [rcx + rax*2]
lea rdx, [rbp - 0x19]
cmova rdx, qword [rbp - 0x19]
lea rcx, [rbp + 0x27]
call fcn.180032c24
movups xmm0, xmmword [rbp + 0x27]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x37]
movups xmmword [rbx + 0x10], xmm1
lea rcx, [rbp - 0x19]
call fcn.180032bc0
jmp 0x18004c3ba
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
xor r8d, r8d
lea rdx, [0x180139398]
mov rcx, rbx
call fcn.18002fba0
nop
lea rcx, [rbp + 7]
call fcn.180032bc0
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800d0660
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.18002f380
nop
int3
Function at 0x18005104c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov rbx, rdx
mov edx, 1
mov dword [rbp + 0x67], edx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor r9d, r9d
mov qword [rbx], r9
mov qword [rbx + 8], r9
mov qword [rbx + 0x10], r9
mov dword [rbp + 0x67], edx
mov rdx, qword [rcx]
test rdx, rdx
je 0x180051169
cmp qword [rdx + 0x30], r9
setne al
test al, al
je 0x180051169
cmp qword [rdx + 0x30], r9
setne al
test al, al
mov edi, r9d
je 0x1800510b8
mov rdi, qword [rdx + 0x30]
movsxd rax, dword [rdi + 0x3c]
mov r15d, dword [rax + rdi + 0x88]
add r15, rdi
mov r13d, dword [r15 + 0x20]
add r13, rdi
mov ecx, dword [r15 + 0x1c]
add rcx, rdi
mov qword [rbp + 0x77], rcx
mov r8d, dword [r15 + 0x24]
add r8, rdi
mov qword [rbp + 0x7f], r8
mov esi, r9d
cmp dword [r15 + 0x18], r9d
jbe 0x180051169
mov eax, esi
mov edx, dword [r13 + rax*4]
add rdx, rdi
movzx eax, word [r8 + rax*2]
mov r12d, dword [rcx + rax*4]
add r12, rdi
mov qword [rbp - 0x69], rdx
mov qword [rbp - 0x61], r12
mov r14, qword [rbx + 8]
cmp r14, qword [rbx + 0x10]
je 0x180051144
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r9
mov qword [r14 + 0x18], r9
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r9b
jne 0x180051128
mov rcx, r14
call fcn.18002fba0
mov qword [r14 + 0x20], r12
add qword [rbx + 8], 0x28
jmp 0x180051153
lea r8, [rbp - 0x69]
mov rdx, r14
mov rcx, rbx
call fcn.1800517c0
inc esi
cmp esi, dword [r15 + 0x18]
mov rcx, qword [rbp + 0x77]
mov r8, qword [rbp + 0x7f]
mov r9d, 0
jb 0x1800510ed
mov rax, rbx
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1800512b8
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov dword [rax - 0x18], edx
mov rax, qword gs:[0x60]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov dword [rsp + 0x20], 1
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + 0x20]
mov rax, rsi
lea rdi, [rax - 0x10]
mov qword [rsp + 0x48], rdi
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x18005131e
mov qword [rdx], rdi
add qword [rbx + 8], 8
jmp 0x18005132b
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.180041784
mov rax, qword [rdi + 0x10]
cmp rax, rsi
jne 0x180051301
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800524f0
Capabilities:
Execute syscall

Disassembly:
mov eax, dword [rcx]
mov r10, qword [rcx + 4]
syscall
ret

Function at 0x180052670
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.180052890
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180052777
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800526d4
mov rax, qword [0x180150008]
cmp qword [rsp + 0x20], rax
ja 0x1800526d4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180052696
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800f9820
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180052703
jmp 0x180052777
cmp dword [rsp + 0x50], 0x10000
jne 0x18005275a
cmp qword [rsp + 0x48], 0x10000
jb 0x18005275a
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 0x180052748
mov rax, qword [rsp + 0x28]
jmp 0x180052779
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180052772
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180052890
mov qword [rsp + 0x20], rax
jmp 0x180052696
xor eax, eax
add rsp, 0x68
ret

Function at 0x180052780
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.1800528d0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180052883
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800527db
mov rax, qword [0x180150008]
cmp qword [rsp + 0x20], rax
ja 0x1800527db
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18005279d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1800f9820
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18005280a
jmp 0x180052883
cmp dword [rsp + 0x50], 0x10000
jne 0x180052861
cmp qword [rsp + 0x48], 0x10000
jb 0x180052861
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 0x18005284f
mov rax, qword [rsp + 0x28]
jmp 0x180052885
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18005287e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800528d0
mov qword [rsp + 0x20], rax
jmp 0x18005279d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180052920
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.180052eb0
mov qword [rsp + 0x28], 0
cmp qword [0x1801525c8], 0
jne 0x180052968
cmp qword [0x1801525c0], 0
je 0x180052968
mov rax, qword [0x1801525c0]
mov qword [0x1801525c8], rax
cmp qword [0x1801525c8], 0
je 0x180052a0e
mov rax, qword [0x1801525c8]
cmp qword [rax + 0x10], 0
je 0x180052a0e
mov rax, qword [0x1801525c8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180052a0e
mov rax, qword [0x1801525c8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180052a0e
mov rax, qword [0x1801525c8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800529d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800529db
xor eax, eax
jmp 0x180052b89
mov rax, qword [0x1801525c8]
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 fcn.1800f9820
mov rax, qword [rsp + 0x28]
jmp 0x180052b89
mov rax, qword [0x1801525c0]
mov qword [0x1801525c8], rax
jmp 0x180052a30
mov rax, qword [0x1801525c8]
mov rax, qword [rax + 8]
mov qword [0x1801525c8], rax
cmp qword [0x1801525c8], 0
je 0x180052a7d
cmp qword [0x1801525c8], 0
je 0x180052a7b
mov rax, qword [0x1801525c8]
cmp qword [rax + 0x10], 0
je 0x180052a7b
mov rax, qword [0x1801525c8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180052a7b
mov rax, qword [0x1801525c8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180052a7b
jmp 0x1800529ac
jmp 0x180052a1e
mov rcx, qword [rsp + 0x60]
call fcn.180054ae0
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.180052b90
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180052b87
mov rax, qword [rsp + 0x48]
mov qword [0x1801525c8], rax
mov rax, qword [0x1801525c8]
mov dword [rax], 0x52727464
mov rax, qword [0x1801525c8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1801525c8]
mov rcx, qword [0x1801525c0]
mov qword [rax + 8], rcx
mov rax, qword [0x1801525c8]
mov qword [0x1801525c0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1801525c8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180052b38
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180052b72
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 0x180052b2e
mov rax, qword [0x1801525c8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800529ac
xor eax, eax
add rsp, 0x58
ret
Function at 0x18005a7f0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180150340]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800d0660
add rsp, 0x1d8
ret
Function at 0x180065030
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
movsxd rcx, dword [rcx + 8]
xor r9d, r9d
nop
call qword [sym.imp.WS2_32.dll_recv]
cdqe
add rsp, 0x28
ret

Function at 0x180065050
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
movsxd rcx, dword [rcx + 8]
xor r9d, r9d
nop
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x28
ret