joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005a640
Capabilities:
Create process on windows
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2f8
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
xor esi, esi
lea rdi, [rsp + 0xe0]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005a6ac
lea rcx, [rsp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add rax, 0xffffffffffffff07
cmp rax, 0xfffffffffffffefc
jae 0x14005a6cf
xor esi, esi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140058610
mov eax, esi
add rsp, 0x2f8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdx, str.control.exe
lea rcx, [rsp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor esi, esi
test eax, eax
je 0x14005a6ac
lea rdi, [rsp + 0xd8]
mov qword [rdi], rsi
mov rcx, rdi
call fcn.14005a410
mov r15, qword [rdi]
lea r14, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgrampageAdvancedSettings_pszAppName_s
mov rcx, r14
mov rdx, r15
call fcn.14005a530
inc eax
movsxd rbx, eax
mov rdi, rbx
add rdi, rbx
mov rax, 0xffffffffffffffff
cmovb rdi, rax
mov rcx, rdi
call fcn.14005753c
mov r12, rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], r15
mov rcx, r12
mov rdx, rbx
mov r8, 0xffffffffffffffff
mov r9, r14
call fcn.14005a5b0
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x40], xmm0
mov qword [rax + 0x60], rsi
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
mov dword [rax], 0x68
mov dword [rax + 0x3c], 1
mov word [rax + 0x40], 0xa
lea rcx, [rsp + 0x50]
mov qword [rcx + 0x10], rsi
movaps xmmword [rcx], xmm0
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea rcx, [rsp + 0xe0]
mov rdx, r12
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test eax, eax
je 0x14005a7e5
mov rcx, qword [rsp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsp + 0x58]
call rdi
test esi, esi
setne sil
mov rcx, r12
call fcn.1400574f0
test r15, r15
je 0x14005a6ac
mov rcx, r15
call fcn.1400574f0
jmp 0x14005a6ac
Function at 0x14005a810
Capabilities:
Get session user name
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x260
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x258], rax
mov eax, dword [0x1400aa3b8]
cmp eax, 0x3a74
ja 0x14005a8a3
mov eax, dword [0x1400aa078]
cmp eax, 0x3a76
jb 0x14005a96b
lea rsi, [rsp + 0x54]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsi - 4], 0x11c
mov dword [rsi + 8], 0x3a75
xor ecx, ecx
mov edx, 4
mov r8b, 3
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x50]
mov edx, 4
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14005a960
mov eax, 0x3a75
xchg dword [0x1400aa3b8], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [0x140065100]
lea r9, [0x1400650d0]
xor edx, edx
mov r8d, 3
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14005a95c
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
lea rdx, str.windows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
lea r8, str.pageSettingsPageAppsDefaults
xor r9d, r9d
call qword [case.0x1400577ee.0]
test eax, eax
setns bl
js 0x14005a92d
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rsi
lea rdx, str.windows.immersivecontrolpanel_cw5n1h2txyewy_microsoft.windows.immersivecontrolpanel
lea r8, str.pageSettingsPageAppsDefaultstargetSystemSettings_DefaultApps_Browser
xor r9d, r9d
call qword [case.0x1400577ee.0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400577ee.0]
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.140058610
mov eax, ebx
add rsp, 0x260
pop rbx
pop rdi
pop rsi
ret
mov bl, 1
jmp 0x14005a93f
mov eax, 0x3a75
xchg dword [0x1400aa078], eax
lea rdx, [rsp + 0x4c]
mov dword [rdx], 0x101
lea rsi, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14005a9a3
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x18
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
je 0x14005aa09
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x40]
mov dword [rax], 4
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
lea rdx, str.SOFTWAREMicrosoftWindowsShellAssociations
lea r8, str.IsConnectedAtLogon
mov rcx, 0xffffffff80000001
mov r9d, 0xffff
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14005a8a3
cmp dword [rsp + 0x50], 0
je 0x14005a8a3
call fcn.14005a640
mov ebx, eax
jmp 0x14005a93f
mov rcx, qword [rsp + 0x40]
mov edi, dword [rcx]
call sub.NETAPI32.dll_NetApiBufferFree
test edi, edi
jne 0x14005a8a3
jmp 0x14005a9a3
Function at 0x14005cda0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14005ce5c
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14005ce5c
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [case.0x1400577ee.0]
cmp eax, 0xffffffff
je 0x14005ce5a
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [case.0x1400577ee.0]
cmp eax, 3
je 0x14005ce73
cmp eax, 1
je 0x14005ce29
test eax, eax
jne 0x14005ce5a
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14005ce50
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14005ce5a
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14005ce5c
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140058610
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
jmp 0x14005ce5c
Function at 0x2fc5244a0
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.2fc525580
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc524ea2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc547108]
test eax, eax
je 0x2fc524f3a
lea rax, [0x2fc5470e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc547110]
mov qword [rbp - 8], rax
jmp 0x2fc524f1e
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 0x2fc524f12
cmp qword [rbp - 0x10], 0
je 0x2fc524f12
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 0x2fc524ed8
lea rax, [0x2fc5470e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc524f3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc525040
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 0x2fc525068
mov eax, 0
jmp 0x2fc5250b6
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 0x2fc525091
mov eax, 0
jmp 0x2fc5250b6
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 0x2fc5250b1
mov eax, 0
jmp 0x2fc5250b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5250bc
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 0x2fc52513a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc525131
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 0x2fc525131
mov rax, qword [rbp - 8]
jmp 0x2fc52514f
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 0x2fc525104
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x402d10
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov rbp, r8
mov r13, rdx
mov r14, r9
call sub.msvcrt.dll__strdup
mov qword [rbx], rax
mov eax, dword [rsp + 0x90]
xor r8d, r8d
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], 0
mov edx, 8
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov rcx, rbp
mov dword [rbx + 0x28], 0
mov qword [rbx + 0x30], 0
mov dword [rbx + 0x38], 0
mov dword [rbx + 0x3c], 0
mov dword [rbx + 0x44], eax
mov dword [rbx + 0x48], 0
mov dword [rbx + 0x40], 8
call sub.msvcrt.dll_fseek
test eax, eax
mov r12d, eax
jne 0x402de0
lea r15, [rbx + 0x4c]
mov r9, rbp
mov r8d, 0x3c
mov edx, 1
mov rcx, r15
call sub.msvcrt.dll_fread
cmp rax, 0x3c
je 0x402e00
test rax, rax
jne 0x402ef1
mov eax, r12d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str._s:_failed_to_seek_to_first_archive_header_n
mov rdx, r13
mov r12d, 1
call fcn.004023d0
jmp 0x402dc8
lea rdi, str._
mov ecx, 0x10
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
je 0x402f30
lea rdi, str._SYM64_
mov ecx, 0x10
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
je 0x402f60
mov eax, dword [rsp + 0x98]
test eax, eax
jne 0x402f90
lea rdi, str.__
mov ecx, 0x10
mov rsi, r15
repe cmpsb byte [rsi], byte [rdi]
jne 0x402dc8
movzx esi, byte [rbx + 0x86]
lea rcx, [rbx + 0x7c]
xor edx, edx
mov byte [rbx + 0x86], 0
mov r8d, 0xa
call sub.msvcrt.dll_strtoul
cmp eax, 7
mov dword [rbx + 0x38], eax
mov byte [rbx + 0x86], sil
jbe 0x402f10
mov esi, eax
cmp r14, rsi
jl 0x402fa4
test eax, eax
js 0x402fa4
mov edx, dword [rbx + 0x40]
lea ecx, [rax + 1]
lea edx, [rax + rdx + 0x3c]
mov dword [rbx + 0x40], edx
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [rbx + 0x30], rax
je 0x402ffc
mov r9, rbp
mov r8d, 1
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_fread
cmp rax, 1
jne 0x402fc1
mov eax, dword [rbx + 0x38]
test al, 1
jne 0x402fec
mov rdx, qword [rbx + 0x30]
xor r12d, r12d
mov byte [rdx + rax], 0
jmp 0x402dc8
lea rcx, str._s:_failed_to_read_archive_header_n
mov rdx, r13
mov r12d, 1
call fcn.004023d0
jmp 0x402dc8
lea rcx, str._s:_long_name_table_is_too_small___size___ld__n
mov r8d, eax
mov rdx, r13
mov r12d, 1
call fcn.004023d0
jmp 0x402dc8
mov r8d, dword [rsp + 0x98]
mov edx, 4
mov rcx, rbx
call fcn.00402560
test eax, eax
jne 0x402e3d
mov r12d, 1
jmp 0x402dc8
mov r8d, dword [rsp + 0x98]
mov dword [rbx + 0x48], 1
mov edx, 8
mov rcx, rbx
call fcn.00402560
test eax, eax
jne 0x402e3d
jmp 0x402f4d
lea rcx, str._s_has_no_archive_index_n
mov rdx, r13
call sub.msvcrt.dll_printf
jmp 0x402e3d
lea rcx, str._s:_long_name_table_is_too_big___size__0x_lx__n
mov r8d, eax
mov rdx, r13
mov r12d, 1
call fcn.004023d0
jmp 0x402dc8
mov rcx, qword [rbx + 0x30]
mov r12d, 1
call sub.msvcrt.dll_free
lea rcx, str._s:_failed_to_read_long_symbol_name_string_table_n
mov qword [rbx + 0x30], 0
mov rdx, r13
call fcn.004023d0
jmp 0x402dc8
mov rcx, rbp
call sub.msvcrt.dll_getc
mov eax, dword [rbx + 0x38]
jmp 0x402ee1
lea rcx, str.Out_of_memory_reading_long_symbol_names_in_archive_n
call fcn.004023d0
jmp 0x402f4d
Function at 0x403110
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov rsi, r8
xor r8d, r8d
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x403175
mov r9, qword [rbx + 8]
lea rcx, [rbx + 0x4c]
mov r8d, 0x3c
mov edx, 1
call sub.msvcrt.dll_fread
cmp rax, 0x3c
jne 0x403190
lea rcx, [rbx + 0x86]
lea rdx, [0x00409016]
mov r8d, 2
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4031a1
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004031c0
mov rdx, qword [rbx]
lea rcx, str._s:_failed_to_seek_to_next_file_name_n
call fcn.004023d0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, qword [rbx]
lea rcx, str._s:_failed_to_read_archive_header_n
call fcn.004023d0
jmp 0x403184
mov rdx, qword [rbx]
lea rcx, str._s:_did_not_find_a_valid_archive_header_n
call fcn.004023d0
jmp 0x403184
Function at 0x405470
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0040d744]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x405588
mov rax, qword [0x0040d748]
xor ebx, ebx
add rax, 8
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4054bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x40556e
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x4054a0
mov rcx, rsi
call fcn.004060d0
test rax, rax
mov r12, rax
je 0x4055c0
movsxd rbx, ebx
lea rbx, [rbx + rbx*2]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0040d748]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00406220
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0040d748]
mov rcx, qword [rax + rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4055a3
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x405567
sub eax, 4
and eax, 0xfffffffb
je 0x405567
add rbx, qword [0x0040d748]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40558f
add dword [0x0040d744], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x4054c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00405400
mov rax, qword [0x0040d748]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 8]
call fcn.00405400
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00405400
nop

Function at 0x405d40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040da20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040da00]
test rbx, rbx
je 0x405d94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x405d8b
test rsi, rsi
je 0x405d8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x405d70
lea rcx, [0x0040da20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4060d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00409b60]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x4060f0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00405fb0
test eax, eax
je 0x4060e8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40614d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x406144
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4060e8
add rdx, 0x28
cmp rdx, r9
jne 0x406130
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x2fc550c80
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.2fc551d60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc551682
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc574108]
test eax, eax
je 0x2fc55171a
lea rax, [0x2fc5740e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc574110]
mov qword [rbp - 8], rax
jmp 0x2fc5516fe
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 0x2fc5516f2
cmp qword [rbp - 0x10], 0
je 0x2fc5516f2
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 0x2fc5516b8
lea rax, [0x2fc5740e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55171b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc551820
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 0x2fc551848
mov eax, 0
jmp 0x2fc551896
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 0x2fc551871
mov eax, 0
jmp 0x2fc551896
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 0x2fc551891
mov eax, 0
jmp 0x2fc551896
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55189c
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 0x2fc55191a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc551911
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 0x2fc551911
mov rax, qword [rbp - 8]
jmp 0x2fc55192f
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 0x2fc5518e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8710
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.2fc4d97f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9112
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d91aa
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 0x2fc4d918e
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 0x2fc4d9182
cmp qword [rbp - 0x10], 0
je 0x2fc4d9182
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 0x2fc4d9148
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d91ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d92b0
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 0x2fc4d92d8
mov eax, 0
jmp 0x2fc4d9326
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 0x2fc4d9301
mov eax, 0
jmp 0x2fc4d9326
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 0x2fc4d9321
mov eax, 0
jmp 0x2fc4d9326
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d932c
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 0x2fc4d93aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d93a1
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 0x2fc4d93a1
mov rax, qword [rbp - 8]
jmp 0x2fc4d93bf
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 0x2fc4d9374
mov eax, 0
add rsp, 0x20
pop rbp
ret