joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1803fc88c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1803d95e4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1803fc916
cmp byte [rbp - 0x21], r15b
je 0x1803fc911
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1803fc94c
call fcn.1803eb010
test eax, eax
jne 0x1803fc938
cmp byte [rbp - 0x21], r15b
je 0x1803fc930
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1803fc94c
cmp byte [rbp - 0x21], r15b
je 0x1803fc949
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1803d934c
test eax, eax
jne 0x1803fc9ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1803d95e4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1803fc98b
cmp byte [rbp - 0x21], r15b
je 0x1803fc9c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1803fc9c0
call fcn.1803eb010
test eax, eax
jne 0x1803fc9ac
cmp byte [rbp - 0x21], r15b
je 0x1803fc9a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1803fc9c0
cmp byte [rbp - 0x21], r15b
je 0x1803fc9bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1803d934c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1803fc9ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1803fc9ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1803fc9fd
mov rcx, rdi
call fcn.1803e8c90
cmp byte [rbp + 0x3f], r15b
je 0x1803fca0c
mov rcx, qword [rbp + 0x27]
call fcn.1803e8c90
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1803fcf70
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1803eea5c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1803eea5c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1803fd0c0
cmp rax, 0xffffffffffffffff
je 0x1803fd0c0
xor edi, edi
test rbp, rbp
jle 0x1803fd06b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1803eac78
mov rbx, rax
test rax, rax
jne 0x1803fcff8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1803fd061
mov edx, 0x8000
mov ecx, r14d
call fcn.1803fb87c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1803ecd14
cmp eax, 0xffffffff
je 0x1803fd041
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1803fd008
mov edx, r15d
mov ecx, r14d
call fcn.1803fb87c
jmp 0x1803fd061
cmp byte [rsi + 0x38], dil
je 0x1803fd058
cmp dword [rsi + 0x34], 5
jne 0x1803fd058
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1803fd061
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1803e8c90
jmp 0x1803fd0d4
jns 0x1803fd0d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1803eea5c
cmp rax, 0xffffffffffffffff
jne 0x1803fd08c
cmp byte [rsi + 0x30], dil
je 0x1803fd0d4
mov edi, dword [rsi + 0x2c]
jmp 0x1803fd0d4
mov ecx, r14d
call fcn.1803f94f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1803fd0d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1803fd0d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1803fd0cd
mov eax, dword [rsi + 0x2c]
jmp 0x1803fd0d2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1803eea5c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1803ffcf0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rdi
push r14
xor r10d, r10d
mov qword [rsp + 0x18], rsi
lea r14, [0x18054e0b0]
mov esi, edx
mov rdi, rcx
mov r11d, r10d
test edx, edx
je 0x1803ffdb7
mov qword [rsp + 0x10], rbx
mov rbx, rcx
nop
mov eax, 0xaaaaaaab
mov ecx, r11d
mul r11d
shr edx, 1
lea eax, [rdx + rdx*2]
sub ecx, eax
je 0x1803ffd90
sub ecx, 1
je 0x1803ffd6f
cmp ecx, 1
jne 0x1803ffda3
lea eax, [r11 - 1]
movzx edx, byte [rax + rdi]
movzx eax, byte [rbx]
and edx, 0xf
shr eax, 6
lea eax, [rax + rdx*4]
movzx eax, byte [rax + r14]
mov byte [r10 + r8], al
inc r10d
movzx eax, byte [rbx]
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r10 + r8], al
jmp 0x1803ffda0
lea eax, [r11 - 1]
movzx edx, byte [rax + rdi]
movzx eax, byte [rbx]
and edx, 3
shl edx, 4
shr eax, 4
add edx, eax
movzx eax, byte [rdx + r14]
mov byte [r10 + r8], al
jmp 0x1803ffda0
movzx ecx, byte [rbx]
shr rcx, 2
movzx ecx, byte [rcx + r14]
mov byte [r10 + r8], cl
inc r10d
inc r11d
inc rbx
cmp r11d, esi
jb 0x1803ffd20
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
dec r11d
mov eax, 0xaaaaaaab
mov ecx, r11d
mul r11d
shr edx, 1
lea eax, [rdx + rdx*2]
sub ecx, eax
jne 0x1803ffdf1
movzx edx, byte [r11 + rdi]
and edx, 3
add rdx, rdx
movzx eax, byte [r14 + rdx*8]
mov byte [r10 + r8], al
inc r10d
mov byte [r10 + r8], 0x3d
jmp 0x1803ffe07
cmp ecx, 1
jne 0x1803ffe12
movzx edx, byte [r11 + rdi]
and edx, 0xf
movzx eax, byte [r14 + rdx*4]
mov byte [r10 + r8], al
inc r10d
mov byte [r10 + r8], 0x3d
inc r10d
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov byte [r10 + r8], 0
mov dword [r9], r10d
pop r14
ret

Function at 0x1803ffe60
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x1803fff33
push rbx
push rsi
push r15
sub rsp, 0x20
mov qword [rsp + 0x40], rbp
mov rbx, r8
mov qword [rsp + 0x48], rdi
lea rbp, [r9 - 1]
mov rdi, rdx
mov qword [rsp + 0x50], r12
sub rdi, rbx
shr rbp, 4
mov qword [rsp + 0x58], r14
inc rbp
mov rsi, rdx
lea r14, [rdx + 0xf]
mov r15, rcx
cmp rbx, r14
ja 0x1803ffee0
lea rax, [rbx + 0xf]
cmp rax, rsi
jb 0x1803ffee0
mov rax, rbx
mov edx, 0x10
nop dword [rax]
movzx ecx, byte [rdi + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1803ffec0
jmp 0x1803ffef0
movdqu xmm1, xmmword [rbx]
movdqu xmm0, xmmword [rsi]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
mov ecx, dword [r15 + 0xf8]
lea rdx, [r15 + 8]
mov r8, rbx
call fcn.180401600
movups xmm0, xmmword [rbx]
add rbx, 0x10
sub rdi, 0x10
movups xmmword [rsi], xmm0
sub rbp, 1
jne 0x1803ffea3
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rsi
pop rbx
ret
Function at 0x180400c80
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbp, qword [rcx]
mov rdi, rcx
mov r10, r8
mov r14, rdx
mov esi, 1
mov r8, r9
mov rdx, r10
mov rbx, r9
mov ecx, dword [rbp + 8]
shr ecx, 0x17
and ecx, 0xf
shl rsi, cl
lea rcx, [rsp + 0x20]
call fcn.1803d2410
mov edx, dword [rsp + 0x180]
xor eax, eax
test rbx, rbx
je 0x180400d3e
cmp rbx, 0x20
jb 0x180400d2d
movsx ecx, dl
mov r8, rbx
and r8, 0xffffffffffffffe0
movd xmm2, ecx
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
nop
movdqu xmm0, xmmword [rsp + rax + 0x20]
movdqa xmm1, xmm2
pxor xmm0, xmm2
movdqu xmmword [rsp + rax + 0x20], xmm0
movdqu xmm0, xmmword [rsp + rax + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rsp + rax + 0x30], xmm1
add rax, 0x20
cmp rax, r8
jb 0x180400d00
cmp rax, rbx
jae 0x180400d3e
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, rbx
jb 0x180400d32
mov r8, rsi
lea rcx, [rsp + 0x20]
sub r8, rbx
add rcx, rbx
call fcn.1803d2e10
mov rcx, rdi
call qword [rbp + 0x10]
mov rax, qword [rdi]
lea rdx, [rsp + 0x20]
mov r8, rsi
mov rcx, rdi
call qword [rax + 0x18]
mov rax, qword [rdi]
mov rdx, r14
mov rcx, rdi
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1803d0210
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180401460
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
mov rdi, r8
mov r11, rdx
mov r10, rcx
cmp r8, 0x10
je 0x180401498
cmp r8, 0x18
je 0x180401491
cmp r8, 0x20
je 0x18040148a
xor eax, eax
mov rbp, qword [rsp + 0x28]
pop rdi
ret
mov ebp, 0xe
jmp 0x18040149d
mov ebp, 0xc
jmp 0x18040149d
mov ebp, 0xa
shr rdi, 2
xor r9d, r9d
mov qword [rsp + 0x10], rbx
xor r8d, r8d
mov qword [rsp + 0x18], rsi
lea esi, [rbp*4 + 4]
movsxd rbx, edi
test edi, edi
jle 0x1804014fc
nop
lea eax, [r9*4]
movsxd rcx, eax
lea r9d, [r9 + 1]
add rcx, r11
movzx eax, byte [rcx + 1]
movzx edx, byte [rcx]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 3]
shl edx, 8
or edx, eax
mov dword [r10 + r8*4], edx
inc r8
cmp r8, rbx
jl 0x1804014c0
xor r9d, r9d
mov r11d, esi
cmp rbx, r11
jge 0x1804015ed
mov qword [rsp + 0x20], r14
lea rsi, [0x18054e870]
lea r14, [0x18054e770]
sub r11, rbx
mov eax, dword [r10 + rbx*4 - 4]
test r9d, r9d
jne 0x180401574
rol eax, 8
mov r8d, eax
shr rax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r14]
mov ecx, r8d
shr rcx, 0x18
movzx ecx, byte [rcx + r14]
shl ecx, 8
or eax, ecx
mov ecx, r8d
shr rcx, 8
shl eax, 8
movzx edx, cl
movzx ecx, byte [rdx + r14]
or eax, ecx
movzx ecx, r8b
shl eax, 8
movzx edx, byte [rcx + r14]
or eax, edx
xor eax, dword [rsi]
jmp 0x1804015c2
cmp rbx, 6
jle 0x1804015c2
cmp r9d, 4
jne 0x1804015c2
mov r8, rax
shr rax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r14]
mov rcx, r8
shr rcx, 0x18
movzx ecx, byte [rcx + r14]
shl ecx, 8
or eax, ecx
mov rcx, r8
shr rcx, 8
movzx edx, cl
shl eax, 8
movzx ecx, byte [rdx + r14]
or eax, ecx
movzx ecx, r8b
shl eax, 8
movzx edx, byte [rcx + r14]
or eax, edx
mov ecx, dword [r10]
inc r9d
xor ecx, eax
mov dword [r10 + rbx*4], ecx
cmp r9d, edi
jne 0x1804015da
xor r9d, r9d
add rsi, 4
add r10, 4
sub r11, 1
jne 0x180401521
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov eax, ebp
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x10]
pop rdi
ret
Function at 0x180407330
Capabilities:
Encode data using xor

Disassembly:
mov r10d, dword [rcx]
xor r9d, r9d
add r10d, 0x3f
mov r11, rdx
shr r10, 5
cmp r10, 1
jbe 0x18040738a
neg r8d
lea rax, [rcx + 4]
sub r11, rcx
dec r10
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rax]
mov edx, dword [r11 + rax]
lea rax, [rax + 4]
add edx, ecx
add edx, r9d
mov r9d, edx
btr edx, 0x1f
xor edx, ecx
shr r9d, 0x1f
and edx, r8d
xor edx, ecx
mov dword [rax - 4], edx
sub r10, 1
jne 0x180407360
mov eax, r9d
ret
Function at 0x180407800
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x128
mov rax, qword [0x1805770f0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r10, rcx
lea rcx, [rsp + 0x20]
call fcn.1804078e0
mov edx, eax
mov ecx, 1
add rdx, rdx
mov r9d, eax
movdqa xmm0, xmmword [rsp + rdx*8 + 0x20]
movdqu xmmword [r10], xmm0
cmp eax, ecx
jbe 0x180407873
nop dword [rax]
nop word [rax + rax]
mov r8d, ecx
mov edx, r9d
sub edx, ecx
shl r8d, 4
add rdx, rdx
inc ecx
aesimc xmm1, xmmword [rsp + rdx*8 + 0x20]
movdqu xmmword [r8 + r10], xmm1
cmp ecx, r9d
jb 0x180407850
movdqa xmm0, xmmword [rsp + 0x20]
mov eax, r9d
shl eax, 4
movdqu xmmword [rax + r10], xmm0
mov eax, r9d
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1803d0210
add rsp, 0x128
ret
Function at 0x180408c70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov esi, 1
xor qword [r8], rax
mov rbx, r8
mov rax, qword [rdx + 8]
mov rdi, rdx
xor qword [r8 + 8], rax
mov ebp, ecx
mov rax, qword [rdx + 0x10]
xor qword [r8 + 0x10], rax
mov rax, qword [rdx + 0x18]
xor qword [r8 + 0x18], rax
mov rax, qword [rdx + 0x20]
xor qword [r8 + 0x20], rax
mov rax, qword [rdx + 0x28]
xor qword [r8 + 0x28], rax
mov rax, qword [rdx + 0x30]
xor qword [r8 + 0x30], rax
mov rax, qword [rdx + 0x38]
xor qword [r8 + 0x38], rax
cmp ecx, esi
jbe 0x180408d3d
mov rcx, rbx
call fcn.180408180
mov rcx, rbx
call fcn.180408f20
call fcn.180408db0
lea eax, [rsi*8]
inc esi
mov ecx, eax
mov rax, qword [rdi + rax*8]
xor qword [rbx], rax
mov rax, qword [rdi + rcx*8 + 8]
xor qword [rbx + 8], rax
mov rax, qword [rdi + rcx*8 + 0x10]
xor qword [rbx + 0x10], rax
mov rax, qword [rdi + rcx*8 + 0x18]
xor qword [rbx + 0x18], rax
mov rax, qword [rdi + rcx*8 + 0x20]
xor qword [rbx + 0x20], rax
mov rax, qword [rdi + rcx*8 + 0x28]
xor qword [rbx + 0x28], rax
mov rax, qword [rdi + rcx*8 + 0x30]
xor qword [rbx + 0x30], rax
mov rax, qword [rdi + rcx*8 + 0x38]
xor qword [rbx + 0x38], rax
cmp esi, ebp
jb 0x180408cd3
mov rcx, rbx
call fcn.180408180
mov rcx, rbx
call fcn.180408f20
mov rsi, qword [rsp + 0x40]
lea ecx, [rbp*8]
mov rax, qword [rdi + rcx*8]
lea rcx, [rdi + rcx*8]
xor qword [rbx], rax
mov rax, qword [rcx + 8]
xor qword [rbx + 8], rax
mov rax, qword [rcx + 0x10]
xor qword [rbx + 0x10], rax
mov rax, qword [rcx + 0x18]
xor qword [rbx + 0x18], rax
mov rax, qword [rcx + 0x20]
xor qword [rbx + 0x20], rax
mov rax, qword [rcx + 0x28]
xor qword [rbx + 0x28], rax
mov rax, qword [rcx + 0x30]
xor qword [rbx + 0x30], rax
mov rax, qword [rcx + 0x38]
xor qword [rbx + 0x38], rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18040ede0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r15
sub rsp, 0x28
mov edi, dword [r8]
mov r15, r8
mov ebp, edx
mov rsi, rcx
test edi, edi
je 0x18040f02a
cmp edi, 0x1f
ja 0x18040ee2d
mov ecx, dword [rcx + 4]
lea r9, [rsp + 0x60]
mov r8d, dword [r8 + 4]
mov edx, ecx
shl edx, 0x1f
or edx, ebp
shr ecx, 1
call fcn.18040f3c0
mov eax, dword [rsp + 0x60]
mov dword [rsi + 4], eax
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r12
lea r12d, [rdi + 0x1f]
shr r12, 5
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x20], r14
mov r13d, dword [rcx + r12*4]
lea r8, [r12*4 - 4]
and edi, 0x1f
jne 0x18040ee7a
lea r14, [rcx + 4]
mov ebx, r13d
mov rdx, r14
add rcx, 8
call fcn.1803d2410
mov dword [r14], ebp
mov r8d, dword [rsi + r12*4]
mov ebp, dword [r15 + r12*4]
jmp 0x18040eee3
mov edx, dword [rcx + r12*4 - 4]
lea r14, [rsi + 4]
mov ecx, edi
mov eax, r13d
shr edx, cl
mov ebx, 0x1f
sub ebx, edi
mov ecx, ebx
shl eax, cl
lea rcx, [rsi + 8]
or edx, eax
btr edx, 0x1f
mov dword [rsp + 0x60], edx
mov rdx, r14
call fcn.1803d2410
mov dword [r14], ebp
mov ecx, edi
mov r8d, dword [rsi + r12*4 - 4]
mov eax, dword [rsi + r12*4]
mov ebp, dword [r15 + r12*4 - 4]
shr r8d, cl
mov ecx, ebx
shl eax, cl
mov ecx, edi
or r8d, eax
shr ebp, cl
mov eax, dword [r15 + r12*4]
mov ecx, ebx
mov ebx, dword [rsp + 0x60]
btr r8d, 0x1f
shl eax, cl
or ebp, eax
btr ebp, 0x1f
mov edx, ebx
lea r9, [rsp + 0x60]
shl edx, 0x1f
mov ecx, ebx
or edx, r8d
shr ecx, 1
mov r8d, ebp
call fcn.18040f3c0
xor ebp, ebx
mov ecx, eax
neg ecx
mov edx, ebp
or ecx, eax
neg edx
or edx, ebp
not ecx
shr ecx, 0x1f
not edx
shr edx, 0x1f
dec ecx
dec eax
neg edx
and ecx, eax
mov r11d, 1
mov eax, ecx
mov dword [rsp + 0x60], r11d
xor eax, 0x7fffffff
xor ebp, ebp
and edx, eax
xor edx, ecx
cmp r12, r11
jb 0x18040efcb
mov r10, r15
mov ebx, edx
sub r10, rsi
nop word [rax + rax]
mov r9d, dword [r10 + r14]
mov r8d, dword [r14]
lea r14, [r14 + 4]
mov ecx, r9d
mov eax, ebp
imul rcx, rbx
add rcx, rax
mov eax, ecx
mov rbp, rcx
btr eax, 0x1f
shr rbp, 0x1f
sub r8d, eax
mov eax, r8d
btr r8d, 0x1f
shr eax, 0x1f
mov edx, r8d
xor edx, r9d
mov dword [r14 - 4], r8d
add ebp, eax
mov ecx, edx
mov eax, r9d
neg ecx
sub eax, r8d
or ecx, edx
mov r9d, eax
not ecx
xor r9d, r8d
shr ecx, 0x1f
and r9d, edx
neg ecx
xor r9d, eax
shr r9d, 0x1f
mov eax, r9d
xor eax, r11d
mov r11d, ecx
and r11d, eax
xor r11d, r9d
sub r12, 1
jne 0x18040ef50
mov dword [rsp + 0x60], r11d
mov eax, r13d
mov ebx, ebp
sub eax, ebp
xor ebx, r13d
mov edi, eax
mov rdx, r15
xor edi, ebp
mov rcx, rsi
and edi, ebx
sub ebp, r13d
xor edi, eax
shr edi, 0x1f
mov r8d, edi
call fcn.180407330
mov r8d, ebp
not edi
xor r8d, r13d
mov rdx, r15
and r8d, ebx
mov rcx, rsi
xor r8d, ebp
shr r8d, 0x1f
or r8d, dword [rsp + 0x60]
and r8d, edi
call fcn.180407390
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
ret
Function at 0x18040f1a0
Capabilities:
Encode data using xor

Disassembly:
mov r10d, ecx
test r9, r9
je 0x18040f1cc
neg r10b
sub r8, rdx
nop
movzx eax, byte [rdx]
movzx ecx, byte [r8 + rdx]
lea rdx, [rdx + 1]
xor cl, al
and cl, r10b
xor cl, al
mov byte [rdx - 1], cl
sub r9, 1
jne 0x18040f1b0
ret

Function at 0x18040f3c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
xor ebp, ebp
mov eax, ecx
xor eax, r8d
mov r11d, ecx
mov r10d, eax
mov r14, r9
neg r10d
mov edi, r8d
or r10d, eax
mov ebx, edx
not r10d
mov esi, 1
shr r10d, 0x1f
dec r10d
and r11d, r10d
lea r10d, [rbp + 0x1f]
nop word [rax + rax]
mov ecx, esi
mov edx, r11d
shl edx, cl
mov eax, ebx
mov ecx, r10d
shr eax, cl
or edx, eax
mov r8d, edx
xor edx, edi
sub r8d, edi
mov r9d, r8d
mov eax, r8d
xor r9d, edi
not eax
and r9d, edx
xor r9d, eax
mov eax, r11d
shr eax, cl
mov ecx, esi
shr r8d, cl
inc esi
shr r9d, 0x1f
mov ecx, r10d
or r9d, eax
xor r8d, r11d
mov edx, r9d
mov eax, edi
shl eax, cl
neg edx
mov ecx, ebx
and r8d, edx
sub ecx, eax
xor r11d, r8d
xor ecx, ebx
and ecx, edx
xor ebx, ecx
mov ecx, r10d
shl r9d, cl
dec r10d
or ebp, r9d
cmp esi, 0x20
jl 0x18040f410
mov rsi, qword [rsp + 0x20]
mov r8d, ebx
sub r8d, edi
mov eax, ebx
xor eax, edi
mov edx, r8d
xor edx, edi
mov rdi, qword [rsp + 0x28]
and edx, eax
mov eax, r8d
xor r8d, ebx
not eax
xor edx, eax
shr edx, 0x1f
or edx, r11d
mov ecx, edx
neg ecx
and r8d, ecx
xor r8d, ebx
mov rbx, qword [rsp + 0x10]
or edx, ebp
mov dword [r14], r8d
mov rbp, qword [rsp + 0x18]
mov eax, edx
pop r14
ret
Function at 0x180419ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
jmp 0x180419ecc
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jge 0x180419fd4
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x104]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x104], eax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x104]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x108]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x108], eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r9d, dword [rcx + 0x108]
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rcx + 0x104]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.180419db0
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x104]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x40]
movsxd rcx, dword [rcx + 0x108]
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
movzx ecx, byte [rdx + rcx]
xor eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov byte [rdx + rcx], al
jmp 0x180419ec2
add rsp, 0x38
ret
Function at 0x140002570
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x140057090]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
mov r14, rax
call fcn.1400140a0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400025e0
mov rbp, qword [rdi + 0x18]
mov rcx, rdi
mov rsi, qword [rdi + 0x10]
cmp rbp, 0x10
jb 0x1400025fd
mov rcx, qword [rdi]
cmp rbx, rsi
lea rdx, [rsp + 0x4c]
mov r8, rsi
cmovb r8, rbx
call fcn.1400144c0
test eax, eax
jne 0x140002620
cmp rsi, rbx
jb 0x140002620
jbe 0x1400026a9
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400025d0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000266c
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002667
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400026e4
mov rcx, r8
call fcn.1400118f0
xor eax, eax
mov qword [rdi + 0x10], 0
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400118d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ebx, dword [rsp + 0x28]
cmp rbp, 0x10
jb 0x1400026e0
mov rcx, qword [rdi]
lea rdx, [rbp + 1]
cmp rdx, 0x1000
jb 0x1400026db
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400026e4
mov rcx, r8
call fcn.1400118f0
mov eax, ebx
jmp 0x14000266e
call fcn.14001d30c
int3
Function at 0x140002af0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rdx
mov rsi, r9
mov rbp, r8
sub r14, qword [r9 + 0x30]
je 0x140002c72
test byte [r9 + 0x5e], 0x40
jne 0x140002b1d
xor al, al
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [r9 + 0x14]
movzx eax, word [r9 + 6]
add rdx, 0x18
mov r8d, dword [r9 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x140002c72
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140002b58
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140002b6c
add rdx, 0x28
cmp rdx, r9
jb 0x140002b46
mov al, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x140002c68
cmp rbx, r15
jae 0x140002c68
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x140002c63
add eax, 0xfffffff8
shr eax, 1
je 0x140002c54
lea r11, [rbx + 8]
mov edi, eax
nop
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140002be2
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x140002bee
cmp ax, 0xa
jne 0x140002c46
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x140002c3b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140002c22
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x140002c2d
add rax, 0x28
cmp rax, r10
jb 0x140002c10
jmp 0x140002c3b
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x140002c3e
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x140002bc0
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x140002ba3
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov al, 1
pop r14
pop rsi
ret