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

Disassembly:
push rbp
push rdi
push rsi
push rbx
movabs rdx, 0x27d4eb2f165667c5
mov r10, rcx
mov r9d, dword [r10 + 0x48]
lea rcx, [rcx + 0x28]
mov r11, qword [r10]
mov r8, qword [r10 + 0x18]
add r9, rcx
add rdx, r8
cmp r11, 0x1f
jbe 0x14000165d
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rdx, qword [r10 + 8]
mov rbx, qword [r10 + 0x10]
mov rax, qword [r10 + 0x20]
mov rbp, rdx
rol rdx, 1
imul rbp, rdi
mov rsi, rbx
imul rbx, rdi
rol rsi, 7
add rdx, rsi
mov rsi, r8
imul r8, rdi
rol rsi, 0xc
add rdx, rsi
mov rsi, rax
rol rsi, 0x12
rol rbp, 0x1f
imul rax, rdi
add rdx, rsi
movabs rsi, 0x9e3779b185ebca87
imul rbp, rsi
rol r8, 0x1f
imul r8, rsi
xor rdx, rbp
mov rbp, rbx
movabs rbx, 0x85ebca77c2b2ae63
imul rdx, rsi
rol rbp, 0x1f
imul rbp, rsi
add rdx, rbx
xor rdx, rbp
imul rdx, rsi
add rdx, rbx
xor r8, rdx
mov rdx, rax
imul r8, rsi
rol rdx, 0x1f
imul rdx, rsi
lea rax, [r8 + rbx]
xor rdx, rax
imul rdx, rsi
add rdx, rbx
lea rsi, [r10 + 0x30]
add rdx, r11
cmp r9, rsi
jb 0x1400016c9
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
cmp r9, rcx
lea rdx, [rax + r11]
jae 0x140001690
mov rax, r9
sub rax, r10
lea rcx, [rax - 0x30]
and rcx, 0xfffffffffffffff8
add rcx, rsi
lea r8, [rcx + 4]
cmp r9, r8
jb 0x140001707
mov eax, dword [rcx]
movabs rcx, 0x9e3779b185ebca87
imul rax, rcx
mov rcx, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r9, rcx
jbe 0x14000173e
movabs r10, 0x27d4eb2f165667c5
movabs r8, 0x9e3779b185ebca87
movzx eax, byte [rcx]
add rcx, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, r8
cmp r9, rcx
mov rdx, rax
jne 0x140001720
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140009190
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002b040]
lea rsi, [0x14001d392]
lea rdi, [0x14002e0a0]
movq xmm0, rsi
movq xmm6, rdi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x1400091e7
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140009208
mov rcx, qword [0x14002b040]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002e080], 0
jne 0x140009220
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002b040]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400091da
mov edx, 0x414
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov qword [rsp + 0x20], 0
mov ebx, 0x14
lea r12, [rsp + 0x20]
mov dword [rsp + 0x28], 3
movaps xmmword [rsp + 0x30], xmm6
mov rcx, r12
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400092d4
test al, 0x10
je 0x1400091f0
mov ecx, 0x64
call r14
mov eax, 0x414
movaps xmmword [rsp + 0x30], xmm6
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
call rbp
sub ebx, 1
je 0x1400091f0
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140009280
jmp 0x1400091f0

Function at 0x14000fa30
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.140016400
sub rsp, rax
mov eax, dword [0x1400320a0]
test eax, eax
mov r12, rcx
je 0x14000fb00
lea rsi, [0x1400300a0]
xor ebx, ebx
test eax, eax
jg 0x14000fa74
jmp 0x14000faa0
add rbx, 1
cmp dword [0x1400320a0], ebx
jle 0x14000faa0
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000fa68
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000fab7
cmp word [r12 + 2], 0x3a
je 0x14000fa84
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000fb50
movsxd rbx, dword [0x1400320a0]
cmp ebx, 0x3ff
jg 0x14000fa84
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x1400320a0], 1
mov r8, rax
lea rax, [0x1400300a0]
mov qword [rax + rbx*8], r8
jmp 0x14000fa84
lea r13, [rsp + 0x20]
mov r8d, 0x1000
lea r14, str.HOME
mov rcx, r13
mov rdx, r14
call fcn.1400088c0
test al, al
je 0x14000fb68
movsxd rbx, dword [0x1400320a0]
mov rcx, r13
call sub.msvcrt.dll__wcsdup
lea rsi, [0x1400300a0]
mov qword [rsi + rbx*8], rax
mov eax, dword [0x1400320a0]
add eax, 1
mov dword [0x1400320a0], eax
jmp 0x14000fa56
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000faca
xor eax, eax
jmp 0x14000fa89
mov rcx, r14
call fcn.1400090d0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140015610
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001b360
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001b360
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140015680
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140032164]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140015810
mov rax, qword [0x140032168]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400156cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140015755
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400156b0
mov rcx, rdi
call fcn.140016140
test rax, rax
mov r12, rax
je 0x140015862
mov rax, qword [0x140032168]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140016280
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140032168]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140015845
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001574e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400157c0
add dword [0x140032164], 1
cmp ebx, 8
jae 0x140015781
test bl, 4
jne 0x140015820
test ebx, ebx
je 0x140015776
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140015834
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140015776
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001579a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140032168]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001574e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140015610
xor esi, esi
jmp 0x1400156d7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140015776
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140015776
mov rax, qword [0x140032168]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140015610
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140015610
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140015d90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400321c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400321a0]
test rbx, rbx
je 0x140015de4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140015ddb
test rsi, rsi
je 0x140015ddb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140015dc0
lea rcx, [0x1400321c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140016140
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14001e9b0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400161af
mov rcx, r9
call fcn.140016010
test eax, eax
je 0x1400161af
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400161ad
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400161a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400161af
add rdx, 0x28
cmp rdx, r9
jne 0x140016190
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14032b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword gs:[0x30]
mov r15d, edx
mov ebp, ecx
mov r8, qword [rax + 0x60]
mov r14, qword [r8 + 0x18]
add r14, 0x20
mov rbx, qword [r14]
cmp rbx, r14
je 0x140001173
nop dword [rax]
cmp word [rbx + 0x48], 0x3f
jae 0x140001167
mov r9, qword [rbx + 0x50]
xor r11d, r11d
xor r10d, r10d
cmp word [r9], r10w
je 0x1400010ac
nop dword [rax + rax]
cmp r11d, 0x3f
jae 0x1400010a2
movzx edx, word [r9]
movzx r8d, dl
cmp edx, 0x61
lea eax, [r8 - 0x20]
movzx ecx, al
cmovb ecx, r8d
add r9, 2
mov byte [rsp + r10 + 0x20], cl
inc r11d
inc r10
cmp word [r9], 0
jne 0x140001070
cmp r10, 0x40
jae 0x1400011aa
mov byte [rsp + r10 + 0x20], 0
lea rcx, [rsp + 0x20]
movzx eax, byte [rsp + 0x20]
mov edx, 0x811c9dc5
test al, al
je 0x1400010e6
nop word [rax + rax]
movzx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx]
test al, al
jne 0x1400010d0
cmp edx, r15d
jne 0x140001167
mov r10, qword [rbx + 0x20]
movsxd rax, dword [r10 + 0x3c]
movsxd rcx, dword [rax + r10 + 0x88]
add rcx, r10
movsxd rax, dword [rcx + 0x20]
test eax, eax
je 0x140001167
movsxd rdi, dword [rcx + 0x24]
lea r8, [r10 + rax]
movsxd rsi, dword [rcx + 0x1c]
add rdi, r10
mov r11d, dword [rcx + 0x18]
add rsi, r10
xor r9d, r9d
test r11d, r11d
je 0x140001167
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [r8]
mov edx, 0x811c9dc5
add rax, r10
movzx ecx, byte [rax]
test cl, cl
je 0x140001157
inc rax
movzx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax]
test cl, cl
jne 0x140001142
cmp edx, ebp
je 0x14000119c
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x140001130
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x140001050
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140316260
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movzx ecx, word [rdi + r9*2]
movsxd rax, dword [rsi + rcx*4]
add rax, r10
jmp 0x140001175
call fcn.140315fd0
int3
Function at 0x140318888
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403186b4
Function at 0x14006e960
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rcx, qword [r8]
mov rdi, rdx
mov rsi, r8
mov r14d, dword [rcx + rdx]
lea rax, [rcx + 4]
mov qword [r8], rax
lea eax, [r14 + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002652c
mov rdx, qword [rsi]
lea ecx, [r14 + r14]
movsxd rbx, ecx
add rdx, rdi
mov rcx, rax
mov r8, rbx
mov r15, rax
call fcn.1400265f0
add qword [rsi], rbx
xor eax, eax
movsxd rcx, r14d
mov word [r15 + rcx*2], ax
test r14d, r14d
jle 0x14006e9ef
mov rax, r15
mov ecx, r14d
xor word [rax], r14w
lea rax, [rax + 2]
dec rcx
jne 0x14006e9e2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rax, r15
add rsp, 0x20
pop r15
ret

Function at 0x14007953c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [0x1400e1dc0]
jne 0x14007954d
call fcn.140079638
mov rax, qword [0x1400e7180]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400e7180], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
add rsp, 0x28
ret

Function at 0x140079590
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
dec dword [0x1400e1dc0]
jne 0x1400795a1
call fcn.140079638
mov rax, qword [0x1400e7180]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400e7180], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400d1e88]
add rsp, 0x28
ret

Function at 0x1400795f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [0x1400e67c0], ecx
lea rdx, [0x1400e67c4]
mov ecx, r8d
mov eax, dword [rdx - 4]
shr eax, 0x1e
xor eax, dword [rdx - 4]
imul eax, eax, 0x6c078965
add eax, ecx
add ecx, r8d
mov dword [rdx], eax
lea rdx, [rdx + 4]
cmp ecx, 0x270
jl 0x140079606
mov dword [0x1400e1dc0], r8d
mov dword [0x1400e67a8], r8d
ret
Function at 0x140079638
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400e67a8], 0
lea rbx, [0x1400e67c0]
jne 0x14007965d
xor ecx, ecx
call fcn.14002abd4
mov rcx, rax
call fcn.1400795f0
mov dword [0x1400e1dc0], 0x270
mov qword [0x1400e7180], rbx
mov r9d, 0xe3
mov r10d, 0x9908b0df
mov r11d, 0x7ffffffe
mov edx, dword [rbx + 4]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx + 0x634]
xor edx, ecx
mov dword [rbx], edx
add rbx, 4
dec r9d
jne 0x140079680
mov r9d, 0x18c
lea r8, [rbx + 4]
mov edx, dword [r8]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx - 0x38c]
xor edx, ecx
mov dword [rbx], edx
lea rbx, [r8]
dec r9d
jne 0x1400796b0
mov ecx, dword [0x1400e67c0]
mov al, cl
and al, 1
neg al
mov eax, dword [r8]
sbb edx, edx
xor eax, ecx
and eax, r11d
and edx, r10d
xor eax, dword [r8]
shr eax, 1
xor eax, dword [r8 - 0x38c]
xor eax, edx
mov dword [r8], eax
add rsp, 0x20
pop rbx
ret

Function at 0x140079aa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, dword [rcx + 0x18]
mov rbx, rcx
cmp dword [rcx + 0x450], edi
jae 0x140079bc7
mov r14d, 0x1ffff
mov edx, 1
mov rcx, rbx
call fcn.1400797f8
mov rcx, rbx
cmp eax, 1
jne 0x140079b06
lea edx, [rax + 7]
call fcn.1400797f8
mov edx, dword [rbx + 0x450]
mov rcx, qword [rbx + 0x448]
and rdx, r14
mov byte [rdx + rcx], al
inc dword [rbx + 0x450]
inc dword [rbx + 0x454]
jmp 0x140079b60
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
call fcn.1400798b4
mov r8d, dword [rbx + 0x450]
mov r9d, dword [rsp + 0x30]
sub r8d, dword [rsp + 0x38]
test r9d, r9d
je 0x140079b60
mov ecx, dword [rbx + 0x450]
mov rdx, qword [rbx + 0x448]
mov eax, r8d
and rax, r14
and rcx, r14
inc r8d
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
inc dword [rbx + 0x450]
inc dword [rbx + 0x454]
dec r9d
jne 0x140079b2b
mov dword [rsp + 0x30], r9d
mov rcx, rbx
call fcn.140079ce4
mov eax, dword [0x1400e7190]
cmp eax, 0x1000
jbe 0x140079baa
mov r9, qword [rbx + 0x468]
and dword [0x1400e7190], 0
test r9, r9
je 0x140079bb2
imul eax, dword [rbx + 0x10], 0x64
mov ecx, dword [rbx + 0x14]
xor edx, edx
div dword [rbx + 0x18]
mov edx, dword [rbx + 0x10]
mov r8d, eax
call r9
test eax, eax
jne 0x140079bb2
mov byte [rbx + 0x45c], 1
jmp 0x140079bb2
inc eax
mov dword [0x1400e7190], eax
cmp byte [rbx + 0x45c], 0
jne 0x140079c04
cmp dword [rbx + 0x450], edi
jb 0x140079ac8
movsxd rax, dword [rbx + 0x480]
test eax, eax
je 0x140079bf1
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x470]
mov r8, rax
mov edx, 1
call fcn.140028db0
and dword [rbx + 0x480], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 4
jmp 0x140079bf3
Function at 0x140079c50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x140079c81
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400265f0
jmp 0x140079c8f
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14002b024
movzx ecx, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, str.EA06
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x34], bl
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.14002b100
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140079ce4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x20], 1
mov eax, dword [rcx + 0x450]
mov rbx, rcx
jne 0x140079d40
cmp dword [rcx + 0x458], eax
jae 0x140079dbd
mov r8d, dword [rbx + 0x458]
mov rax, qword [rbx + 0x448]
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx]
and r8d, 0x1ffff
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x458]
mov eax, dword [rbx + 0x458]
inc dword [rbx + 0x10]
cmp eax, dword [rbx + 0x450]
jb 0x140079d05
jmp 0x140079dbd
cmp dword [rcx + 0x458], eax
jae 0x140079dbd
mov r8d, dword [rbx + 0x458]
mov rax, qword [rbx + 0x448]
movsxd rdx, dword [rbx + 0x480]
mov rcx, qword [rbx + 0x470]
and r8d, 0x1ffff
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x480]
cmp dword [rbx + 0x480], 0x10000
jne 0x140079da6
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x470]
mov edx, 1
mov r8d, 0x10000
call fcn.140028db0
and dword [rbx + 0x480], 0
inc dword [rbx + 0x458]
mov eax, dword [rbx + 0x458]
inc dword [rbx + 0x10]
cmp eax, dword [rbx + 0x450]
jb 0x140079d48
and dword [rbx + 0x454], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140079dcc
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
test dword [rcx + 0x484], 0xfffeffff
mov rbx, rcx
jne 0x140079e03
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x478]
mov edx, 1
mov r8d, 0x10000
call fcn.14002b024
and dword [rbx + 0x484], 0
movsxd rdx, dword [rbx + 0x484]
mov rax, qword [rbx + 0x478]
mov al, byte [rdx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x484], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x14008ba1c
Capabilities:
Hash data with crc32

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
mov esi, dword [rsp + 0x30]
mov ebp, r9d
mov eax, r9d
shl eax, 2
mov edi, r8d
or r10d, 0xffffffff
imul ebp, dword [rsp + 0x30]
movsxd rbx, eax
shl ebp, 2
add rdi, rdx
add rbx, rdx
mov r11, rdx
mov r9, rdx
shl esi, 2
lea r14, [0x1400ccec0]
movzx eax, byte [r11 + 2]
movzx ecx, r10b
shr r10d, 8
xor rcx, rax
movzx eax, byte [r11 + 1]
mov edx, dword [r14 + rcx*4]
xor edx, r10d
movzx ecx, dl
shr edx, 8
xor rcx, rax
movzx eax, byte [r11]
add r11, rbp
mov r8d, dword [r14 + rcx*4]
xor r8d, edx
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
mov r10d, dword [r14 + rcx*4]
xor r10d, r8d
cmp r11, rdi
jb 0x14008bab8
mov eax, esi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x14008ba66
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x28]
not r10d
mov eax, r10d
cvtsi2sd xmm0, rax
pop r14
ret

Function at 0x1400f7540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1400f756d
xor al, al
jmp 0x1400f76cf
mov rax, qword [0x1401176c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401176c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401176d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401176d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401176e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401176e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401176f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401176f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140117700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400f76c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1400f7619
mov r11d, 2
jmp 0x1400f763d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1400f7633
mov r11d, 1
jmp 0x1400f763d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400f76e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1400f7682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1400f769a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400f76aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400f76b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1400f7600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400f76ca
Function at 0x1400010e0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x60]
mov word [rsp + 0x6c], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000116f
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140001164
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x70], ebx
setne al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400020d0
add rsp, 0x80
pop rbx
ret