joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401069cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140106a16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140106a16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140106a16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140106a16
cmp dword [rcx + 0x84], 0xe
jbe 0x140106a16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140106a18
xor al, al
add rsp, 0x28
ret

Function at 0x140113f1c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140212430]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140113f7a
cmp word [rdx], r12w
jne 0x140113f7a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140113f80
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1401140db
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1401140b6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140113fb9
mov rcx, r9
jmp 0x140113fdc
cmp r9, rdx
jae 0x140113ff3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140113f9d
jmp 0x1401140db
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401140b0
cmp dword [rsp + 0x80], edi
je 0x1401140b0
mov rdx, r14
lea r11, [0x140212430]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140114089
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14011405c
mov word [rbx], r12w
jmp 0x1401140d7
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140114065
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1401140d7
cmp word [rsp + 0x70], r12w
jne 0x140114096
cmp rbx, rsi
je 0x140114056
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140113e78
cmp word [rsp + 0x70], r12w
je 0x1401140db
mov word [rbx], r13w
jmp 0x1401140d7
lea r11, [0x140212430]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401140d3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401140db
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14011cbdc
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.140113e78
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140113e78
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14011cd2c
cmp rax, 0xffffffffffffffff
je 0x14011cd2c
xor edi, edi
test rbp, rbp
jle 0x14011ccd7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14011be40
mov rbx, rax
test rax, rax
jne 0x14011cc64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14011cccd
mov edx, 0x8000
mov ecx, r14d
call fcn.140116704
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.14011530c
cmp eax, 0xffffffff
je 0x14011ccad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14011cc74
mov edx, r15d
mov ecx, r14d
call fcn.140116704
jmp 0x14011cccd
cmp byte [rsi + 0x38], dil
je 0x14011ccc4
cmp dword [rsi + 0x34], 5
jne 0x14011ccc4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14011cccd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401195b4
jmp 0x14011cd40
jns 0x14011cd40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140113e78
cmp rax, 0xffffffffffffffff
jne 0x14011ccf8
cmp byte [rsi + 0x30], dil
je 0x14011cd40
mov edi, dword [rsi + 0x2c]
jmp 0x14011cd40
mov ecx, r14d
call fcn.14011cacc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14011cd40
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 0x14011cd40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14011cd39
mov eax, dword [rsi + 0x2c]
jmp 0x14011cd3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140113e78
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 0x14011d0a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14011d0d6
call fcn.140115aa0
mov dword [rax], 0x16
call fcn.140110dd0
jmp 0x14011d1f5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14011d1f5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14011d1f5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14011d105
lock or dword [rcx + 0x14], 0x10
jmp 0x14011d1f5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14011d119
call fcn.14012213c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14011666c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1401143c8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14011d1e3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14011d1ae
mov rcx, rsi
call fcn.14011666c
cmp eax, edi
je 0x14011d199
mov rcx, rsi
call fcn.14011666c
cmp eax, 0xfffffffe
je 0x14011d199
mov rcx, rsi
call fcn.14011666c
movsxd rbx, eax
lea r14, [0x140212430]
mov rcx, rsi
sar rbx, 6
call fcn.14011666c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14011d1a0
lea rdx, [0x14016ad00]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14011d1ae
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14011d1d2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14011d1d2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14011d1d2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14011d1f8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14011d4b4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14011666c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14011d503
mov rax, rbp
jmp 0x14011d60b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x212430]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140113e70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x212430]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14011d607
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011d607
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140113e70
test rax, rax
js 0x14011d607
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14011d607
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14011d5f9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14011d5f9
cmp byte [rcx], 0xd
jne 0x14011d5df
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14011d5ee
cmp byte [rcx + 1], 0xa
jne 0x14011d5ee
inc rcx
jmp 0x14011d5ee
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x16a970]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14011d5c1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14011d60b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140105c50
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011f828
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14011f858
xor eax, eax
jmp 0x14011f91b
mov rbp, rbx
cmp word [rax], si
je 0x14011f87d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14011f864
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14011f860
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14011cdd0
movsxd r14, eax
test eax, eax
jne 0x14011f8bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14011f851
mov rcx, r14
call fcn.1401195f0
mov rdi, rax
test rax, rax
jne 0x14011f8d4
xor ecx, ecx
call fcn.1401195b4
jmp 0x14011f8b0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14011cdd0
test eax, eax
jne 0x14011f905
mov rcx, rdi
call fcn.1401195b4
jmp 0x14011f90f
xor ecx, ecx
call fcn.1401195b4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140124770
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140124798
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140124798
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
movsd xmm0, qword [0x140002260]
mov edx, 0xb
movzx edi, word [0x140002268]
mov r9d, 0x40
movzx ebx, byte [0x14000226a]
mov r8d, 0x3000
xor ecx, ecx
movsd qword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsd xmm0, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov r8, rax
mov dword [rsp + 0x20], 0
movsd qword [rax], xmm0
xor edx, edx
mov word [rax + 8], di
xor ecx, ecx
mov byte [rax + 0xa], bl
add byte [rax], 0xf3
add byte [rax + 1], 0xf3
add byte [rax + 2], 0xf3
add byte [rax + 3], 0xf3
add byte [rax + 4], 0xf3
add byte [rax + 5], 0xf3
add byte [rax + 6], 0xf3
add byte [rax + 7], 0xf3
add byte [rax + 8], 0xf3
add byte [rax + 9], 0xf3
add byte [rax + 0xa], 0xf3
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400010f0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400019b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a02
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a04
xor al, al
add rsp, 0x28
ret
Function at 0x14000115e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400051d4
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400028c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15, rdx
lea r14, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov rsi, r12
mov rbp, r12
test r14, r14
je 0x140002ac3
nop
movzx ecx, byte [rdi + 8]
add cl, 0xff
shl rsi, cl
add rsi, rsi
nop dword [rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140002974
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140002930
mov ecx, dword [r10]
jmp 0x140002a57
cmp ecx, 0x4e0
jb 0x140002a57
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140002990
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400029e0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
mov rdx, qword [rdi + 0x10]
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, rdx
ja 0x140002910
movzx ecx, byte [rdi + 8]
or rsi, rax
add cl, 0xff
shl rbp, cl
add rbp, rbp
or rbp, rdx
cmp rbp, r14
jb 0x140002900
xor edx, edx
mov rax, rbp
div r15
mov rcx, rax
mov r8, rdx
xor edx, edx
mov rax, rsi
div r15
cmp rax, rcx
jb 0x140002ae7
cmp r8, r14
jne 0x1400028f0
mov rbx, qword [rsp + 0x20]
mov rax, rdx
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x140003310
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1403ae348]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [r8]
mov rdi, rcx
mov rcx, r8
mov rsi, r8
mov rbx, rdx
call qword [rax + 0x28]
mov r9, qword [rsi]
mov rcx, rsi
mov r8, qword [rbx + 8]
mov rbp, rax
mov rdx, qword [rbx]
call qword [r9 + 0x30]
movups xmm0, xmmword [rsi]
lea rcx, [rsp + 0x30]
movq rdx, xmm0
movaps xmmword [rsp + 0x30], xmm0
call qword [rdx + 0x28]
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x140003381
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call qword [rdx + 0x20]
jmp 0x140003384
mov rax, rbx
mov rcx, qword [rdi + 0xe0]
lea r14, [rax + rbp]
sub rsi, rbp
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rsi
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
test rcx, rcx
je 0x140003479
movups xmm0, xmmword [rdi]
mov rbp, rsi
lea rdx, [rdi + 0x20]
mov eax, 0x10
lea r8, [rsp + 0x40]
sub rax, rcx
movaps xmmword [rsp + 0x60], xmm0
cmp rax, rsi
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x50]
cmovb rbp, rax
cmp rbp, rsi
cmovbe rsi, rbp
call fcn.140005eb0
lea rcx, [rsp + 0x60]
add rcx, qword [rdi + 0xe0]
movaps xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x60], xmm0
test rsi, rsi
je 0x140003420
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
xor byte [r14 + rbx], al
inc rbx
cmp rbx, rsi
jb 0x140003410
sub qword [rdi + 0xe0], rbp
lea rax, [r14 + rbp]
sub qword [rsp + 0x28], rbp
cmp qword [rdi + 0xe0], 0
mov qword [rsp + 0x20], rax
jne 0x140003479
mov eax, dword [rdi + 0xc]
bswap eax
inc eax
bswap eax
mov dword [rdi + 0xc], eax
test eax, eax
jne 0x140003479
mov eax, dword [rdi + 8]
bswap eax
inc eax
bswap eax
mov dword [rdi + 8], eax
test eax, eax
jne 0x140003479
mov eax, dword [rdi + 4]
bswap eax
inc eax
bswap eax
mov dword [rdi + 4], eax
test eax, eax
jne 0x140003479
mov eax, dword [rdi]
bswap eax
inc eax
bswap eax
mov dword [rdi], eax
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, rdi
movdqa xmmword [rsp + 0x40], xmm0
call fcn.1400034b0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140014160
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400034b0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
push rbp
sub rsp, 0x68
mov rax, qword [0x1403ae348]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, qword [rdx + 8]
mov rbx, rcx
test rbp, rbp
je 0x140003677
mov qword [r11 + 0x10], rsi
mov rsi, rbp
mov qword [r11 + 0x18], rdi
and rsi, 0xfffffffffffffff0
mov qword [r11 + 0x20], r14
mov r14, qword [rdx]
add rsi, r14
mov qword [r11 - 0x18], r15
mov rdi, r14
test r14b, 0xf
je 0x140003589
cmp r14, rsi
je 0x1400035fb
movaps xmmword [rsp + 0x50], xmm6
movdqu xmm0, xmmword [rbx]
lea r8, [rsp + 0x30]
movdqu xmm6, xmmword [rdi]
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.140005eb0
movups xmm0, xmmword [rax]
pxor xmm0, xmm6
movdqu xmmword [rdi], xmm0
mov eax, dword [rbx + 0xc]
bswap eax
inc eax
bswap eax
mov dword [rbx + 0xc], eax
test eax, eax
jne 0x140003576
mov eax, dword [rbx + 8]
bswap eax
inc eax
bswap eax
mov dword [rbx + 8], eax
test eax, eax
jne 0x140003576
mov eax, dword [rbx + 4]
bswap eax
inc eax
bswap eax
mov dword [rbx + 4], eax
test eax, eax
jne 0x140003576
mov eax, dword [rbx]
bswap eax
inc eax
bswap eax
mov dword [rbx], eax
add rdi, 0x10
cmp rdi, rsi
jne 0x140003510
movaps xmm6, xmmword [rsp + 0x50]
jmp 0x1400035fb
cmp r14, rsi
je 0x1400035fb
nop
movdqu xmm0, xmmword [rbx]
lea r8, [rsp + 0x30]
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.140005eb0
movups xmm0, xmmword [rax]
pxor xmm0, xmmword [rdi]
movdqu xmmword [rdi], xmm0
mov eax, dword [rbx + 0xc]
bswap eax
inc eax
bswap eax
mov dword [rbx + 0xc], eax
test eax, eax
jne 0x1400035f2
mov eax, dword [rbx + 8]
bswap eax
inc eax
bswap eax
mov dword [rbx + 8], eax
test eax, eax
jne 0x1400035f2
mov eax, dword [rbx + 4]
bswap eax
inc eax
bswap eax
mov dword [rbx + 4], eax
test eax, eax
jne 0x1400035f2
mov eax, dword [rbx]
bswap eax
inc eax
bswap eax
mov dword [rbx], eax
add rdi, 0x10
cmp rdi, rsi
jne 0x140003590
mov r15, qword [rsp + 0x60]
mov rsi, rbp
and esi, 0xf
sub r14, rsi
lea rdi, [r14 + rbp]
mov r14, qword [rsp + 0x98]
test rsi, rsi
je 0x140003667
movups xmm0, xmmword [rbx]
lea rdx, [rbx + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140005eb0
movups xmm0, xmmword [rax]
movdqa xmmword [rsp + 0x30], xmm0
test rsi, rsi
je 0x140003660
lea rdx, [rsp + 0x30]
mov ecx, esi
sub rdx, rdi
nop dword [rax]
movzx eax, byte [rdx + rdi]
xor byte [rdi], al
lea rdi, [rdi + 1]
sub rcx, 1
jne 0x140003650
mov qword [rbx + 0xe0], rsi
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140014160
add rsp, 0x68
pop rbp
pop rbx
ret
Function at 0x1400053a0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1403ae348]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor esi, esi
mov dword [rsp + 0x58], esi
mov dword [rsp + 0x60], 0x720062
mov dword [rsp + 0x64], 0x140083
mov dword [rsp + 0x68], 0x20023
mov dword [rsp + 0x6c], 0x7d00f3
mov dword [rsp + 0x70], 0x14000c
mov dword [rsp + 0x74], 0x1400ec
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
mov qword [r11 - 0x18], rax
movups xmmword [rsp + 0x38], xmm0
mov qword [r11 - 0x70], rsi
mov qword [r11 - 0x68], 7
mov word [rsp + 0x38], si
mov dword [rsp + 0x58], 1
mov ebx, esi
mov word [rsp + 0x20], si
mov edi, 8
mov r9d, edi
movzx r8d, byte [rsp + 0x30]
mov edx, edi
lea rcx, [r11 - 0x80]
call fcn.140001610
nop dword [rax]
mov rax, rbx
and eax, 3
movzx ecx, word [rsp + rbx*2 + 0x68]
xor cx, word [rsp + rax*2 + 0x60]
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov word [rax + rbx*2], cx
inc rbx
sub rdi, 1
jne 0x140005450
lea rax, [rsp + 0x38]
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x50]
cmp r8, 8
cmovae rax, rdx
mov rcx, qword [rsp + 0x48]
lea r9, [rcx - 1]
cmp word [rax + r9*2], di
jne 0x1400054cb
lea rax, [rsp + 0x38]
cmp r8, 8
cmovae rax, rdx
mov qword [rsp + 0x48], r9
mov word [rax + r9*2], si
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rax
movdqa xmm1, xmmword [0x14039e2a0]
movdqu xmmword [rsp + 0x98], xmm1
mov word [rsp + 0x88], si
test rcx, rcx
je 0x14000550d
lea rax, [rsp + 0x38]
cmp r8, 8
cmovae rax, rdx
jmp 0x140005510
mov rax, rsi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
mov r8d, 0x10
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.140007fe0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000557c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005577
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055e8
call fcn.140013d94
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140008300
nop
lea rcx, [rsp + 0x88]
call fcn.140002f40
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400055c3
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140014160
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.14001a534
nop
int3