joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e4254
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.1400c2cd8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400e42de
cmp byte [rbp - 0x21], r15b
je 0x1400e42d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400e4314
call fcn.1400daf04
test eax, eax
jne 0x1400e4300
cmp byte [rbp - 0x21], r15b
je 0x1400e42f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400e4314
cmp byte [rbp - 0x21], r15b
je 0x1400e4311
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.1400c82ec
test eax, eax
jne 0x1400e43b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c2cd8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400e4353
cmp byte [rbp - 0x21], r15b
je 0x1400e4388
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e4388
call fcn.1400daf04
test eax, eax
jne 0x1400e4374
cmp byte [rbp - 0x21], r15b
je 0x1400e436d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400e4388
cmp byte [rbp - 0x21], r15b
je 0x1400e4385
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.1400c82ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400e43b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400e43b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400e43c5
mov rcx, rdi
call fcn.14006fff0
cmp byte [rbp + 0x3f], r15b
je 0x1400e43d4
mov rcx, qword [rbp + 0x27]
call fcn.14006fff0
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 0x1400e4578
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400e45c2
call fcn.1400cb7b4
mov dword [rax], 0xf
call fcn.1400cb794
mov dword [rax], 0xd
call fcn.1400cd12c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b9f70
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400e45cd
lea eax, [rbx + 1]
jmp 0x1400e45af
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400e45ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400e45af
Function at 0x1400e4b98
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e4bae
mov al, 1
jmp 0x1400e4c0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e4bbf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e4c0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400cc44c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e4c0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e4c0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e4c0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e4c0e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400ed2e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400ed2f3
cmp dword [0x14019fe78], ecx
jle 0x1400ed2fa
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400ed340
test edi, edi
je 0x1400ed2f3
cmp byte [rsi + rdi - 1], 0xa
je 0x1400ed2f3
lea rcx, [0x140167b31]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400ed340

Function at 0x1400ed340
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400ed38e
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1400ed3cc
cmp rdi, rsi
jae 0x1400ed3cc
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400ed387
jmp 0x1400ed384
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b9f70
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14010f070
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14010f0e1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14010f0eb
mov dil, 1
test bl, bl
je 0x14010f0ca
cmp byte [rsi + 8], 0
je 0x14010f0e6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b9f70
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x14010f09d
mov rcx, qword [rsi]
jmp 0x14010f0bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14010f113
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14010f118
xor edi, edi
jmp 0x14010f0ca
mov rcx, qword [rsi]
jmp 0x14010f100
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14010f13f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14010f0ca
mov rcx, qword [rsi]
jmp 0x14010f12f
Function at 0x14010f5b0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x140167260]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1cc
call fcn.140080180
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140085cf0
mov al, byte [rsi + 0x17]
test al, al
jns 0x14010f62e
cmp qword [rsi + 8], 0x103
ja 0x14010f64c
test al, al
jns 0x14010f635
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.140085f30
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400b9f70
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14010ffb0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1401a7108], 0
je 0x14010fff6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400b9f70
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1401a70e0]
test rdi, rdi
je 0x140110097
test byte [0x14019d098], 1
je 0x14010ffd9
cmp byte [rdi + 0x17], 0
jns 0x140110018
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401a7108], rax
inc rax
cmp rax, 1
ja 0x14010ffd9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bc0c0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x14011015c
xor esi, esi
jmp 0x14010ffd9
mov ecx, 0x18
call fcn.1400b8abc
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bc0c0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140167260]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400ec060
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1401100fd
and eax, 0x7f
mov rcx, rdi
jmp 0x140110104
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x14011013b
add rax, rax
test rax, rax
je 0x14011013b
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x14011010c
cmp rdx, 0xfffffffffffffffe
je 0x14011013b
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.140079c10
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.14002d9d0
mov qword [0x1401a70e0], rdi
jmp 0x140110006
mov rdi, qword [0x1401a70e0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400d6508
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.14002d920
mov rcx, qword [0x1401a70e0]
call fcn.14010cbc0
cmp word [rax], 0x5c
je 0x1401101a9
mov rcx, qword [0x1401a70e0]
lea rdx, [0x14016a36c]
mov r8d, 1
call fcn.14002d9d0
mov rcx, qword [0x1401a70e0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.14002d9d0
mov rcx, qword [0x1401a70e0]
cmp byte [rcx + 0x17], 0
jns 0x1401101d2
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401a7108], rax
inc rax
cmp rax, 1
ja 0x14010ffd9
mov qword [0x1401a7108], 0
jmp 0x140110090
Function at 0x14012a4e0
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret
Function at 0x14012ec40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x14018f028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movsxd r8, dword [rcx + 0x108]
lea ecx, [rdx + 4]
mov r11d, ecx
shr r11d, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x14012ec9f
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11d, ecx
shr r11d, 6
cmp r11, r8
jae 0x14012ecbb
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14d, ecx
shr r14d, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x14012ece5
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11d, ecx
shr r11d, 6
cmp r11, r8
jae 0x14012ed06
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov r11d, edx
shr r11d, 6
xor r10d, r10d
cmp r11, r8
jae 0x14012ed28
mov ecx, edx
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x14012ed4e
dec edx
mov r10d, edx
shr r10d, 6
xor ecx, ecx
cmp r10, r8
jae 0x14012ed4c
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14d, 5
mov ecx, r14d
dec ecx
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov eax, r15d
shr eax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.1400bc0c0
mov r8, r12
xor r8, r15
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.14012bac0
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x14012ed8a
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x140167260]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov eax, dword [rdi + 0x148]
test eax, eax
jle 0x14012ee5b
xor ecx, ecx
xor edx, edx
or rdx, qword [rsi + rcx*8]
inc rcx
cmp rax, rcx
jne 0x14012edf6
test rdx, rdx
sete dl
test rax, rax
je 0x14012eeac
movsxd rcx, eax
mov rax, qword [rdi + 0x140]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x14012ee30
mov r10, qword [rax + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x14012ee30
sbb r10, r10
movsxd rax, dword [rdi + 0x148]
mov ecx, eax
test rax, rax
jle 0x14012ee7a
xor r8d, r8d
jmp 0x14012ee6f
mov dl, 1
jmp 0x14012ee08
xor r9d, r9d
mov qword [rsp + r8*8 + 0x30], r9
inc r8
cmp rcx, r8
je 0x14012ee7a
test dl, dl
jne 0x14012ee5f
mov r9, qword [rsp + r8*8 + 0x30]
jmp 0x14012ee62
test rcx, rcx
je 0x14012eeac
and r14d, 1
neg r14
mov rcx, r14
not rcx
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, r14
mov r9, qword [rsi + rdx*8]
and r9, rcx
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rax, rdx
jne 0x14012ee8e
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400b9f70
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140157f90
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x140157fcf
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x140157f9f
mov dword [rsi], 7
jmp 0x140157f9f
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140069dd0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140157fab
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140157fab
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140158081
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x140157fa1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140157f9f
Function at 0x140705058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407051df
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 0x140705089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14070506f
add dl, dl
jne 0x140705096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407050f6
xor eax, eax
add dl, dl
jne 0x1407050a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407051ad
add dl, dl
jne 0x1407050b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407050c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407050d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407050dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407050ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14070507e
mov eax, 1
add dl, dl
jne 0x140705106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140705113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407050fb
sub eax, ebx
mov ebx, 1
jne 0x14070514c
mov ecx, 1
add dl, dl
jne 0x14070512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14070513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140705123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140705168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140705175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14070515d
cmp eax, 0x7d00
jae 0x14070519b
cmp eax, 0x500
jb 0x140705196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070507e
cmp eax, 0x7f
ja 0x14070519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14070507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407051d2
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 0x14070507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001360
Capabilities:
Encode data using xor

Disassembly:
lea r8d, [rcx + rdx]
mov r9d, 0x92b
xor r8d, ecx
rol r8d, 0x10
add r8d, 0x7002bb9
not r8d
xor r8d, 0x8702258
xor edx, edx
mov eax, 0x800528
mov ecx, r8d
div r8d
xor ecx, 0x800528
sub ecx, edx
dec r9
lea r8d, [r8 + rcx + 0x800528]
jne 0x180001382
mov eax, r8d
ret
Function at 0x18000d73b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800208e0]
jne 0x18000726a
rol rcx, 0x10
test cx, 0xffff
jne 0x180007266
repz ret
ror rcx, 0x10
jmp 0x18000d694
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180022bf0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180022ce8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18000d719
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180022bf0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000d73b
mov rax, qword [rsp + 0x88]
mov qword [0x180022ce8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180022c88], rax
mov rax, qword [0x180022ce8]
mov qword [0x180022b60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180022c70], rax
mov dword [0x180022b50], 0xc0000409
mov dword [0x180022b54], 1
mov rax, qword [0x1800208e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800208e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180022be8], eax
mov ecx, 1
call fcn.180011f7c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18001a590]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180022be8], 0
jne 0x18000d7c2
mov ecx, 1
call fcn.180011f7c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180011994
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800208e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000a73c
xor ebx, ebx
cmp qword [0x180023190], rbx
mov rdi, rax
jne 0x180011aa7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180011b7e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180011b7e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180023190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180023198], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800231a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800231b0], rax
test rax, rax
je 0x180011a9e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800231a8], rax
jmp 0x180011aae
mov rax, qword [0x1800231a8]
jmp 0x180011ab5
mov rax, qword [0x1800231a8]
mov r11, qword [0x1800231b0]
cmp rax, rdi
je 0x180011b1c
cmp r11, rdi
je 0x180011b1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800231b0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180011b1c
test rax, rax
je 0x180011b1c
call rsi
test rax, rax
je 0x180011b16
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180011b16
test byte [rsp + 0x40], 1
jne 0x180011b1c
bts ebp, 0x15
jmp 0x180011b5c
mov rcx, qword [0x180023198]
cmp rcx, rdi
je 0x180011b5c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180011b5c
call rax
mov rbx, rax
test rax, rax
je 0x180011b5c
mov rcx, qword [0x1800231a0]
cmp rcx, rdi
je 0x180011b5c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180011b5c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180023190]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180011b7e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180011b80
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180007250
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400011b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000123b
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x48]
test eax, eax
je 0x140001235
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x50]
call section..text
test eax, eax
je 0x140001226
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x50]
lea rcx, str.___Found_Dll___s___n
call fcn.140001a40
jmp 0x140001228
jmp 0x14000123b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor eax, eax
jmp 0x14000123b
add rsp, 0x48
ret