joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012405c
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.14010fb40
sub rsp, rax
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401230e4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401240ab
mov rax, rbp
jmp 0x1401241b3
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 + 0x2f1d00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140126384
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2f1d00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401241af
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 0x1401241af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140126384
test rax, rax
js 0x1401241af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401241af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401241a1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401241a1
cmp byte [rcx], 0xd
jne 0x140124187
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140124196
cmp byte [rcx + 1], 0xa
jne 0x140124196
inc rcx
jmp 0x140124196
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2e0320]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140124169
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401241b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14010fba0
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 0x140124bd4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140124c1e
call fcn.140122a48
mov dword [rax], 0xf
call fcn.14010ccdc
mov dword [rax], 0xd
call fcn.1401374b4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14010fba0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140124c29
lea eax, [rbx + 1]
jmp 0x140124c0b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140124c09
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140124c0b
Function at 0x140126fa0
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, [0x1402f1d00]
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 0x140126ff7
cmp word [rdx], r13w
jne 0x140126ff7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140126ffc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140127121
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140127142
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140127035
mov rdx, r9
mov word [rbx], cx
jmp 0x14012705c
cmp r9, r8
jae 0x14012706c
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 0x140127016
jmp 0x140127121
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 0x140127116
cmp dword [rsp + 0x80], esi
je 0x140127116
lea r8, [0x1402f1d00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401270ee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401270be
mov word [rbx], r13w
jmp 0x14012711e
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 0x1401270cb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14012711e
cmp word [rsp + 0x70], r13w
jne 0x1401270fb
cmp rbx, r14
je 0x1401270b8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401262e0
cmp word [rsp + 0x70], r13w
je 0x140127121
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, [0x1402f1d00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14012711b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140127121
Function at 0x140131570
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140131598
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140131598
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14013b6a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140135114
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14013b749
cmp ebx, dword [rsp + 0x30]
je 0x14013b742
test esi, esi
je 0x14013b742
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14013b71d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14013b72a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14013b707
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14013b72e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14013b74b
mov eax, 1
jmp 0x14013b74b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14013cd2c
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 0x14013cd5c
xor eax, eax
jmp 0x14013ce1f
mov rbp, rbx
cmp word [rax], si
je 0x14013cd81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14013cd68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14013cd64
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.14013c7d0
movsxd r14, eax
test eax, eax
jne 0x14013cdbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14013cd55
mov rcx, r14
call fcn.14010a820
mov rdi, rax
test rax, rax
jne 0x14013cdd8
xor ecx, ecx
call fcn.1400e9dc0
jmp 0x14013cdb4
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.14013c7d0
test eax, eax
jne 0x14013ce09
mov rcx, rdi
call fcn.1400e9dc0
jmp 0x14013ce13
xor ecx, ecx
call fcn.1400e9dc0
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 0x14013ce3c
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 0x14013cec3
mov rsi, rbx
cmp word [rax], bp
je 0x14013ce82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14013ce6c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14013ce68
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14010a820
mov rdi, rax
test rax, rax
je 0x14013ceb0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140111620
mov rbp, rdi
xor ecx, ecx
call fcn.1400e9dc0
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 0x14013f474
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.14011a3f8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14013f4fe
cmp byte [rbp - 0x21], r15b
je 0x14013f4f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14013f534
call fcn.1401358e4
test eax, eax
jne 0x14013f520
cmp byte [rbp - 0x21], r15b
je 0x14013f518
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14013f534
cmp byte [rbp - 0x21], r15b
je 0x14013f531
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.14011f8e4
test eax, eax
jne 0x14013f5d4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14011a3f8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14013f573
cmp byte [rbp - 0x21], r15b
je 0x14013f5a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14013f5a8
call fcn.1401358e4
test eax, eax
jne 0x14013f594
cmp byte [rbp - 0x21], r15b
je 0x14013f58d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14013f5a8
cmp byte [rbp - 0x21], r15b
je 0x14013f5a5
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.14011f8e4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14013f5d4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14013f5d7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14013f5e5
mov rcx, rdi
call fcn.1400e9dc0
cmp byte [rbp + 0x3f], r15b
je 0x14013f5f4
mov rcx, qword [rbp + 0x27]
call fcn.1400e9dc0
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 0x140140ac4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140140ada
mov al, 1
jmp 0x140140b3a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140140aeb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140140b38
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401245bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140140b38
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140140b38
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140140b38
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140140b3a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140147ae0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbx, r8
mov r15, rdx
mov r14, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, 0x18
call fcn.14010cc14
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x1402e3948]
jne 0x140147b4d
mov rcx, r15
call fcn.140103420
mov qword [rsi], r15
test rbx, rbx
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14003a310]
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140147bc1
test rbx, rbx
je 0x140147bb6
mov qword [rbx], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14010fba0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140147b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140147cca
mov ebx, eax
cmp eax, 0x5af
je 0x140147cca
cmp ebx, 0xe
je 0x140147cca
mov eax, dword [0x1402f3f64]
mov ecx, dword [0x1402f0db0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140147cd2
lea r8, [rsp + 0x5c]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r8 - 0xc], rax
mov dword [r8 - 4], 0xaaaaaaaa
xor r9d, r9d
mov eax, 0xcccccccd
mov ecx, ebx
imul rcx, rax
shr rcx, 0x23
lea edx, [rcx + rcx]
lea edx, [rdx + rdx*4]
mov r10d, ebx
sub r10d, edx
or r10b, 0x30
mov byte [rsp + r9 + 0x5b], r10b
dec r9
cmp ebx, 9
mov ebx, ecx
ja 0x140147c2e
lea rdx, [r8 + r9]
neg r9
lea rbx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400fff00
movzx eax, byte [rbx + 0x17]
test al, al
js 0x140147c7a
mov edx, eax
and edx, 0x7f
jmp 0x140147c7f
mov rdx, qword [rsp + 0x40]
test rdx, rdx
js 0x140147cfc
mov rcx, qword [rsp + 0x38]
test al, al
jns 0x140147c97
test rcx, rcx
jne 0x140147c97
test rdx, rdx
jne 0x140147cff
test al, al
jns 0x140147ca0
call fcn.14010cc0c
test rsi, rsi
je 0x140147b90
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1402e3948]
jne 0x140147cbd
call fcn.140103630
mov rcx, rsi
call fcn.14010cc0c
jmp 0x140147b90
mov rcx, r14
call fcn.1401d6e00
lea rcx, [0x1402f3f64]
call fcn.14010d4bc
cmp dword [0x1402f3f64], 0xffffffff
jne 0x140147c0b
lea rcx, [0x1402f3f64]
call fcn.14010d064
jmp 0x140147c0b
int3
int3
Function at 0x1401486a0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.14010fb40
sub rsp, rax
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x1402efc60]
cmp esi, 0xffffffff
je 0x140148753
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140148786
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140111cd0
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.14010d000
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.140111620
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14010fba0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140148789
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x1402efc60], esi
je 0x1401486d3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x1402efc60]
jmp 0x1401486d3
int3
int3
Function at 0x140151910
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rdx, qword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1401545aa
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd0
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test dl, dl
je 0x14015483f
lea rax, [0x14025be80]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1402c7090]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.14006f638
lea rax, [0x14025bef0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.14006f638
mov rax, qword [rsi]
test rax, rax
je 0x140154823
mov rdi, qword [rax]
mov dword [rsp + 0x20], 1
mov r8d, 0x10000
mov rcx, rdi
xor edx, edx
mov r9d, 0x2000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, qword [rsi + 0x18]
shl r14, 6
lea rbx, [r14 + 0x60]
cmp rbx, 0x10001
jae 0x140154826
mov r15, rax
mov edx, 0x10000
sub edx, ebx
xor ecx, ecx
call fcn.140087af0
mov ecx, 0x800
mov r8d, 0x1000
mov edx, 0x800
mov r12, r8
shr rdx, 1
mov r8, rcx
cmp rcx, rbx
mov rcx, rdx
jae 0x14015469f
neg r12d
and r12d, eax
mov eax, r12d
and eax, 0xfffff000
add r15, rax
add r14, 0x105f
and r14, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
mov rdx, r15
mov r8, r14
mov r9d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x140154829
mov r14, rax
and r12d, 0xfff
add r14, r12
movaps xmm0, xmmword [0x14029bb90]
lea r15, [rsp + 0x68]
movups xmmword [r15 + 0x10], xmm0
movups xmmword [r15 + 0x50], xmm0
movups xmmword [r15 + 0x40], xmm0
movups xmmword [r15 + 0x30], xmm0
movups xmmword [r15 + 0x20], xmm0
mov qword [r15], rbx
mov dword [r15 + 0x18], 0
mov qword [r15 + 8], 0x20
lea rcx, [0x140302eb0]
mov r8d, 0x108
xor edx, edx
call fcn.140111cd0
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9, r15
call fcn.14015484e
test eax, eax
jne 0x14015482c
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x68]
mov r9d, 0x20
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, 0x2a
test eax, eax
je 0x1401547ff
cmp qword [rsp + 0x60], 0x20
jne 0x1401547ff
lea rax, [rsp + 0x5c]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
test rcx, rcx
je 0x140154830
mov qword [rsp + 0x20], 0x108
lea r8, str.g_originals
lea r9, [0x140302eb0]
lea rsi, [rsp + 0x30]
mov rdx, rsi
call fcn.140153392
mov ebp, dword [rsi]
cmp byte [rsi + 0x1f], 0
js 0x140154833
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14010fba0
mov eax, ebp
add rsp, 0xd0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
int3
int3
int3
mov ebp, eax
jmp 0x1401547ff
int3
mov rcx, qword [rsp + 0x38]
call fcn.14010cc0c
jmp 0x1401547ff
xor ebp, ebp
cmp qword [rsi + 0x18], 0
je 0x1401547ff
jmp 0x140154637
Function at 0x140154d0c
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov dword [r15], 0xaaaaaaaa
mov qword [rsp + 0x20], r15
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140154dd3
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x28]
mov qword [r12], rax
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140154dd3
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010fba0
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140154db5
Function at 0x140156890
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rsi, r8
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movups xmmword [rdi + 0x5c], xmm0
movups xmmword [rdi + 0x50], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movaps xmm0, xmmword [0x1402b52a0]
movups xmmword [rdi], xmm0
movaps xmm0, xmmword [0x1402b52b0]
movups xmmword [rdi + 0x10], xmm0
mov dword [rdi + 0x6c], 0x20
mov rcx, rdi
call fcn.1400ada00
mov ebx, dword [rdi + 0x6c]
mov ebp, dword [rdi + 0x20]
mov r14d, dword [rdi + 0x24]
lea rdi, [rsp + 0x48]
mov eax, dword [rdi + 0x40]
lea rcx, [rax + 1]
mov byte [rsp + rax + 0x48], 0x80
cmp rax, 0x38
jae 0x1401569d3
cmp rcx, 0x38
je 0x140156936
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.140111cd0
bswap r14d
lea rcx, [rsp + 0x20]
mov dword [rcx + 0x60], r14d
bswap ebp
mov dword [rcx + 0x64], ebp
mov r8d, 1
mov rdx, rdi
call fcn.140012d40
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 0x40], 0
lea eax, [rbx - 0x21]
cmp eax, 0xffffffe3
jb 0x14015698c
shr ebx, 2
xor eax, eax
mov ecx, dword [rsp + rax*4 + 0x20]
bswap ecx
mov dword [rsi + rax*4], ecx
inc rax
cmp rbx, rax
jne 0x14015697b
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14010fba0
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp eax, 0x3f
je 0x1401569eb
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.140111cd0
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, rdi
call fcn.140012d40
xor ecx, ecx
jmp 0x140156923
Function at 0x14015ad16
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call fcn.140153500
test al, al
je 0x14015ad44
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x30]
mov qword [rsi + 0x30], 0
test rdi, rdi
je 0x14015ad65
mov rcx, rdi
call fcn.14015ae42
mov rcx, rdi
call fcn.14010cc0c
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], 0
test rcx, rcx
jne 0x14015ae0f
mov rcx, qword [rsi + 0x48]
mov qword [rsi + 0x48], 0
test rcx, rcx
je 0x14015ad90
call fcn.1400e9dc0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14015ad9e
lock dec dword [rcx]
je 0x14015ae08
mov rdi, qword [rsi + 0x30]
mov qword [rsi + 0x30], 0
test rdi, rdi
jne 0x14015ae2c
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jb 0x14015ade8
call fcn.140096510
mov rdi, qword [rsi + 0x28]
mov rcx, qword [0x1402f4238]
test rcx, rcx
je 0x14015ae1e
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [0x140318008]
mov qword [rsi + 0x28], 0
lea rcx, [rsi + 0x20]
call fcn.1400fd060
lea rcx, [rsi + 0x18]
call fcn.1400fd060
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400695d0
call fcn.1400fe6e2
jmp 0x14015ad9e
mov edx, 1
call fcn.14022bbd0
jmp 0x14015ad7a
call fcn.14004ba00
mov rcx, qword [0x1402f4238]
jmp 0x14015add1
mov rcx, rdi
call fcn.14015ae42
mov rcx, rdi
call fcn.14010cc0c
jmp 0x14015adaf

Function at 0x14015fd74
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
lea rbx, [rcx + 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rbx
mov rdx, rax
call fcn.1400cbff2
mov rcx, qword [rdi + 0x10]
lea rax, [rcx + 1]
cmp rax, 1
jbe 0x14015fe1e
mov qword [rsp + 0x20], 0
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x18], rax
lea rcx, [rsi + 8]
test rax, rax
je 0x14015fe16
mov dword [rsi], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x20], eax
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov dword [rsi], 0x1b
jmp 0x14015fdf4
mov dword [rsi], 0x19
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
jmp 0x14015fe02