joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bb64
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14009a008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor eax, eax
mov rsi, rdx
mov qword [rsp + 0x48], rax
mov r8, rdx
mov dword [rsp + 0x48], eax
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
call fcn.14003ba74
jmp 0x14003bbd3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14003bb64
mov ebx, eax
test eax, eax
jne 0x14003bc3d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
xor ebx, ebx
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14003bbc4
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003bc2c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
mov rdx, rsi
mov dword [rsp + 0x48], ebx
mov rcx, rdi
call fcn.14003bc74
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003bc4d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140041c20
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x14003bc74
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14003bd06
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14003bce0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bcff
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003bcff
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x14003bcef
cmp dword [rdi + 8], 0
je 0x14003bcff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x14003bcef
cmp byte [0x14009cf78], 0
jne 0x14003bd51
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bd3d
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x14009cf70], rax
jmp 0x14003bd44
mov r10, qword [0x14009cf70]
mov eax, 1
mov byte [0x14009cf78], al
jmp 0x14003bd58
mov r10, qword [0x14009cf70]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14003bce9
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x14003bcef
Function at 0x14003c7fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14009a008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.1400463f0
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14003c89b
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14003c89b
call fcn.14003ae60
mov ebx, eax
jmp 0x14003c9ac
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14003c8bc
call fcn.14003ae60
jmp 0x14003c99b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14003c8b2
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14003c8f7
mov ebx, 0x8007000e
jmp 0x14003c99d
mov ecx, eax
test eax, eax
je 0x14003c92f
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14003c925
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14003c92f
lea rcx, [rsp + 0x70]
call fcn.14003ae34
jmp 0x14003c939
mov ecx, 0x80070216
call fcn.140006760
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14003c94b
cmp qword [rsp + 0x70], rdi
je 0x14003c8ed
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14003c8b2
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14003c644
mov ebx, eax
test rsi, rsi
je 0x14003c9ac
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14003c9c3
lea rcx, [rsp + 0x70]
call fcn.14003ae14
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140041c20
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140040250
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14009a008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
call fcn.14004aa7c
mov dword [rdi + 0x14], eax
call fcn.14004aa7c
mov word [rdi], ax
call fcn.14004aa7c
mov word [rdi + 0x12], ax
mov ebx, dword [rdi + 0x14]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [rbx + 2]
mov dword [rsp + 0x24], 0
imul ecx, ebx
lea rdx, [rdi + 2]
mov dword [rsp + 0x28], 0x67452301
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
inc ecx
mov dword [rsp + 0x20], 0x20
imul ecx, ecx, 7
add eax, ecx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x38], eax
call fcn.140041420
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140041c20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret

Function at 0x1400420d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140042161
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140042161
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140042161
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140042145
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14004213f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140042147
add rdx, 0x28
jmp 0x140042124
xor edx, edx
test rdx, rdx
jne 0x140042150
xor al, al
jmp 0x140042167
test dword [rdx + 0x24], 0x80000000
je 0x14004215d
xor al, al
jmp 0x140042167
mov al, 1
jmp 0x140042167
xor al, al
jmp 0x140042167
add rsp, 0x18
ret
Function at 0x140053030
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140052e04
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140052e04
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140052e04
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140052e04
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140052e04
cmp dword [rcx + 0x84], 0xe
jbe 0x140052e04
cmp dword [rcx + 0xf8], esi
je 0x140052e04
mov ecx, r14d
call fcn.140052f4c
mov ecx, 2
call fcn.1400552f8
nop
cmp byte [0x14009c270], 0
jne 0x140052ece
mov r15d, 1
mov eax, r15d
xchg dword [0x14009c264], eax
test ebx, ebx
jne 0x140052e77
mov rdi, qword [0x14009a008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14009c268]
cmp rcx, rax
je 0x140052e6e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140006860]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14009c298]
jmp 0x140052e83
cmp ebx, r15d
jne 0x140052e89
lea rcx, [0x14009c2b0]
call fcn.14005362c
nop
test ebx, ebx
jne 0x140052ea0
lea rdx, [0x140070c20]
lea rcx, [0x140070c00]
call fcn.140053d58
lea rdx, [0x140070c30]
lea rcx, [0x140070c28]
call fcn.140053d58
movzx eax, byte [0x14009c270]
test esi, esi
cmove eax, r15d
mov byte [0x14009c270], al
jmp 0x140052ece
mov ecx, 2
call fcn.14005534c
test esi, esi
jne 0x140052ee5
mov ecx, r14d
call fcn.140052f00
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140052d94
Function at 0x14000b1c8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013ec0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015210
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015230
xor al, al
jmp 0x1400152b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015243
xor al, al
jmp 0x1400152b1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001526d
xor al, al
jmp 0x1400152b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015281
xor al, al
jmp 0x1400152b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015293
xor al, al
jmp 0x1400152b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400152af
xor al, al
jmp 0x1400152b1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
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 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1411f1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411f11df
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 0x1411f1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f106f
add dl, dl
jne 0x1411f1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f10f6
xor eax, eax
add dl, dl
jne 0x1411f10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f11ad
add dl, dl
jne 0x1411f10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411f10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411f107e
mov eax, 1
add dl, dl
jne 0x1411f1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f10fb
sub eax, ebx
mov ebx, 1
jne 0x1411f114c
mov ecx, 1
add dl, dl
jne 0x1411f112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411f113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411f1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411f1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f115d
cmp eax, 0x7d00
jae 0x1411f119b
cmp eax, 0x500
jb 0x1411f1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f107e
cmp eax, 0x7f
ja 0x1411f119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411f11d2
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 0x1411f107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400043c0]
mov rcx, qword [0x140004370]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x1400043e0]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400043b0]
mov dword [0x14000700c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004480]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004460]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004320]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001604
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400070a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400070a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001652
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000164a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001739
inc ebx
add rax, 0x28
jmp 0x14000162a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001671
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1400070a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400016d3
mov rax, qword [0x1400070a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001733
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001733
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001733
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1400070a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001b60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001bac
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001ba6
test eax, eax
jne 0x140001ba6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001b7e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001d60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001d83
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001d83
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140001d84
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001dbe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001db5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001dc0
inc r8d
add rax, 0x28
jmp 0x140001d9c
xor eax, eax
ret

Function at 0x140001e31
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004370]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140001e5d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140007790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov eax, 0x2060
call fcn.14000dd60
sub rsp, rax
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rsp + 0x2050], rax
lea r9, [0x1400176d0]
mov edx, 0x1000
lea r8, str.SoftwareSoundResearchLogging_s
xor ebx, ebx
lea rcx, [rsp + 0x50]
call fcn.140007730
lea rax, [rsp + 0x30]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000784d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x3c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SECOMAPI
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140007842
cmp dword [rsp + 0x40], ebx
setne bl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.1400082e0
add rsp, 0x2060
pop rbx
ret
Function at 0x140007910
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x80e0
call fcn.14000dd60
sub rsp, rax
mov rax, qword [0x14001e010]
xor rax, rsp
mov qword [rsp + 0x80d0], rax
mov rdi, r8
lea rbx, [rcx + 0x10]
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov qword [rsp + 0x30], rbx
lea r9, [rbp + 0xc10]
mov dword [rsp + 0x28], eax
lea r8, str._s__i:_i_:__s
mov eax, dword [rbp + 8]
lea rcx, [rsp + 0xd0]
mov edx, 0x1000
mov dword [rsp + 0x20], eax
call fcn.140007730
call fcn.140001730
xor r14d, r14d
mov qword [rsp + 0x28], rdi
mov r9, rsi
mov qword [rsp + 0x20], r14
mov r8d, 0x1000
lea rdx, [rsp + 0x40d0]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
lea r8, [rsp + 0x40d0]
mov edx, 0x1000
lea rcx, [rsp + 0xd0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
cmp byte [rbp + 0xe10], r14b
je 0x140007b1e
cmp qword [rbp + 0xe18], r14
je 0x140007b1e
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rsp + 0x50]
lea r8, str._d__m__Y__I:_M:_S
lea edx, [r14 + 0x50]
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0xd0]
mov rdi, rbx
nop word [rax + rax]
cmp word [rax + rdi*2 + 2], r14w
lea rdi, [rdi + 1]
jne 0x140007a30
mov qword [rsp + 0x38], r14
lea r9d, [rdi + 1]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0xd0]
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov r8d, 0x2000
mov qword [rsp + 0x38], r14
cmp eax, r8d
mov qword [rsp + 0x30], r14
lea r9d, [rdi + 1]
mov ecx, 0xfde9
cmovl r8d, eax
lea rax, [rsp + 0x60d0]
mov dword [rsp + 0x28], r8d
xor edx, edx
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
lea rax, [rsp + 0x60d0]
mov edx, 0x2000
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, str.__s__t_s_r_n
lea rcx, [rsp + 0x20d0]
call fcn.140006f50
lea rax, [rsp + 0x20d0]
mov dword [rsp + 0x40], r14d
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140007ae6
mov rcx, qword [rbp + 0xe18]
lea r9, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x20d0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov rcx, qword [rbp + 0xe18]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x80d0]
xor rcx, rsp
call fcn.1400082e0
add rsp, 0x80e0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c1b3e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xbea9bea8
stosb byte [rdi], al
adc ebp, ebp
test eax, 0xed13aabe
xor dword [rcx], edi
push rbx
jp 0x1400c1b41
cmp al, 0x6b
xor dword [rcx + rax], edx
test al, 0x21
sbb byte [rsi], dl
test dword [rdi], esi
jge 0x1400c1bba
mov esp, 0xd7d832c4
cmp dword [rdx], edi
add edi, dword [rdx + 0x15d22562]
pop rdx
xchg esp, eax
sub edx, dword [rbx]
sbb byte [rdx - 2], 0x1f
lahf
adc dword [rax - 0x8ac05af], esp
test byte [rdi - 0x3bef3adf], cl
invalid
invalid