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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0x40
cmp byte [rcx + 8], 0
mov r12, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140095615
test r9, r9
je 0x1400955f2
movsxd rcx, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r9
div rcx
test rdx, rdx
jne 0x1400955f2
mov ecx, dword [rsp + 0x80]
mov qword [rsp + 0x60], rbp
xor ebp, ebp
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r15
cmp ecx, 1
jne 0x140095517
mov r15d, ebp
test rax, rax
je 0x1400954fa
nop dword [rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140094df0
mov rcx, rdi
cmp byte [rbx + 8], bpl
je 0x140095638
mov eax, dword [rbx + 0x3d0]
mov edx, ebp
test eax, eax
jle 0x1400954c8
lea r8, [rbx + 0x3f8]
sub r8, rdi
movzx eax, byte [r8 + rcx]
inc edx
xor byte [rcx], al
lea rcx, [rcx + 1]
mov eax, dword [rbx + 0x3d0]
cmp edx, eax
jl 0x1400954b1
movsxd r8, eax
lea rcx, [rbx + 0x3f8]
mov rdx, rsi
call fcn.1400ffcb0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r15d
div rcx
add rsi, rcx
add rdi, rcx
movsxd rcx, r15d
cmp rcx, rax
jb 0x140095480
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
cmp ecx, 2
jne 0x1400955af
mov r15d, ebp
test rax, rax
je 0x1400954fa
nop dword [rax + rax]
mov r8, rdi
lea rdx, [rbx + 0x3f8]
mov rcx, rbx
call fcn.140094a70
mov rax, rdi
cmp byte [rbx + 8], bpl
je 0x14009565b
mov ecx, dword [rbx + 0x3d0]
mov edx, ebp
test ecx, ecx
jle 0x140095578
mov r8, rsi
sub r8, rdi
movzx ecx, byte [r8 + rax]
inc edx
xor byte [rax], cl
lea rax, [rax + 1]
mov ecx, dword [rbx + 0x3d0]
cmp edx, ecx
jl 0x140095561
movsxd r8, ecx
mov rdx, rsi
lea rcx, [rbx + 0x3f8]
call fcn.1400ffcb0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc r15d
div rcx
add rsi, rcx
add rdi, rcx
movsxd rcx, r15d
cmp rcx, rax
jb 0x140095530
jmp 0x1400954fa
test rax, rax
je 0x1400954fa
nop dword [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140094df0
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, r12
inc ebp
div rcx
add rsi, rcx
add rdi, rcx
movsxd rcx, ebp
cmp rcx, rax
jb 0x1400955c0
jmp 0x1400954fa
mov rdx, qword [str.Data_not_multiple_of_Block_Size]
lea rcx, [rsp + 0x20]
call fcn.140095680
lea rdx, [0x1401a5230]
lea rcx, [rsp + 0x20]
call fcn.1400feadc
int3
mov rdx, qword [str.Object_not_Initialized]
lea rcx, [rsp + 0x20]
call fcn.140095680
lea rdx, [0x1401a5230]
lea rcx, [rsp + 0x20]
call fcn.1400feadc
int3
mov rdx, qword [str.Object_not_Initialized]
lea rcx, [rsp + 0x20]
call fcn.140095680
lea rdx, [0x1401a5230]
lea rcx, [rsp + 0x20]
call fcn.1400feadc
int3
mov rdx, qword [str.Object_not_Initialized]
lea rcx, [rsp + 0x20]
call fcn.140095680
lea rdx, [0x1401a5230]
lea rcx, [rsp + 0x20]
call fcn.1400feadc
int3
Function at 0x1400956f0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [rcx], 0x6a09e667
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov rax, rcx
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret

Function at 0x140095740
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov r8, r9
mov rdx, rax
mov qword [rbx + 0x20], rcx
mov qword [rbx + 0x28], rcx
mov rcx, rbx
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
call fcn.140095860
mov rdx, rdi
mov rcx, rbx
call fcn.140095950
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140098910
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
movsxd rbx, edx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x200
call fcn.140100360
mov r10d, 0x6f
mov dword [rbp + 0x1e0], 0x200
mov eax, 0x68
mov dword [rsp + 0x70], 0x740066
mov word [rbp - 0x76], ax
lea rdx, [rsp + 0x50]
lea rax, [rsp + 0x30]
mov dword [rbp - 0x7a], 0x700061
lea r8d, [r10 + 3]
mov dword [rsp + 0x74], 0x43005c
mov word [rsp + 0x68], r8w
lea r12d, [r10 - 0x22]
mov word [rbp - 0x7c], r8w
mov r9d, 0x20019
xor r8d, r8d
mov dword [rsp + 0x6a], 0x73006f
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x58], 0x410057
mov dword [rsp + 0x78], 0x790072
mov dword [rsp + 0x60], 0x4d005c
mov dword [rsp + 0x7c], 0x740070
mov dword [rsp + 0x64], 0x630069
mov dword [rbp - 0x80], 0x67006f
mov dword [rsp + 0x5c], 0x450052
mov dword [rsp + 0x50], 0x4f0053
mov dword [rsp + 0x54], 0x540046
mov dword [rbp - 0x74], 0x79
mov word [rsp + 0x6e], r10w
mov qword [rsp + 0x20], rax
call fcn.1400514f0
test eax, eax
jne 0x140098af5
mov rcx, qword [rsp + 0x30]
lea r9, [rbp + 0x1e8]
mov eax, 0x68
mov dword [rsp + 0x40], 0x6e0069
mov word [rsp + 0x3e], ax
lea rdx, [rsp + 0x38]
lea rax, [rbp + 0x1e0]
mov dword [rsp + 0x4c], 0x64
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov dword [rsp + 0x44], 0x470065
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3a], 0x630061
mov dword [rsp + 0x48], 0x690075
mov word [rsp + 0x38], r12w
call fcn.140051610
test eax, eax
je 0x140098ad5
lea rax, [rsp + 0x30]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call fcn.1400514f0
test eax, eax
jne 0x140098af5
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1e8]
lea rax, [rbp - 0x70]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140051610
test eax, eax
jne 0x140098af5
mov rdx, rbx
lea r8, [rbp - 0x70]
mov r9, 0xffffffffffffffff
mov rcx, rdi
call fcn.14012ae30
mov rcx, qword [rsp + 0x30]
call fcn.1400518a0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a6160
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400a6201
call fcn.1400bcaa8
test al, al
jne 0x1400a6201
xor esi, esi
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1400a618a
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1400c8e18
test rax, rax
je 0x1400a61cf
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1400c8e18
mov rsi, rax
test rax, rax
je 0x1400a61cf
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
jmp 0x1400a61f6
mov cl, byte [rbx]
call fcn.1400b80d0
imul rdi, rdi, 0x21
movsx rcx, al
xor rdi, rcx
inc rbx
cmp rbx, rsi
jb 0x1400a61e1
movzx eax, dil
jmp 0x1400a6203
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b2094
Capabilities:
Write file on windows

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 r14
sub rsp, 0x30
cmp byte [rcx + 0xad6], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1400b2155
cmp qword [rcx + 0x270], 0
je 0x1400b210a
call fcn.1400a05dc
mov dl, 1
mov rcx, rdi
mov bl, al
call fcn.1400a0998
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x270]
mov dl, bl
mov rcx, rdi
call fcn.1400a0998
jmp 0x1400b2155
mov ecx, esi
test edx, edx
je 0x1400b211a
sub ecx, 1
je 0x1400b211a
cmp ecx, 1
jne 0x1400b2155
mov r9, qword [rdi + 0x1d0]
lea rax, [0x140174778]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.14012b938
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.14012b938
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400b59a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140149f38
cdqe
add rsp, 0x28
ret
Function at 0x1400d9bb8
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor esi, esi
mov edi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x1400d9bf4
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400b2170
lea eax, [rsi + 0x11]
jmp 0x1400d9c4e
cmp edx, 0xc8
je 0x1400d9c0b
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400b2244
cmp edi, 0x13
jne 0x1400d9c1d
mov rdx, rbp
mov rcx, rbx
call fcn.1400d98e8
jmp 0x1400d9c4a
cmp edi, 0x14
jne 0x1400d9c2c
mov rcx, rbx
call fcn.1400d8884
jmp 0x1400d9c4a
cmp edi, 0x15
jne 0x1400d9c37
lea r8d, [rdi - 8]
jmp 0x1400d9c40
cmp edi, 0x16
jne 0x1400d9c4c
lea r8d, [rdi - 8]
mov dl, 1
mov rcx, rbx
call fcn.1400d943c
mov esi, eax
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f9634
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov ebp, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.14010f6d0]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x1400f973d
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400f96b6
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
test rbp, rbp
je 0x1400f9732
mov rsi, rbp
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
mov al, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x40], al
inc r14
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x1400f96c6
jmp 0x1400f9732
mov rcx, qword [rdi + 8]
lea rdx, [0x1401812d0]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401812d1]
mov r8d, 1
call qword [rbx + 8]
inc rsi
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jb 0x1400f9707
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400fb598
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400fb5f0
mov r8b, byte [r10]
mov al, r8b
mov r9b, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
and r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10], cl
inc r10
sub rdx, 1
jne 0x1400fb5a0
ret
Function at 0x14010fae8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14010f820
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010f820
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010f820
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010f820
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010f820
cmp dword [rcx + 0x84], 0xe
jbe 0x14010f820
cmp dword [rcx + 0xf8], esi
je 0x14010f820
mov ecx, r14d
call fcn.14010f9f0
mov ecx, 2
call fcn.14014cc24
nop
cmp byte [0x1401a8bb8], 0
jne 0x14010f8ea
mov r15d, 1
mov eax, r15d
xchg dword [0x1401a8ba8], eax
test ebx, ebx
jne 0x14010f893
mov rdi, qword [0x1401a7138]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1401a8bb0]
cmp rcx, rax
je 0x14010f88a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x14016a440]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1401a8f20]
jmp 0x14010f89f
cmp ebx, r15d
jne 0x14010f8a5
lea rcx, [0x1401a8f38]
call fcn.1401470a8
nop
test ebx, ebx
jne 0x14010f8bc
lea rdx, [0x14016a5d0]
lea rcx, [0x14016a5b0]
call fcn.14014772c
lea rdx, [0x14016a5e0]
lea rcx, [0x14016a5d8]
call fcn.14014772c
movzx eax, byte [0x1401a8bb8]
test esi, esi
cmove eax, r15d
mov byte [0x1401a8bb8], al
jmp 0x14010f8ea
mov ecx, 2
call fcn.14014cc78
test esi, esi
jne 0x14010f901
mov ecx, r14d
call fcn.14010f91c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14010f7b0
Function at 0x140151bc4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401517ec
call fcn.14010e538
mov dword [rax], 0x16
call fcn.14010e38c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401517d4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401517d4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14015181e
lock or dword [rax + 0x14], 0x10
jmp 0x1401517d4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14015183b
mov rcx, qword [rbp + 0x10]
call fcn.140160454
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14014fb4c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140149f38
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140151892
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401517d4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401518fe
mov rcx, qword [rbp + 0x10]
call fcn.14014fb4c
cmp eax, 0xffffffff
je 0x1401518e5
mov rcx, qword [rbp + 0x10]
call fcn.14014fb4c
cmp eax, 0xfffffffe
je 0x1401518e5
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14014fb4c
movsxd rdi, eax
lea rsi, [0x1401a99c0]
mov rcx, rbx
sar rdi, 6
call fcn.14014fb4c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401518ec
lea rax, [0x1401a7540]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401518fe
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140151934
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140151930
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140151930
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401517d7
jmp 0x1401517a4
Function at 0x14015d2d8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14015d2f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14010e4c8
or eax, 0xffffffff
jmp 0x14015d2fa
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001310
Capabilities:
Create service
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rax, qword [0x140028008]
xor rax, rsp
mov qword [rsp + 0x500], rax
xor edx, edx
lea rcx, [rsp + 0x2f0]
mov r8d, 0x208
call fcn.1400024f0
xor edx, edx
lea rcx, [rsp + 0x90]
mov r8d, 0x250
call fcn.1400024f0
lea rdx, [rsp + 0x90]
lea rcx, str.Martini.sys
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140001429
xor r9d, r9d
lea r8, [rsp + 0x2f0]
mov edx, 0x104
lea rcx, [rsp + 0xbc]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x140001429
movups xmm0, xmmword [str.Martini]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
movups xmmword [rsp + 0x2e0], xmm0
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140001429
mov r8d, 0xf01ff
lea rdx, [rsp + 0x2e0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14000144f
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140001417
cmp dword [rsp + 0x74], 1
jne 0x1400014bb
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400014bb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.1400014f0
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
xor ecx, ecx
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x60], rcx
lea r8, [rsp + 0x2e0]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x2e0]
mov qword [rsp + 0x50], rcx
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140001401
jmp 0x140001420
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140001070
neg eax
sbb eax, eax
jmp 0x14000142e

Function at 0x140001df8
Capabilities:
Parse pe header

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

Function at 0x140008140
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007f3c
Function at 0x14000ccec
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 0x14000cd73
mov rsi, rbx
cmp word [rax], bp
je 0x14000cd32
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000cd1c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000cd18
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009a84
mov rdi, rax
test rax, rax
je 0x14000cd60
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400033c0
mov rbp, rdi
xor ecx, ecx
call fcn.140008f3c
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 0x140010c7c
Capabilities:
Get file size

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

Function at 0x140013620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140013648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001310
Capabilities:
Write file on windows

Disassembly:
push rbx
mov eax, 0x1070
call fcn.140008560
sub rsp, rax
mov rax, qword [0x1400bc8f8]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov eax, dword [0x1400cb654]
mov rbx, rcx
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x4c], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x30], 0x64
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x48], 0x1000
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x1400cb690]
lea r9, [rsp + 0x58]
mov r8d, 0x29
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, rbx
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x1070
pop rbx
ret

Function at 0x1400013d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1400bc8f8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, dword [0x1400cb654]
mov rbx, rcx
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x4c], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x30], 0x64
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], 0x14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x1400cb690]
lea r9, [rsp + 0x58]
mov r8d, 0x29
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x70
pop rbx
ret

Function at 0x140001470
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400bc8f8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x1400cb654]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x4c], 0
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x30], 0x64
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x48], 8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x1400cb690]
lea r9, [rsp + 0x58]
mov r8d, 0x29
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400085d0
add rsp, 0x78
ret