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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140100c52
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140100c99
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140100cf2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, 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 + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140100cb0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140100d33
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140115892]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140115893]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140100d00
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140100dac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140100de6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140100deb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140100e34
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140100e34
dec r8
sub rdx, 1
jne 0x140100e1a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1401022e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140102332
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140102332
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140102332
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140102332
cmp dword [rcx + 0x84], 0xe
jbe 0x140102332
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140102334
xor al, al
add rsp, 0x28
ret
Function at 0x14000afc8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rbp, [0x14004d010]
mov ecx, edi
lea rsi, [0x140000000]
mov rdx, rbp
movzx eax, byte [rdx]
inc rdx
mov byte [rax + rsi + 0x548f0], cl
inc ecx
cmp ecx, 0x100
jl 0x14000aff1
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x555f1], r9b
mov byte [rsi + rdi*4 + 0x555f0], r9b
mov byte [rsi + rdi*4 + 0x551f3], r9b
mov byte [rsi + rdi*4 + 0x551f0], r9b
mov byte [rsi + rdi*4 + 0x54df3], r9b
mov byte [rsi + rdi*4 + 0x54df2], r9b
mov byte [rsi + rdi*4 + 0x549f2], r9b
mov byte [rsi + rdi*4 + 0x549f1], r9b
call fcn.14000b7e0
mov dl, 3
mov byte [rsi + rdi*4 + 0x555f3], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x551f2], al
mov byte [rsi + rdi*4 + 0x54df1], al
mov byte [rsi + rdi*4 + 0x549f0], al
call fcn.14000b7e0
movzx r9d, byte [rdi + rsi + 0x548f0]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x555f2], al
mov byte [rsi + rdi*4 + 0x551f1], al
mov byte [rsi + rdi*4 + 0x54df0], al
mov byte [rsi + rdi*4 + 0x549f3], al
call fcn.14000b7e0
mov dl, 9
mov byte [rsi + rdi*4 + 0x565f2], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x561f1], al
mov byte [rsi + rdi*4 + 0x55df0], al
mov byte [rsi + rdi*4 + 0x559f3], al
mov byte [rsi + r9*4 + 0x575f2], al
mov byte [rsi + r9*4 + 0x571f1], al
mov byte [rsi + r9*4 + 0x56df0], al
mov byte [rsi + r9*4 + 0x569f3], al
call fcn.14000b7e0
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x565f0], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x561f3], al
mov byte [rsi + rdi*4 + 0x55df2], al
mov byte [rsi + rdi*4 + 0x559f1], al
mov byte [rsi + r9*4 + 0x575f0], al
mov byte [rsi + r9*4 + 0x571f3], al
mov byte [rsi + r9*4 + 0x56df2], al
mov byte [rsi + r9*4 + 0x569f1], al
call fcn.14000b7e0
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x565f1], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x561f0], al
mov byte [rsi + rdi*4 + 0x55df3], al
mov byte [rsi + rdi*4 + 0x559f2], al
mov byte [rsi + r9*4 + 0x575f1], al
mov byte [rsi + r9*4 + 0x571f0], al
mov byte [rsi + r9*4 + 0x56df3], al
mov byte [rsi + r9*4 + 0x569f2], al
call fcn.14000b7e0
mov byte [rsi + rdi*4 + 0x565f3], al
mov byte [rsi + rdi*4 + 0x561f2], al
mov byte [rsi + rdi*4 + 0x55df1], al
mov byte [rsi + rdi*4 + 0x559f0], al
inc rdi
mov byte [rsi + r9*4 + 0x575f3], al
mov byte [rsi + r9*4 + 0x571f2], al
mov byte [rsi + r9*4 + 0x56df1], al
mov byte [rsi + r9*4 + 0x569f0], al
cmp rdi, 0x100
jl 0x14000b008
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400016a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2030
call fcn.140002c00
sub rsp, rax
mov rbx, rdx
mov rdi, rcx
call fcn.140001790
xor esi, esi
lea rdx, [rsp + 0x30]
mov r9, rdi
mov r8d, 0x2000
mov rcx, qword [rax]
mov rax, qword [rbx]
or rcx, 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.1400092fc
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp byte [0x140027b38], sil
mov rbx, rax
jne 0x14000173c
lea rdx, [rsp + 0x2048]
mov byte [0x140027b38], 1
mov rcx, rax
mov dword [rsp + 0x2048], esi
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x2048]
mov rcx, rbx
or edx, 4
mov dword [rsp + 0x2048], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [rsp + 0x2050], esi
cmp rbx, 0xffffffffffffffff
je 0x140001779
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x140001755
lea r9, [rsp + 0x2050]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003110
Capabilities:
Parse pe header

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

Function at 0x1400072f8
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 0x140007163
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007163
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007163
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007163
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007163
cmp dword [rcx + 0x84], 0xe
jbe 0x140007163
cmp dword [rcx + 0xf8], 0
je 0x140007163
mov ecx, ebx
call fcn.140007214
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.140006ff0
nop
cmp dword [rbp + 0x20], 0
je 0x1400071b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400071bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400070f4
Function at 0x14000fde4
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000fe14
xor eax, eax
jmp 0x14000fed7
mov rbp, rbx
cmp word [rax], si
je 0x14000fe39
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000fe20
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000fe1c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000fd04
movsxd r14, eax
test eax, eax
jne 0x14000fe77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000fe0d
mov rcx, r14
call fcn.14000ce60
mov rdi, rax
test rax, rax
jne 0x14000fe90
xor ecx, ecx
call fcn.14000c0f4
jmp 0x14000fe6c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000fd04
test eax, eax
jne 0x14000fec1
mov rcx, rdi
call fcn.14000c0f4
jmp 0x14000fecb
xor ecx, ecx
call fcn.14000c0f4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14000fef4
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 0x14000ff7b
mov rsi, rbx
cmp word [rax], bp
je 0x14000ff3a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000ff24
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000ff20
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000ce60
mov rdi, rax
test rax, rax
je 0x14000ff68
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140019c90
mov rbp, rdi
xor ecx, ecx
call fcn.14000c0f4
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 0x140016b58
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000b650
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140016be2
cmp byte [rbp - 0x21], r15b
je 0x140016bdd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140016c18
call fcn.1400117d8
test eax, eax
jne 0x140016c04
cmp byte [rbp - 0x21], r15b
je 0x140016bfc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140016c18
cmp byte [rbp - 0x21], r15b
je 0x140016c15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000e450
test eax, eax
jne 0x140016cb8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b650
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140016c57
cmp byte [rbp - 0x21], r15b
je 0x140016c8c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140016c8c
call fcn.1400117d8
test eax, eax
jne 0x140016c78
cmp byte [rbp - 0x21], r15b
je 0x140016c71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140016c8c
cmp byte [rbp - 0x21], r15b
je 0x140016c89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000e450
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140016cb8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140016cbb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140016cc9
mov rcx, rdi
call fcn.14000c0f4
cmp byte [rbp + 0x3f], r15b
je 0x140016cd8
mov rcx, qword [rbp + 0x27]
call fcn.14000c0f4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140016f7c
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.140017a94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140017a94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400170cc
cmp rax, 0xffffffffffffffff
je 0x1400170cc
xor edi, edi
test rbp, rbp
jle 0x140017077
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000e3c4
mov rbx, rax
test rax, rax
jne 0x140017004
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001706d
mov edx, 0x8000
mov ecx, r14d
call fcn.14000a3e8
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.140013dc8
cmp eax, 0xffffffff
je 0x14001704d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140017014
mov edx, r15d
mov ecx, r14d
call fcn.14000a3e8
jmp 0x14001706d
cmp byte [rsi + 0x38], dil
je 0x140017064
cmp dword [rsi + 0x34], 5
jne 0x140017064
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001706d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000c0f4
jmp 0x1400170e0
jns 0x1400170e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140017a94
cmp rax, 0xffffffffffffffff
jne 0x140017098
cmp byte [rsi + 0x30], dil
je 0x1400170e0
mov edi, dword [rsi + 0x2c]
jmp 0x1400170e0
mov ecx, r14d
call fcn.140010ce0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400170e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400170e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400170d9
mov eax, dword [rsi + 0x2c]
jmp 0x1400170de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140017a94
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 0x140017110
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, [0x140028190]
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 0x140017167
cmp word [rdx], r13w
jne 0x140017167
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001716c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140017291
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400172b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400171a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400171cc
cmp r9, r8
jae 0x1400171dc
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 0x140017186
jmp 0x140017291
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 0x140017286
cmp dword [rsp + 0x80], esi
je 0x140017286
lea r8, [0x140028190]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001725e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001722e
mov word [rbx], r13w
jmp 0x14001728e
mov ecx, 0xd
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 0x14001723b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001728e
cmp word [rsp + 0x70], r13w
jne 0x14001726b
cmp rbx, r14
je 0x140017228
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140017a94
cmp word [rsp + 0x70], r13w
je 0x140017291
mov ecx, 0xd
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, [0x140028190]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001728b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140017291
Function at 0x1400195a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400195c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400195c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140006a10
Capabilities:
Create service
Delete service
Start service

Disassembly:
sub rsp, 0x6f8
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov r8d, 0x104
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140006a69
xor eax, eax
jmp 0x140006b9c
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x98], rax
lea r8, [rsp + 0xc0]
lea rdx, [0x14007744c]
lea rcx, [rsp + 0x1d0]
call fcn.140006880
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x70]
call fcn.140006cc0
mov rcx, rax
call fcn.140008360
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x71]
call fcn.140006c30
mov rcx, rax
call fcn.140008380
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x110
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140006b60
xor eax, eax
jmp 0x140006b9c
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140006b8c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006b70
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1400433a0
add rsp, 0x6f8
ret
Function at 0x140012d80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140093020]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140045d80
mov dword [rsp + 0x60], 0x104
call fcn.140012290
mov r13, rax
lea rdx, str.QueryFullProcessImageNameW
lea rcx, [rsp + 0x40]
call fcn.140003040
nop
call fcn.14002b010
lea rcx, [r13 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x40]
call fcn.140002bf0
mov r14, rax
lea rcx, [rsp + 0x40]
call fcn.140002ee0
mov rdx, rax
xor esi, esi
movabs r9, 0xcbf29ce484222325
mov ecx, esi
test r14, r14
je 0x140012e53
movabs r8, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r8
inc rcx
cmp rcx, r14
jb 0x140012e40
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.140012ae0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140012e72
mov rcx, qword [r13 + 8]
mov qword [rsp + 0x68], rcx
lea rdx, [r13 + 8]
lea rcx, [rsp + 0x68]
call fcn.140001650
mov rax, qword [r13 + 8]
mov qword [rsp + 0x20], rax
lea rdx, [r13 + 8]
lea rcx, [rsp + 0x20]
call fcn.140001650
mov rax, qword [rsp + 0x68]
lea rcx, [r13 + 0x40]
cmp rax, qword [rsp + 0x20]
je 0x140012eb0
mov rsi, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
lea rcx, [rsp + 0x40]
call fcn.140002f90
test rsi, rsi
je 0x140012edf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
xor edx, edx
call rsi
jmp 0x140012ef1
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140002e30
nop
lea rcx, [rsp + 0x20]
call fcn.140002b20
test al, al
jne 0x140012f70
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140002960
mov r9d, 0x5c
mov rdx, rbx
mov rcx, rax
call fcn.140013450
cmp rax, 0xffffffffffffffff
jne 0x140012f5b
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140002960
mov r9d, 0x2f
mov rdx, rbx
mov rcx, rax
call fcn.140013450
cmp rax, 0xffffffffffffffff
je 0x140012f70
mov r9, rax
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140013360
jmp 0x140012f7e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400103f0
nop
lea rcx, [rsp + 0x20]
call fcn.140002d40
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400433a0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret