joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100068ed8
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x100082138]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x100069043
test eax, eax
jne 0x100068f24
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100069048
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x100069043
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x100069043
mov word [rax], 0
movzx ecx, word [rsp + 0x30]
cmp cx, 0x41
jb 0x100068f56
cmp cx, 0x5a
jbe 0x100068f5f
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x100068f7a
cmp word [rsp + 0x32], 0x3a
jne 0x100068f7a
cmp word [rsp + 0x34], 0x5c
jne 0x100069043
lea rsi, [rsp + 0x34]
jmp 0x100068f7f
mov rsi, qword [rsp + 0x20]
cmp cx, 0x5c
jne 0x100068fbb
cmp word [rsp + 0x32], cx
jne 0x100068fbb
movzx edx, cx
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x100069043
lea rcx, [rax + 2]
mov dx, 0x5c
call sub.msvcrt.dll_wcschr
test rax, rax
mov rsi, rax
je 0x100069043
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100068fda
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x100069048
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_CharPrevW]
cmp rax, rsi
mov rdi, rax
je 0x100069043
cmp word [rax], 0x5c
jne 0x100069043
cmp rax, rsi
jbe 0x100069043
lea rcx, [rsp + 0x30]
mov dx, 0x5c
mov word [rdi], 0
call sub.msvcrt.dll_wcsrchr
test rax, rax
mov rbp, rax
je 0x100069043
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbp + 2], bx
cmp eax, 0xffffffff
jne 0x100069064
cmp rbp, rsi
mov rdi, rbp
ja 0x100068ffd
cmp rdi, rsi
ja 0x10006908b
mov eax, 0x7b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10006b1f0
add rsp, 0x258
pop rdi
pop rsi
pop rbp
pop rbx
ret
test al, 0x10
jne 0x10006903e
mov eax, 0x10b
jmp 0x100069048
cmp word [rdi + 2], 0
je 0x1000690a1
mov rcx, rdi
mov word [rdi], 0x5c
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10006906f
jmp 0x100068f19
xor eax, eax
jmp 0x100069048
Function at 0x10006a1d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
mov r11, rsp
sub rsp, 0x40
lea rax, [r11 + 0x28]
lea rdx, [0x1000152a0]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 + 0x28], 0
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x10], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10006a23c
lea r8, [rsp + 0x50]
lea rdx, [0x100015300]
call fcn.10006a734
mov rcx, qword [rsp + 0x68]
test eax, eax
jne 0x10006a23c
mov edx, dword [rsp + 0x50]
jmp 0x10006a23e
xor edx, edx
mov eax, edx
movzx r8d, dl
shr edx, 8
and eax, 0xffff0000
test r8d, r8d
mov dword [0x100083810], eax
mov dword [0x1000837f8], eax
movzx eax, dl
mov edx, 5
jne 0x10006a26a
mov r8d, edx
jmp 0x10006a26e
shr r8d, 4
test eax, eax
jne 0x10006a276
mov eax, edx
jmp 0x10006a279
shr eax, 4
cmp r8d, 7
mov edx, 6
cmova r8d, edx
cmp eax, 7
cmova eax, edx
test rcx, rcx
mov dword [0x100083808], r8d
mov dword [0x1000837f0], eax
je 0x10006a2bc
lea r8, [rsp + 0x50]
lea rdx, [0x100015318]
call fcn.10006a734
mov rcx, qword [rsp + 0x68]
test eax, eax
mov eax, dword [rsp + 0x50]
je 0x10006a2c1
mov eax, 0xffffffff
test rcx, rcx
mov dword [0x10008380c], eax
mov dword [0x1000837f4], eax
je 0x10006a2fd
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x30]
lea rdx, [0x100015328]
mov qword [rsp + 0x20], rax
call fcn.10006a65c
test eax, eax
jne 0x10006a2fd
mov rbx, qword [rsp + 0x30]
jmp 0x10006a2ff
xor ebx, ebx
test rbx, rbx
mov qword [0x100083818], 0
mov qword [0x100083800], 0
je 0x10006a369
cmp word [rbx], 0
je 0x10006a357
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdx, [rbx + rcx*2]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharPrevW]
cmp word [rax], 0x5c
je 0x10006a378
cmp word [rax], 0x2f
je 0x10006a378
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10006a357
test al, 0x10
jne 0x10006a378
mov rcx, qword [0x1000837e8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1000837d8]
call fcn.100068738
mov rbx, rax
test rbx, rbx
je 0x10006a3ad
mov rcx, rbx
mov qword [0x100083818], 0
mov qword [0x100083800], 0
call fcn.10006a430
mov rcx, qword [0x1000837e8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x10006a3bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x10006a65c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rbx, r8
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdi, r9
mov rbp, rdx
mov r12, rcx
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rsi, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x30]
test eax, eax
mov dword [rsi], r8d
jne 0x10006a721
test r8d, r8d
jne 0x10006a6b9
mov qword [rbx], 0
jmp 0x10006a721
mov rcx, qword [0x1000837e8]
add r8d, 4
xor edx, edx
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rbx], rax
jne 0x10006a6e0
mov eax, 8
jmp 0x10006a721
mov r9, rdi
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, eax
je 0x10006a716
mov r8, qword [rbx]
mov rcx, qword [0x1000837e8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10006a71f
mov eax, dword [rsi]
add rax, qword [rbx]
xor ecx, ecx
mov dword [rax], ecx
mov eax, edi
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x10006b4e4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10006b552
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x10006b572
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001d78]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x10006b9d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10006ba1e
cmp rcx, 0xffffffffffffffff
je 0x10006ba1e
cmp word [rcx], 0x5a4d
jne 0x10006ba16
cmp dword [rcx + 0x3c], edx
jl 0x10006ba16
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10006ba16
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 0x10006ba1e
mov rax, rdx
add rsp, 0x18
ret
Function at 0x10006bbd7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100082138]
jne 0x10006b20a
rol rcx, 0x10
test cx, 0xffff
jne 0x10006b206
repz ret
ror rcx, 0x10
jmp 0x10006bb30
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100082b00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x100082bf8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10006bbb5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100082b00]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x10006bbd7
mov rax, qword [rsp + 0x88]
mov qword [0x100082bf8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100082b98], rax
mov rax, qword [0x100082bf8]
mov qword [0x100082a70], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100082b80], rax
mov dword [0x100082a60], 0xc0000409
mov dword [0x100082a64], 1
mov rax, qword [0x100082138]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100082140]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001db0]
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, 0x88
ret
Function at 0x2fc4dc060
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 0x2fc4dca62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc501108]
test eax, eax
je 0x2fc4dcafa
lea rax, [0x2fc5010e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc501110]
mov qword [rbp - 8], rax
jmp 0x2fc4dcade
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 0x2fc4dcad2
cmp qword [rbp - 0x10], 0
je 0x2fc4dcad2
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 0x2fc4dca98
lea rax, [0x2fc5010e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dcafb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dcc00
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 0x2fc4dcc28
mov eax, 0
jmp 0x2fc4dcc76
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 0x2fc4dcc51
mov eax, 0
jmp 0x2fc4dcc76
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 0x2fc4dcc71
mov eax, 0
jmp 0x2fc4dcc76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dcc7c
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 0x2fc4dccfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dccf1
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 0x2fc4dccf1
mov rax, qword [rbp - 8]
jmp 0x2fc4dcd0f
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 0x2fc4dccc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db230
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 0x2fc4dbc32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dbcca
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbcae
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 0x2fc4dbca2
cmp qword [rbp - 0x10], 0
je 0x2fc4dbca2
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 0x2fc4dbc68
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbccb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dbdd0
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 0x2fc4dbdf8
mov eax, 0
jmp 0x2fc4dbe46
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 0x2fc4dbe21
mov eax, 0
jmp 0x2fc4dbe46
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 0x2fc4dbe41
mov eax, 0
jmp 0x2fc4dbe46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dbe4c
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 0x2fc4dbeca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dbec1
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 0x2fc4dbec1
mov rax, qword [rbp - 8]
jmp 0x2fc4dbedf
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 0x2fc4dbe94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dc4c0
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 0x2fc4dcec2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc501108]
test eax, eax
je 0x2fc4dcf5a
lea rax, [0x2fc5010e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc501110]
mov qword [rbp - 8], rax
jmp 0x2fc4dcf3e
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 0x2fc4dcf32
cmp qword [rbp - 0x10], 0
je 0x2fc4dcf32
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 0x2fc4dcef8
lea rax, [0x2fc5010e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dcf5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dd060
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 0x2fc4dd088
mov eax, 0
jmp 0x2fc4dd0d6
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 0x2fc4dd0b1
mov eax, 0
jmp 0x2fc4dd0d6
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 0x2fc4dd0d1
mov eax, 0
jmp 0x2fc4dd0d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dd0dc
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 0x2fc4dd15a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dd151
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 0x2fc4dd151
mov rax, qword [rbp - 8]
jmp 0x2fc4dd16f
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 0x2fc4dd124
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7b40
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 0x2fc4d8542
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d85da
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d85be
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 0x2fc4d85b2
cmp qword [rbp - 0x10], 0
je 0x2fc4d85b2
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 0x2fc4d8578
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d85db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d86e0
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 0x2fc4d8708
mov eax, 0
jmp 0x2fc4d8756
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 0x2fc4d8731
mov eax, 0
jmp 0x2fc4d8756
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 0x2fc4d8751
mov eax, 0
jmp 0x2fc4d8756
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d875c
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 0x2fc4d87da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d87d1
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 0x2fc4d87d1
mov rax, qword [rbp - 8]
jmp 0x2fc4d87ef
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 0x2fc4d87a4
mov eax, 0
add rsp, 0x20
pop rbp
ret