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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x1800350d9
mov qword [r11 + 0x20], rsi
lea rsi, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x180034f12
cmp r8, rbp
jae 0x1800350b6
movzx edx, byte [r8]
test dl, dl
je 0x1800350b6
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x1d67e8]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x180034f48
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x180034f61
movzx r13d, byte [rax]
jmp 0x180034f64
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x180034f73
movzx r12d, byte [rax]
jmp 0x180034f76
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x180034f85
movzx r15d, byte [rax]
jmp 0x180034f88
xor r15b, r15b
lea r11, [r9*4]
movzx eax, r14b
mov esi, dword [r11 + rsi + 0x1d6808]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r10d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r10d
and eax, 0x3f
shr r10d, 2
or r10d, edx
shl esi, 6
or esi, eax
shr r10d, 2
or r10d, r9d
lea rax, [0x180000000]
mov ecx, dword [r11 + rax + 0x1d6838]
shr r10d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r11 + rax + 0x1d6820]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r10d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r10d, edx
cmp esi, 0xffff
cmova eax, ecx
or r10d, eax
lea rax, [0x180000000]
mov ecx, dword [r11 + rax + 0x1d6850]
xor r10d, 0x2a
sar r10d, cl
test r10d, r10d
je 0x180035093
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x18003509d
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x1800350b6
mov word [rdi], si
add rdi, 2
lea rsi, [0x180000000]
cmp rdi, qword [rsp + 8]
jb 0x180034f00
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x1800350ef
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18003c830
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x180205eb0]
lea r10, [0x1801d5e70]
movsxd r9, ecx
mov rbx, qword [r8 + 0x44a0]
add rbx, 0xd0
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
not edi
cmp dword [r8 + 0x44d4], edi
jne 0x18003c8d7
mov r8, r9
mov ecx, edi
xor r9d, r9d
lea edx, [r9 + 4]
call fcn.180030ff0
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x18003c90b
inc r8d
test ecx, ecx
je 0x18003c8f4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18003c8f9
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.180045d40
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180044360
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x180205eb0]
cmp byte [rbx + 0x5971], 0
jne 0x1800444b1
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800444aa
lea rdx, [0x1801d51bc]
mov qword [rsp + 0x38], rdi
call fcn.180034660
mov rdi, rax
test rax, rax
je 0x1800444a5
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x40], r14
call fcn.1800c7bfc
mov r14d, eax
cmp eax, 0xffffffff
je 0x180044493
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1800c7538
test eax, eax
jne 0x180044493
mov rcx, rdi
call fcn.1800c7bfc
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x180044493
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.1800c7538
test eax, eax
jne 0x180044493
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x180044493
mov rax, qword [0x180205eb0]
test rax, rax
je 0x180044425
inc dword [rax + 0xec]
mov rdx, qword [0x180205ec0]
mov rcx, r14
call qword [0x180204128]
mov rbp, rax
test rax, rax
je 0x180044493
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call fcn.1800c7130
mov rcx, rdi
cmp rax, r14
je 0x18004445f
call fcn.1800c664c
jmp 0x18004446f
call fcn.1800c664c
mov rdx, r14
mov rcx, rbp
call fcn.1800366e0
mov rax, qword [0x180205eb0]
test rax, rax
je 0x180044481
dec dword [rax + 0xec]
mov rdx, qword [0x180205ec0]
mov rcx, rbp
call qword [fcn.1800240d0]
jmp 0x18004449b
mov rcx, rdi
call fcn.1800c664c
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x5971], 1
movss xmm0, dword [rbx + 0x5974]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1800444f4
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5974], xmm0
jb 0x1800444f4
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800444e3
call fcn.180040980
jmp 0x1800444ea
mov byte [rbx + 0xd4], 1
mov dword [rbx + 0x5974], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x18005d0f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r8, qword [rcx + 0x188]
mov r9, rcx
movsxd rax, edx
imul rbx, rax, 0x68
add rbx, qword [rcx + 0x18]
mov dword [rcx + 0x7c], edx
test dword [rbx], 0x10000
movss xmm0, dword [rbx + 0x34]
je 0x18005d12c
addss xmm0, dword [rcx + 0x94]
lea rsi, [r8 + 0xe0]
movss dword [rsi], xmm0
movss xmm1, dword [rcx + 0xc8]
addss xmm1, dword [rcx + 0x84]
movss dword [r8 + 0xf8], xmm0
subss xmm0, dword [r8 + 0x18]
movss dword [r8 + 0xe4], xmm1
subss xmm0, dword [r8 + 0x120]
movss dword [r8 + 0x124], xmm0
mov eax, dword [rcx + 0x90]
mov dword [r8 + 0x118], eax
movsx eax, byte [rbx + 0x62]
mov dword [r8 + 0x134], eax
movss dword [r8 + 0x1fc], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r8 + 0x1f8], eax
mov eax, dword [rbx + 0x38]
mov dword [r8 + 0x200], eax
mov eax, dword [rbx + 0x3c]
mov dword [r8 + 0x19c], eax
cmp byte [rbx + 0x5a], 0
jne 0x18005d1c7
maxss xmm1, dword [rcx + 0x88]
movss dword [r8 + 0xe4], xmm1
movzx eax, byte [rbx + 0x60]
mov byte [r8 + 0x9b], al
cmp byte [rbx + 0x60], 0
je 0x18005d1ed
mov rax, qword [0x180205eb0]
xor ecx, ecx
mov dword [rax + 0x4568], ecx
mov dword [rax + 0x4570], ecx
test dword [r9 + 4], 0x100000
je 0x18005d1fe
mov eax, 2
jmp 0x18005d27d
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r8 + 0x278]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r8 + 0x218], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r8 + 0x278]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx eax, byte [rbx + 0x57]
mov rdx, qword [r8 + 0x278]
mov r8d, eax
mov rcx, qword [r9 + 0x1a0]
call fcn.18004ee30
mov rdi, qword [0x180205eb0]
cmp byte [rdi + 0x59cc], 0
je 0x18005d2c5
cmp byte [rbx + 0x60], 0
jne 0x18005d2c5
xor r8d, r8d
lea rdx, [0x1801d5940]
mov rcx, rsi
call fcn.180036990
mov dword [rdi + 0x5a00], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18005fc00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180205eb0]
mov rcx, qword [rax + 0x4900]
mov r10, qword [rax + 0x44a0]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x16c]
movss xmm4, dword [rcx + 0x16c]
movss xmm3, dword [rcx + 0x170]
movss xmm2, dword [rcx + 0x174]
movss xmm1, dword [rcx + 0x178]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x278]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x218], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x278]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x278]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.18004ee30

Function at 0x18005fcd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180205eb0]
mov rcx, qword [rax + 0x4900]
mov r9, qword [rax + 0x44a0]
movups xmm0, xmmword [r9 + 0x218]
movups xmmword [rcx + 0x16c], xmm0
mov rax, qword [r9 + 0x278]
movups xmm0, xmmword [rcx + 0x14c]
movss xmm4, dword [rcx + 0x14c]
movss xmm3, dword [rcx + 0x150]
movss xmm2, dword [rcx + 0x154]
movss xmm1, dword [rcx + 0x158]
movups xmmword [r9 + 0x218], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x278]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x207]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x278]
add rsp, 0x38
jmp fcn.18004ee30
Function at 0x1800645a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1802045c8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x1800645e6
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x1800645d6
cmp byte [rax], cl
jne 0x1800645e6
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x1800645c7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x180064749
cmp byte [r8 + 1], dl
je 0x180064749
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x180064622
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x18006464a
sub dl, 0x61
cmp dl, 0x19
ja 0x18006463c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x18006464a
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x180064605
jmp 0x18006464d
inc r9
cmp r8, r9
jae 0x18006467f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x180064674
bt rdx, rax
jb 0x18006467a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x180064660
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.1800347b0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1800646b8
nop
inc rcx
cmp byte [rcx], 0x20
je 0x1800646b0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x180064738
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x1800646d3
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x1800646e9
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x180064726
movss xmm2, dword [0x1801d5aa0]
cmp al, 0x39
ja 0x180064726
movzx eax, al
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x180064700
cmp r9b, 0x2d
jne 0x180064744
xorps xmm1, xmmword [0x1800ef460]
movaps xmm0, xmm1
jmp 0x18006474c
call fcn.1800ccaa4
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x18006474c
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800b6bd0
add rsp, 0x90
pop rbx
ret
Function at 0x180064770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1802045c8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x1800647b6
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x1800647a6
cmp byte [rax], cl
jne 0x1800647b6
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x180064797
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x180064913
cmp byte [r8 + 1], dl
je 0x180064913
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x1800647f2
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x18006481a
sub dl, 0x61
cmp dl, 0x19
ja 0x18006480c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x18006481a
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x1800647d5
jmp 0x18006481d
inc r9
cmp r8, r9
jae 0x18006484f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x180064844
bt rdx, rax
jb 0x18006484a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x180064830
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1800347b0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x180064888
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x180064880
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x180064906
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x1800648a3
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x1800648b9
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x1800648f4
movsd xmm2, qword [0x1801dc728]
cmp al, 0x39
ja 0x1800648f4
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x1800648d0
cmp r9b, 0x2d
jne 0x18006490e
xorps xmm1, xmmword [0x1801dc7c0]
movaps xmm0, xmm1
jmp 0x180064916
call fcn.1800ccaa4
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x180064916
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800b6bd0
add rsp, 0x90
pop rbx
ret
Function at 0x180095ea0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1802045c8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180095eef
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x182f7aba0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180095f2d
cmp rsi, r14
jb 0x180095f25
cmp rsi, r15
jae 0x180095f25
cmp qword [rsi + 8], 0
jne 0x1800960f7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180095f10
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180095fc2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180095fb9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180095fb9
cmp dword [rsp + 0x40], 0x10000
je 0x18009603b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180095fb9
sub rbx, rbp
cmp rbx, r14
jae 0x180095f80
test rsi, rsi
jne 0x1800960a0
cmp rdi, r15
ja 0x1800960df
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800960df
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800960df
cmp dword [rsp + 0x40], 0x10000
je 0x180096071
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180095ff2
jmp 0x1800960df
test rbx, rbx
je 0x180095fb9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800960a0
cmp rbx, r14
jae 0x180095f60
jmp 0x180095fc2
test rdi, rdi
je 0x1800960df
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800960a0
cmp rdi, r15
jbe 0x180095fd0
jmp 0x1800960df
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800960b0
mov rax, qword [0x182f7aba0]
mov qword [rsi], rax
mov qword [0x182f7aba0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800b6bd0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180096990
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov r8d, dword [0x182f7ab9c]
mov edi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800969d7
mov rax, qword [0x182f7ab90]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, edi
jne 0x1800969e4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800969c0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800969d7
test edi, edi
mov qword [rsp + 0x48], rsi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180096d20
mov esi, eax
test eax, eax
jne 0x180096abd
mov r9d, dword [0x182f7ab9c]
cmp ebx, r9d
jae 0x180096a5c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x182f7ab90]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, edi
je 0x180096a55
mov edx, edi
mov ecx, ebx
call fcn.180096bf0
mov esi, eax
test eax, eax
jne 0x180096a5c
mov r9d, dword [0x182f7ab9c]
inc ebx
cmp ebx, r9d
jb 0x180096a20
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180096aa7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180096a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180096a70
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180207158]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180096bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1802045c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x182f7ab90]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180096c63
mov eax, 0xa
jmp 0x180096cf2
test esi, esi
je 0x180096c85
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180096ca8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180096ca8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180096ca1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180096ca8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800b6bd0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180096d20
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1802045c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, edx
xor r15d, r15d
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180096e57
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180096e4e
cmp dword [rsp + 0x20], 0x10
jb 0x180096e1a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180096e1a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180096e1a
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180096dd8
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180207158]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180096e4e
jmp 0x180096e0d
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180096e0d
mov rcx, qword [0x180207158]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180096e39
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180096d82
jmp 0x180096e4e
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180207158]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r15
je 0x180096ec5
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180096ec0
mov qword [rsp + 0x90], rsi
nop dword [rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180096eac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180097300
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180096e70
mov rsi, qword [rsp + 0x90]
mov eax, r15d
jmp 0x180096eca
mov eax, r15d
jmp 0x180096eca
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b6bd0
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret