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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180279b80]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x180b5ee10]
mov edi, ecx
cmp byte [rbx + 0x4a55], 0
jne 0x1800ad891
cmp byte [rbx + 0x4a56], 0
jne 0x1800ad891
movsx r9d, word [rbx + 0x5b7a]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.18009b010
test dil, 1
je 0x1800ad9b6
jmp 0x1800ad917
vmovss xmm1, dword [rbx + 0x389c]
vmulss xmm0, xmm1, dword [0x18024915c]
vaddss xmm2, xmm0, dword [rbx + 0xe08]
vmulss xmm1, xmm1, dword [0x180249140]
vaddss xmm0, xmm1, dword [rbx + 0xe0c]
movsx r9d, word [rbx + 0x5b7a]
lea r8, str.Tooltip__02d
xor eax, eax
mov dword [rbx + 0x47ac], 1
vmovss dword [rbx + 0x47bc], xmm0
vmovss dword [rbx + 0x47b8], xmm2
mov qword [rbx + 0x47c0], rax
lea rcx, [rsp + 0x20]
vmovss xmm0, dword [rbx + 0x38f8]
vmulss xmm1, xmm0, dword [0x180248ee4]
or dword [rbx + 0x47a8], 0x41
lea edx, [rax + 0x10]
vmovss dword [rbx + 0x4808], xmm1
call fcn.18009b010
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1800ad967
lea r11, [0x18023e6c0]
cmp r9b, 0x23
jne 0x1800ad94a
cmp byte [r8], r9b
jne 0x1800ad94a
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800ad937
not ecx
call fcn.1800a43e0
test rax, rax
je 0x1800ad9b6
cmp byte [rax + 0xb6], 0
je 0x1800ad9b6
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, reloc.WS2_32.dll_recv
inc word [rbx + 0x5b7a]
movsx r9d, word [rbx + 0x5b7a]
call fcn.18009b010
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1800a6b60
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801be920
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800b2ea0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180b5ee10]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1800b2f03
mov qword [rsp], rbx
lea rbx, [0x18023e6c0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800b2ee3
cmp byte [r8], r9b
jne 0x1800b2ee3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1800b2ed0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x1800b2f37
mov r10, qword [r10 + 0x5be0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x1800b2f3e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x1800b2f24
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1800c9380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx + 0x180]
mov r10, rcx
movsxd rax, edx
imul rbx, rax, 0x70
add rbx, qword [rcx + 0x18]
mov dword [rcx + 0x74], edx
test dword [rbx], 0x10000
vmovss xmm1, dword [rbx + 0x34]
je 0x1800c93bc
vaddss xmm1, xmm1, dword [rcx + 0x8c]
lea rsi, [r9 + 0x100]
vmovss dword [rsi], xmm1
vmovss xmm0, dword [rcx + 0xc0]
vaddss xmm2, xmm0, dword [rcx + 0x7c]
vsubss xmm0, xmm1, dword [r9 + 0x20]
vmovss dword [r9 + 0x118], xmm1
vsubss xmm1, xmm0, dword [r9 + 0x144]
vmovss dword [r9 + 0x148], xmm1
vmovss dword [r9 + 0x104], xmm2
mov eax, dword [rcx + 0x88]
mov dword [r9 + 0x138], eax
movsx eax, byte [rbx + 0x6a]
mov dword [r9 + 0x158], eax
vmovss dword [r9 + 0x21c], xmm2
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x218], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x220], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x1bc], eax
movzx eax, byte [rbx + 0x68]
mov byte [r9 + 0xbb], al
cmp byte [rbx + 0x68], 0
je 0x1800c9463
mov rax, qword [0x180b5ee10]
xor ecx, ecx
mov dword [rax + 0x476c], ecx
mov dword [rax + 0x4774], ecx
test dword [r10 + 4], 0x100000
je 0x1800c9478
mov r8d, 2
jmp 0x1800c94fc
vmovss xmm4, dword [rbx + 0x20]
vmovss xmm3, dword [rbx + 0x24]
vmovss xmm2, dword [rbx + 0x28]
vmovss xmm1, dword [rbx + 0x2c]
vmovups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x298]
vmovups xmmword [r9 + 0x238], xmm0
vmovss dword [rsp + 0x20], xmm4
vmovss dword [rsp + 0x24], xmm3
vmovss dword [rsp + 0x28], xmm2
vmovss dword [rsp + 0x2c], xmm1
vmovss dword [rax + 0x88], xmm4
vmovss dword [rax + 0x8c], xmm3
vmovss dword [rax + 0x90], xmm2
vmovss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x298]
vmovups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
vmovups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, word [rbx + 0x5c]
mov rdx, qword [r9 + 0x298]
mov rcx, qword [r10 + 0x198]
call fcn.1800c0440
mov rdi, qword [0x180b5ee10]
cmp byte [rdi + 0x5c58], 0
je 0x1800c9541
cmp byte [rbx + 0x68], 0
jne 0x1800c9541
xor r8d, r8d
lea rdx, [0x180245934]
mov rcx, rsi
call fcn.1800b2b10
mov dword [rdi + 0x5c88], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800cbf90
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x180b5ee10]
mov rdx, qword [rax + 0x4b10]
cmp ecx, 0xffffffff
jne 0x1800cbfaa
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x1800cc027
mov r10d, dword [rdx]
lea r8, [0x180245959]
movzx eax, word [rdx + 0x78]
lea r11, [0x18023e6c0]
not r10d
mov word [rdx + 0x210], cx
mov ecx, r10d
mov byte [rdx + 0x227], 1
mov word [rdx + 0x7a], ax
mov r9b, reloc.WLDAP32.dll_Ordinal_35
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1800cc003
cmp byte [r8], r9b
jne 0x1800cc003
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800cbff0
not ecx
jmp fcn.1800adae0
ret
Function at 0x1800eb630
Capabilities:
Encode data using base64
Reference http user-agent string

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, 0x30
mov rbp, rdx
lea r9, [r8 + 2]
mov rsi, r8
movabs r14, 0xaaaaaaaaaaaaaaab
mov rax, r14
xor r8d, r8d
mul r9
mov rbx, rcx
xor edi, edi
shr rdx, 1
shl rdx, 2
call fcn.18002c150
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1800eb685
mov rcx, qword [rbx]
lea rdx, [rsi - 2]
lea r10, [0x180245f00]
test rdx, rdx
je 0x1800eb721
dec rdx
lea r9, [rbp + 2]
mov rax, r14
mul rdx
mov r8, rdx
shr r8, 1
inc r8
lea rdi, [r8 + r8*2]
movzx eax, byte [r9 - 2]
lea r9, [r9 + 3]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [r9 - 5]
movzx eax, byte [r9 - 4]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [r9 - 4]
movzx eax, byte [r9 - 3]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [r9 - 3]
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r8, 1
jne 0x1800eb6b3
cmp rdi, rsi
jae 0x1800eb780
movzx eax, byte [rdi + rbp]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
lea rax, [rsi - 1]
movzx edx, byte [rdi + rbp]
and edx, 3
cmp rdi, rax
jne 0x1800eb754
add rdx, rdx
movzx eax, byte [r10 + rdx*8]
mov byte [rcx + 1], al
mov al, 0x3d
jmp 0x1800eb779
movzx eax, byte [rdi + rbp + 1]
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx eax, byte [rdi + rbp + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1800eb930
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x180279b80]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x30]
call fcn.1801ff190
lea rcx, [rsp + 0x30]
call fcn.180066360
nop
mov rdi, qword [rbx]
mov rbx, qword [rbx + 8]
add rbx, rdi
cmp rdi, rbx
je 0x1800eb9fc
movabs rbp, 0x43ffffff01ffb
lea r14, [0x180245f40]
nop
movzx edx, byte [rdi]
lea eax, [rdx - 0x2d]
cmp al, 0x32
ja 0x1800eb9b0
bt rbp, rax
jb 0x1800eb9ea
lea eax, [rdx - 0x61]
cmp al, 0x19
jbe 0x1800eb9ea
cmp dl, 0x7e
je 0x1800eb9ea
mov dl, 0x25
lea rcx, [rsp + 0x40]
call fcn.180089d20
movzx edx, byte [rdi]
shr rdx, 4
movzx edx, byte [rdx + r14]
lea rcx, [rsp + 0x40]
call fcn.180089d20
movsx rdx, byte [rdi]
and edx, 0xf
movzx edx, byte [rdx + r14]
lea rcx, [rsp + 0x40]
call fcn.180089d20
inc rdi
cmp rdi, rbx
jne 0x1800eb9a0
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.180060e50
nop
lea rcx, [rsp + 0x30]
call fcn.1800630d0
mov rax, rsi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1801be920
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800edf70
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x308
mov rax, qword [0x180279b80]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1800ee038
vpxor xmm0, xmm0, xmm0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], WSAGetLastError
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
xor eax, eax
xor edx, edx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
vmovups ymmword [rsp + 0x78], ymm0
vmovups ymmword [rsp + 0x98], ymm0
vmovups ymmword [rsp + 0xb8], ymm0
vzeroupper
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1800ee038
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [0x180b5ecb0], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov dword [0x180b5eca8], eax
mov byte [0x180b5ec6c], 1
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1801be920
add rsp, 0x308
ret
Function at 0x180112000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r11d, ecx
and r11d, 7
je 0x180112032
cmp ecx, r11d
jge 0x180112022
mov rcx, rbx
call fcn.1801117f0
shrx eax, dword [rbx + 0x14], r11d
sub dword [rbx + 0x10], r11d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x18011206e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop word [rax + rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x180112050
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x18011209d
mov edx, dword [0x180a5dd54]
mov rax, qword gs:[0x58]
mov ecx, Ordinal_41
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x1801120cf
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x1801120b9
xor dl, dl
jmp 0x1801120c2
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1801120b0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180112072
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180112144
mov edx, dword [0x180a5dd54]
mov rax, qword gs:[0x58]
mov ecx, Ordinal_41
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x18011215e
mov rcx, rbx
call fcn.180111930
test eax, eax
je 0x180112137
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.1801feaf0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x18011db60
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x180279b80]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
vmovdqu xmm1, xmmword [0x180249320]
vmovdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], si
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18011dbe7
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea r8d, [rsi + 0x27]
lea rdx, str.Failed_to_take_a_snapshot_of_processes.
mov rcx, rbx
call fcn.180005120
jmp 0x18011dc9a
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x18011dc31
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov r8d, Ordinal_50
lea rdx, str.Failed_to_retrieve_information_about_processes.
mov rcx, rbx
call fcn.180005120
jmp 0x18011dc9a
lea rax, [rsp + 0x7c]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18011dc40
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.180024600
mov r8d, 1
lea rdx, [0x180248b6c]
lea rcx, [rsp + 0x30]
call fcn.180024600
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18011dc31
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18011d870
nop
lea rcx, [rsp + 0x30]
call fcn.180025020
mov rax, rbx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1801be920
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180124770
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1801247d4
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1801247c2
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1801247bb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18012478f
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180b5ef40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1801247e4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x180b60ae0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18012481a
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180124850
mov eax, 0xa
jmp 0x1801248df
test esi, esi
je 0x180124872
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180124893
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180124893
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18012488d
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180124893
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180124c98
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x180124caf
cmp r8b, 0x90
je 0x180124caf
cmp r8b, 0xcc
jne 0x180124cd1
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x180124ccd
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180124cd1
add edx, r10d
cmp edx, r9d
jb 0x180124cbd
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180125038
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180125082
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180b60ad0]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x1801250bb
cmp rbx, r14
jb 0x1801250b8
cmp rbx, r12
jae 0x1801250b8
cmp qword [rbx + 8], rsi
jne 0x18012521d
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1801250a4
mov r15, rdi
cmp rdi, r14
jb 0x1801251d7
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x180125107
mov r8d, Ordinal_50
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180125141
cmp dword [rbp - 0x10], 0x10000
je 0x180125111
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180125141
sub r15, r13
cmp r15, r14
jae 0x1801250dd
jmp 0x180125141
test r15, r15
je 0x180125141
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1801251e2
cmp r15, r14
jae 0x1801250cc
test rbx, rbx
jmp 0x1801251d5
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18012521d
mov r8d, Ordinal_50
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18012521d
cmp dword [rbp - 0x10], 0x10000
je 0x1801251b0
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x18012516d
jmp 0x18012521d
test rdi, rdi
je 0x18012521d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1801251e2
cmp rdi, r12
jbe 0x180125149
jmp 0x18012521d
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1801251ee
mov rax, qword [0x180b60ad0]
mov qword [rbx], rax
mov qword [0x180b60ad0], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18013e920
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x18013e957
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x18013e940
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x18013ea48
sub rcx, r10
cmp r9, 8
jb 0x18013ea29
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x18013e9b0
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x18013ea48
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x18013ea30
test r8d, r8d
sete al
ret
Function at 0x18013ea50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x18013ebf4
cmp r9, 4
jb 0x18013ea9a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x18013ea80
xor r11d, r11d
test r9, r9
je 0x18013ebf4
cmp r9, 8
jb 0x18013ebcd
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x18013eacc
cmp rdx, r8
jae 0x18013ebcd
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x18013eae1
cmp rdx, r10
jae 0x18013ebcd
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x18013eb87
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x18013eb20
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x18013ebbf
mov rdx, r9
and rdx, 0xfffffffffffffff8
mov rbx, r10
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rdx
jb 0x18013eba0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x18013ebf4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x18013ebe0
add rsp, 8
ret

Function at 0x180146800
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x180a5ce70], rax
cmp rax, 0x10
jae 0x180146825
call fcn.180146340
mov edx, reloc.WS2_32.dll_recv
lea rcx, [0x180a5ce78]
call fcn.180146590
xor eax, eax
add rsp, 0x58
ret

Function at 0x180146e70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.180146ef0
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x180146e94
call fcn.180146340
mov edx, ebx
mov rcx, rdi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x180146ea7
call fcn.180146340
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret