joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400845a8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rdx + 0x18], 0x10
mov rbx, rcx
mov r9, qword [rdx + 0x10]
jb 0x1400845bf
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x1400845ef
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x1400845d1
mov rax, rcx
mov edx, 0x1f31d
shr rax, 0x20
xor ecx, eax
btr ecx, 0x1f
call qword [sym.imp.msvcrt.dll_ldiv]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x30], 0xb14
sub ecx, eax
jns 0x14008462e
add ecx, 0x7fffffff
mov rdx, qword [rbx + 0x28]
movsxd rax, ecx
and rax, rdx
cmp qword [rbx + 0x30], rax
ja 0x14008464b
shr rdx, 1
or rcx, 0xffffffffffffffff
sub rcx, rdx
add rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x1400915dc
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14011dab0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14009161a
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140091641
test rbx, rbx
je 0x14009163d
and dword [rbx], 0
call fcn.140092624
mov qword [rbx + 8], rax
mov al, 1
jmp 0x14009169e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
and dword [rsp + 0x20], 0
call fcn.140092624
mov qword [rsp + 0x28], rax
cmp esi, 0xb7
jne 0x14009168c
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140091874
cmp dword [rax], 3
jne 0x14009168c
test rbx, rbx
je 0x14009169c
and dword [rbx], 0
call fcn.140092624
jmp 0x140091698
test rbx, rbx
je 0x1400916c4
call fcn.140092624
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400bab80
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x48]
call fcn.140003b04
nop
call fcn.140092624
mov r8, rax
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.140027a2c
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rdi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140090964
lea rdx, [0x140113ba0]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140091724
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14011dab0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
mov edi, eax
mov eax, 1
xor esi, esi
test edi, edi
cmove edi, eax
mov ecx, edi
lea eax, [rsi + 2]
mul rcx
lea rbp, [rsi - 1]
cmovo rax, rbp
mov rcx, rax
call fcn.14009e1a0
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x30], sil
lea r8d, [rsi + 0x1f]
lea rdx, str.boost::filesystem::current_path
lea rcx, [rsp + 0x30]
call fcn.140003d1c
nop
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400917e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400917e2
mov eax, esi
lea r8, [rsp + 0x30]
mov ecx, eax
call fcn.140090a5c
nop
cmp qword [rsp + 0x48], 0x10
jb 0x140091808
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rsi
mov word [r14], si
cmp word [rbx], si
je 0x140091829
inc rbp
cmp word [rbx + rbp*2], si
jne 0x14009181d
mov rsi, rbp
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.1400063dc
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rax, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400bab80
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140091874
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x14011dab0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400918b4
mov rcx, qword [rdx]
jmp 0x1400918b7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1400918de
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.140090f5c
jmp 0x140091a01
xor r12d, r12d
bt r14d, 0xa
jae 0x1400919c7
cmp qword [rdi + 0x18], 8
jb 0x1400918f8
mov rdx, qword [rdi]
jmp 0x1400918fb
mov rdx, rdi
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp word [rdx], r12w
jne 0x140091917
mov r8, r12
jmp 0x140091925
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14009191b
lea rcx, [rbp - 0x30]
call fcn.1400063dc
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140090e40
mov rbx, rax
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x18], 8
jb 0x14009195f
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp rbx, 0xffffffffffffffff
jne 0x140091987
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.140090f5c
nop
jmp 0x140091a01
mov rcx, rdi
call fcn.140090e84
test al, al
jne 0x1400919b8
mov edx, r14d
mov rcx, rdi
call fcn.140090af0
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140091a01
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test r15, r15
je 0x1400919d8
mov dword [r15], r12d
call fcn.140092624
mov qword [r15 + 8], rax
mov edx, r14d
mov rcx, rdi
test r14b, 0x10
mov dword [rbp - 0x40], 3
jne 0x1400919f2
mov dword [rbp - 0x40], 2
call fcn.140090af0
mov dword [rbp - 0x3c], eax
mov rax, qword [rbp - 0x40]
mov qword [rsi], rax
mov rax, rsi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400bab80
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400929c0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0xb0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14011dab0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0xc15730e2
mov dword [rsp + 0x34], 0x7f0725e3
mov byte [rsp + 0x38], 0
and qword [rsp + 0x40], 0
mov byte [rsp + 0x48], 0
mov eax, dword [0x14011edd8]
cmp eax, dword [rsp + 0x30]
je 0x140092b37
mov ecx, dword [rsp + 0x34]
xor eax, eax
lock cmpxchg dword [0x14011edd8], ecx
jne 0x140092b6f
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140092a82
cmp byte [rsp + 0x48], bl
jne 0x140092a42
lea rcx, [rsp + 0x48]
call fcn.140092890
lea r8, [rsp + 0x48]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventA]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140092a78
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140092a92
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop dword [rax + rax]
nop
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x14011dc30], eax
cmp byte [rsp + 0x38], 0
jne 0x140092ab7
lock inc dword [0x14011eddc]
mov byte [rsp + 0x38], 1
mov eax, dword [rsp + 0x30]
xchg dword [0x14011edd8], eax
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140092b28
mov eax, dword [0x14011eddc]
cmp eax, 1
jle 0x140092b37
cmp byte [rsp + 0x48], bl
jne 0x140092ae6
lea rcx, [rsp + 0x48]
call fcn.140092890
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140092b1e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140092b3c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140092b55
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400bab80
add rsp, 0xb0
pop rbx
ret
cmp byte [rsp + 0x38], 0
jne 0x140092bea
lock inc dword [0x14011eddc]
mov byte [rsp + 0x38], 1
mov eax, dword [0x14011edd8]
cmp eax, dword [rsp + 0x30]
je 0x140092b37
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140092bef
cmp byte [rsp + 0x48], cl
jne 0x140092ba8
lea rcx, [rsp + 0x48]
call fcn.140092890
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140092be0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x40], rbx
jmp 0x140092a04
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
nop dword [rax + rax]
jmp 0x140092a04
Function at 0x1400997c0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, r9
mov rcx, rdi
mov rdx, r8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140099803
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
je 0x140099805
mov bl, 1
mov rsi, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b7540
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x30], 0
mov ecx, 5
call fcn.14009e368
mov ebx, 2
lea r8, [rsp + 0x30]
mov rcx, rax
mov r9d, ebx
lea edx, [rbx + 0x20]
call sub.KERNEL32.dll_GetLocaleInfoW
mov eax, dword [rsp + 0x30]
cmp ax, 0x30
je 0x1400b7590
cmp ax, 0x31
jne 0x1400b7584
mov ebx, 1
jmp 0x1400b7590
xor ebx, ebx
cmp ax, 0x32
lea ecx, [rbx + 3]
cmove ebx, ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400b8b88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1400b8be9
test byte [rbx + 6], 0xf
jne 0x1400b8bdc
xor edi, edi
cmp word [rbx + 4], di
jne 0x1400b8bdc
cmp word [rbx + 2], di
jne 0x1400b8bdc
cmp word [rbx], di
jne 0x1400b8bdc
lea esi, [rdi + 1]
jmp 0x1400b8be1
mov esi, 2
movzx eax, si
jmp 0x1400b8de6
xor edi, edi
test cx, cx
jne 0x1400b8c04
mov rcx, rbx
call fcn.1400ba468
movzx ecx, ax
cmp di, ax
jl 0x1400b8de3
movsx edx, cx
test esi, esi
jle 0x1400b8c34
sub ebp, edx
cmp ebp, esi
jg 0x1400b8c34
movsd xmm0, qword [0x14011da70]
cmp word [rbx + 6], di
jge 0x1400b8c26
xorps xmm0, xmmword [0x1400e3c20]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400b8de6
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400b8c61
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400b8de6
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1400b8dd8
test ebp, ebp
jns 0x1400b8dd8
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1400b8cfc
movzx ecx, word [rbx + 4]
mov eax, 0xfff0
movzx edx, word [rbx + 2]
sub ax, bp
shr ax, 4
movzx r9d, r11w
add ax, si
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, rsi
jne 0x1400b8ccd
mov word [rbx + 4], cx
movzx r11d, di
mov word [rbx + 2], dx
neg bp
je 0x1400b8d7b
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1400b8d91
jne 0x1400b8db0
test byte [rbx], sil
je 0x1400b8db0
add word [rbx], si
jne 0x1400b8db0
add word [rbx + 2], si
jne 0x1400b8db0
add word [rbx + 4], si
jne 0x1400b8db0
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1400b8c59
cmp r11w, r15w
jne 0x1400b8c59
cmp word [rbx + 4], di
jne 0x1400b8c59
cmp word [rbx + 2], di
jne 0x1400b8c59
cmp word [rbx], di
je 0x1400b8de3
jmp 0x1400b8c59
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400bb03c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400bb088
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400bb080
cmp dword [rcx + 0x3c], edx
jl 0x1400bb080
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400bb080
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400bb088
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001100
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
lea rcx, [rsp + 0x270]
xor edx, edx
mov qword [rsp + 0x50], rsi
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rbx
lea r9, str.SystemCurrentControlSetServices_ws
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x58], esi
mov r8, rbx
mov dword [rsp + 0x5c], esi
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.140001090
lea rax, str.___
mov qword [rsp + 0x28], rdi
lea r9, [0x140005500]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140001090
lea rax, [rsp + 0x5c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x270]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000120b
mov edx, eax
lea rcx, str.SetRegistryValues.RegCreateKeyExA:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001336
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.Type
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001251
mov edx, eax
lea rcx, str.SetRegistryValues.RegSetValueEx.Type:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001336
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.ErrorControl
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001297
mov edx, eax
lea rcx, str.SetRegistryValues.RegSetValueEx.ErrorControl:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001336
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.Start
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400012da
mov edx, eax
lea rcx, str.SetRegistryValues.RegSetValueEx.Start:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001336
lea rax, [rsp + 0x60]
nop
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1400012e0
mov rcx, qword [rsp + 0x50]
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ImagePath
lea rax, [rsp + 0x60]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140001331
mov edx, eax
lea rcx, str.SetRegistryValues.RegSetValueEx.ImagePath:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140001336
mov eax, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400033b0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001360
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea r9, str.SystemCurrentControlSetServices_ws
mov qword [rsp + 0x20], rbx
mov edx, 0x104
lea rcx, [rsp + 0x30]
mov r8, 0xffffffffffffffff
call fcn.140001090
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov r8d, pe_nt_image_headers64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x1400013e3
mov edx, eax
lea rcx, str._OpSec__could_not_remove_service_registry_key:__d_n
call fcn.140001010
xor eax, eax
jmp 0x1400013e8
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400033b0
add rsp, 0x250
pop rbx
ret
Function at 0x1400031b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
mov dword [rsp + 0x40], 0
xor ecx, ecx
mov edx, 0x3e8
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14000320e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.FindResource
lea rcx, str._____s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x14000337e
mov rdx, rdi
mov qword [rsp + 0x78], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x140003249
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140006468]
lea rcx, str._____s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140003379
mov rcx, rbx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x140003282
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x140006478]
lea rcx, str._____s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x140003374
mov rdx, rdi
mov qword [rsp + 0x80], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
jne 0x1400032be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SizeOfResource
lea rcx, str._____s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x14000336c
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003314
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WriteResourceToDisk.CreateFile
lea rcx, str._____s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x14000336c
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140003355
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WriteResourceToDisk.WriteFile
lea rcx, str._____s:__d_n
call fcn.140001010
xor eax, eax
jmp 0x14000336c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400033b0
add rsp, 0x58
pop r14
pop rdi
ret

Function at 0x140003c84
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rdx
mov rdx, rcx
mov rcx, rax
jmp 0x140011a70
mov rax, qword gs:[0x30]
mov r10, rcx
mov r8, qword [rax + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x20
mov rax, qword [r9]
nop dword [rax + rax]
cmp qword [rax + 0x20], rdx
je 0x140011aad
test rdx, rdx
je 0x140011aad
mov rax, qword [rax]
cmp rax, r9
jne 0x140011a90
mov qword [rcx], 0
xor eax, eax
ret
mov rcx, qword [rax + 0x40]
mov qword [r10], rcx
movzx eax, word [rax + 0x38]
shr eax, 1
ret