joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d0740
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.2fc4d1820
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1142
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d11da
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d11be
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 0x2fc4d11b2
cmp qword [rbp - 0x10], 0
je 0x2fc4d11b2
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 0x2fc4d1178
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d11db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d12e0
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 0x2fc4d1308
mov eax, 0
jmp 0x2fc4d1356
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 0x2fc4d1331
mov eax, 0
jmp 0x2fc4d1356
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 0x2fc4d1351
mov eax, 0
jmp 0x2fc4d1356
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d135c
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 0x2fc4d13da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d13d1
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 0x2fc4d13d1
mov rax, qword [rbp - 8]
jmp 0x2fc4d13ef
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 0x2fc4d13a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005fc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x14007d150]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x30], r8d
mov edx, 0x102
call fcn.1400064e0
mov rbx, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140006010
mov rdx, qword [rdi]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x140006112
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x140006086
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140006081
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006104
mov rcx, r8
call fcn.140056818
xor ebx, ebx
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400060d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400060cd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000610b
mov rcx, r8
call fcn.140056818
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140056790
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov edx, ebp
lea rcx, [rsp + 0x68]
call fcn.14000d2d0
mov rbx, rax
mov r8, rsi
lea rdx, str.Error_while_writing_to_registry_value
lea rcx, [rsp + 0x88]
call fcn.140004070
nop
lea r8, [0x140065720]
mov rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.140006b70
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.140006c00
nop
lea r8, [0x140065718]
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.140006b70
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.140006be0
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400014f0
lea rdx, [0x140079988]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14000b890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, qword [rcx + 8]
mov r9, qword [rcx]
mov rax, rbx
mov r11, qword [rdx]
sub rax, r9
mov rcx, qword [rdx + 8]
sub rcx, r11
xor rcx, rax
test rcx, 0xffffffffffffffe0
jne 0x14000b91d
cmp r9, rbx
je 0x14000b932
nop dword [rax]
cmp qword [r11 + 0x18], 8
mov rax, r11
jb 0x14000b8cd
mov rax, qword [r11]
cmp qword [r9 + 0x18], 8
mov r10, r9
mov rcx, qword [r9 + 0x10]
jb 0x14000b8de
mov r10, qword [r9]
cmp rcx, qword [r11 + 0x10]
jne 0x14000b91d
test rcx, rcx
je 0x14000b925
movzx edx, word [r10]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x14000b91d
sub r10, rax
cmp dx, r8w
ja 0x14000b91d
cmp rcx, 1
je 0x14000b925
movzx edx, word [r10 + rax + 2]
add rax, 2
dec rcx
movzx r8d, word [rax]
cmp dx, r8w
jae 0x14000b8fe
xor al, al
mov rbx, qword [rsp + 8]
ret
add r9, 0x20
add r11, 0x20
cmp r9, rbx
jne 0x14000b8c0
mov rbx, qword [rsp + 8]
mov al, 1
ret
Function at 0x14001bb10
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14001bb41
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14007fe98]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14007fea8]
lea rdx, [rdi + rdi]
call fcn.14000b740
mov rcx, qword [0x14007fe98]
lea r9, [rdi - 1]
mov qword [0x14007fec0], r9
mov qword [0x14007fec8], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x14001bcc5
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx eax, byte [rcx + 0x11]
movzx r11d, byte [rcx + 0x10]
mov rdx, qword [rdx]
xor r11, rsi
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x12]
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x13]
imul r11, rdi
xor r11, rax
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14007fea8]
mov r10, qword [r11]
cmp r10, rbx
jne 0x14001bc03
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x14001bc86
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x14001bc40
mov r10, qword [rax]
cmp r10, rcx
je 0x14001bc3a
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x14001bc86
mov r8, rax
cmp r10, rax
je 0x14001bc62
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x14001bc9a
cmp r10, rax
jne 0x14001bc50
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
je 0x14001bcc0
mov r9, qword [0x14007fec0]
jmp 0x14001bbb1
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x14001bc86
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140028850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
lea rax, vtable.IIRFilter.0
mov qword [rcx], rax
mov rax, qword [rdx + 8]
sub rax, qword [rdx]
sar rax, 3
shr eax, 1
dec eax
mov dword [rcx + 8], eax
lea rbp, [rax*8 + 0x10]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
mov esi, Ordinal_19
lea r15, str.Allocation_of__d_bytes_failed.
xor edi, edi
test rax, rax
jne 0x1400288d9
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 0x47]
lea rcx, str.C:Eigene_DateienEntwicklEqualizerAPO_trunkhelpersMemoryHelper.cpp
call fcn.140005160
mov eax, edi
jmp 0x1400288e9
and eax, 0xf
mov rcx, rsi
sub rcx, rax
lea rax, [rcx + rdx]
mov byte [rax - 1], cl
mov qword [rbx + 0x18], rax
mov eax, dword [rbx + 8]
lea rbp, [rax*8 + 0x10]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rax
test rax, rax
jne 0x14002892a
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea edx, [rax + 0x47]
lea rcx, str.C:Eigene_DateienEntwicklEqualizerAPO_trunkhelpersMemoryHelper.cpp
call fcn.140005160
mov rax, rdi
jmp 0x140028938
and eax, 0xf
sub rsi, rax
lea rax, [rsi + r8]
mov byte [rax - 1], sil
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
mov r8d, dword [rbx + 8]
mov rdx, qword [r14]
lea eax, [r8 + 1]
movsd xmm1, qword [rdx + rax*8]
movsd xmm0, qword [rdx]
divsd xmm0, xmm1
movsd qword [rbx + 0x10], xmm0
test r8d, r8d
je 0x1400289c0
mov r9, qword [r14]
movsd xmm2, qword [0x140069120]
nop dword [rax]
nop word [rax + rax]
lea r8d, [rdi + 1]
movsd xmm0, qword [r9 + r8*8]
divsd xmm0, xmm1
mov edx, edi
mov rax, qword [rbx + 0x20]
movsd qword [rax + rdx*8], xmm0
mov ecx, dword [rbx + 8]
add ecx, 2
add ecx, edi
movsd xmm0, qword [r9 + rcx*8]
xorps xmm0, xmm2
divsd xmm0, xmm1
mov rax, qword [rbx + 0x18]
movsd qword [rax + rdx*8], xmm0
mov edi, r8d
cmp r8d, dword [rbx + 8]
jb 0x140028980
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14003e600
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x190
movaps xmmword [rsp + 0x180], xmm6
mov rax, qword [0x14007d150]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r14, r8
mov r15, rdx
mov rcx, qword [r8]
mov rax, qword [rcx]
call qword [rax + 0xe0]
sub ax, 0x63
cmp ax, 6
ja 0x14003e6a4
mov ecx, 0x49
bt ecx, eax
jae 0x14003e6a4
mov rcx, qword [r14]
mov rbx, qword [r15]
mov rdi, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0xb0]
xorps xmm0, xmmword [0x140069120]
movaps xmm1, xmm0
mov rcx, rbx
call qword [rdi + 0x70]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140056790
mov rbx, qword [rsp + 0x1c0]
movaps xmm6, xmmword [rsp + 0x180]
add rsp, 0x190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0xe0]
cmp ax, 0x6d
jne 0x14003e760
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0xe8]
mov edx, eax
xorps xmm2, xmm2
lea rcx, [rsp + 0x50]
call fcn.14003a1d0
nop
xor ebp, ebp
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0xe8]
test eax, eax
jle 0x14003e743
movsd xmm6, qword [0x140069120]
mov rcx, qword [r14]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, ebp
call qword [rax + 0xa0]
mov rbx, rax
xor r8d, r8d
mov edx, ebp
lea rcx, [rsp + 0x50]
call fcn.14003c8c0
mov rdi, rax
mov rsi, qword [rax]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0xb0]
xorps xmm0, xmm6
movaps xmm1, xmm0
mov rcx, rdi
call qword [rsi + 0x70]
inc ebp
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0xe8]
cmp ebp, eax
jl 0x14003e6f0
lea rdx, [rsp + 0x50]
mov rcx, qword [r15]
call fcn.14003f6d0
nop
lea rcx, [rsp + 0x50]
call fcn.14003a870
jmp 0x14003e675
lea rcx, [rsp + 0x28]
call fcn.140004c80
mov r9, rax
mov edx, 0xffffffff
mov r8d, edx
lea rcx, [rsp + 0x50]
call fcn.140040fd0
nop
mov dword [rsp + 0xb0], 0x16
mov rcx, r14
call fcn.14002b2b0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe0]
mov word [rsp + 0xb4], ax
mov eax, 0x73
mov word [rsp + 0xb6], ax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xd0]
call fcn.140041140
lea rdx, [0x1400799e0]
lea rcx, [rsp + 0xd0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140004568
Capabilities:
Parse pe header

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

Function at 0x140f5b1c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5b1d2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f5b1fb
pop rbp
sub rbp, 0x33
sub rbp, 0xf5b1c8
sub rsp, 0x20
jmp 0x140f5b21a
mov rax, 0xf5b1c8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x6278aed0
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f5b239
jmp 0x140f5b250
cwde
pop rcx
cmp dword [rbx + 0x59], ebx
in al, dx
rcl al, 1
rcr byte [rax - 0x2e27eeaf], 1
rcl al, 1
cwde
sar dword [rcx], 1
cwde
invalid
Function at 0x2fc4d28ec
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 0x2fc4d296a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d2961
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 0x2fc4d2961
mov rax, qword [rbp - 8]
jmp 0x2fc4d297f
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 0x2fc4d2934
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001e00
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x140001e61
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x140001ef9
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x45474150
je 0x140001eb8
mov rax, qword [rsp + 0x28]
mov r8d, 5
lea rdx, [0x140002e00]
mov rcx, rax
call fcn.140002370
test eax, eax
jne 0x140001ef4
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx + 8]
mov rcx, rax
call fcn.140001d40
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140001ef4
jmp 0x140001ef9
jmp 0x140001e57
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret

Function at 0x140001f10
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xc0000004
je 0x140001f6d
xor eax, eax
jmp 0x14000203a
mov eax, dword [rsp + 0x20]
mov r8d, 0x6f616d4c
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001f95
xor eax, eax
jmp 0x14000203a
xor r9d, r9d
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140001fbb
jmp 0x140002028
mov dword [rsp + 0x24], 0
jmp 0x140001fcf
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
cmp rax, qword [rcx]
jae 0x140002028
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x128
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov rdi, rcx
lea rsi, [rdx + rax + 8]
mov ecx, 0x128
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x68]
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x140002026
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
jmp 0x140002028
jmp 0x140001fc5
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140002280
add rsp, 0x188
pop rdi
pop rsi
ret
Function at 0x140002060
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
cmp qword [rsp + 0xd0], 0
je 0x140002085
cmp dword [rsp + 0xd8], 0
jg 0x14000208a
jmp 0x1400021c2
lea rdx, [0x140002e10]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x240
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x90]
mov edx, 0x80000000
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000214d
jmp 0x1400021c2
mov eax, dword [rsp + 0xd8]
dec eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x1400021b7
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xd0]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0xc8
ret
Function at 0x2fc4dc460
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.2fc4dd540
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4dce62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4dcefa
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4dcede
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 0x2fc4dced2
cmp qword [rbp - 0x10], 0
je 0x2fc4dced2
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 0x2fc4dce98
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dcefb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dd000
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 0x2fc4dd028
mov eax, 0
jmp 0x2fc4dd076
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 0x2fc4dd051
mov eax, 0
jmp 0x2fc4dd076
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 0x2fc4dd071
mov eax, 0
jmp 0x2fc4dd076
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dd07c
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 0x2fc4dd0fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dd0f1
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 0x2fc4dd0f1
mov rax, qword [rbp - 8]
jmp 0x2fc4dd10f
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 0x2fc4dd0c4
mov eax, 0
add rsp, 0x20
pop rbp
ret