joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007c0b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x14007c0fd
mov ebx, 0x40
mov edx, r8d
mov ecx, ebx
call fcn.140019f90
mov rdx, rdi
mov rcx, rax
call fcn.14007a6bc
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x14007c0e0
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14001a1f0
cmp edx, 1
je 0x14007c11b
cmp edx, 0x18
je 0x14007c11b
cmp edx, 3
je 0x14007c116
cmp edx, 0x19
je 0x14007c116
cmp edx, 0xb
jne 0x14007c11e
movzx edi, cx
jmp 0x14007c11e
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.140019f90
lea rdx, [0x1400a5a08]
mov r8d, edi
mov rcx, rax
call fcn.14007b7c0
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14001a1f0
Function at 0x14007e2f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14007e520
xor r10d, r10d
lea edx, [rax*4]
mov r11d, eax
movsxd r9, edx
test edx, edx
jle 0x14007e369
lea r8, [rbx + 8]
lea rcx, [rbx + 8]
lea r8, [r8 + r9*4]
nop
mov eax, dword [r8 - 8]
mov edx, dword [rcx - 8]
add r10, 4
mov dword [rcx - 8], eax
mov eax, dword [r8 - 4]
mov dword [r8 - 8], edx
mov edx, dword [rcx - 4]
mov dword [rcx - 4], eax
mov eax, dword [r8]
mov dword [r8 - 4], edx
mov edx, dword [rcx]
mov dword [rcx], eax
mov eax, dword [r8 + 4]
mov dword [r8], edx
mov edx, dword [rcx + 4]
mov dword [rcx + 4], eax
sub r9, 4
mov dword [r8 + 4], edx
lea r8, [r8 - 0x10]
lea rcx, [rcx + 0x10]
cmp r10, r9
jl 0x14007e320
cmp r11d, 1
jle 0x14007e50d
mov qword [rsp + 0x30], rdi
add rbx, 2
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
nop word [rax + rax]
mov r8d, dword [rbx + 0xe]
lea rbx, [rbx + 0x10]
mov eax, r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, byte [rbx - 1]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
mov r9d, dword [rdi + rdx*4 + 0xa6e30]
movzx eax, r8b
xor r9d, dword [rdi + rcx*4 + 0xa7630]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, byte [rbx]
xor r9d, dword [rdi + rcx*4 + 0xa7a30]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, byte [rbx + 3]
movzx edx, byte [rdi + rax*4 + 0xa6a30]
xor r9d, dword [rdi + rcx*4 + 0xa7230]
movzx eax, byte [rbx + 4]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
mov r8d, dword [rdi + rdx*4 + 0xa7630]
mov dword [rbx - 2], r9d
xor r8d, dword [rdi + rcx*4 + 0xa7230]
mov r9d, dword [rbx + 2]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, r9b
mov r9d, dword [rbx + 6]
xor r8d, dword [rdi + rcx*4 + 0xa6e30]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, byte [rbx + 7]
xor r8d, dword [rdi + rcx*4 + 0xa7a30]
movzx edx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, byte [rbx + 8]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
mov dword [rbx + 2], r8d
mov r8d, dword [rdi + rdx*4 + 0xa7630]
xor r8d, dword [rdi + rcx*4 + 0xa7230]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, r9b
mov r9d, dword [rbx + 0xa]
xor r8d, dword [rdi + rcx*4 + 0xa6e30]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, byte [rbx + 0xb]
xor r8d, dword [rdi + rcx*4 + 0xa7a30]
movzx edx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, byte [rbx + 0xc]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
mov dword [rbx + 6], r8d
mov r8d, dword [rdi + rdx*4 + 0xa7630]
xor r8d, dword [rdi + rcx*4 + 0xa7230]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xa6e30]
movzx ecx, byte [rdi + rax*4 + 0xa6a30]
xor r8d, dword [rdi + rcx*4 + 0xa7a30]
mov dword [rbx + 0xa], r8d
dec r10
jne 0x14007e390
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret
Function at 0x14007ea30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rdi, rdx
mov rax, r9
mov r12, r9
cqo
mov rbx, r8
mov r13, rcx
and edx, 0xf
add rax, rdx
mov rbp, rax
and eax, 0xf
sub rax, rdx
sar rbp, 4
mov rsi, rax
test rax, rax
je 0x14007ea7b
test rbp, rbp
jne 0x14007ea78
xor eax, eax
jmp 0x14007ec59
dec rbp
mov qword [rsp + 0x80], r14
mov r14, qword [rsp + 0xa0]
movups xmm0, xmmword [r14]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
test rbp, rbp
je 0x14007eb02
mov qword [rsp + 0x88], r15
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r13 + 4]
lea rcx, [r13 + 0xf8]
mov r9, rbx
mov r8, rdi
call fcn.14007d6c0
mov eax, dword [rsp + 0x20]
add rdi, 0x10
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
add rbx, 0x10
xor dword [rbx - 0xc], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx - 4], eax
movups xmm0, xmmword [rdi - 0x10]
movups xmm1, xmm0
movups xmmword [rsp + 0x20], xmm0
dec rbp
jne 0x14007eab0
mov r15, qword [rsp + 0x88]
test rsi, rsi
je 0x14007ec4a
movups xmm0, xmmword [rdi]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [r13 + 0xf8]
movups xmmword [r14], xmm0
mov edx, dword [r13 + 4]
movups xmmword [rsp + 0x40], xmm0
call fcn.14007d6c0
xor r9d, r9d
test rsi, rsi
je 0x14007ec15
cmp rsi, 0x10
jb 0x14007ebd9
lea r10, [rsi + 0xf]
lea rdx, [rsi + 0xf]
lea r8, [rbx + 0x10]
add r10, rdi
add rdx, rbx
lea rcx, [rdi + 0x10]
cmp r8, r10
ja 0x14007eb67
cmp rdx, rcx
jae 0x14007ebd9
lea rax, [rsp + rsi + 0x2f]
cmp r8, rax
ja 0x14007eb7b
lea r8, [rsp + 0x30]
cmp rdx, r8
jae 0x14007ebd9
lea rdx, [rsp + 0x30]
cmp rdx, r10
ja 0x14007eb8a
cmp rax, rcx
jae 0x14007ebd9
mov rax, rsi
mov rdx, rsi
lea r8, [rsp + 0x30]
and eax, 0xf
sub r8, rdi
sub rdx, rax
mov rax, rbx
sub rax, rdi
nop dword [rax]
nop dword [rax + rax]
movdqu xmm1, xmmword [rcx]
movdqu xmm0, xmmword [r8 + rcx - 0x10]
add r9, 0x10
lea rcx, [rcx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rax + rcx - 0x10], xmm0
movdqu xmmword [r8 + rcx - 0x20], xmm1
cmp r9, rdx
jb 0x14007ebb0
cmp r9, rsi
jae 0x14007ec15
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x30]
mov r10, rbx
sub rdi, rax
sub r10, rcx
lea r8, [rsp + 0x30]
add r8, r9
inc r9
movzx eax, byte [r8 + rdi + 0x10]
movzx edx, al
xor dl, byte [r8]
mov byte [r8], al
mov byte [r8 + r10 + 0x10], dl
cmp r9, rsi
jb 0x14007ebf1
mov edx, dword [r13 + 4]
lea r8, [rsp + 0x30]
lea rcx, [r13 + 0xf8]
mov r9, rbx
call fcn.14007d6c0
mov eax, dword [rsp + 0x20]
xor dword [rbx], eax
mov eax, dword [rsp + 0x24]
xor dword [rbx + 4], eax
mov eax, dword [rsp + 0x28]
xor dword [rbx + 8], eax
mov eax, dword [rsp + 0x2c]
xor dword [rbx + 0xc], eax
jmp 0x14007ec4e
movups xmmword [r14], xmm1
mov r14, qword [rsp + 0x80]
mov rax, r12
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140080770
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, edx
mov r10, rcx
mov r8d, 0x80000000
test rcx, rcx
je 0x1400807df
mov qword [rsp], rbx
lea rbx, [0x1400aaa60]
test r10b, 1
je 0x1400807d3
mov ecx, r11d
mov eax, r8d
mov edx, 0x80000000
and ecx, 0x1f
xor r8d, r8d
mov r9d, dword [rbx + rcx*4]
nop dword [rax + rax]
test r9d, edx
je 0x1400807c0
lea ecx, [rdx - 1]
xor r8d, eax
test r9d, ecx
je 0x1400807d3
shr edx, 1
test al, 1
je 0x1400807cf
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400807b0
shr eax, 1
jmp 0x1400807b0
inc r11d
sar r10, 1
jne 0x140080790
mov rbx, qword [rsp]
mov eax, r8d
add rsp, 8
ret
Function at 0x2fc4feca0
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 0x2fc4ff6a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc524108]
test eax, eax
je 0x2fc4ff73a
lea rax, [0x2fc5240e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc524110]
mov qword [rbp - 8], rax
jmp 0x2fc4ff71e
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 0x2fc4ff712
cmp qword [rbp - 0x10], 0
je 0x2fc4ff712
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 0x2fc4ff6d8
lea rax, [0x2fc5240e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ff73b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ff840
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 0x2fc4ff868
mov eax, 0
jmp 0x2fc4ff8b6
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 0x2fc4ff891
mov eax, 0
jmp 0x2fc4ff8b6
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 0x2fc4ff8b1
mov eax, 0
jmp 0x2fc4ff8b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ff8bc
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 0x2fc4ff93a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ff931
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 0x2fc4ff931
mov rax, qword [rbp - 8]
jmp 0x2fc4ff94f
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 0x2fc4ff904
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov dword [rsp + 0x68], 0x2da5297e
call fcn.1400014e0
mov rcx, rax
mov edx, 0xb9f2133d
call fcn.140001228
call rax
mov rbx, rax
call fcn.140001502
mov rcx, rax
mov edx, 0x278e4f75
call fcn.140001228
mov ebp, 0xa8
mov edx, 8
mov r8d, ebp
mov rcx, rbx
call rax
mov rsi, rax
call fcn.140001521
mov rbx, rax
lea rcx, [0x140001530]
lea rax, [fcn.140001521]
sub rcx, rax
add rbx, rcx
lea rdi, [rbx + 0xa8]
call fcn.1400014a8
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call rax
xor ecx, ecx
mov r8, rsi
mov eax, ecx
inc ecx
and eax, 3
mov al, byte [rsp + rax + 0x68]
xor byte [r8], al
inc r8
cmp ecx, ebp
jb 0x140001094
mov ecx, dword [rsi + 0x28]
call fcn.1400012e0
add byte [rbx - 0x74b7d7a2], cl
call 0x14003fda3
add byte [rbx + rcx*4 - 0x3d], al
mov rdx, rdi
mov rcx, rbp
call rax
mov edx, dword [rsi + 0x28]
xor r8d, r8d
test edx, edx
je 0x1400010ee
mov rcx, rbp
mov eax, r8d
inc r8d
and eax, 3
mov al, byte [rax + rsi + 0x2c]
xor byte [rcx], al
inc rcx
mov edx, dword [rsi + 0x28]
cmp r8d, edx
jb 0x1400010d4
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbp
call fcn.140001388
mov ecx, dword [rsp + 0x60]
call fcn.1400012e0
mov r15d, dword [rsi + 0x28]
mov r14, rax
test rbp, rbp
je 0x1400011da
test r15d, r15d
je 0x1400011da
test rax, rax
je 0x14000115c
mov ebx, dword [rsp + 0x60]
call fcn.140001502
mov rcx, rax
mov edx, 0xc3a9e061
call fcn.140001228
lea rdx, [rsp + 0x60]
mov ecx, 2
mov qword [rsp + 0x28], rdx
mov r9, rbp
mov rdx, r14
mov dword [rsp + 0x20], r15d
mov r8d, ebx
call rax
jmp 0x1400011da
imul r12d, r15d, 0xf
jmp 0x140001169
add r12d, 0x80000
call fcn.1400014e0
mov edx, 0x3e20dd16
mov rcx, rax
call fcn.140001228
mov edx, r12d
mov ecx, 0x40
call rax
mov rdi, rax
call fcn.140001502
mov edx, 0xc3a9e061
mov rcx, rax
call fcn.140001228
lea rdx, [rsp + 0x60]
mov r9, rbp
mov ecx, ebp
mov qword [rsp + 0x28], rdx
mov r8d, r12d
mov rdx, rdi
mov dword [rsp + 0x20], r15d
mov ecx, 2
call rax
mov ebx, eax
call fcn.1400014e0
mov edx, 0xb45168cd
mov rcx, rax
call fcn.140001228
mov rcx, rdi
call rax
cmp ebx, 0xc0000242
je 0x140001162
mov rcx, rbp
call fcn.140001338
mov ebx, dword [rsp + 0x60]
call fcn.1400014e0
mov rcx, rax
mov edx, 0x77e9f7c8
call fcn.140001228
mov edx, ebx
lea r9, [rsp + 0x68]
mov r8d, 0x40
mov rcx, r14
call rax
mov rcx, rsi
call r14
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140001228
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov ebx, edx
mov r8, rcx
test rcx, rcx
je 0x140001284
mov eax, dword [rcx + 0x3c]
xor r10d, r10d
mov r9d, dword [rax + rcx + 0x88]
add r9, rcx
mov ecx, dword [r9 + 0x20]
add rcx, r8
cmp dword [r9 + 0x18], r10d
jbe 0x140001284
mov edx, dword [rcx]
add rdx, r8
xor r11d, r11d
jmp 0x14000126c
imul r11d, r11d, 0x21
movsx eax, al
add r11d, eax
inc rdx
mov al, byte [rdx]
test al, al
jne 0x14000125f
cmp r11d, ebx
je 0x14000128c
add rcx, 4
inc r10d
cmp r10d, dword [r9 + 0x18]
jb 0x140001255
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x24]
add rax, r8
movsxd rcx, r10d
movzx edx, word [rax + rcx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
enter 0x48b, 0xffffffffffffff91
add rax, r8
jmp 0x140001286

Function at 0x1400014e0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, 0x30
mov rax, qword gs:[rax]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
ret

Function at 0x140001502
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, 0x30
mov rax, qword gs:[rax]
invalid
invalid
invalid

Function at 0x1400038c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetControlSCMConfig
mov rcx, 0xffffffff80000002
mov ebx, 0x19000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140003951
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SvchostHeapReportingThresholdInKB
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140006b14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
cmp dword [rsp + 0x48], 4
jne 0x140003940
cmp dword [rsp + 0x40], 4
cmove ebx, dword [rsp + 0x50]
jmp 0x140003940
Function at 0x14000777c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, qword [rsp + 0x80]
lea rax, [r11 + 0x28]
mov qword [r11 - 0x28], rax
mov rbp, rcx
xor ecx, ecx
lea rax, [r11 + 0x20]
mov qword [r9], rcx
mov ebx, r8d
mov qword [r11 - 0x30], rcx
mov rsi, r9
mov dword [r14], ecx
mov rdi, rdx
mov dword [r11 + 0x28], ecx
mov r8, rdx
mov rcx, rbp
mov qword [r11 - 0x38], rax
mov r9d, 0xffff
xor edx, edx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140007891
cmp dword [rsp + 0x78], ebx
jne 0x14000788c
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14000788c
mov rcx, qword [0x14000c620]
mov r8d, eax
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007885
lea rax, [rsp + 0x80]
mov r9d, 0xffff
mov qword [rsp + 0x30], rax
mov r8, rdi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140007869
mov ecx, dword [rsp + 0x80]
mov dword [r14], ecx
mov qword [rsi], rbx
jmp 0x140007891
mov rcx, qword [0x14000c620]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
jmp 0x140007891
mov eax, 0xe
jmp 0x140007891
mov eax, 0xd
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x2fc4db2f0
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.2fc4dc3d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4dbcf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4dbd8a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbd6e
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 0x2fc4dbd62
cmp qword [rbp - 0x10], 0
je 0x2fc4dbd62
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 0x2fc4dbd28
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbd8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbe90
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 0x2fc4dbeb8
mov eax, 0
jmp 0x2fc4dbf06
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 0x2fc4dbee1
mov eax, 0
jmp 0x2fc4dbf06
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 0x2fc4dbf01
mov eax, 0
jmp 0x2fc4dbf06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbf0c
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 0x2fc4dbf8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbf81
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 0x2fc4dbf81
mov rax, qword [rbp - 8]
jmp 0x2fc4dbf9f
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 0x2fc4dbf54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005dd0
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov ecx, 0xe0
call fcn.14001a3a4
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140005ecb
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], sil
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], 0xf
mov byte [rax + 0x40], sil
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rsi
mov qword [rax + 0x78], 0xf
mov byte [rax + 0x60], sil
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rsi
mov qword [rax + 0x98], 0xf
mov byte [rax + 0x80], sil
movups xmmword [rax + 0xa0], xmm0
mov qword [rax + 0xb0], rsi
mov qword [rax + 0xb8], 0xf
mov byte [rax + 0xa0], sil
movups xmmword [rax + 0xc0], xmm0
mov qword [rax + 0xd0], rsi
mov qword [rax + 0xd8], 0xf
mov byte [rax + 0xc0], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
jmp 0x140005ece
mov rbx, rsi
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140007ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140028038]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rcx
mov dword [rsp + 0x34], 1
mov rax, r8
mov dword [rsp + 0x30], 0x400
lea rcx, [rsp + 0x38]
mov rbx, r9
mov qword [rsp + 0x20], rcx
mov rdi, rdx
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007b9f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140007b94
mov r8, qword [rsp + 0x490]
lea rax, [rsp + 0x40]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140007b83
inc rax
test ecx, ecx
jne 0x140007b70
test edx, edx
jne 0x140007b94
mov rcx, rdi
call fcn.14000d280
mov rax, qword [rsi]
inc byte [rax]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14001a7b0
add rsp, 0x450
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400080b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140028038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x12c
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x130
xor sil, sil
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000810b
xor al, al
jmp 0x14000816a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000815d
nop dword [rax]
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140008143
inc rax
test ecx, ecx
jne 0x140008130
test edx, edx
je 0x14000815a
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140008120
jmp 0x14000815d
mov sil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001a7b0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret