joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020860
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rsi, rdx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rbx, [rcx + 8]
cmp qword [rbx + 0x18], 0x10
jb 0x140020895
mov rbx, qword [rbx]
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x1400208ad
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x40], rax
or rbp, 0xffffffffffffffff
test rbx, rbx
je 0x1400208ff
test rbx, 0xffffffffffff0000
jne 0x1400208f1
movzx ebx, bx
xor edx, edx
mov ecx, ebx
call fcn.14000b0cc
test rax, rax
je 0x140020912
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400080f4
jmp 0x140020912
mov rax, rbp
inc rax
cmp byte [rbx + rax], 0
jne 0x1400208f4
jmp 0x140020901
mov eax, edi
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140007a14
nop
lea r8, [0x14069df3a]
lea rdx, str..dat
lea rcx, [rsp + 0x40]
call fcn.14001d080
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rsi + 0x10], rdi
test eax, eax
jne 0x140020966
cmp qword [rsi + 0x18], 0x10
jb 0x140020954
mov rax, qword [rsi]
jmp 0x140020957
mov rax, rsi
mov byte [rax], 0
xor r8d, r8d
lea rdx, [0x14069df3a]
jmp 0x14002098f
cmp qword [rsi + 0x18], 0x10
jb 0x140020972
mov rax, qword [rsi]
jmp 0x140020975
mov rax, rsi
mov byte [rax], 0
cmp byte [rbx], 0
je 0x140020989
mov rdi, rbp
inc rdi
cmp byte [rbx + rdi], 0
jne 0x140020980
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.14000d058
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400209af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov r9d, 0x270
mov rbx, rcx
cmp eax, r9d
jne 0x1400262ab
lea r8, [rcx + 8]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140026270
jmp 0x1400262b7
cmp eax, 0x4e0
jb 0x1400262b7
call fcn.140027250
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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 eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x140026760
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov eax, 0x13e0
call fcn.1400ec150
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1410], rbx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov edi, 1
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x28], bpl
xor r8d, r8d
lea rdx, [0x14069df3a]
lea rcx, [rsp + 0x28]
call fcn.14000d058
nop
call fcn.1400bc8bc
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140026829
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x140026824
test cl, 0x1f
je 0x1400267f7
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140026806
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140026815
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x140026821
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
call fcn.1400bc8bc
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov rdx, rdi
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edi
mov dword [rsp + rdx*4 + 0x54], eax
inc edi
inc rdx
cmp rdx, 0x270
jl 0x140026840
mov dword [rsp + 0x50], 0x270
mov esi, ebp
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.140026250
cmp eax, 0xffffffff
ja 0x140026870
movzx edi, al
mov eax, 0x80808081
mul edi
shr edx, 7
imul eax, edx, 0xff
sub edi, eax
mov byte [rsp + 0x1408], dil
mov rdx, qword [rbx + 8]
lea rax, [rsp + 0x1408]
cmp rax, rdx
jae 0x140026939
mov rcx, qword [rbx]
lea rax, [rsp + 0x1408]
cmp rcx, rax
ja 0x140026939
lea rdi, [rsp + 0x1408]
sub rdi, rcx
mov r9, qword [rbx + 0x10]
cmp rdx, r9
jne 0x140026925
mov rax, r9
sub rax, rdx
cmp rax, 1
jae 0x140026925
mov rax, rcx
sub rax, rdx
dec rax
cmp rax, 1
jb 0x1400269ad
sub rdx, rcx
inc rdx
sub r9, rcx
mov rax, r9
shr rax, 1
mov rcx, rax
not rcx
add rax, r9
mov r8, rbp
cmp rcx, r9
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
mov rcx, rbx
call fcn.14000e6a0
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14002699d
mov rax, qword [rbx]
movzx ecx, byte [rdi + rax]
mov byte [rdx], cl
jmp 0x14002699d
mov r9, qword [rbx + 0x10]
cmp rdx, r9
jne 0x140026991
mov rax, r9
sub rax, rdx
cmp rax, 1
jae 0x140026991
mov rcx, qword [rbx]
mov rax, rcx
sub rax, rdx
dec rax
cmp rax, 1
jb 0x1400269ba
sub rdx, rcx
inc rdx
sub r9, rcx
mov rax, r9
shr rax, 1
mov rcx, rax
not rcx
add rax, r9
mov r8, rbp
cmp rcx, r9
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
mov rcx, rbx
call fcn.14000e6a0
mov rax, qword [rbx + 8]
test rax, rax
je 0x14002699d
mov byte [rax], dil
inc qword [rbx + 8]
inc esi
cmp esi, 0x10
jge 0x1400269c7
jmp 0x140026870
lea rcx, str.vector_T__too_long
call fcn.1400bc800
int3
lea rcx, str.vector_T__too_long
call fcn.1400bc800
int3
mov rax, rbx
mov rbx, qword [rsp + 0x1410]
add rsp, 0x13e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140026d90
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [r11 - 0x28], r15
cmp qword [rdx + 0x18], 8
jb 0x140026dd5
mov rax, qword [rdx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140026e12
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
jmp 0x140026e8f
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test eax, eax
je 0x140026e75
mov edx, ebp
lea rcx, [rsp + 0x50]
call fcn.14000e8f0
mov dword [rsp + 0x98], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
mov r8d, ebp
mov rsi, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140026e70
cmp dword [rsp + 0x98], ebp
je 0x140026e7a
mov rax, rsi
jmp 0x140026e7f
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov qword [rdi], rsi
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x10], rax
mov rax, rdi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1400270e0
Capabilities:
Create directory
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x1040
call fcn.1400ec150
sub rsp, rax
mov r9, qword [rcx + 0x18]
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
cmp r9, 8
jb 0x140027111
mov rcx, qword [rcx]
mov rax, qword [rbx + 0x10]
lea r8, [rcx + rax*2]
cmp r9, 8
jb 0x140027124
mov rdx, qword [rbx]
jmp 0x140027127
mov rdx, rbx
sub r8, rdx
lea rcx, [rsp + 0x40]
call fcn.14011c9b0
mov rax, qword [rbx + 0x10]
lea rcx, [rsp + 0x40]
xor r14d, r14d
mov word [rsp + rax*2 + 0x40], r14w
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14002715d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp qword [rbx + 0x18], 8
jb 0x140027167
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400271c8
lea r9, [rsp + 0x1060]
mov qword [rsp + 0x20], r14
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov rcx, rdi
setne bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x1400271ca
xor al, al
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140027250
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r10, rcx
lea r9, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x140027260
lea r9, [r10 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x1400272b0
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 dword [r10], r11d
ret
Function at 0x14002edd0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14002f010
cmp byte [rcx + 0x71], 0
je 0x14002f010
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x14002ee1b
xor al, al
jmp 0x14002f012
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r14d, r14d
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x28]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x14002ee92
sub eax, 1
jne 0x14002ef8e
jmp 0x14002ee96
mov byte [rdi + 0x71], r14b
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x14002eee7
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140159a00
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
cmp rbx, rax
jne 0x14002ef9b
cmp byte [rdi + 0x71], r14b
je 0x14002efb9
test rbx, rbx
jne 0x14002ee50
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x14002efac
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14002ef9f
cmp r9, rbx
jae 0x14002ef38
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14000cca4
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
jmp 0x14002ef55
test rbx, rbx
jne 0x14002ef5e
mov qword [rbp - 0x18], r14
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, rcx
mov byte [rax], r14b
jmp 0x14002ee48
test rbx, rbx
je 0x14002ee50
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, rcx
mov rax, qword [rbp - 0x18]
xor ecx, ecx
mov qword [rax + rdx], rcx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rbx + rax], cl
jmp 0x14002ee48
sub eax, 2
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
je 0x14002efb9
xor bl, bl
jmp 0x14002efbb
lea rcx, str.string_too_long
call fcn.1400bc800
int3
lea rcx, str.string_too_long
call fcn.1400bc800
int3
mov bl, 1
cmp r9, 0x10
jb 0x14002f00b
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x14002f006
test byte [rbp - 0x28], 0x1f
je 0x14002efd9
call fcn.140128ff4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14002efe8
call fcn.140128ff4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14002eff7
call fcn.140128ff4
int3
cmp rcx, 0x27
jbe 0x14002f003
call fcn.140128ff4
int3
mov rcx, rax
call fcn.1400eb7f4
movzx eax, bl
jmp 0x14002f012
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140035eb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
or eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x140035f5a
movzx edx, cl
lea r8, [r8 + 1]
xor eax, edx
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 [r8]
test cl, cl
jne 0x140035ec1
not eax
ret
Function at 0x1400374b0
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 0x140037506
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140037506
cmp dword [rcx], ebx
je 0x14003757b
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 0x140037569
nop word [rax + rax]
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 0x140037584
inc ebx
cmp ebx, r8d
jb 0x140037540
mov rcx, rdx
call sub.WTSAPI32.dll_WTSFreeMemory
or eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rbx
ret
mov eax, edi
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 0x1400375a0
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_27
lea rax, [rsp + 0x48]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1400375ef
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400375ef
cmp dword [rcx], 0
jne 0x1400375ea
mov eax, 1
add rsp, 0x38
ret
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
add rsp, 0x38
ret

Function at 0x140037720
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 0x140037890
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x28]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x1400379b1
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], ebx
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x20]
test r9d, r9d
je 0x1400378f9
mov edx, r9d
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9d, dword [rbp + 0x20]
mov rdi, rax
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x1400379b1
xor eax, eax
lea r9, [rbp + 0x30]
mov r8d, 0xf0fff
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x28], rax
xor ecx, ecx
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x14003799e
mov rdx, qword [rdi]
lea rax, str.SeLockMemoryPrivilege
mov rcx, qword [rbp + 0x30]
lea r8, [rbp - 0x40]
mov qword [rbp - 0x38], rax
mov r9d, 1
mov dword [rbp - 0x40], 0x2c002a
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
test eax, eax
mov ecx, 2
cmove ebx, ecx
mov rcx, qword [rbp + 0x30]
call sub.ADVAPI32.dll_LsaClose
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
Function at 0x140042910
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [r11 - 0x28], r15
cmp qword [rdx + 0x18], 0x10
jb 0x140042955
mov rax, qword [rdx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
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 r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140042992
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
jmp 0x140042a0f
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test eax, eax
je 0x1400429f5
mov edx, ebp
lea rcx, [rsp + 0x50]
call fcn.14000e8f0
mov dword [rsp + 0x98], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x98]
mov r8d, ebp
mov rsi, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400429f0
cmp dword [rsp + 0x98], ebp
je 0x1400429fa
mov rax, rsi
jmp 0x1400429ff
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov qword [rdi], rsi
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x10], rax
mov rax, rdi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140043010
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rdx
movzx r9d, cx
movabs rax, 0x79baa6bb6398b6f7
shr ecx, 0x10
mul r8
mov rax, r8
mov rbx, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0xc
imul rax, rax, 0x15b0
sub r8, rax
test r10, r10
jne 0x140043058
lea eax, [r10 + 1]
mov rbx, qword [rsp + 8]
ret
test rbx, rbx
je 0x14004312c
xor edx, edx
cmp r8, 7
jbe 0x1400430da
lea r11d, [rdx + 7]
nop dword [rax]
movzx eax, byte [r10]
add r11d, 8
add r9d, eax
add edx, 8
movzx eax, byte [r10 + 1]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 + 7]
add ecx, r9d
add r9d, eax
add r10, 8
add ecx, r9d
mov eax, r11d
cmp rax, r8
jb 0x140043070
mov eax, edx
cmp rax, r8
jae 0x1400430f7
movzx eax, byte [r10]
inc edx
add r9d, eax
inc r10
add ecx, r9d
mov eax, edx
cmp rax, r8
jb 0x1400430e1
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
sub rbx, r8
mov r8d, 0x15b0
jne 0x140043061
mov rbx, qword [rsp + 8]
shl ecx, 0x10
lea eax, [r9 + rcx]
ret
Function at 0x140043140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
lea rbx, [0x1403f0f70]
mov r10, r8
mov r9, rdx
not ecx
cmp r8, 4
jb 0x1400431d2
mov r11, r8
shr r11, 2
imul rax, r11, 0xfffffffffffffffc
add r10, rax
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
add r9, 4
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x140043170
test r10, r10
je 0x140043200
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
sub r10, 1
jne 0x1400431e0
mov rbx, qword [rsp + 8]
not ecx
mov eax, ecx
ret
Function at 0x140051cd0
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
jb 0x140051ced
mov rcx, qword [rbx]
jmp 0x140051cf0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140051d39
add rdi, 0x38
cmp qword [rdi + 0x18], 0x10
jb 0x140051d0a
mov rcx, qword [rdi]
jmp 0x140051d0d
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140051d39
cmp qword [rdi + 0x18], 0x10
jb 0x140051d21
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 0x10
jb 0x140051d2d
mov rcx, qword [rbx]
jmp 0x140051d30
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
cmp qword [rbx + 0x18], 0x10
jb 0x140051d43
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