joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001deac
Capabilities:
Parse pe header

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

Function at 0x140024904
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 0x14002476f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002476f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002476f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002476f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002476f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002476f
cmp dword [rcx + 0xf8], 0
je 0x14002476f
mov ecx, ebx
call fcn.140024820
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.1400245fc
nop
cmp dword [rbp + 0x20], 0
je 0x1400247bd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400247c8
int3
xor r8d, r8d
xor edx, edx
jmp 0x140024700
Function at 0x140036e8c
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.14001da10
sub rsp, rax
mov rax, qword [0x140061100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140034814
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140036edb
mov rax, rbp
jmp 0x140036fe3
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 + 0x63790]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140038174
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x63790]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140036fdf
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 0x140036fdf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140038174
test rax, rax
js 0x140036fdf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140036fdf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140036fd1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140036fd1
cmp byte [rcx], 0xd
jne 0x140036fb7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140036fc6
cmp byte [rcx + 1], 0xa
jne 0x140036fc6
inc rcx
jmp 0x140036fc6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x61550]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140036f99
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140036fe3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001d9e0
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 0x140037300
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140037316
mov al, 1
jmp 0x140037376
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140037327
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140037374
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003ca18
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140037374
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140037374
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140037374
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140037376
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140037514
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, [0x140063790]
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 0x14003756b
cmp word [rdx], r13w
jne 0x14003756b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140037570
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140037695
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400376b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400375a9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400375d0
cmp r9, r8
jae 0x1400375e0
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 0x14003758a
jmp 0x140037695
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 0x14003768a
cmp dword [rsp + 0x80], esi
je 0x14003768a
lea r8, [0x140063790]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140037662
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140037632
mov word [rbx], r13w
jmp 0x140037692
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 0x14003763f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140037692
cmp word [rsp + 0x70], r13w
jne 0x14003766f
cmp rbx, r14
je 0x14003762c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003817c
cmp word [rsp + 0x70], r13w
je 0x140037695
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, [0x140063790]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003768f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140037695
Function at 0x14003c45c
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 0x14003c48c
xor eax, eax
jmp 0x14003c54f
mov rbp, rbx
cmp word [rax], si
je 0x14003c4b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003c498
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003c494
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.14003aa34
movsxd r14, eax
test eax, eax
jne 0x14003c4ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003c485
mov rcx, r14
call fcn.140033480
mov rdi, rax
test rax, rax
jne 0x14003c508
xor ecx, ecx
call fcn.14003290c
jmp 0x14003c4e4
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.14003aa34
test eax, eax
jne 0x14003c539
mov rcx, rdi
call fcn.14003290c
jmp 0x14003c543
xor ecx, ecx
call fcn.14003290c
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 0x14003ef6c
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.140032534
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 0x14003f00d
cmp ebx, dword [rsp + 0x30]
je 0x14003f006
test esi, esi
je 0x14003f006
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003efe1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003efee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003efcb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003eff2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003f00f
mov eax, 1
jmp 0x14003f00f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140043d70
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.14003817c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003817c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140043ec0
cmp rax, 0xffffffffffffffff
je 0x140043ec0
xor edi, edi
test rbp, rbp
jle 0x140043e6b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140032894
mov rbx, rax
test rax, rax
jne 0x140043df8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140043e61
mov edx, 0x8000
mov ecx, r14d
call fcn.14002f88c
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.140036558
cmp eax, 0xffffffff
je 0x140043e41
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140043e08
mov edx, r15d
mov ecx, r14d
call fcn.14002f88c
jmp 0x140043e61
cmp byte [rsi + 0x38], dil
je 0x140043e58
cmp dword [rsi + 0x34], 5
jne 0x140043e58
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140043e61
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003290c
jmp 0x140043ed4
jns 0x140043ed4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003817c
cmp rax, 0xffffffffffffffff
jne 0x140043e8c
cmp byte [rsi + 0x30], dil
je 0x140043ed4
mov edi, dword [rsi + 0x2c]
jmp 0x140043ed4
mov ecx, r14d
call fcn.14003ca18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140043ed4
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 0x140043ed4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140043ecd
mov eax, dword [rsi + 0x2c]
jmp 0x140043ed2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003817c
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 0x140044400
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140044428
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140044428
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001602
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov esi, edx
mov r8d, dword [rax + rcx + 0x88]
mov r10, rcx
add r8, rcx
mov r11d, dword [r8 + 0x20]
mov ebx, dword [r8 + 0x1c]
mov edi, dword [r8 + 0x24]
mov r8d, dword [r8 + 0x18]
add r11, rcx
add rbx, rcx
add rdi, rcx
test r8d, r8d
je 0x140001661
mov ecx, dword [r11]
add rcx, r10
call fcn.140001596
cmp eax, esi
je 0x140001673
inc r9d
add r11, 4
cmp r9d, r8d
jb 0x140001646
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx ecx, word [rdi + r9*2]
mov eax, dword [rbx + rcx*4]
add rax, r10
jmp 0x140001663
Function at 0x14002d080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
mov rdi, rdx
mov qword [r11 - 0x38], rdx
xor ebp, ebp
mov rcx, rdx
cmp qword [rdx + 0x18], 7
jbe 0x14002d0c1
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002d105
test al, 0x10
je 0x14002d105
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14002d117
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14002d0e6
mov rax, qword [rdi]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x14002d117
mov r8d, 1
lea rdx, [0x14023d380]
mov rcx, rdi
call fcn.140023d10
jmp 0x14002d117
xor r8d, r8d
lea rdx, [0x14023d384]
mov rcx, rdi
call fcn.14002a5c0
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 9
jb 0x14002d20e
mov r9, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14002d13f
mov r9, qword [rdi]
mov qword [rsp + 0x30], 9
lea rax, str.last.dump
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x40]
call fcn.1400230c0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.14002adf0
cmp rbx, 0xffffffffffffffff
je 0x14002d1d0
mov qword [rsp + 0x68], rbp
lea r9, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x14002d1d0
mov rdx, qword [rsp + 0x68]
mov qword [rsi], rdx
jmp 0x14002d1d9
mov qword [rsi], rbp
cmp rbx, 0xffffffffffffffff
je 0x14002d1e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.14002adf0
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14019acb0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
call fcn.14002a900
nop
int3
Function at 0x14002e200
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x60
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x54]
mov r9d, 4
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx]
lea edx, [r9 + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
je 0x14002e253
cmp dword [rsp + 0x50], 3
je 0x14002e272
mov rcx, qword [rbx]
lea r8, [rsp + 0x50]
mov edx, 0xc
mov dword [rsp + 0x50], 3
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x14002e285
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14019acb0
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_set_debug_service_as_antimalware_process_
lea rcx, [rsp + 0x30]
call fcn.14002d030
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x30]
call fcn.14019cd80
int3
Function at 0x140043760
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, qword [rbp + 0x67]
mov qword [rbp - 1], rbx
mov rdi, qword [rbp + 0x6f]
xor esi, esi
mov dword [rbp - 0x29], esi
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov dword [rbp - 0x29], 1
mov qword [rbp + 0xf], rsi
lea rdx, [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004388d
cmp dword [rbp + 0x13], esi
jne 0x140043867
mov edx, dword [rbp + 0xf]
mov rcx, rbx
call fcn.140043c80
mov dword [rbp + 7], esi
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 7]
mov r8d, dword [rbp + 0xf]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004383e
mov edx, dword [rbp + 7]
mov rcx, rbx
call fcn.140043c80
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14019acb0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.get_file_content:_ReadFile
lea rcx, [rbp - 0x21]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rbp - 0x21]
call fcn.14019cd80
int3
lea r8, str.get_file_content
mov edx, 0xdf
lea rcx, [rbp - 0x21]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rbp - 0x21]
call fcn.14019cd80
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.get_file_content:_GetFileSizeEx
lea rcx, [rbp - 0x21]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rbp - 0x21]
call fcn.14019cd80
int3
Function at 0x1400438c0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rcx
mov rax, rdx
mov rsi, qword [rdx]
mov rbx, qword [rdx + 8]
sub rbx, rsi
mov eax, 0xffffffff
cmp rbx, rax
ja 0x14004398d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140043962
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14019acb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.set_file_content
lea rcx, [rsp + 0x30]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x30]
call fcn.14019cd80
int3
lea rdx, str.set_file_content_content_is_too_large
lea rcx, [rsp + 0x50]
call fcn.140029190
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140026000
lea rdx, [0x1402b9f88]
lea rcx, [rsp + 0x30]
call fcn.14019cd80
int3
Function at 0x14004a1f0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x1402bf200]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, qword [rbp + 0x67]
mov dword [rbp - 0x21], 0
mov word [rbp - 0x1d], 0x500
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
lea rax, vtable.std::_Func_impl_no_alloc_void____ptr64____cdecl___void____ptr64___void____ptr64__void____ptr64_.0
mov qword [rbp - 1], rax
mov rax, qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rbp + 7], rax
lea rax, [rbp - 1]
mov qword [rbp + 0x37], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x50], rax
xor edi, edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9d, 0x220
lea r8d, [rdi + 0x20]
mov dl, 2
lea rcx, [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14004a386
mov qword [rbp - 0x11], rdi
lea r8, [rbp - 0x11]
lea edx, [rdi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x14004a3af
mov dword [rbp - 0x19], edi
lea r8, [rbp - 0x19]
mov rdx, qword [rbp - 9]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14004a35c
cmp dword [rbp - 0x19], edi
setne bl
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14004a2eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x11], rdi
mov r8, qword [rbp + 0x37]
test r8, r8
je 0x14004a338
mov rax, qword [rbp - 9]
mov qword [rbp - 0x29], rax
mov rax, qword [r8]
lea rdx, [rbp - 0x29]
mov rcx, r8
mov rax, qword [rax + 0x10]
call qword [case.0x1400617cf.0]
mov r8, qword [rbp + 0x37]
test r8, r8
je 0x14004a338
mov rcx, qword [r8]
mov rax, qword [rcx + 0x20]
lea rcx, [rbp - 1]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [case.0x1400617cf.0]
nop
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14019acb0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea r8, str.Unable_to_check_token_membership_
lea rcx, [rbp - 0x49]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rbp - 0x49]
call fcn.14019cd80
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, [0x14023fbe0]
lea rcx, [rbp - 0x49]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rbp - 0x49]
call fcn.14019cd80
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_duplicate_the_access_token_
lea rcx, [rbp - 0x49]
call fcn.14003fc90
lea rdx, [0x1402b9f88]
lea rcx, [rbp - 0x49]
call fcn.14019cd80
int3
Function at 0x14004c350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rdi, qword [rbp + 0xd0]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.asw::log::detail::LogModule.2.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 8]
lea rax, vtable.asw::log::detail::LogModule.1.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
lea rax, vtable.asw::log::detail::LogModule.0
mov qword [rcx + rdi], rax
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rcx + rdi - 4], edx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 0xc]
lea edx, [rcx - 0x40]
mov dword [rcx + rdi - 4], edx
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x30], 0x46423330
mov dword [rsp + 0x34], 0x45383834
mov dword [rsp + 0x40], 0x5f676f6c
mov dword [rsp + 0x44], 0x75646f6d
mov dword [rsp + 0x48], 0x656c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0x1f
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x20]
call qword [case.0x1400617cf.0]
lea rcx, [rsp + 0x60]
call fcn.14004cf50
lea rcx, [rsp + 0x60]
call fcn.140028440
mov rcx, qword [rdi + 8]
mov dword [rsp + 0x30], 0x46423330
mov dword [rsp + 0x34], 0x45383834
mov dword [rsp + 0x40], 0x5f676f6c
mov dword [rsp + 0x44], 0x75646f6d
mov dword [rsp + 0x48], 0x656c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0x20
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rax, qword [rax + 0x20]
call qword [case.0x1400617cf.0]
lea rcx, [rsp + 0x60]
call fcn.14004cfa0
lea rcx, [rsp + 0x60]
call fcn.140028440
lea rcx, [rdi + 8]
call fcn.1400060d0
nop
lea rax, vtable.asw::mi::IModule.1.0
mov qword [rdi + 0x28], rax
mov rax, qword [rdi + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.asw::mi::IModule.0
mov qword [rcx + rdi + 0x30], rax
mov dword [rsp + 0x30], 0xffffffff
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov rdx, qword [rsp + 0x30]
call fcn.14004d7e0
lea r11, vtable.asw::mi::IExportable.0
mov qword [rdi + 0x20], r11
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 0xffffffff
mov rdx, qword [rsp + 0x30]
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
jmp fcn.14004d7e0