joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c920
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
xor sil, sil
cmp qword [rcx + 0x18], 0x10
jb 0x14001c945
mov rcx, qword [rcx]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001cae6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x78], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
lea r8d, [r15 + 4]
lea rdx, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 4]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [rbx - 4]
mov esi, eax
mov ebx, r15d
mov ebp, r15d
test eax, eax
je 0x14001ca2a
cmp rsi, 0x1000
jb 0x14001ca0e
lea rcx, [rax + 0x27]
cmp rcx, rsi
jbe 0x14001cb4f
call fcn.140133e2c
test rax, rax
je 0x14001cb43
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14001ca19
mov rcx, rsi
call fcn.140133e2c
mov rbx, rax
lea rbp, [rbx + rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.140137f50
sub rbp, rbx
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, 1
mov ecx, r15d
test rsi, rsi
je 0x14001ca9a
mov r9, rbx
nop word [rax + rax]
movzx eax, byte [r9]
add r8d, eax
mov eax, 0x80078071
mul r8d
shr edx, 0xf
imul eax, edx, 0xfff1
sub r8d, eax
lea r9, [r9 + 1]
add ecx, r8d
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub rsi, 1
jne 0x14001ca60
shl ecx, 0x10
add ecx, r8d
cmp ecx, dword [rsp + 0x80]
sete sil
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14001cae6
cmp rbp, 0x1000
jb 0x14001cada
add rbp, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14001cb43
mov rbx, rcx
mov rdx, rbp
mov rcx, rbx
call fcn.140133e68
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14001cb1c
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14001cb17
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001cb49
mov rcx, r8
call fcn.140133e68
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
movzx eax, sil
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
nop
call fcn.14000f3e0
int3
Function at 0x14001ccc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov esi, r9d
mov rcx, qword [rcx]
mov rbx, r8
mov r10d, edx
cmp rcx, 0xffffffffffffffff
je 0x14001cd29
xor r9d, r9d
xor r8d, r8d
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
xor eax, eax
mov r8d, esi
mov rdx, rbx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x40], esi
sete al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r9, qword [rdi + 0x28]
lea ecx, [r10 + rsi]
mov rdx, qword [rdi + 0x30]
sub rdx, r9
cmp rcx, rdx
ja 0x14001cd93
lea rdx, [r9 + r10]
mov r8, rsi
test esi, esi
je 0x14001cd81
test rbx, rbx
je 0x14001cd71
mov rcx, rbx
test rdx, rdx
je 0x14001cd6c
call fcn.1401378a0
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.140137f50
call fcn.140146434
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.140146288
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001f6e0
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov r14, rcx
xor eax, eax
mov qword [r11 + 0x20], rax
mov dword [r11 + 0x18], eax
xor edx, edx
mov rcx, qword [rsi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test eax, eax
jne 0x14001f73d
call fcn.14000bfcc
mov rcx, rax
test rax, rax
je 0x14001f8f2
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [r14], rax
mov ebx, 0xffffffff
jmp 0x14001f8c0
mov rcx, rdi
call fcn.140134664
mov rbx, rax
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, qword [rsi]
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rbx
test eax, eax
jne 0x14001f78c
call fcn.14013466c
call fcn.14000bfcc
mov rcx, rax
test rax, rax
je 0x14001f8f2
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [r14], rax
mov ebx, 0xffffffff
jmp 0x14001f8c0
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x98]
lea rdx, reloc.SHELL32.dll_PathGetShortPath
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14001f7b1
mov rcx, rbx
jmp 0x14001f75f
mov rcx, qword [rsp + 0x98]
mov eax, dword [rcx + 0x10]
mov edi, eax
shr edi, 0x10
movzx r15d, ax
mov eax, dword [rcx + 0x14]
mov ebp, eax
shr ebp, 0x10
movzx r12d, ax
mov rcx, rbx
call fcn.14013466c
call fcn.14000bfcc
mov rcx, rax
test rax, rax
je 0x14001f8f2
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebp
mov r9d, r15d
mov r8d, edi
lea rdx, [0x14026cb00]
lea rcx, [rsp + 0x30]
call fcn.140008c60
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14001f841
cmp rax, qword [rdi - 0x18]
jne 0x14001f841
lea rbx, [rdi - 0x18]
lock inc dword [rdi - 8]
jmp 0x14001f899
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x14001f8ec
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov rdx, rdi
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd r8, eax
lea rcx, [rbx + 0x18]
je 0x14001f899
test rcx, rcx
je 0x14001f889
test rdx, rdx
je 0x14001f884
call fcn.1401378a0
jmp 0x14001f899
call fcn.140137f50
call fcn.140146434
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.140146288
lea rax, [rbx + 0x18]
mov qword [r14], rax
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x14001f8c0
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14001f8da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, r14
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140007e14
nop
mov ecx, 0x80004005
call fcn.14000c3ac
int3
Function at 0x14002b2a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x13d0
call fcn.140134690
sub rsp, rax
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov ebx, 1
mov dword [rsp + 0x20], ebx
call fcn.1401017bc
mov dword [rsp + 0x13c4], 0xffffffff
mov dword [rsp + 0x44], eax
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, ebx
mov dword [rsp + rbx*4 + 0x44], eax
inc rbx
cmp rbx, 0x270
jb 0x14002b2f0
mov dword [rsp + 0x40], 0x270
mov ebx, reloc.WS2_32.dll_recv
nop dword [rax]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x38], 0xffffffff
lea rcx, [rsp + 0x28]
call fcn.14002bcb0
movzx ecx, al
mov eax, 0x80808081
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
mov byte [rsp + 0x13e8], cl
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14002b373
mov byte [rdx], cl
inc qword [rdi + 8]
jmp 0x14002b383
lea r8, [rsp + 0x13e8]
mov rcx, rdi
call fcn.14002a9e0
sub rbx, 1
jne 0x14002b320
mov rax, rdi
mov rbx, qword [rsp + 0x13f0]
add rsp, 0x13d0
pop rdi
ret
Function at 0x14002bcb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov esi, r14d
mov ebp, r14d
mov rdi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl esi, cl
add esi, esi
nop word [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x14002bd54
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14002bd10
mov ecx, dword [r10]
jmp 0x14002be37
cmp ecx, 0x4e0
jb 0x14002be37
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14002bd70
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14002bdc0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x14002bcf0
mov rax, qword [rdi + 8]
or esi, ecx
add rbp, rax
cmp rbp, 0x20
jb 0x14002bce0
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x14003a840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r11, rcx
test r8d, r8d
jle 0x14003a92c
mov r9, qword [rdx + 0x18]
movsxd r10, r8d
xor r8d, r8d
nop
mov rdx, rbx
cmp r9, 0x10
jb 0x14003a86c
mov rdx, qword [rbx]
movzx ecx, byte [rdx]
mov eax, 0xffffffff
test cl, cl
je 0x14003a918
nop dword [rax]
movzx ecx, cl
lea rdx, [rdx + 1]
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x14003a880
not eax
cmp eax, dword [r11 + r8*4]
je 0x14003a97d
inc r8
cmp r8, r10
jl 0x14003a860
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14003a962
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14003a95d
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003a9b4
mov rcx, r8
call fcn.140133e68
xor al, al
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
add rsp, 0x20
pop rbx
ret
cmp r9, 0x10
jb 0x14003a9b0
mov rcx, qword [rbx]
lea rdx, [r9 + 1]
cmp rdx, 0x1000
jb 0x14003a9ab
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003a9b4
mov rcx, r8
call fcn.140133e68
mov al, 1
jmp 0x14003a964
call fcn.1401462a8
int3
Function at 0x14003cc50
Capabilities:
Get session information

Disassembly:
push rbx
push rdi
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor ebx, ebx
lea r9, [rsp + 0x80]
mov edi, eax
mov dword [rsp + 0x70], ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x80], rbx
mov edx, edi
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 0x18]
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x14003ccaf
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14003ccaf
cmp dword [rcx], ebx
jne 0x14003ccaa
mov eax, edi
add rsp, 0x58
pop rdi
pop rbx
ret
call sub.WTSAPI32.dll_WTSFreeMemory
xor edx, edx
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea r8d, [rdx + 1]
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x88]
test r8d, r8d
je 0x14003cd09
mov eax, ebx
lea rcx, [rax + rax*2]
movups xmm0, xmmword [rdx + rcx*8]
movsd xmm1, qword [rdx + rcx*8 + 0x10]
movsd qword [rsp + 0x40], xmm1
cmp dword [rsp + 0x40], 0
movups xmmword [rsp + 0x30], xmm0
je 0x14003cd1d
inc ebx
cmp ebx, r8d
jb 0x14003cce0
mov rcx, rdx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rbx
ret
mov rcx, rdx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [rsp + 0x30]
add rsp, 0x58
pop rdi
pop rbx
ret

Function at 0x14003cd40
Capabilities:
Get session information

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x48], eax
mov edx, ecx
mov qword [rsp + 0x50], rax
mov r8d, Ordinal_26
lea rax, [rsp + 0x48]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x14003cd8f
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003cd8f
cmp dword [rcx], 0
jne 0x14003cd8a
mov eax, 1
add rsp, 0x38
ret
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
add rsp, 0x38
ret

Function at 0x14003ceb0
Capabilities:
Get memory capacity

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xf0
mov rbx, rcx
mov dword [rax - 0x48], 0x40
lea rcx, [rax - 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.PSAPI.DLL_GetProcessMemoryInfo
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x20]
shr rax, 0x14
mov dword [rbx], eax
mov rax, qword [rsp + 0x98]
shr rax, 0x14
mov dword [rbx + 4], eax
mov dword [rbx + 8], 0
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x30]
shr rax, 0x14
mov dword [rbx + 8], eax
mov rax, rbx
add rsp, 0xf0
pop rbx
ret
Function at 0x14003d190
Capabilities:
Manipulate user privileges

Disassembly:
sub rsp, 0x78
call fcn.14003cf80
test eax, eax
je 0x14003d1a7
mov eax, 1
add rsp, 0x78
ret
mov qword [rsp + 0x98], rbx
xor ebx, ebx
mov qword [rsp + 0x70], rdi
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x88]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x14003d2ee
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x80], ebx
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rsp + 0x80]
test r9d, r9d
je 0x14003d22a
mov edx, r9d
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9d, dword [rsp + 0x80]
mov rdi, rax
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x80]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14003d2ee
xorps xmm0, xmm0
lea r9, [rsp + 0x90]
mov r8d, 0xf0fff
lea rdx, [rsp + 0x40]
xor ecx, ecx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x14003d2e5
mov rdx, qword [rdi]
lea rax, str.SeLockMemoryPrivilege
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, 1
mov dword [rsp + 0x30], 0x2c002a
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
mov ecx, 2
cmove ebx, ecx
mov rcx, qword [rsp + 0x90]
call sub.ADVAPI32.dll_LsaClose
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x78
ret
Function at 0x14003d3c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, rdx
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r14d, r14d
mov qword [rsp + 0x50], r14
cmp qword [rdx + 0x18], 0x10
jb 0x14003d3f3
mov rax, qword [rdx]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14003d439
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov rax, qword [rsp + 0x48]
mov qword [rdi + 8], rax
jmp 0x14003d507
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
je 0x14003d4f6
mov ecx, esi
mov r9, qword [rsp + 0x48]
mov r8, r9
mov rdx, qword [rsp + 0x40]
sub r8, rdx
cmp rsi, r8
jae 0x14003d46f
add rcx, rdx
mov qword [rsp + 0x48], rcx
jmp 0x14003d4b3
jbe 0x14003d4b3
mov rax, qword [rsp + 0x50]
sub rax, rdx
cmp rcx, rax
jbe 0x14003d495
lea r8, [rsp + 0x88]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000ef10
jmp 0x14003d4ae
sub rcx, r8
lea rbx, [r9 + rcx]
mov r8, rcx
xor edx, edx
mov rcx, r9
call fcn.140137f50
mov qword [rsp + 0x48], rbx
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x90], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x90]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14003d4ec
cmp dword [rsp + 0x90], esi
je 0x14003d4f6
mov rax, qword [rsp + 0x40]
mov rcx, rax
jmp 0x14003d500
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x10], rax
mov rax, rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140042b10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x140414b40]
mov r9, rdx
not ecx
cmp r8, 4
jb 0x140042b89
mov r10, r8
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r8, rax
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
add r9, 4
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140042b30
test r8, r8
je 0x140042bad
nop
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x140042b90
not ecx
mov eax, ecx
ret
Function at 0x14004ef30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, r9
mov rcx, qword [rcx + 0x68]
mov rbp, r8
mov rdi, rdx
mov rcx, qword [rcx + 0x70]
call fcn.140179f6c
mov rcx, qword [rbx + 0x68]
add rdi, qword [rcx + 0x78]
js 0x14004ef99
cmp rax, rdi
je 0x14004ef7f
mov rcx, qword [rcx + 0x70]
xor r8d, r8d
mov rdx, rdi
call fcn.140176f34
test eax, eax
jne 0x14004ef99
mov r9, qword [rbx + 0x68]
mov r8, rsi
mov edx, 1
mov rcx, rbp
mov r9, qword [r9 + 0x70]
call fcn.1401771f4
jmp 0x14004efa2
mov dword [rbx + 0x1c], reloc.WLDAP32.dll_Ordinal_22
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140054460
Capabilities:
Check if file exists
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x70], 0x10
lea rbx, [rcx + 0x58]
mov rdi, rcx
mov rcx, rbx
jb 0x14005447e
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1400544c3
add rdi, 0x38
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140054499
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1400544c3
cmp qword [rdi + 0x18], 0x10
jb 0x1400544ad
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
jb 0x1400544ba
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
cmp qword [rbx + 0x18], 0x10
jb 0x1400544cd
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov rbx, qword [rsp + 0x30]
test eax, eax
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x140054e80
Capabilities:
Check if file exists
Delete file
Get common file path
Get program files directory
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x60]
call fcn.140137f50
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor esi, esi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], sil
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x140054ef0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400157e0
nop
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x140054f55
lea rax, [rcx + 9]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8d, 9
lea rdx, str.SA_s.dat
mov rcx, rbx
call fcn.1401378a0
mov byte [rbx + 9], 0
jmp 0x140054f76
mov qword [rsp + 0x20], 9
lea r9, str.SA_s.dat
xor r8d, r8d
lea edx, [r8 + 9]
lea rcx, [rsp + 0x40]
call fcn.140016050
mov ebx, esi
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140055044
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140055017
mov dword [rbp + 0x80], esi
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x80]
mov r8d, dword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005502e
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xf
jl 0x140054f80
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14005507d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055078
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055096
call fcn.140133e68
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1401462a8
int3