joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140114900
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
je 0x1401149a7
test rdx, rdx
je 0x1401149a7
cmp byte [0x140223fc9], 0
jne 0x14011496f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011495f
lea rdx, [0x1401d0590]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140223fd0], rax
mov byte [0x140223fc9], 1
jmp 0x140114976
mov rax, qword [0x140223fd0]
mov byte [0x140223fc9], 1
jmp 0x140114976
mov rax, qword [0x140223fd0]
mov rcx, qword [rbx + 8]
mov rdx, rdi
test rax, rax
je 0x140114996
mov r8d, dword [rbx + 0x10]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov eax, 0x57
add rsp, 0x20
pop rdi
ret

Function at 0x140114a00
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
mov r10d, edx
test rcx, rcx
jne 0x140114a18
lea eax, [rcx + 0x57]
add rsp, 0x48
ret
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
test rax, rax
cmovne rdx, rax
xor eax, eax
mov qword [rsp + 0x38], rdx
mov edx, r10d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add rsp, 0x48
ret

Function at 0x140115240
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x140115270
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
test rbx, rbx
jne 0x1401152a8
lea eax, [rbx + 0x57]
jmp 0x140115398
lea rcx, [rsp + 0x48]
call fcn.140114570
nop
mov r9d, dword [rdi + 0x10]
or r9d, 0x2001f
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140114cf0
mov ebx, eax
test eax, eax
jne 0x14011538c
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140115371
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140115270
mov ebx, eax
test eax, eax
jne 0x14011538c
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140115320
lea rcx, [rsp + 0x48]
call fcn.140114600
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0xd0]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1401145e0
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14014f8e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140115580
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebp, r8d
mov rsi, rdx
mov r12, rcx
mov edx, ebp
mov rcx, rsi
mov r8, r9
mov r14, r9
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov r15d, dword [rsp + 0x2d0]
test r15d, r15d
je 0x1401156bc
test eax, eax
jne 0x1401156bc
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x270], rdi
mov qword [rsp + 0x268], r13
xor r13d, r13d
mov edi, r13d
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.140152110
mov qword [rsp + 0x38], r13
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r13
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x14011568d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r13
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140115694
mov rdx, qword [rsp + 0x48]
mov r9, r14
mov r8d, ebp
mov dword [rsp + 0x20], r15d
mov rcx, r12
call fcn.140115580
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140115694
cmp eax, 0x103
je 0x1401156a2
inc edi
test ebx, ebx
je 0x1401155f3
mov eax, ebx
jmp 0x1401156a4
xor eax, eax
mov rdi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x278]
mov r13, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14014f8e0
add rsp, 0x280
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret

Function at 0x140115760
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
test r9, r9
je 0x140115790
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x140115790
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
mov eax, 0x57
add rsp, 0x38
ret
Function at 0x140118be0
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
cmp byte [rcx + 0x20], 0
mov rbx, rdx
mov rsi, rcx
jne 0x140118cb0
cmp qword [rdx + 0x18], 8
mov rcx, rdx
mov dword [rsp + 0x50], 0
jb 0x140118c0d
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x140118cb0
mov r9, qword [rsi + 0x10]
mov edx, ebp
mov r8, qword [rsi + 8]
mov rcx, r9
sub rcx, r8
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x40], 0
cmp rbp, rcx
jae 0x140118c46
lea rax, [r8 + rbp]
jmp 0x140118c73
jbe 0x140118c77
mov rax, qword [rsi + 0x18]
sub rax, r8
cmp rdx, rax
jbe 0x140118c64
lea r8, [rsp + 0x40]
lea rcx, [rsi + 8]
call fcn.14006b7a0
jmp 0x140118c77
sub rdx, rcx
lea r8, [rsi + 8]
mov rcx, r9
call fcn.14006b8a0
mov qword [rsi + 0x10], rax
mov rcx, qword [rsi + 8]
call fcn.140022a00
cmp qword [rbx + 0x18], 8
mov rdi, qword [rsp + 0x48]
jb 0x140118c8f
mov rbx, qword [rbx]
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
sete al
mov byte [rsi + 0x20], al
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
Function at 0x14016d930
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14016d7bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016d7bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016d7bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016d7bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016d7bf
cmp dword [rcx + 0x84], 0xe
jbe 0x14016d7bf
cmp dword [rcx + 0xf8], 0
je 0x14016d7bf
mov ecx, ebx
call fcn.14016d860
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14016d650
cmp dword [rbp + 0x20], 0
je 0x14016d80c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14016d814
int3
xor r8d, r8d
xor edx, edx
jmp 0x14016d758
Function at 0x14017ceb8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14017cbde
call fcn.140156ec0
mov dword [rax], 0x16
call fcn.140156ae0
jmp 0x14017cd29
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14017cd29
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14017cd29
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14017cc0d
lock or dword [rcx + 0x14], 0x10
jmp 0x14017cd29
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14017cc21
call fcn.14017d2e0
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14017cc31
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14017cc34
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401790b8
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14017f674
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14017cd17
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14017ccc5
mov rcx, rbx
call fcn.1401790b8
cmp eax, 0xffffffff
je 0x14017ccb0
mov rcx, rbx
call fcn.1401790b8
cmp eax, 0xfffffffe
je 0x14017ccb0
mov rcx, rbx
call fcn.1401790b8
movsxd rdi, eax
lea r14, [0x140225700]
mov rcx, rbx
sar rdi, 6
call fcn.1401790b8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14017ccb7
lea rdx, [0x140214f70]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14017ccc5
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14017cce9
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14017cce9
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14017cce9
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14017cd07
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14017cd12
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14017cd2e
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14017cba8

Function at 0x1401816c0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401816e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140156e50
or eax, 0xffffffff
jmp 0x1401816e2
xor eax, eax
add rsp, 0x28
ret
Function at 0x2fc4d10e0
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.2fc4d21c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1ae2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1b7a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1b5e
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 0x2fc4d1b52
cmp qword [rbp - 0x10], 0
je 0x2fc4d1b52
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 0x2fc4d1b18
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1b7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1c80
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 0x2fc4d1ca8
mov eax, 0
jmp 0x2fc4d1cf6
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 0x2fc4d1cd1
mov eax, 0
jmp 0x2fc4d1cf6
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 0x2fc4d1cf1
mov eax, 0
jmp 0x2fc4d1cf6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1cfc
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 0x2fc4d1d7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1d71
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 0x2fc4d1d71
mov rax, qword [rbp - 8]
jmp 0x2fc4d1d8f
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 0x2fc4d1d44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc552cd0
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.2fc553db0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc5536d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc576108]
test eax, eax
je 0x2fc55376a
lea rax, [0x2fc5760e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc576110]
mov qword [rbp - 8], rax
jmp 0x2fc55374e
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 0x2fc553742
cmp qword [rbp - 0x10], 0
je 0x2fc553742
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 0x2fc553708
lea rax, [0x2fc5760e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55376b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc553870
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 0x2fc553898
mov eax, 0
jmp 0x2fc5538e6
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 0x2fc5538c1
mov eax, 0
jmp 0x2fc5538e6
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 0x2fc5538e1
mov eax, 0
jmp 0x2fc5538e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5538ec
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 0x2fc55396a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc553961
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 0x2fc553961
mov rax, qword [rbp - 8]
jmp 0x2fc55397f
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 0x2fc553934
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d82f0
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.2fc4d93d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8cf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d8d8a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d8d6e
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 0x2fc4d8d62
cmp qword [rbp - 0x10], 0
je 0x2fc4d8d62
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 0x2fc4d8d28
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d8d8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8e90
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 0x2fc4d8eb8
mov eax, 0
jmp 0x2fc4d8f06
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 0x2fc4d8ee1
mov eax, 0
jmp 0x2fc4d8f06
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 0x2fc4d8f01
mov eax, 0
jmp 0x2fc4d8f06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8f0c
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 0x2fc4d8f8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8f81
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 0x2fc4d8f81
mov rax, qword [rbp - 8]
jmp 0x2fc4d8f9f
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 0x2fc4d8f54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004600
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
call fcn.1400078a0
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x50]
call fcn.140007900
movzx eax, al
test eax, eax
je 0x140004644
lea rcx, [rsp + 0xd8]
call fcn.1400078b0
jmp 0x1400048a6
mov rcx, qword [rsp + 0xd0]
call fcn.140006840
test rax, rax
je 0x1400046b0
mov rcx, qword [rsp + 0xd0]
call fcn.140006840
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xd0]
call fcn.140006790
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x1400046b0
lea rcx, [rsp + 0xd8]
call fcn.1400048b0
mov byte [rsp + 0x42], al
mov rcx, qword [rsp + 0xd0]
call fcn.1400065f0
movzx ecx, byte [rsp + 0x42]
mov byte [rax], cl
mov eax, dword [rsp + 0xd8]
jmp 0x1400048a6
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x80], 0
jne 0x1400046cc
call fcn.1400078a0
jmp 0x1400048a6
mov rcx, qword [rsp + 0xd0]
call fcn.1400061a0
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x68], 0
jne 0x140004742
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xd8]
call fcn.1400048b0
mov byte [rsp + 0x43], al
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rsp + 0x43]
call fcn.1400030f0
movzx eax, al
test eax, eax
je 0x140004730
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x48], eax
jmp 0x140004739
call fcn.1400078a0
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x1400048a6
mov qword [rsp + 0x88], 0x20
lea rcx, [rsp + 0xd8]
call fcn.1400048b0
mov byte [rsp + 0x40], al
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x41]
mov rdx, qword [rsp + 0xd0]
add rdx, 0x74
lea r8, [rsp + 0x78]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.140005fe0
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x1400047e6
cmp dword [rsp + 0x44], 1
je 0x1400047e6
cmp dword [rsp + 0x44], 3
je 0x140004865
jmp 0x1400048a1
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14000483a
mov rax, qword [rsp + 0xd0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.140013bd4
cmp qword [rsp + 0x58], rax
je 0x14000483a
call fcn.1400078a0
jmp 0x1400048a6
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x80], rax
je 0x14000485e
mov eax, dword [rsp + 0xd8]
jmp 0x1400048a6
call fcn.1400078a0
jmp 0x1400048a6
mov rax, qword [rsp + 0xd0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x40]
call fcn.1400030f0
movzx eax, al
test eax, eax
je 0x140004892
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x4c], eax
jmp 0x14000489b
call fcn.1400078a0
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x1400048a6
call fcn.1400078a0
add rsp, 0xc8
ret