joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d2f8c
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 0x2fc4d300a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3001
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 0x2fc4d3001
mov rax, qword [rbp - 8]
jmp 0x2fc4d301f
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 0x2fc4d2fd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8c80
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d9d60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9682
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d971a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d96fe
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 0x2fc4d96f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d96f2
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 0x2fc4d96b8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d971b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9820
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 0x2fc4d9848
mov eax, 0
jmp 0x2fc4d9896
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 0x2fc4d9871
mov eax, 0
jmp 0x2fc4d9896
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 0x2fc4d9891
mov eax, 0
jmp 0x2fc4d9896
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d989c
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 0x2fc4d991a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9911
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 0x2fc4d9911
mov rax, qword [rbp - 8]
jmp 0x2fc4d992f
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 0x2fc4d98e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140010690
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1400106bf
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x140037ed0]
mov dword [rsp + 0x48], 4
test rcx, rcx
je 0x1400106f5
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140010753
mov rcx, qword [0x140037ec0]
test rcx, rcx
je 0x140010723
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140010753
mov rcx, qword [0x140037ec8]
test rcx, rcx
je 0x140010751
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140010753
mov dword [rbx], esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x140010770
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [0x140037ed0]
mov rdi, rdx
test rcx, rcx
je 0x1400107b3
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001080f
mov rcx, qword [0x140037ec0]
test rcx, rcx
je 0x1400107e1
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001080f
mov rcx, qword [0x140037ec8]
test rcx, rcx
je 0x140010837
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010837
cmp dword [rsp + 0x50], 0
jne 0x140010827
lea r8, [0x140029680]
xor edx, edx
mov rcx, rdi
call fcn.140017050
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str._PDVD_warning__CReg::ReadSetting__s__LPWSTR__DWORD_
mov rdx, rbx
call fcn.140010350
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140010860
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx]
mov rsi, r8
mov rdi, rdx
mov dword [rsp + 0x40], 4
test rcx, rcx
je 0x1400108a7
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400108d2
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400108e7
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400108e7
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx]
lea rcx, str._PDVD_warning__m_hKey0x_08x__CRegGeneral::ReadSetting__s__DWORD__
mov r8, rdi
call fcn.140010350
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140010910
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
mov rsi, rdx
test rcx, rcx
je 0x140010954
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001097f
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400109ac
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400109ac
cmp dword [rsp + 0x58], 0
jne 0x140010997
lea r8, [0x140029680]
xor edx, edx
mov rcx, rdi
call fcn.140017050
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx]
lea rcx, str._PDVD_warning__m_hKey0x_08x__CRegGeneral::ReadSetting__s__LPWSTR__DWORD_
mov r8, rsi
call fcn.140010350
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400109d0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [0x140037ee0]
test rcx, rcx
je 0x140010a26
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400109f0
add eax, eax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140010a26
mov eax, 1
add rsp, 0x30
pop rbx
ret
lea rcx, str._PDVD_warning__CReg::SaveSetting__s__LPCWSTR_
mov rdx, rbx
call fcn.140010350
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140011190
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
lea r8, str.LocalB673A61A_F68B_4aed_9891_C519FAC102F5
xor edx, edx
mov ecx, 0x1f0001
xor esi, esi
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, esi
mov rbp, rax
nop dword [rax + rax]
lea rcx, str._PDVDLaunchPolicy__CloseAPAndWait__retryTime:__d__waitTime:__d
mov r8d, 3
mov edx, ebx
call fcn.140010390
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, r14
call qword [sym.imp.USER32.dll_PostMessageW]
lea rcx, str._PDVDLaunchPolicy__CloseAPAndWait__Start_to_wait_mutex.
call fcn.140010390
mov edx, 0xbb8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str._PDVDLaunchPolicy__CloseAPAndWait__wait_mutex_result:__d
mov edx, eax
mov edi, eax
call fcn.140010390
test edi, 0xffffff7f
je 0x14001125f
cmp edi, 0x102
jne 0x14001123a
lea rcx, str._PDVDLaunchPolicy__CloseAPAndWait__TIMEOUT__PDVD_cannot_be_closed
jmp 0x14001124d
lea rcx, str._PDVDLaunchPolicy__CloseAPAndWait__FAIL_to_close_PDVD
cmp edi, 0xffffffff
je 0x14001124d
lea rcx, str._PDVDLaunchPolicy__CloseAPAndWait__Unexpected_result_for_waiting_PDVD_closing.
call fcn.140010390
inc ebx
cmp ebx, 0xa
jl 0x1400111d0
jmp 0x140011270
lea rcx, str._PDVDLaunchPolicy__PDVD_is_closed
call fcn.140010390
mov esi, 1
test rbp, rbp
je 0x14001128a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._PDVDLaunchPolicy__CloseAPAndWait__ReleaseMutex_mutex_PDVDAndPDVDCM__Done
call fcn.140010390
lea rcx, str._PDVDLaunchPolicy__CloseAPAndWait__result:_d
mov edx, esi
call fcn.140010390
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140012740
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
lea r8, [0x140014300]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.140018580
mov qword [0x140038208], rax
test rax, rax
je 0x140012781
mov edx, 0xfffffffe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x1400131d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x30
mov r14, r9
mov rsi, rcx
mov ebx, 0x80004005
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14001330e
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001330e
mov rcx, rax
mov qword [rsp + 0x58], r12
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x14001330a
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 2
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140013306
mov rcx, rax
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
test rax, rax
je 0x1400132fb
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r12
mov rcx, r15
mov r8d, eax
call fcn.140017520
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call fcn.140010fe0
mov r9, r14
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call fcn.140010ec0
mov ebx, eax
test eax, eax
js 0x1400132fb
cmp qword [r14], 0
je 0x1400132de
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [r14]
mov r8, qword [rcx]
mov dword [rsp + 0x20], eax
mov rdx, qword [rsp + 0x20]
call qword [r8 + 0x30]
mov eax, ebx
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400132dc
mov eax, ebx
jmp 0x1400132e3
mov eax, ebx
jmp 0x1400132e8
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400144e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140014513
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140014559
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140014554
nop

Function at 0x140015920
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x1400367c0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x30], 0
call fcn.140017230
lea rcx, [rsp + 0x30]
mov r9, rbx
or r8, 0xffffffffffffffff
mov edx, 0x3ff
mov qword [rsp + 0x20], rdi
call fcn.140018e8c
lea r8, [0x14002b0d4]
lea rcx, [rsp + 0x30]
mov edx, 0x400
call fcn.140018d28
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140017200
mov rbx, qword [rsp + 0x460]
add rsp, 0x440
pop rdi
ret

Function at 0x1400159c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x840
mov rax, qword [0x1400367c0]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
mov rdi, rdx
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x30], ax
call fcn.140017230
lea rcx, [rsp + 0x30]
mov r9, rbx
or r8, 0xffffffffffffffff
mov edx, 0x3ff
mov qword [rsp + 0x20], rdi
call fcn.140018ff4
lea r8, [0x14002b0d0]
lea rcx, [rsp + 0x30]
mov edx, 0x400
call fcn.140016fc8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140017200
mov rbx, qword [rsp + 0x860]
add rsp, 0x840
pop rdi
ret

Function at 0x140015a60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
xor ebx, ebx
lea rdx, [0x14002b078]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015ad9
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x14002b0c8]
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140015af0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
lea rax, [rsp + 0x68]
lea rdx, [0x14002b078]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x50], ebx
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015b6c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.trace
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove edi, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
setne bl
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x140015e90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor edi, edi
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x8000000
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rsp + 0x40]
mov rdx, rax
mov rbp, rax
call fcn.1400162f0
cmp rbp, 0xffffffffffffffff
jne 0x140015eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140015f90
xor ecx, ecx
mov edx, 0x10000
mov r8d, 0x1000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x140015f90
lea r9, [rsp + 0x68]
mov r8d, 0x10000
mov rdx, rax
mov rcx, rbp
mov ebx, 0x1f0000
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015f7a
nop word [rax + rax]
mov edx, dword [rsp + 0x68]
mov rcx, rbx
cmp rdx, rbx
cmovb rcx, rdx
sub rbx, rcx
test edx, edx
je 0x140015f7a
test rbx, rbx
je 0x140015f7a
lea r9, [rsp + 0x68]
mov r8d, 0x10000
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140015f40
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x60]
test rbx, rbx
je 0x140015fbc
lock dec dword [rbx + 8]
jne 0x140015fbc
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x140015fbc
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x140019848
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x668f98d6
jmp 0x140007568
dec rcx
jmp 0x140007ca2
jne 0x140007568
jmp 0x140007daa
jmp 0x140007e85
jmp 0x140007f42
jmp 0x140007f9a
jmp 0x140007fe6
jmp 0x140008043
jmp 0x1400080a6
jmp 0x1400080cc
jmp 0x14000812a
jmp 0x140008184
jmp 0x1400081c1
jmp 0x140008234
jmp 0x14000825d
jmp 0x1400082aa
jmp 0x1400082ed
jmp 0x14000835b
jmp 0x1400083be
jmp 0x1400083ee
jmp 0x14000846b
jmp 0x14000848b
jmp 0x140008506
xor rcx, rcx
mov rdx, 0x6c91
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x140008526
pop rsi
add rsi, 0xe49
mov rdi, rax
mov rcx, 0x6c91
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.140021754
add rsp, 0x28
xor rcx, rcx
jmp 0x1400028e6

Function at 0x14001b4dc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001b344
Function at 0x2fc4d4ee0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5fc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d58e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d597a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d595e
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 0x2fc4d5952
cmp qword [rbp - 0x10], 0
je 0x2fc4d5952
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 0x2fc4d5918
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d597b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5a80
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 0x2fc4d5aa8
mov eax, 0
jmp 0x2fc4d5af6
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 0x2fc4d5ad1
mov eax, 0
jmp 0x2fc4d5af6
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 0x2fc4d5af1
mov eax, 0
jmp 0x2fc4d5af6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5afc
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 0x2fc4d5b7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5b71
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 0x2fc4d5b71
mov rax, qword [rbp - 8]
jmp 0x2fc4d5b8f
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 0x2fc4d5b44
mov eax, 0
add rsp, 0x20
pop rbp
ret