joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075670
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400dabf0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov qword [rbp - 0x31], rcx
xor ebx, ebx
mov dword [rbp - 0x21], ebx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400de5e0], eax
jle 0x1400756f5
lea rcx, [0x1400de5e0]
call fcn.14009c0c0
cmp dword [0x1400de5e0], 0xffffffff
jne 0x1400756f5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x1400de5e8], eax
lea rcx, [0x1400de5e0]
call fcn.14009c054
lea rdi, [rbp - 9]
xor eax, eax
mov ecx, 0x42
rep stosb byte [rdi], al
lea r8, [rbp - 9]
xor edx, edx
lea rcx, [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x140075812
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp - 0x31]
lea edx, [rax + 1]
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x140075809
mov dword [rbp - 0x19], ebx
mov dword [rbp - 0x39], ebx
mov dword [rbp - 0x1d], ebx
lea rdi, [rbp - 0x29]
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x1d]
lea rdx, [rbp - 0x39]
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp eax, 0xea
jne 0x140075856
mov eax, dword [rbp - 0x39]
test eax, eax
je 0x140075856
mov ecx, eax
mov eax, 0x29c
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400879d0
mov rsi, rax
mov ecx, dword [rbp - 0x21]
test rax, rax
je 0x140075859
mov eax, dword [rbp - 0x39]
mov dword [rbp - 0x1d], eax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea r8, [rbp - 0x1d]
lea rdx, [rbp - 0x39]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x14007584e
cmp dword [rbp - 0x39], eax
je 0x14007584e
mov edx, ebx
mov r8d, dword [rbp - 0x1d]
test r8d, r8d
je 0x140075809
mov r9d, dword [0x1400de5e8]
mov eax, edx
imul rcx, rax, 0x29c
mov edi, dword [rcx + rsi]
cmp edi, r9d
jne 0x140075839
inc edx
cmp edx, r8d
jb 0x1400757f1
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14009bff0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rcx, rsi
call fcn.14007e088
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ebx, edi
jmp 0x140075812
mov rcx, rsi
call fcn.14007e088
mov ecx, dword [rbp - 0x21]
call qword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor eax, eax
jmp 0x140075814
Function at 0x14008c810
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14008c826
mov al, 1
jmp 0x14008c886
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14008c837
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14008c884
mov ecx, dword [rcx + 0x18]
nop
call fcn.140098d14
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14008c884
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14008c884
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14008c884
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14008c886
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14008e218
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.14009ccc0
sub rsp, rax
mov rax, qword [0x1400dabf0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14008b6a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008e267
mov rax, rbp
jmp 0x14008e36f
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 + 0xdc060]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008f164
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xdc060]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008e36b
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 0x14008e36b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008f164
test rax, rax
js 0x14008e36b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008e36b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14008e35d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008e35d
cmp byte [rcx], 0xd
jne 0x14008e343
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008e352
cmp byte [rcx + 1], 0xa
jne 0x14008e352
inc rcx
jmp 0x14008e352
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xda3b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14008e325
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14008e36f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009bff0
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 0x14008e504
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400dc060]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14008e55b
cmp word [rdx], r13w
jne 0x14008e55b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14008e560
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14008e685
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14008e6a6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14008e599
mov rdx, r9
mov word [rbx], cx
jmp 0x14008e5c0
cmp r9, r8
jae 0x14008e5d0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14008e57a
jmp 0x14008e685
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008e67a
cmp dword [rsp + 0x80], esi
je 0x14008e67a
lea r8, [0x1400dc060]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14008e652
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14008e622
mov word [rbx], r13w
jmp 0x14008e682
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14008e62f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14008e682
cmp word [rsp + 0x70], r13w
jne 0x14008e65f
cmp rbx, r14
je 0x14008e61c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008f16c
cmp word [rsp + 0x70], r13w
je 0x14008e685
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400dc060]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14008e67f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14008e685
Function at 0x1400962bc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14008811c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14009635d
cmp ebx, dword [rsp + 0x30]
je 0x140096356
test esi, esi
je 0x140096356
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140096331
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009633e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009631b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140096342
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009635f
mov eax, 1
jmp 0x14009635f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400968d8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140096947
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140096947
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140096947
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140096947
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140096947
cmp dword [rcx + 0x84], 0xe
jbe 0x140096947
cmp dword [rcx + 0xf8], 0
je 0x140096947
mov ecx, ebx
call fcn.1400969f8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400967d4
nop
cmp dword [rbp + 0x20], 0
je 0x140096995
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400969a0
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400968d8

Function at 0x140096adc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400968d8

Function at 0x14009b6e8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14009b76f
mov rsi, rbx
cmp word [rax], bp
je 0x14009b72e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009b718
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009b714
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14008a1fc
mov rdi, rax
test rax, rax
je 0x14009b75c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14009e510
mov rbp, rdi
xor ecx, ecx
call fcn.140089fe0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14009cb68
Capabilities:
Parse pe header

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

Function at 0x1400a28f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400a2978
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400c1520]
cmp byte [rcx + rax], 0
je 0x1400a2978
dec r8
sub rdx, 1
jne 0x1400a295e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a3060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400a2990
mov ebx, eax
test eax, eax
jne 0x1400a3090
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400a30ec
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a30e3
test al, 0x10
je 0x1400a30e3
bt eax, 0xa
jae 0x1400a30dc
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400a3104
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400a30d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400a30fc
test edi, edi
jne 0x1400a30e3
and dword [rsp + 0x3c], 0
jmp 0x1400a30e8
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140099e3c
int3
Function at 0x1400a7944
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.14008f16c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008f16c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a7a94
cmp rax, 0xffffffffffffffff
je 0x1400a7a94
xor edi, edi
test rbp, rbp
jle 0x1400a7a3f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14008ddd4
mov rbx, rax
test rax, rax
jne 0x1400a79cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a7a35
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a52b8
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.14008d51c
cmp eax, 0xffffffff
je 0x1400a7a15
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a79dc
mov edx, r15d
mov ecx, r14d
call fcn.1400a52b8
jmp 0x1400a7a35
cmp byte [rsi + 0x38], dil
je 0x1400a7a2c
cmp dword [rsi + 0x34], 5
jne 0x1400a7a2c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1400a7a35
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140089fe0
jmp 0x1400a7aa8
jns 0x1400a7aa8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008f16c
cmp rax, 0xffffffffffffffff
jne 0x1400a7a60
cmp byte [rsi + 0x30], dil
je 0x1400a7aa8
mov edi, dword [rsi + 0x2c]
jmp 0x1400a7aa8
mov ecx, r14d
call fcn.140098d14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a7aa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x1400a7aa8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a7aa1
mov eax, dword [rsi + 0x2c]
jmp 0x1400a7aa6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008f16c
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 0x1400a7b80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a7ba8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a7ba8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1811deec8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1811deed2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1811deefb
pop rbp
sub rbp, 0x33
sub rbp, 0x11deec8
cmp edx, 1
je 0x1811def3e
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x1811def4e
mov rax, 0x11deec8
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0xffffffffac589654
xor byte [rax], dl
inc rax
dec rcx
jne 0x1811def6d
jmp 0x1811def84
sbb al, 0xdd
mov ebp, 0x5468dddf
push rsp
push rsp
sbb al, 0xd5
xchg ebp, eax
pop rsp
push rbp
push rsp
push rsp
sbb al, 0x55
mov ebp, 0x5194931c
push rsp
push rsp
push rsp
sbb al, 0x93
xchg esi, eax
jl 0x1811deff7
push rsp
push rsp
sbb al, 0xa3
mov dh, 0x1c
push rbp
xchg ebp, eax
invalid
or al, 0xe
invalid
Function at 0x140011221
Capabilities:
Set registry value

Disassembly:
jmp 0x140016700
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x138]
mov rax, qword [0x140029040]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x140032128]
call fcn.1400116bd
nop
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp + 0x100]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400167ba
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1400167c7
lea rcx, str.Error_writing_registry_key._n
call fcn.140011316
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1400238a0]
call fcn.1400115f0
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.140011348
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400113de
Capabilities:
Terminate process

Disassembly:
jmp 0x14001b7a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011483
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140016260
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x140029040]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x140032128]
call fcn.1400116bd
nop
mov dword [rbp + 0x44], 4
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0x140]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016328
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rbp + 0x150]
mov ecx, dword [rbp + 0x24]
mov dword [rax], ecx
jmp 0x140016335
lea rcx, str.Error_reading_registry_key._n
call fcn.140011316
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140023810]
call fcn.1400115f0
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.140011348
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400114c9
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001ab40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001ab60
xor al, al
jmp 0x14001abe1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001ab73
xor al, al
jmp 0x14001abe1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001ab9d
xor al, al
jmp 0x14001abe1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001abb1
xor al, al
jmp 0x14001abe1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001abc3
xor al, al
jmp 0x14001abe1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001abdf
xor al, al
jmp 0x14001abe1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400116ef
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400181a4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14001154b
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x140024e48]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.140011311
test eax, eax
jne 0x14001823b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14001823b
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140018234
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14002bc10], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400199d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400116f9
movzx eax, al
test eax, eax
jne 0x1400199f0
mov ecx, 7
call fcn.1400115fa
nop
mov byte [rsp + 0x20], 0
call fcn.140011622
mov byte [rsp + 0x21], al
cmp dword [0x14002bd58], 1
jne 0x140019a14
mov ecx, 7
call fcn.1400115fa
nop
jmp 0x140019a6c
cmp dword [0x14002bd58], 0
jne 0x140019a67
mov dword [0x14002bd58], 1
lea rdx, [0x140022a30]
lea rcx, [0x140022700]
call fcn.140011320
test eax, eax
je 0x140019a48
mov eax, 0xff
jmp 0x140019b71
lea rdx, [0x1400225f0]
lea rcx, [section..rdata]
call fcn.140011618
mov dword [0x14002bd58], 2
jmp 0x140019a6c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400115e6
call fcn.140011505
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140019ac9
mov rcx, qword [rsp + 0x30]
call fcn.14001128f
movzx eax, al
test eax, eax
je 0x140019ac9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140033020]
nop
call fcn.140011564
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140019afd
mov rcx, qword [rsp + 0x38]
call fcn.14001128f
movzx eax, al
test eax, eax
je 0x140019afd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011695
nop
call fcn.140019c20
mov dword [rsp + 0x28], eax
call fcn.1400114c9
movzx eax, al
test eax, eax
jne 0x140019b1c
mov ecx, dword [rsp + 0x28]
call fcn.14001108c
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140019b2b
call fcn.1400116ae
nop
xor edx, edx
mov cl, 1
call fcn.14001125d
mov eax, dword [rsp + 0x28]
jmp 0x140019b71
add rsp, 0x68
ret