joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bff0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
cmp qword [rdx + 0x18], 8
mov rbx, r9
mov rsi, r8
mov r14, rdx
jb 0x14001c00c
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rbp
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x40], rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001c123
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x14001c07d
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c078
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c277
mov rcx, r8
call fcn.14003e780
xor edi, edi
mov word [r14], di
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14001c0ce
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c0c9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c277
mov rcx, r8
call fcn.14003e780
mov word [rsi], di
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001c11c
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c117
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c277
mov rcx, r8
call fcn.14003e780
xor al, al
jmp 0x14001c255
cmp qword [rbx + 0x18], 8
mov dil, 1
mov eax, dword [rbx + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rbx
jb 0x14001c13d
mov rax, qword [rbx]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x14001c14a
mov rdx, qword [rsi]
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
movzx ebp, dil
xor edi, edi
test eax, eax
cmovne ebp, edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14 + 0x18]
cmp rdx, 8
jb 0x14001c1bc
mov rcx, qword [r14]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c1b7
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c277
mov rcx, r8
call fcn.14003e780
mov word [r14], di
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14001c207
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c202
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c277
mov rcx, r8
call fcn.14003e780
mov word [rsi], di
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001c251
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c24c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c277
mov rcx, r8
call fcn.14003e780
movzx eax, bpl
mov word [rbx], di
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
call fcn.1400512b4
int3
Function at 0x14001c280
Capabilities:
Delete registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x48
cmp qword [rdx + 0x18], 8
mov rbx, r8
mov rdi, rdx
jb 0x14001c297
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbp
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x40], rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001c35f
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001c308
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c303
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c439
mov rcx, r8
call fcn.14003e780
xor esi, esi
mov word [rdi], si
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001c358
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c353
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c439
mov rcx, r8
call fcn.14003e780
xor al, al
jmp 0x14001c419
cmp qword [rbx + 0x18], 8
mov sil, 1
mov rdx, rbx
jb 0x14001c36f
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
movzx ebp, sil
xor esi, esi
test eax, eax
cmovne ebp, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14001c3cb
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c3c6
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c439
mov rcx, r8
call fcn.14003e780
mov word [rdi], si
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14001c415
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001c410
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001c439
mov rcx, r8
call fcn.14003e780
movzx eax, bpl
mov word [rbx], si
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x60]
add rsp, 0x48
pop rdi
pop rbx
ret
call fcn.1400512b4
int3
Function at 0x14001db70
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400950a0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
lea r8d, [rdi + 0x17]
lea rdx, str.Uninstalling_service...
lea rcx, [rsp + 0x28]
call fcn.140007c80
lea rcx, [rsp + 0x28]
call fcn.14002f820
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14001dbe5
lea eax, [rdi - 5]
jmp 0x14001dc7c
call fcn.140003340
sub rax, 0xffffffffffffff80
cmp qword [rax + 0x18], 8
jb 0x14001dbf8
mov rax, qword [rax]
mov r8d, 0xf01ff
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14001dc20
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [rbx - 8]
jmp 0x14001dc7c
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14001dc39
cmp dword [rsp + 0x2c], 1
je 0x14001dc55
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14001dc55
lea edi, [rax - 9]
jmp 0x14001dc68
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, 0xfffffff6
test eax, eax
cmove edi, ecx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003e760
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14001e260
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x14001e2c1
lea r8, [r10 + 8]
nop dword [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 0x14001e280
mov ecx, dword [r10]
jmp 0x14001e3aa
cmp ecx, 0x4e0
jb 0x14001e3aa
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
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 0x14001e2e0
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 0x14001e330
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
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
xor ecx, ecx
mov dword [r10], ecx
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 eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14002a240
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rax, qword [0x1400950a0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r8
mov r12, rdx
mov qword [rbp - 0x69], rdx
mov qword [rbp - 0x69], r8
xor r13d, r13d
mov ebx, r13d
mov dword [rbp - 0x19], ebx
mov qword [rbp - 0x11], r13
mov dword [rbp - 9], 0x6a09e667
mov dword [rbp - 5], 0xbb67ae85
mov dword [rbp - 1], 0x3c6ef372
mov dword [rbp + 3], 0xa54ff53a
mov dword [rbp + 7], 0x510e527f
mov dword [rbp + 0xb], 0x9b05688c
mov dword [rbp + 0xf], 0x1f83d9ab
mov dword [rbp + 0x13], 0x5be0cd19
mov r15, r8
cmp qword [r8 + 0x18], 8
jb 0x14002a2ca
mov r15, qword [r8]
mov r14, qword [r8 + 0x10]
add r14, r14
mov rdi, r13
je 0x14002a317
nop word [rax + rax]
mov ecx, ebx
movzx eax, byte [rdi + r15]
mov byte [rbp + rcx - 0x59], al
mov ebx, dword [rbp - 0x19]
inc ebx
mov dword [rbp - 0x19], ebx
cmp ebx, 0x40
jne 0x14002a30f
lea rcx, [rbp - 0x59]
call fcn.1400164f0
add qword [rbp - 0x11], 0x200
mov ebx, r13d
mov dword [rbp - 0x19], ebx
inc rdi
cmp rdi, r14
jb 0x14002a2e0
mov ecx, 0x20
call fcn.14003ea1c
mov rdi, rax
mov eax, ebx
mov byte [rbp + rax - 0x59], 0x80
inc rax
mov ecx, 0x38
mov r8d, 0x40
cmp ebx, ecx
cmovb r8d, ecx
cmp rax, r8
jae 0x14002a355
sub r8, rax
lea rcx, [rbp - 0x59]
add rcx, rax
xor edx, edx
call fcn.1400412c0
mov eax, dword [rbp - 0x19]
cmp eax, 0x38
jb 0x14002a37e
lea rcx, [rbp - 0x59]
call fcn.1400164f0
xorps xmm2, xmm2
xor eax, eax
movups xmmword [rbp - 0x59], xmm2
movups xmmword [rbp - 0x49], xmm2
movups xmmword [rbp - 0x39], xmm2
mov qword [rbp - 0x29], rax
mov eax, dword [rbp - 0x19]
lea edx, [rax*8]
add rdx, qword [rbp - 0x11]
mov qword [rbp - 0x11], rdx
movzx eax, dl
mov byte [rbp - 0x1a], dl
mov rax, rdx
shr rax, 8
mov byte [rbp - 0x1b], al
mov rax, rdx
shr rax, 0x10
mov byte [rbp - 0x1c], al
mov rax, rdx
shr rax, 0x18
mov byte [rbp - 0x1d], al
mov rax, rdx
shr rax, 0x20
mov byte [rbp - 0x1e], al
mov rax, rdx
shr rax, 0x28
mov byte [rbp - 0x1f], al
mov rax, rdx
shr rax, 0x30
mov byte [rbp - 0x20], al
shr rdx, 0x38
mov byte [rbp - 0x21], dl
lea rcx, [rbp - 0x59]
call fcn.1400164f0
xor bl, bl
xor al, al
movzx r11d, bl
mov r10d, 3
sub r10d, r11d
shl r10d, 3
lea r9, [rbp - 9]
nop dword [rax + rax]
mov r8d, dword [r9]
mov ecx, r10d
shr r8d, cl
movzx ecx, al
lea edx, [r11 + rcx*4]
mov byte [rdx + rdi], r8b
inc al
lea r9, [r9 + 4]
cmp al, 8
jb 0x14002a400
inc bl
cmp bl, 4
jb 0x14002a3e1
mov rdx, rdi
mov rcx, r12
call fcn.140016740
mov rcx, rdi
call fcn.14003e780
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x14002a474
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14002a46f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002a4ae
mov rcx, r8
call fcn.14003e780
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
mov rax, r12
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14003e760
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400512b4
int3
Function at 0x14002f820
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1400988ea], 0
mov rbx, rcx
je 0x14002f842
cmp qword [rcx + 0x18], 8
jb 0x14002f83c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14002f87d
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14002f878
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002f894
mov rcx, r8
call fcn.14003e780
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
add rsp, 0x20
pop rbx
ret
call fcn.1400512b4
int3
Function at 0x1400313e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400950a0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8d, [r9 + 0x26]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140031452
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140031440
lea rdx, [rsp + 0x30]
jmp 0x140031470
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
xor r8d, r8d
lea rdx, [0x140084ee8]
mov rcx, rbx
call fcn.140007c80
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003e760
add rsp, 0x250
pop rbx
ret
Function at 0x140031f90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400950a0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x40], 0x238
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140032068
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140032068
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140032023
mov rdx, qword [rdi]
lea rcx, [rsp + 0x6c]
call fcn.140052478
test eax, eax
jne 0x140032055
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140032048
mov eax, dword [rsp + 0x48]
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x140032055
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.140036a20
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140032016
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400320ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400320a8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400320e2
mov rcx, r8
call fcn.14003e780
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14003e760
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
call fcn.1400512b4
int3
Function at 0x1400320f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400950a0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
xor sil, sil
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140032189
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140032189
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140032163
mov rdx, qword [rbx]
lea rcx, [rsp + 0x4c]
call fcn.140052478
test eax, eax
je 0x140032186
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140032156
jmp 0x140032189
mov sil, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400321cd
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400321c8
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140032207
mov rcx, r8
call fcn.14003e780
xor eax, eax
mov word [rbx], ax
mov qword [rbx + 0x10], rax
movzx eax, sil
mov qword [rbx + 0x18], 7
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003e760
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400512b4
int3

Function at 0x1400327a0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1400950a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x50]
call fcn.1400412c0
mov r9d, 0x200
lea r8, [rsp + 0x50]
mov edx, 0x5c
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140032820
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 0xf
mov byte [rbx], al
xor r8d, r8d
lea rdx, [0x14008008b]
mov rcx, rbx
call fcn.140007e50
jmp 0x1400328b7
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], ax
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140032850
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140007c80
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1400314a0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400328b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400328b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400328d3
call fcn.14003e780
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14003e760
add rsp, 0x260
pop rbx
ret
call fcn.1400512b4
int3
Function at 0x140033750
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
xor r8d, r8d
lea rdx, [0x140084ee8]
call fcn.140007c80
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1400337ef
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
mov r8d, 5
mov edx, eax
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x1400337ef
mov rdx, qword [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400337d0
mov rcx, rbx
call fcn.140007c80
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
nop
mov rax, rbx
add rsp, 0x40
pop rbx
ret

Function at 0x140051ce0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140051d17
call fcn.14004ad40
mov dword [rax], 0x16
call fcn.140051294
xor eax, eax
jmp 0x140051da5
mov rdx, r9
mov rcx, r8
call fcn.140051c7c
mov rbx, rax
test rax, rax
je 0x140051da2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140051ba8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140051d8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004acb4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140051d76
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140051d85
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14005b160
jmp 0x140051da2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140051d9f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400595b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400595ce
mov al, 1
jmp 0x14005962e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400595df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005962c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140064338
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005962c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005962c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005962c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005962e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14005db98
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.14003f140
sub rsp, rax
mov rax, qword [0x1400950a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005939c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005dbe7
mov rax, rbp
jmp 0x14005dcef
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 + 0x98190]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005eae4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x98190]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005dceb
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 0x14005dceb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005eae4
test rax, rax
js 0x14005dceb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005dceb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005dcdd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005dcdd
cmp byte [rcx], 0xd
jne 0x14005dcc3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005dcd2
cmp byte [rcx + 1], 0xa
jne 0x14005dcd2
inc rcx
jmp 0x14005dcd2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x954c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005dca5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005dcef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003e760
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret