joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085142
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x14008515e
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret
Function at 0x14008595c
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
add byte [rcx - 0x77], al
shr al, 0xe1
loope 0x14008590b
mov es, word [rcx]
add byte [rbx + 0x474fff8], al
xor eax, eax
jmp 0x14008598d
call fcn.14000f205
nop
add rsp, 0x38
ret
Function at 0x1400887a8
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400d1c80]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140088819
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140088850
test eax, eax
js 0x14008882a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140088843
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140088acb
mov rcx, rax
call fcn.140041dc7
mov ecx, 7
int 0x29
ud2
Function at 0x14008a570
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rsi, rcx
lea rdi, [rsp + 0x78]
mov rcx, rdi
call fcn.14008a052
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14008a6b9
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov r12d, 2
xor r15d, r15d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x14008a5f9
lea rbp, [rsp + 0x78]
mov edi, 0x200
mov rbx, r8
jmp 0x14008a62e
sub r8, r13
lea rcx, [rsp + 0x40]
mov rdx, r8
call case.0x140079dc2.156
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x50], r13
mov rbp, r12
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, ebx
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14008a657
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14008a6c9
mov r8d, esi
cmp rbx, r8
jne 0x14008a680
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14008a73b
add rbx, rbx
cmp rbx, r14
cmovae rbx, r14
mov r8, rbx
jmp 0x14008a5e1
jb 0x14008a5e1
cmp rdi, r8
jb 0x14008a73b
lea rsi, [rsp + 0x58]
mov rcx, rsi
mov rdx, rbp
call case.0x140050b3a.430
mov bl, byte [rsi + 0x18]
mov rcx, r12
mov rdx, r15
call fcn.14008837b
cmp bl, 2
jne 0x14008a6fe
mov rbx, qword [rsp + 0x58]
jmp 0x14008a6e6
lea rcx, [rsp + 0x78]
call fcn.14008a1be
mov byte [rsi + 0x18], 2
jmp 0x14008a726
call fcn.14000f205
mov rbx, rax
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x70], 2
mov rcx, r12
mov rdx, r15
call fcn.14008837b
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov byte [rax + 0x18], 2
mov rcx, rbx
call fcn.14001be52
jmp 0x14008a719
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
mov rax, qword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.14008837b
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14008c37a
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400d1c80]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14008c3e4
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14008c3f3
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14008c428
cmp eax, 0x103
je 0x14008c432
test eax, eax
js 0x14008c40d
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
and qword [rsi], 0
jmp 0x14008c428
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140088acb
mov rcx, rax
call fcn.140041dc7
mov ecx, 7
int 0x29
ud2

Function at 0x14008cf5f
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov eax, edx
mov rdx, rcx
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.14008c619
movabs al, byte [0x8548368b48fffff6]
invalid
je 0x14008cfa4
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14008cfab
mov rcx, rsi
mov rdx, rdi
call fcn.14008837b
mov bl, 0xff
push qword [rcx]
shr bl, 0x1d
mov rax, qword [rsp + 0x30]
jmp 0x14008cfc1
call fcn.14000f205
mov rbx, rax
mov ebx, eax
mov rcx, rsi
mov rdx, rdi
call fcn.14008837b
mov rax, rbx
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14008ded1
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, r8
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x28]
and qword [r9], 0
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14008df25
call fcn.140088391
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14008df38
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14008df5c
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [rcx]
mov rdi, qword [rax]
and qword [rax], 0
test rdi, rdi
je 0x14008dfae
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.ws2_32.dll_WSAStartup]
test eax, eax
jne 0x14008dfae
mov rax, qword [sym.imp.ws2_32.dll_WSACleanup]
mov qword [rdi], rax
add rsp, 0x1b8
pop rdi
pop rsi
ret
ud2

Function at 0x14008dfb2
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14008dfdf
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14000f205
ud2

Function at 0x14008e179
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x14008e198
mov rax, qword [rcx]
and qword [rcx], 0
test rax, rax
je 0x14008e198
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
jmp 0x14008e1cc
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14008e1c7
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14008e1cc
call fcn.14008dfb2
mov ecx, dword [0x1400fd2d4]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x138], 1
mov qword [rcx + 0x140], rax
mov qword [rcx + 0x148], rdx
add rsp, 0x38
ret
Function at 0x1400931b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400931b3
test al, 1
je 0x1400931ce
test al, 2
jne 0x1400931ce
xor rax, 3
ret
ud2

Function at 0x140093730
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x140093771
movzx eax, dl
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140093766
xor eax, eax
jmp 0x14009376b
call fcn.140088391
nop
add rsp, 0x38
ret
ud2

Function at 0x140093775
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, rdx
mov rbx, rcx
lea r13, [rsp + 0x3a]
lea rbp, [rsp + 0x4a]
mov r14, qword [rcx + 0x10]
mov r15, qword [rcx + 0x18]
mov rax, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov qword [rsp + 0x50], r8
mov rcx, qword [r8]
add rcx, rdi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov rcx, rax
sub rcx, rdi
mov eax, 0x7fffffff
cmp rcx, rax
cmovae rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, r12
xor r9d, r9d
call fcn.140093551
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x140093908
mov rsi, qword [rsp + 0x30]
cmp al, 2
je 0x140093940
mov cl, byte [rsp + 0x38]
movzx edx, word [r13 + 4]
mov word [rbp + 4], dx
mov edx, dword [r13]
mov dword [rbp], edx
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x48], cl
mov byte [rsp + 0x49], al
cmp qword [rsp + 0x70], rdi
jb 0x140093956
cmp r15, 0xffffffffffffffff
je 0x140093956
mov rcx, r15
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne case.0x14004048c.605
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x140093914
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14001bf6c
cmp al, 0xd
jne 0x1400938e2
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400938e2
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x140093956
mov r14, r15
mov r15, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140042a73
mov rbx, rax
xor ecx, ecx
call fcn.140041dc7
test rbx, rbx
je 0x1400938d7
mov ecx, 1
mov rdx, rsi
call fcn.140042b93
mov rsi, rbx
mov rbx, r15
mov r15, r14
mov r14, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14008f010
cmp al, 0xd
jne 0x140093940
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.1400934ee
mov rcx, rsi
call fcn.14001be52
jmp 0x1400937df
mov eax, 1
jmp 0x140093942
movsxd r8, eax
jmp 0x140093917
xor r8d, r8d
lea rax, [rdi + r8]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x140093930
mov qword [rdx + 0x18], rax
mov rcx, rax
add rdi, r8
jb 0x140093956
cmp rcx, rax
jb 0x140093956
mov qword [rdx + 0x10], rax
xor esi, esi
xor eax, eax
mov rdx, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14009395a
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xd0]
lea r15, [rsp + 0x4a]
lea r12, [rsp + 0x5a]
mov r13, qword [rdx + 0x10]
mov edi, 0x7fffffff
cmp rax, rdi
cmovb rdi, rax
mov rsi, qword [rdx + 0x18]
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x60], rsi
lea rcx, [rsp + 0x40]
mov rdx, r13
mov r8, rbx
call fcn.140093728
mov al, byte [rsp + 0x49]
cmp al, 3
je 0x140093ad1
mov rcx, qword [rsp + 0x40]
cmp al, 2
je 0x140093adf
mov dl, byte [rsp + 0x48]
movzx r8d, word [r15 + 4]
mov word [r12 + 4], r8w
mov r8d, dword [r15]
mov dword [r12], r8d
mov qword [rsp + 0x50], rcx
mov byte [rsp + 0x58], dl
mov byte [rsp + 0x59], al
cmp rsi, 0xffffffffffffffff
je case.0x1400512a2.472
mov rcx, rsi
mov rdx, rbp
mov r8d, edi
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140093af1
call fcn.140088391
mov rsi, rax
mov rcx, rax
call fcn.14001bf6c
cmp al, 0xd
jne 0x140093aa6
cmp qword [rsp + 0x38], 0
je 0x140093aa6
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle case.0x1400512a2.472
mov rdi, r13
mov r13, r14
mov r14, r15
mov r15, rbx
mov rbx, rbp
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140042a73
mov rbp, rax
xor ecx, ecx
call fcn.140041dc7
test rbp, rbp
je 0x140093a92
mov ecx, 1
mov rdx, rsi
call fcn.140042b93
mov rsi, rbp
mov rbp, rbx
mov rbx, r15
mov r15, r14
mov r14, r13
mov r13, rdi
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
call fcn.14008f010
cmp al, 0xd
jne 0x140093b02
mov rcx, r14
lea rdx, [rsp + 0x50]
call fcn.1400934ee
mov rcx, rsi
call fcn.14001be52
mov rsi, qword [rsp + 0x60]
jmp 0x1400939b1
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x140093b12
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x140093b12
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x140093b12
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14009f020
Capabilities:
Parse pe header

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

Function at 0x140c5c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c5c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c5c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5c06f
add dl, dl
jne 0x140c5c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5c0f6
xor eax, eax
add dl, dl
jne 0x140c5c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5c1ad
add dl, dl
jne 0x140c5c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c5c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c5c07e
mov eax, 1
add dl, dl
jne 0x140c5c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5c0fb
sub eax, ebx
mov ebx, 1
jne 0x140c5c14c
mov ecx, 1
add dl, dl
jne 0x140c5c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c5c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5c15d
cmp eax, 0x7d00
jae 0x140c5c19b
cmp eax, 0x500
jb 0x140c5c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5c07e
cmp eax, 0x7f
ja 0x140c5c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c5c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c5c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6e6200
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x6e620d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x6e621d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x6e6205
lea eax, [rcx + 1]
jmp 0x6e622b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x6e623e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x6e6224
sub eax, 3
jb 0x6e625e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x6e62ad
sar eax, 1
movsxd rbp, eax
jb 0x6e6294
jmp 0x6e626c
add ebx, ebx
jne 0x6e626a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6e6294
inc ecx
add ebx, ebx
jne 0x6e627a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6e6294
call r11
adc ecx, ecx
add ebx, ebx
jne 0x6e628d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x6e627c
add ecx, 2
jmp 0x6e6299
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.006e61c2
jmp 0x6e620d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc4400
mov dl, 0x1a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x6e62f9
cmp rsi, rcx
jae 0x6e6301
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x6e62e0
cmp al, 0x8f
ja 0x6e62e0
cmp byte [rsi - 2], 0xf
je 0x6e62e6
sub al, 0xe8
cmp al, 1
ja 0x6e62ca
cmp rsi, rcx
jae 0x6e6301
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x6e62d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x6e6301
lodsb al, byte [rsi]
jmp 0x6e62e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2e0000]
mov eax, dword [rdi]
or eax, eax
je 0x6e635e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2e6000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x6e630e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x6e6358
mov qword [rbx], rax
add rbx, 8
jmp 0x6e632e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x6e6398
cmp al, 0xef
ja 0x6e638a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x6e636a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x6e6379
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x6e63ec
sub rsp, 0xffffffffffffff80
jmp 0x466420
Function at 0x140063406
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
jmp 0x140069db0
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x30]
mov rdi, rsp
mov ecx, 0x132
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140166008]
xor rax, rbp
mov qword [rbp + 0x488], rax
lea rcx, [0x140177005]
call fcn.140065f12
mov qword [rbp + 8], 0
mov byte [rbp + 0x44], 0
mov dword [rbp + 0x2b4], 0x104
mov qword [rbp + 0x2d8], 0
mov byte [rbp + 0x2f4], 0
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlClass4d36e972_e325_11ce_bfc1_08002be10318
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140069e4c
jmp 0x140069ff3
lea rax, [rbp + 0x2b4]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x64]
xor r8d, r8d
lea rdx, str.UpperFilters
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x140069eb3
mov dword [rbp + 0x2b4], 2
lea rax, [rbp + 0x90]
mov qword [rbp + 0x2d8], rax
xor eax, eax
mov rcx, qword [rbp + 0x2d8]
mov word [rcx], ax
jmp 0x140069f45
lea rax, [rbp + 0x90]
mov qword [rbp + 0x2d8], rax
mov rax, qword [rbp + 0x2d8]
movzx eax, word [rax]
test eax, eax
je 0x140069f21
lea rdx, str.memctl
mov rcx, qword [rbp + 0x2d8]
call fcn.140065df0
test eax, eax
jne 0x140069eef
mov byte [rbp + 0x2f4], 1
jmp 0x140069f21
mov rcx, qword [rbp + 0x2d8]
call fcn.140063334
mov rcx, qword [rbp + 0x2d8]
lea rax, [rcx + rax*2]
mov qword [rbp + 0x2d8], rax
mov rax, qword [rbp + 0x2d8]
add rax, 2
mov qword [rbp + 0x2d8], rax
jmp 0x140069ec1
movzx eax, byte [rbp + 0x2f4]
cmp eax, 1
jne 0x140069f45
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rbp + 0x44], 1
jmp 0x140069ff3
lea rdx, str.memctl
mov rcx, qword [rbp + 0x2d8]
call fcn.14006404a
mov rcx, qword [rbp + 0x2d8]
call fcn.140063334
inc rax
cdqe
mov ecx, dword [rbp + 0x2b4]
lea rax, [rcx + rax*2]
mov dword [rbp + 0x2b4], eax
mov rcx, qword [rbp + 0x2d8]
call fcn.140063334
mov rcx, qword [rbp + 0x2d8]
lea rax, [rcx + rax*2]
mov qword [rbp + 0x2d8], rax
mov rax, qword [rbp + 0x2d8]
add rax, 2
mov qword [rbp + 0x2d8], rax
xor eax, eax
mov rcx, qword [rbp + 0x2d8]
mov word [rcx], ax
mov eax, dword [rbp + 0x2b4]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, str.UpperFilters
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rbp + 0x44], 1
movzx eax, byte [rbp + 0x44]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401350c0]
call fcn.1400656e8
mov eax, edi
mov rcx, qword [rbp + 0x488]
xor rcx, rbp
call fcn.14006473e
lea rsp, [rbp + 0x498]
pop rdi
pop rbp
ret