joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026c4c
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 0x140026aab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026aab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026aab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026aab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026aab
cmp dword [rcx + 0x84], 0xe
jbe 0x140026aab
cmp dword [rcx + 0xf8], 0
je 0x140026aab
mov ecx, ebx
call fcn.140026b68
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.140026938
nop
cmp dword [rbp + 0x20], 0
je 0x140026af9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140026b04
int3
xor r8d, r8d
xor edx, edx
jmp 0x140026a3c
Function at 0x14002d250
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14002d282
call fcn.1400252a8
mov dword [rax], 0x16
call fcn.140022ac4
jmp 0x14002d3a1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14002d3a1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14002d3a1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14002d2b1
lock or dword [rcx + 0x14], 0x10
jmp 0x14002d3a1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002d2c5
call fcn.14002e8b4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002b2fc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002e030
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14002d38f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14002d35a
mov rcx, rsi
call fcn.14002b2fc
cmp eax, edi
je 0x14002d345
mov rcx, rsi
call fcn.14002b2fc
cmp eax, 0xfffffffe
je 0x14002d345
mov rcx, rsi
call fcn.14002b2fc
movsxd rbx, eax
lea r14, [0x140060130]
mov rcx, rsi
sar rbx, 6
call fcn.14002b2fc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14002d34c
lea rdx, [0x14005b670]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14002d35a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14002d37e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14002d37e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14002d37e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14002d3a4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002d6cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140017bf0
sub rsp, rax
mov rax, qword [0x140058848]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002b2fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002d71b
mov rax, rbp
jmp 0x14002d823
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x60130]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002e808
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x60130]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002d81f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002d81f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002e808
test rax, rax
js 0x14002d81f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002d81f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002d811
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002d811
cmp byte [rcx], 0xd
jne 0x14002d7f7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002d806
cmp byte [rcx + 1], 0xa
jne 0x14002d806
inc rcx
jmp 0x14002d806
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5b6c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002d7d9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002d823
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140017520
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002db84
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140060130]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002dbe2
cmp word [rdx], r12w
jne 0x14002dbe2
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002dbe8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002dd43
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002dd1e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002dc21
mov rcx, r9
jmp 0x14002dc44
cmp r9, rdx
jae 0x14002dc5b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002dc05
jmp 0x14002dd43
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002dd18
cmp dword [rsp + 0x80], edi
je 0x14002dd18
mov rdx, r14
lea r11, [0x140060130]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002dcf1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002dcc4
mov word [rbx], r12w
jmp 0x14002dd3f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002dccd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002dd3f
cmp word [rsp + 0x70], r12w
jne 0x14002dcfe
cmp rbx, rsi
je 0x14002dcbe
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002e810
cmp word [rsp + 0x70], r12w
je 0x14002dd43
mov word [rbx], r13w
jmp 0x14002dd3f
lea r11, [0x140060130]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002dd3b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002dd43
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400319ec
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 0x140031a1c
xor eax, eax
jmp 0x140031adf
mov rbp, rbx
cmp word [rax], si
je 0x140031a41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140031a28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140031a24
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.140030018
movsxd r14, eax
test eax, eax
jne 0x140031a7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031a15
mov rcx, r14
call fcn.14002a15c
mov rdi, rax
test rax, rax
jne 0x140031a98
xor ecx, ecx
call fcn.14002a120
jmp 0x140031a74
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.140030018
test eax, eax
jne 0x140031ac9
mov rcx, rdi
call fcn.14002a120
jmp 0x140031ad3
xor ecx, ecx
call fcn.14002a120
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 0x14003767c
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.14001cfe8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140037706
cmp byte [rbp - 0x21], r15b
je 0x140037701
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003773c
call fcn.14002ba3c
test eax, eax
jne 0x140037728
cmp byte [rbp - 0x21], r15b
je 0x140037720
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003773c
cmp byte [rbp - 0x21], r15b
je 0x140037739
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.14002584c
test eax, eax
jne 0x1400377dc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001cfe8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003777b
cmp byte [rbp - 0x21], r15b
je 0x1400377b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400377b0
call fcn.14002ba3c
test eax, eax
jne 0x14003779c
cmp byte [rbp - 0x21], r15b
je 0x140037795
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400377b0
cmp byte [rbp - 0x21], r15b
je 0x1400377ad
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.14002584c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400377dc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400377df
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400377ed
mov rcx, rdi
call fcn.14002a120
cmp byte [rbp + 0x3f], r15b
je 0x1400377fc
mov rcx, qword [rbp + 0x27]
call fcn.14002a120
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 0x1406e1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406e11df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406e1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e106f
add dl, dl
jne 0x1406e1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e10f6
xor eax, eax
add dl, dl
jne 0x1406e10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e11ad
add dl, dl
jne 0x1406e10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406e10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406e107e
mov eax, 1
add dl, dl
jne 0x1406e1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e10fb
sub eax, ebx
mov ebx, 1
jne 0x1406e114c
mov ecx, 1
add dl, dl
jne 0x1406e112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406e1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e115d
cmp eax, 0x7d00
jae 0x1406e119b
cmp eax, 0x500
jb 0x1406e1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e107e
cmp eax, 0x7f
ja 0x1406e119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406e11d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406e107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005e3c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, r8
mov rcx, qword [rcx]
mov rdi, rdx
cmp rdx, rcx
jb 0x140005e83
mov r9, qword [rbx + 8]
lea rax, [rdx + r8]
add r9, rcx
cmp rax, r9
jae 0x140005e83
mov rax, qword [rbx + 0x10]
add rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140005e08
mov rax, 0xfffffffffffff000
lea rdx, [rsi + 0xfff]
add rdx, rdi
lea r9, [rbx + 0x2c]
and rdx, rax
mov rcx, rdi
and rcx, rax
mov r8d, 0x40
sub rdx, rcx
mov qword [rbx], rcx
mov qword [rbx + 8], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rbx + 0x28], eax
test eax, eax
jne 0x140005e6c
xor eax, eax
jmp 0x140005e73
Function at 0x14000dff8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
lea rsi, [rcx + 0xfbc0]
mov rbx, rcx
xor edi, edi
lea r10, [r8 + 1]
mov rcx, rsi
mov r11, rdx
mov ebp, edi
call fcn.14000e280
or r14, 0xffffffffffffffff
jmp 0x14000e03a
cmp byte [rbx + r11 + 0xfc00], dil
je 0x14000e042
inc r11
cmp r11, r10
jb 0x14000e02d
mov r11, r14
cmp r11, r14
je 0x14000e062
lea r8, [r9 - 1]
mov rcx, rbx
lea rdx, [r11 + 1]
call fcn.14000e160
cmp rax, r14
je 0x14000e062
lea r11, [rax + 1]
jmp 0x14000e03a
lock add qword [rsi], r14
cmp r11, r14
je 0x14000e0f3
xor eax, eax
lock cmpxchg qword [rsi], r14
jne 0x14000e06f
mov r8, r9
mov rdx, r11
mov rcx, rbx
call fcn.14000e160
cmp rax, r14
jne 0x14000e0f0
mov rbp, r11
shl rbp, 6
add rbp, rbx
test r9, r9
je 0x14000e0b9
lea rcx, [rbx + 0xfc00]
add rcx, r11
lea rax, [r9 - 1]
test rax, rax
je 0x14000e0b9
mov byte [rcx], 2
inc rcx
sub rax, 1
jne 0x14000e0ad
lea rax, [r11 + r9]
mov byte [rax + rbx + 0xfbff], 1
cmp dword [rbx + 0xfbc8], edi
jne 0x14000e0f0
lea r9, [rsp + 0x40]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rbx + 0xfbc8], 1
xchg qword [rsi], rdi
mov rbx, qword [rsp + 0x50]
mov rax, rbp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001b33c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b388
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b380
cmp dword [rcx + 0x3c], edx
jl 0x14001b380
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001b380
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 0x14001b388
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14003e3d0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x20
mov rsi, r8
xor ebx, ebx
lea r8, [rax + 0x10]
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rbx
call fcn.140039908
mov edi, eax
test eax, eax
jns 0x14003e409
mov ecx, eax
call fcn.14003e600
jmp 0x14003e454
lea rdx, [rsp + 0x48]
lea rcx, str.S_1_15_2_2608634532_1453884237_1118350049_1925931850_670756941_1603938316_3764965493
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x14003e430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov edi, eax
jmp 0x14003e400
mov rax, qword [rsp + 0x38]
cmp qword [rax], rbx
je 0x14003e452
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov dword [rsi], ebx
mov ecx, edi
call fcn.14006a86c
lea rcx, [rsp + 0x38]
call fcn.14019c76c
lea rcx, [rsp + 0x48]
call fcn.14003b9c0
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003e704
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x20
mov rcx, rdx
xor ebx, ebx
lea rdx, [rax + 0x20]
mov qword [rax + 0x20], rbx
mov dword [rax + 8], ebx
mov rdi, r8
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x14003e749
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov ecx, eax
mov ebx, eax
call fcn.14003e600
jmp 0x14003e765
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14003e731
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov ecx, ebx
call fcn.14006a86c
lea rcx, [rsp + 0x48]
call fcn.14003b9c0
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140040534
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1f]
sub rsp, 0xf0
mov rax, qword [0x1405fa008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [rbp + 0x7f]
mov rdi, r9
mov qword [rbp - 0x79], rcx
mov r12, r8
lea rcx, [rsp + 0x38]
mov qword [rbp - 0x61], rax
mov rbx, rdx
call fcn.1401c3d7c
lea rcx, [rbp - 0x71]
call fcn.1401c3d7c
xor r13d, r13d
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], r13
call fcn.140109868
cmp dword [rdi + 0xc], 2
mov dword [rbp - 0x59], 0x4f004f
mov dword [rbp - 0x55], 0x42
mov dword [rbp - 0x51], 0x4f004f
mov dword [rbp - 0x4d], 0x54
mov dword [rbp - 0x39], 0x410056
mov dword [rbp - 0x35], 0x49004c
mov dword [rbp - 0x31], 0x490044
mov dword [rbp - 0x2d], 0x590054
mov word [rbp - 0x29], r13w
mov dword [rbp - 0x49], 0x4f004e
mov dword [rbp - 0x45], 0x45004e
mov word [rbp - 0x41], r13w
mov dword [rbp - 0x21], 0x73006d
mov dword [rbp - 0x1d], 0x740066
mov dword [rbp - 0x19], 0x73003a
mov dword [rbp - 0x15], 0x2f006c
mov dword [rbp - 0x11], 0x690074
mov dword [rbp - 0xd], 0x65006d
mov dword [rbp - 9], 0x2f0072
mov dword [rbp - 5], 0x730025
mov dword [rbp - 1], 0x25002f
mov dword [rbp + 3], 0x2f0073
mov dword [rbp + 7], 0x730025
mov dword [rbp + 0xb], 0x25002f
mov dword [rbp + 0xf], 0x73
je 0x140040675
cmp dword [rdi + 0xc], 6
je 0x14004066b
cmp dword [rdi + 0xc], 9
je 0x140040661
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14003e600
jmp 0x140040752
mov rdi, qword [rdi + 0x48]
lea r14, [rbp - 0x39]
jmp 0x14004067d
lea r14, [rbp - 0x59]
lea rdi, [rbp - 0x49]
jmp 0x14004067d
mov rdi, qword [rdi + 0x40]
lea r14, [rbp - 0x51]
mov edx, 0x3b
lea r8, [rsp + 0x38]
mov rcx, rbx
lea r9d, [rdx - 0x3a]
call fcn.14007a910
mov ebx, eax
test eax, eax
jns 0x14004069d
mov ecx, eax
jmp 0x140040657
test rdi, rdi
je 0x140040745
mov esi, r13d
cmp dword [rsp + 0x3c], r13d
jle 0x140040745
mov r13, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14003e7b0
mov r9, qword [rbp - 0x79]
lea rdx, [rbp - 0x21]
movsxd rax, esi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rdi
mov r8, r14
mov rax, qword [r13 + rax*8]
mov qword [rsp + 0x20], rax
call fcn.14003c91c
mov ebx, eax
test eax, eax
js 0x140040699
test r12, r12
je 0x140040708
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.14003c820
mov ebx, eax
test eax, eax
js 0x140040699
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x30]
call fcn.14003f3c8
mov ebx, eax
test eax, eax
js 0x140040699
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x71]
call fcn.14003c80c
mov ebx, eax
test eax, eax
js 0x140040699
inc esi
cmp esi, dword [rsp + 0x3c]
jl 0x1400406b9
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 0x71]
call fcn.14003bad0
mov ecx, ebx
call fcn.14006a86c
lea rcx, [rsp + 0x48]
call fcn.1400b66b8
lea rcx, [rsp + 0x30]
call fcn.14003b968
lea rcx, [rbp - 0x71]
call fcn.14003b028
lea rcx, [rsp + 0x38]
call fcn.14003b028
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14001af10
add rsp, 0xf0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140041520
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
sub rsp, 0x20
and qword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
mov r8d, 2
call fcn.14003a0bc
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x14004154e
mov ecx, eax
jmp 0x140041576
mov rcx, qword [rsp + 0x48]
lea rdx, str.ReferralId
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.14003dfe4
mov ebx, dword [rsp + 0x40]
test eax, eax
jne 0x14004157b
mov ecx, ebx
call fcn.14003e600
mov ecx, ebx
call fcn.14006a86c
lea rcx, [rsp + 0x48]
call fcn.14003b9a8
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400617b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1405fa008]
xor rax, rsp
mov qword [rsp + 0x240], rax
and qword [rsp + 0x20], 0
mov rsi, rdx
mov ebx, 0x104
lea rdx, [rsp + 0x30]
mov r8d, ebx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
jne 0x14006181c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov ebx, eax
mov ecx, eax
call fcn.14003e600
jmp 0x140061876
cmp edi, ebx
ja 0x140061835
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14003f3c8
mov ebx, eax
test eax, eax
jns 0x140061876
jmp 0x140061813
mov rdx, rdi
lea r8, [rsp + 0x20]
call fcn.140077b34
mov ebx, eax
test eax, eax
js 0x140061813
mov rbp, qword [rsp + 0x20]
mov r8d, edi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140061804
cmp eax, edi
je 0x14006186d
mov ebx, 0x8007007a
mov ecx, ebx
jmp 0x140061815
and qword [rsp + 0x20], 0
mov qword [rsi], rbp
mov ecx, ebx
call fcn.14006a86c
lea rcx, [rsp + 0x20]
call fcn.14003b968
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001af10
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140062510
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1405fa008]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov dword [rbp - 0x30], 0x25002f
mov rax, rdx
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rdi
lea rdx, str._d._d._d._d
xor r9d, r9d
mov dword [rbp - 0x2c], 0x2e0058
lea r8d, [rdi + 0xa]
mov dword [rbp - 0x28], 0x580025
mov rcx, rax
mov dword [rbp - 0x24], 0x25002e
mov dword [rbp - 0x20], 0x2e0058
mov dword [rbp - 0x1c], 0x580025
mov dword [rbp - 0x18], 0x25002e
mov dword [rbp - 0x14], 0x58
mov dword [rsp + 0x20], 0x295a
call fcn.140077bf4
mov ebx, eax
test eax, eax
jns 0x1400625a1
mov ecx, eax
call fcn.14003e600
mov ecx, ebx
call fcn.14006a86c
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001af10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret