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

Disassembly:
mov rax, qword [0x1400d82c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014edf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014ee8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001b020
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001b12a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x14001b102
add rax, 1
cmp rax, 0x6b
je 0x14001b11f
cmp byte [rcx + rax], 0
jne 0x14001b0f8
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001b11f
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x14001b113

Function at 0x14001b4a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400de650], 1
je 0x14001b518
lea rdi, [0x1400de650]
mov rcx, rdi
call fcn.14001ada0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a720
mov esi, dword [0x1400de650]
test esi, esi
jne 0x14001b528
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140020678], eax
je 0x14001fef6
mov dword [0x1400de650], 1
mov rcx, rbp
call fcn.14001aa10
test rbx, rbx
je 0x14001b518
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001b140
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b4f8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14001a1f0
jmp 0x14001b4f8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x14065f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14065f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14065f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065f06f
add dl, dl
jne 0x14065f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065f0f6
xor eax, eax
add dl, dl
jne 0x14065f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065f1ad
add dl, dl
jne 0x14065f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14065f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065f07e
mov eax, 1
add dl, dl
jne 0x14065f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065f0fb
sub eax, ebx
mov ebx, 1
jne 0x14065f14c
mov ecx, 1
add dl, dl
jne 0x14065f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14065f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065f15d
cmp eax, 0x7d00
jae 0x14065f19b
cmp eax, 0x500
jb 0x14065f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065f07e
cmp eax, 0x7f
ja 0x14065f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14065f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140016a34
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov r14, r8
mov rsi, rcx
mov edi, 1
test rcx, rcx
jne 0x140016a92
lea rdx, [0x1400016f0]
lea rax, [0x140002840]
mov ebx, 0xc00000e5
mov qword [r11 - 0x48], rdx
mov qword [r11 - 0x50], rax
mov dword [rsp + 0x20], 0x239
mov ecx, edi
jmp 0x140016b4a
dec edi
lea r8, [0x140002878]
lea rcx, [rsp + 0x40]
mov r9d, dword [r14 + rdi*4]
mov edx, 0xb
call fcn.140017434
mov ebx, eax
test eax, eax
jne 0x140016b1d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
cmovbe ecx, ebp
test ecx, ecx
jne 0x140016adc
test edi, edi
jne 0x140016a92
mov ebx, ebp
jmp 0x140016b60
movzx ebx, cx
lea rdx, [0x1400016f0]
lea rax, [rsp + 0x40]
or ebx, 0xc0070000
test ecx, ecx
cmovle ebx, ecx
lea rcx, [rsp + 0x40]
test rcx, rcx
cmove rax, rdx
mov qword [rsp + 0x30], rax
lea rax, [0x140002880]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x24c
jmp 0x140016b45
lea rdx, [0x1400016f0]
lea rax, [0x140002768]
btr ebx, 0x1c
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x242
bts ebx, 0x1e
mov ecx, 1
lea r9, [0x1400026b0]
lea rdx, [0x1400016b8]
mov r8d, ebx
call fcn.140013c30
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140019b50
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140016f0c
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov rbx, rcx
lea r9, [r11 - 0x78]
lea r8, [r11 - 0x68]
lea ecx, [rdi + 0x1a]
xor edx, edx
mov dword [rsp + 0x50], 0x44
mov qword [r11 - 0x80], rdi
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x140016fa7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x1400026b0]
lea rdx, [0x1400016b8]
movzx ebx, ax
lea ecx, [rdi + 1]
or ebx, 0xc0070000
test eax, eax
cmovle ebx, eax
lea rax, [0x1400016f0]
mov qword [rsp + 0x30], rax
lea rax, [0x1400017e0]
mov r8d, ebx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x318
call fcn.140013c30
jmp 0x1400170ba
test rbx, rbx
jne 0x14001700b
lea rcx, [rsp + 0x48]
xor edx, edx
call fcn.140016ca4
mov ebx, eax
test eax, eax
je 0x140017003
lea rax, [0x1400016f0]
lea r9, [0x1400026b0]
lea rdx, [0x1400016b8]
mov qword [rsp + 0x30], rax
lea rax, [0x140001c30]
mov r8d, ebx
mov qword [rsp + 0x28], rax
mov ecx, 1
mov dword [rsp + 0x20], 0x31e
call fcn.140013c30
mov rdi, qword [rsp + 0x48]
jmp 0x1400170ac
mov rdi, qword [rsp + 0x48]
mov rbx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140017058
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0xc0070000
test eax, eax
cmovle ebx, eax
lea rax, [0x1400016f0]
mov qword [rsp + 0x30], rax
lea rax, [0x1400029e0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x32a
jmp 0x14001708d
cmp dword [rsp + 0x40], 0
jne 0x1400170aa
mov rcx, rbx
call fcn.140016b8c
mov ebx, eax
test eax, eax
je 0x1400170aa
lea rax, [0x1400016f0]
mov qword [rsp + 0x30], rax
lea rax, [0x140002a10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x330
lea r9, [0x1400026b0]
lea rdx, [0x1400016b8]
mov r8d, ebx
mov ecx, 1
call fcn.140013c30
jmp 0x1400170ac
xor ebx, ebx
test rdi, rdi
je 0x1400170ba
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140019b50
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400170e4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rcx
test rcx, rcx
jne 0x140017132
lea rax, [0x1400016f0]
mov ebx, 0xc00000e5
mov qword [rsp + 0x30], rax
lea rax, [0x140002a28]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x34e
jmp 0x140017248
xor ebp, ebp
lea rdi, [r8 + 0x10]
movzx eax, word [rdi - 8]
add eax, 0xfffffff5
test eax, 0xfffffff7
jne 0x140017223
mov r9d, dword [rdi - 0x10]
cmp r9d, 5
je 0x14001715a
cmp r9d, 8
jne 0x140017170
mov eax, 0x13
or ecx, 0xffffffff
mov word [rdi - 8], ax
xor eax, eax
cmp cx, word [rdi]
sete al
mov dword [rdi], eax
lea r8, [0x140002878]
lea rcx, [rsp + 0x48]
mov edx, 0xc
call fcn.140017434
mov ebx, eax
test eax, eax
jne 0x140017201
mov eax, dword [rdi]
lea r9d, [rbx + 4]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400171d1
inc ebp
add rdi, 0x20
cmp ebp, 1
jb 0x140017138
jmp 0x140017263
movzx ebx, ax
or ebx, 0xc0070000
test eax, eax
cmovle ebx, eax
lea rax, [0x1400016f0]
mov qword [rsp + 0x30], rax
lea rax, [0x140002a40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x381
jmp 0x140017248
lea rax, [0x1400016f0]
mov qword [rsp + 0x30], rax
lea rax, [0x140002768]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x374
jmp 0x140017248
lea rax, [0x1400016f0]
mov ebx, 0xc00000bb
mov qword [rsp + 0x30], rax
lea rax, [0x140002600]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x368
lea r9, [0x1400026b0]
lea rdx, [0x1400016b8]
mov r8d, ebx
mov ecx, 1
call fcn.140013c30
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140019b50
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r14
pop rdi
pop rbp
ret

Function at 0x140018040
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
lea rdx, [0x140002f90]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400180a3
lea rax, [0x1400016f0]
mov qword [rsp + 0x30], rax
lea rax, [0x1400030a0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x9e
mov r8d, ebx
mov ecx, 1
jmp 0x1400180f8
mov rcx, qword [rsp + 0x50]
lea rdx, [0x140002f40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
lea rax, [0x1400016f0]
mov qword [rsp + 0x30], rax
je 0x1400180dd
lea rax, [0x140002880]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa4
jmp 0x140018099
lea rax, [0x140003110]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa6
lea ecx, [r8 + 4]
lea r9, [0x140003040]
lea rdx, [0x1400016b8]
call fcn.140013c30
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001811b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14001812c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x14001c008]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rdi, rcx
lea rcx, [rsp + 0x52]
xor esi, esi
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x50], si
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x40]
lea r9d, [rsi + 2]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r8, [0x140002f40]
mov qword [rsp + 0x28], rax
lea rdx, [0x140002f90]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], 0x400
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
je 0x1400181dd
lea rax, [0x1400016f0]
mov r8d, ebx
lea ecx, [rsi + 1]
mov qword [rsp + 0x30], rax
lea rax, [0x140002fe0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x5e
jmp 0x140018277
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rcx, rdi
mov rax, rdx
or rax, rdi
and eax, 0xf
jne 0x140018249
mov eax, 0x10
lea r8d, [rax + 0x70]
movaps xmm0, xmmword [rdx]
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx], xmm0
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm1, xmmword [rdx + 0x70]
add rdx, r8
movaps xmmword [rcx + 0x60], xmm0
add rcx, r8
movaps xmmword [rcx - 0x10], xmm1
dec rax
jne 0x1400181fe
jmp 0x140018257
mov r8d, 0x800
mov rdx, r9
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x30], rdi
lea rax, [0x140002fe0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x62
lea ecx, [r8 + 4]
lea r9, [0x140003040]
lea rdx, [0x1400016b8]
call fcn.140013c30
test ebx, ebx
jne 0x1400182a6
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x140018292
mov ecx, 0xd
test rax, rax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140019b50
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400182d4
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
and qword [rax - 0x38], 0
or qword [rbp - 0x10], 0xffffffffffffffff
xor r9d, r9d
mov dword [rax - 0x40], 0x80
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rdi, rcx
mov byte [rbp + 0x28], 0
mov dword [rax - 0x48], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x140018353
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
mov ebx, eax
lea rax, [0x1400016f0]
cmovne rax, rdi
mov qword [rsp + 0x30], rax
lea rax, [0x140003178]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf1
jmp 0x140018408
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0x30]
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtGetCachedSigningLevel]
mov ebx, eax
test eax, eax
je 0x1400183a2
lea rax, [0x1400016f0]
test rdi, rdi
cmovne rax, rdi
mov qword [rsp + 0x30], rax
lea rax, [0x1400031a0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x106
jmp 0x140018408
mov r8d, 8
cmp byte [rbp + 0x28], r8b
jae 0x140018423
xor eax, eax
lea rdx, [rbp + 0x38]
xor r9d, r9d
mov qword [rbp + 0x38], rax
lea ecx, [rax + 0x67]
mov dword [rbp + 0x38], r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400183dc
test byte [rbp + 0x3c], 2
je 0x1400183dc
cmp byte [rbp + 0x28], 4
jne 0x1400183dc
xor ebx, ebx
jmp 0x1400183e1
mov ebx, 0x241
lea rax, [0x1400016f0]
test rdi, rdi
cmovne rax, rdi
mov qword [rsp + 0x30], rax
lea rax, [0x1400031d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x113
lea r9, [0x140003040]
lea rdx, [0x1400016b8]
mov r8d, ebx
mov ecx, 1
call fcn.140013c30
mov rcx, qword [rbp - 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140018433
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001898c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x58
lea rax, [0x140003870]
xor ebx, ebx
mov dword [rbp + 0x28], 4
mov qword [rbp - 0x20], rax
lea rax, [0x1400038b8]
mov qword [rbp - 0x18], rax
mov eax, dword [0x14001c438]
cmp eax, 0xffffffff
jne 0x1400189f9
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x30], 1
call qword [sym.imp.ntdll.dll_RtlGetNtProductType]
cmp al, 1
jne 0x1400189f3
cmp dword [rbp + 0x30], 2
jne 0x1400189e9
mov dword [0x14001c438], 1
jmp 0x1400189fe
mov eax, ebx
mov dword [0x14001c438], ebx
jmp 0x1400189f9
mov eax, dword [0x14001c438]
cmp eax, 1
jne 0x140018a05
mov al, 1
jmp 0x140018a9b
mov edi, ebx
lea rsi, [rbp - 0x20]
mov rdx, qword [rsi]
lea rax, [rbp - 0x28]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140018a7c
mov rcx, qword [rbp - 0x28]
lea rax, [rbp + 0x28]
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
lea rdx, [0x1400038f0]
xor r8d, r8d
mov dword [rbp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018a72
cmp dword [rbp + 0x38], 4
jne 0x140018a72
cmp dword [rbp + 0x28], 4
je 0x140018a89
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add rsi, 8
cmp edi, 2
jae 0x140018a99
jmp 0x140018a0b
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x40], ebx
setne bl
mov al, bl
add rsp, 0x58
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140019940
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor r14d, r14d
xor eax, eax
lock cmpxchg qword [0x14001cc98], rbx
je 0x140019992
cmp rax, rbx
jne 0x140019985
mov ebx, 1
mov r14d, ebx
jmp 0x140019997
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140019969
mov ebx, 1
mov eax, dword [0x14001cca0]
cmp eax, ebx
jne 0x1400199ad
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140019a16
mov eax, dword [0x14001cca0]
test eax, eax
jne 0x140019a10
mov dword [0x14001cca0], ebx
lea r12, [0x140001040]
lea rdi, [0x140001028]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r12
jae 0x140019a02
test eax, eax
jne 0x140019a06
mov rsi, qword [rdi]
test rsi, rsi
je 0x1400199f7
mov rcx, rsi
mov rax, qword [0x14001e508]
call rax
call rsi
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400199d4
test eax, eax
je 0x140019a16
mov eax, 0xff
jmp 0x140019af7
mov dword [0x14001c484], ebx
mov eax, dword [0x14001cca0]
cmp eax, ebx
jne 0x140019a3d
lea rdx, [0x140001020]
lea rcx, [section..text]
call sub.msvcrt.dll__initterm
mov dword [0x14001cca0], 2
test r14d, r14d
jne 0x140019a4b
xor eax, eax
xchg qword [0x14001cc98], rax
cmp qword [0x14001ccb8], 0
je 0x140019a83
lea rcx, [0x14001ccb8]
call fcn.140019dc0
test eax, eax
je 0x140019a83
mov rbx, qword [0x14001ccb8]
mov rcx, rbx
mov rax, qword [0x14001e508]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov r8, qword [0x14001c498]
mov rdx, qword [0x14001c490]
mov ecx, dword [0x14001c488]
call fcn.140011658
mov dword [0x14001c480], eax
cmp dword [0x14001c4a0], 0
jne 0x140019ab3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001c484], 0
jne 0x140019ac8
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001c480]
jmp 0x140019af7
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
call fcn.140019e54
add rsp, 0x28
jmp 0x140019940

Function at 0x140019cbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140019d08
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019d00
cmp dword [rcx + 0x3c], edx
jl 0x140019d00
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140019d00
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140019d08
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140019e54
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001c008]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x140019f0f
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
shl rax, 0x18
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x10]
mov eax, eax
xor rax, qword [rbp + 0x10]
xor rax, rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x14001c008], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x14001c010], rax
add rsp, 0x20
pop rbp
ret

Function at 0x140019f5c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140002952
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002971
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055bb
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055fa
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400680f0], 0
jne 0x140005612
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400055bb
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005534
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400680f0]
test rbx, rbx
je 0x140005643
test byte [rbx + 7], 0x40
jne 0x140005643
mov rcx, rbx
call fcn.1400039df
lea rcx, [0x140020320]
call fcn.140015130
cmp byte [rax], 0
je 0x14000567b
lea rcx, [0x140020220]
mov byte [rax], 0
call fcn.140015130
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003f44
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005cf2
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1400680c0]
xor ebx, ebx
lea r14, [0x140020320]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rdi
mov ecx, 1
jl 0x140005d78
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002139b]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14001a4e8
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005bcb
mov rcx, r14
call fcn.140015130
cmp byte [rax], 0
jne 0x140005daa
inc rbx
jmp 0x140005d2b
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret