joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459180
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45922f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x006057f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x4640c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x006055cc], 0
je 0x4640ce
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x4640e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x006055cc], 0
je 0x4640f5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x464100
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x006055cc], 0
je 0x464135
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00605b60]
aesenc xmm0, xmmword [0x00605b70]
aesenc xmm0, xmmword [0x00605b80]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x464140
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x006055cc], 0
je 0x464176
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00605b60]
aesenc xmm0, xmmword [0x00605b70]
aesenc xmm0, xmmword [0x00605b80]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback

Function at 0x465a60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rdx, 2
jmp sym.sigtramp

Function at 0x465e60
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x465e94
mov rcx, 0x28
jmp 0x465e9f
shl rcx, 3
add rcx, 0x1480
mov qword [0x006057f8], rcx
pop rbp
ret
Function at 0x479f40
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47a17b
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x479fda
mov qword [rsp + 0x88], rax
lea rbx, [0x004e54a0]
mov rcx, rax
lea rax, [0x005b2700]
call sym.sync._Map_.Load
test cl, cl
jne 0x479fc3
mov rax, qword [rsp + 0x88]
call sym.reflect._rtype_.String
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x30]
lea rbx, [0x00510ee0]
call sym.runtime.concatstring2
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rbx
call sym.reflect.typesByString
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x479ff7
lea rdx, [0x004e2e00]
cmp rax, rdx
jne 0x479fe5
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
call sym.reflect.resolveTypeOff
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004cf760]
call sym.runtime.panicdottypeE
inc rdx
cmp rbx, rdx
jle 0x47a041
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x479ff4
lea rax, [0x005b2700]
lea rbx, [0x004e54a0]
lea rdi, [0x004e2e00]
nop dword [rax + rax]
call sym.sync._Map_.LoadOrStore
lea rdx, [0x004e2e00]
cmp rax, rdx
jne 0x47a16b
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
nop
ret
lea rcx, [0x004c8d00]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
lea rax, [0x004d3e40]
call sym.runtime.newobject
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x00605830], 0
nop
je 0x47a09b
mov rbx, rax
lea rax, [0x004d3e40]
call sym.runtime.wbMove
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x50]
call sym.internal_abi.NewName
call sym.reflect.addReflectOff
mov rsi, qword [rsp + 0x60]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x47a102
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x47a0f4
mov dword [rsi + 0x10], edx
cmp dword [0x00605830], 0
je 0x47a123
call sym.runtime.gcWriteBarrier2
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x005b2700]
lea rbx, [0x004e54a0]
lea rdi, [0x004e2e00]
nop dword [rax]
call sym.sync._Map_.LoadOrStore
lea rdx, [0x004e2e00]
cmp rax, rdx
jne 0x47a15c
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004cf760]
call sym.runtime.panicdottypeE
mov rbx, rdx
lea rcx, [0x004cf760]
call sym.runtime.panicdottypeE
nop
mov qword [rsp + 8], rax
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
jmp sym.reflect._rtype_.ptrTo
Function at 0x4836e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4837aa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x006057f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48378f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004cbe80]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x48377e
mov edi, 1
lea rsi, [0x004cbe80]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00512528]
lea rsi, [0x00511c70]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x4b10e0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4b10f7
inc rax
cmp rax, 4
jge 0x4b110f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4b10f4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4b1120
inc rax
cmp rax, 4
jge 0x4b112e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4b1157
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4b113b
jmp 0x4b111d
Function at 0x4b8e20
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x4b8e8b
mov rax, 0
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x4b8e44
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x4b8e61
cmp rdx, 0
je 0x4b8ead
test rdx, 0xf
je 0x4b8e3d
test rdx, 7
jne 0x4b8e61
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x4b8e3d
ret
Function at 0x4ba6a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4ba6df
jb 0x4ba6f4
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesenc xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesenclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x4ba760
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x4ba834
jb 0x4ba893
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 1
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 2
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 2
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 4
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 4
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 8
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 8
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x10
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 0x10
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x20
call sym._expand_key_256a
aeskeygenassist xmm1, xmm0, 0x20
call sym._expand_key_256b
aeskeygenassist xmm1, xmm2, 0x40
call sym._expand_key_256a
jmp 0x4ba901
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 2
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 4
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 8
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 0x10
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 0x20
call sym._expand_key_192b
aeskeygenassist xmm1, xmm2, 0x40
call sym._expand_key_192a
aeskeygenassist xmm1, xmm2, 0x80
call sym._expand_key_192b
jmp 0x4ba901
aeskeygenassist xmm1, xmm0, 1
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 2
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 4
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 8
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x10
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x20
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x40
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x80
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x1b
call sym._expand_key_128
aeskeygenassist xmm1, xmm0, 0x36
call sym._expand_key_128
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x4ba90e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x1400052a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, qword [fcn.140024860]
mov ecx, 2
call rbx
mov rdi, rax
lea rcx, [0x140046ca0]
mov edx, 1
mov r8d, 0x10
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rdi
call sub.msvcrt.dll_fflush
mov ecx, 2
call rbx
mov rcx, qword [rsi + 8]
add rcx, 8
cmp qword [rsi], 0
mov rsi, rax
lea rdi, [0x140047284]
cmovne rdi, rcx
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov edx, 1
mov rcx, rdi
mov r8, rax
mov r9, rsi
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call sub.msvcrt.dll_fflush
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x14000535e
mov ecx, 2
call qword [fcn.140024860]
mov rsi, rax
lea rcx, str._n_bad_format__library_may_be_wrong_architecture_
mov edx, 1
mov r8d, 0x30
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call sub.msvcrt.dll_fflush
mov ecx, 2
call qword [fcn.140024860]
lea rdx, [0x140046ce2]
mov rcx, rax
call fcn.140005390
mov ecx, 1
call sub.msvcrt.dll_exit
int3

Function at 0x140005390
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400053ae
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov r8, rax
jmp 0x1400053b1
xor r8d, r8d
mov edx, 1
mov rcx, rdi
mov r9, rsi
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sub.msvcrt.dll_fflush
Function at 0x1400076e0
Capabilities:
Get number of processors

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea rax, str.updatePrevSize
mov qword [rsp + 0x60], rax
lea r12, str._home_neko_.choosenim_toolchains_nim_2.0.2_lib_system_alloc.nim
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], 0
mov word [rsp + 0x78], 0
mov eax, dword [0x140682508]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r14, [rax + 0x2ac8]
mov rax, qword [rax + 0x2ac8]
test rax, rax
je 0x140007771
movzx ecx, word [rax + 0x22]
add ecx, 1
mov word [rsp + 0x7a], cx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov qword [r14], rax
movzx eax, cx
cmp eax, 0x7d0
jne 0x140007789
call fcn.1400153a0
jmp 0x140007789
mov word [rsp + 0x7a], 0
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [r14], rax
mov qword [rsp + 0x68], 0x231
mov r15, qword [rbx + 8]
lea rax, [0x1400472f7]
mov qword [rsp + 0x30], rax
lea rax, [0x1400472fa]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov word [rsp + 0x48], 0
mov rax, qword [r14]
test rax, rax
je 0x1400077f4
movzx ecx, word [rax + 0x22]
add ecx, 1
mov word [rsp + 0x4a], cx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [r14], rax
movzx ecx, cx
cmp ecx, 0x7d0
jne 0x14000780c
call fcn.1400153a0
mov rax, qword [r14]
jmp 0x14000780c
mov word [rsp + 0x4a], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x28]
mov qword [r14], rax
mov rax, qword [rax]
mov qword [r14], rax
mov qword [rsp + 0x68], 0x233
lea rax, str.isAccessible
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x98], 0
mov word [rsp + 0xa8], 0
mov rax, qword [r14]
test rax, rax
je 0x140007883
movzx ecx, word [rax + 0x22]
add ecx, 1
mov word [rsp + 0xaa], cx
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x88]
mov qword [r14], rax
movzx eax, cx
cmp eax, 0x7d0
jne 0x1400078a4
call fcn.1400153a0
jmp 0x1400078a4
mov word [rsp + 0xaa], 0
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0x88]
mov qword [r14], rax
add r15, rbx
mov qword [rsp + 0x98], 0x210
lea rax, str.pageIndex
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], 0
mov word [rsp + 0x48], 0
mov rax, qword [r14]
test rax, rax
je 0x14000790a
movzx ecx, word [rax + 0x22]
add ecx, 1
mov word [rsp + 0x4a], cx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [r14], rax
movzx ecx, cx
cmp ecx, 0x7d0
jne 0x140007922
call fcn.1400153a0
mov rax, qword [r14]
jmp 0x140007922
mov word [rsp + 0x4a], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x28]
mov qword [r14], rax
mov rdx, r15
sar rdx, 0xc
mov rax, qword [rax]
mov qword [r14], rax
add rdi, 0x20a0
mov rcx, rdi
call fcn.140005e50
mov rcx, qword [r14]
mov rcx, qword [rcx]
mov qword [r14], rcx
test al, al
je 0x140007957
mov rax, qword [r15]
and eax, 1
or rax, rsi
mov qword [r15], rax
mov rax, qword [r14]
mov rax, qword [rax]
mov qword [r14], rax
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140015380
Capabilities:
Write file on windows

Disassembly:
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
add rax, 8
test rdx, rdx
lea rcx, [0x140047284]
cmovne rcx, rax
jmp fcn.140014f80
Function at 0x140024620
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp], rax
mov ecx, 2
call fcn.140024860
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140024860
mov r8, qword [rbp]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3
Function at 0x1400400c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
mov rax, qword [0x14067a5a0]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14004012d
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14004012d
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14004012d
movzx edx, word [rax + 6]
test edx, edx
je 0x14004012d
sub rcx, qword [0x14067a5a0]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140040119
add rax, 0x28
add edx, 0xffffffff
je 0x14004012d
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140040110
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140040110
jmp 0x14004012f
xor eax, eax
pop rbp
ret

Function at 0x140040140
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [0x14067a5a0]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140040179
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140040179
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140040179
movzx eax, word [rcx + rdx + 6]
pop rbp
ret

Function at 0x1400401f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
mov rax, qword [0x14067a5a0]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140040220
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140040220
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x140040222
xor eax, eax
pop rbp
ret
Function at 0x140003f4c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140003b5c
add rsp, 0x28
jmp 0x140003f70
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14001d938], rdi
jne 0x140008848
mov eax, dword [0x14001d930]
cmp eax, 1
je 0x140008868
mov eax, dword [0x14001d930]
cmp eax, ebx
jne 0x14000887f
mov dword [0x14001d930], 1
lea r13, [0x140014218]
lea rdi, [0x140014200]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000401c
cmp eax, ebx
jne 0x14000401c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140004011
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140003ffa
cmp eax, ebx
jne 0x140008875
mov eax, dword [0x14001d930]
cmp eax, 1
jne 0x14000404c
lea rdx, [0x1400141f8]
lea rcx, [0x1400141c0]
call fcn.140176000
mov dword [0x14001d930], 2
cmp r12d, ebx
jne 0x14000405b
mov rax, rbx
xchg qword [0x14001d938], rax
cmp qword [0x14001d950], rbx
jne 0x14000888e
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x1400088b7
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x14000409f
cmp word [rcx], 0x22
je 0x140008912
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140004084
cmp word [rcx], bx
jne 0x1400088c1
cmp word [rcx], bx
jne 0x1400088ce
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400040e8
nop
jmp 0x1400088e6
cmp rax, rdi
jne 0x140008858
mov r12d, 1
jmp 0x140003fba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003fa9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140004024
mov eax, 0xff
jmp 0x140008951
mov dword [0x14001db2c], 1
jmp 0x140004024
lea rcx, [0x14001d950]
call fcn.140011e1c
cmp eax, ebx
je 0x140004068
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14001d950]
nop
jmp 0x140004068
mov eax, 0xff
jmp 0x140008951
cmp edx, ebx
je 0x1400040a8
jmp 0x14000408a
cmp word [rcx], 0x20
ja 0x1400040b1
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400040a8
mov dword [0x14001db28], eax
cmp dword [0x14001d30c], ebx
jne 0x1400088fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001db2c], ebx
jne 0x140008910
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001db28]
jmp 0x140008951
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140004094
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x1400093e0
Capabilities:
Create service
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rbx, rcx
call fcn.14000936c
test eax, eax
je 0x14000941c
xor eax, eax
jmp 0x1400095f7
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140009461
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CServiceModule::Install:_Failed_to_OpenSCManager_0x_x
movzx ebx, ax
mov ecx, 1
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.1400016b0
jmp 0x1400095f5
mov rcx, qword [0x14001d218]
lea rdx, [rsp + 0x90]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000948f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CServiceModule::Install:_Failed_to_GetModuleFileName_0x_x
jmp 0x140009441
and qword [rsp + 0x60], 0
lea rax, str.NT_AUTHORITYNetworkService
mov edi, 1
mov qword [rsp + 0x58], rax
lea rax, str.RPCSS
lea r8, [rbx + 0x2a8]
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x90]
lea rdx, [rbx + 0xa8]
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov rcx, rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
test rax, rax
jne 0x140009641
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070431
jne 0x140009620
lea rdx, str.CServiceModule::Install:_Service_already_exists
mov ecx, edi
call fcn.1400016b0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x78]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionMedia_CenterService
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400095a1
mov rcx, qword [rsp + 0x78]
call fcn.14001157c
test eax, eax
jns 0x140009596
lea rdx, str.CServiceModule::Install:_SecureServiceRegKey_failed_0x_X
mov r8d, eax
mov ecx, edi
call fcn.1400016b0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.FA018B44_5E9F_4875_B127_5085A1B02ABD
call fcn.140010b20
test eax, eax
jns 0x1400095c2
lea rdx, str.CServiceModule::Install:_SetDCOMPermissions_failed_0x_X
mov r8d, eax
mov ecx, edi
call fcn.1400016b0
call fcn.140010984
test eax, eax
jns 0x1400095dc
lea rdx, str.CServiceModule::SecureMCEDirectory:_Failed__0x_x
mov r8d, eax
mov ecx, edi
call fcn.1400016b0
test rsi, rsi
je 0x1400095ea
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001710
invalid
invalid
pushfq