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

Function at 0x2fc4d2982
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d2a1a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d29fe
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 0x2fc4d29f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d29f2
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 0x2fc4d29b8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d2a1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2b20
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 0x2fc4d2b48
mov eax, 0
jmp 0x2fc4d2b96
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 0x2fc4d2b71
mov eax, 0
jmp 0x2fc4d2b96
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 0x2fc4d2b91
mov eax, 0
jmp 0x2fc4d2b96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140001ec3
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll__access
cmp eax, 0xffffffff
je 0x140001ef1
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_remove
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000205e
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
lea rdx, [0x14001208d]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400020ad
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rax, str.File_not_found:__s_n
mov rcx, rax
call fcn.1400014d6
mov eax, 0
jmp 0x1400020dd
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x1400023c8
Capabilities:
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0xd0]
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
call fcn.140002b70
mov rax, rsp
mov rbx, rax
cmp dword [rbp + 0x20], 4
jg 0x140002414
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rdx, rax
lea rax, str.Usage:__s__enkey___endb___del_data_file___exclude_data_file__n
mov rcx, rax
call fcn.1400014d6
mov eax, 0
jmp 0x140002592
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0xa0]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call fcn.1400020e3
test eax, eax
jne 0x14000247b
lea rax, str.ERROR_1._n
mov rcx, rax
call fcn.1400014d6
mov eax, 0
jmp 0x140002592
lea rax, str.TEMP
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 0x28], rax
mov ecx, 0xa
call fcn.140002605
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sub.msvcrt.dll_strlen
add eax, 0x10
mov dword [rbp - 0x34], eax
mov eax, dword [rbp - 0x34]
movsxd rdx, eax
sub rdx, 1
mov qword [rbp - 0x40], rdx
cdqe
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140003b40
sub rsp, rax
lea rax, [rsp + 0x30]
add rax, 0
mov qword [rbp - 0x48], rax
mov eax, dword [rbp - 0x34]
cdqe
mov r8, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9, r8
lea r8, str._s_s.exe
mov rdx, rax
call fcn.14000152a
mov rax, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x28]
add rax, 0x20
mov rdx, qword [rax]
mov rax, qword [rbp + 0x28]
add rax, 0x18
mov rax, qword [rax]
mov rcx, rax
call fcn.14000171f
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
jne 0x140002552
lea rax, str.ERROR_2._n
mov rcx, rax
call fcn.1400014d6
mov eax, 0
jmp 0x140002592
mov r8, qword [rbp - 0x50]
lea rcx, [rbp - 0xa0]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x48]
mov r9, r8
mov r8, rcx
mov rcx, rax
call fcn.140002268
test eax, eax
je 0x14000258d
lea rax, str.ERROR_3._n
mov rcx, rax
call fcn.1400014d6
mov eax, 0
jmp 0x140002592
mov eax, 5
mov rsp, rbx
lea rsp, [rbp + 8]
pop rbx
pop rbp
ret
Function at 0x1400029c4
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
lea rdx, [rbp - 0x14]
mov rax, qword [rbp + 0x10]
mov r8, rdx
mov edx, ecx
mov rcx, rax
call fcn.140002812
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x18]
lea rdx, [0x1402107f9]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.1400028be
nop
add rsp, 0x40
pop rbp
ret

Function at 0x140002d80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000fc90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000fc90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140002df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140214094]
test esi, esi
mov rbx, rcx
jle 0x140002f20
mov rax, qword [0x140214098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002ec5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e20
mov rcx, rbx
call fcn.140003860
test rax, rax
mov rdi, rax
je 0x140002f42
mov rax, qword [0x140214098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400039a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140214098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002ebe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002ed0
add dword [0x140214094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140214098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002ebe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d80
nop dword [rax]
xor esi, esi
jmp 0x140002e48
mov rax, qword [0x140214098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d80
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140002d80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400034b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140214100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402140e0]
test rbx, rbx
je 0x14000350c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003503
test rsi, rsi
je 0x140003503
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400034e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003720
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.hT__]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003758
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003760
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003730
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.hT__]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003758
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003760
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003740
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.hT__]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003758
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003760
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003860
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402113a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003880
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003888
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003880
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400038dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400038d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003880
add rax, 0x28
cmp rax, r9
jne 0x1400038c0
xor eax, eax
ret

Function at 0x1400038e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402113a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400038ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003908
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400038ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400039a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402113a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400039bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400039c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2fc4d5370
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.2fc4d6450
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5d72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5e0a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5dee
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 0x2fc4d5de2
cmp qword [rbp - 0x10], 0
je 0x2fc4d5de2
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 0x2fc4d5da8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5e0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5f10
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 0x2fc4d5f38
mov eax, 0
jmp 0x2fc4d5f86
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 0x2fc4d5f61
mov eax, 0
jmp 0x2fc4d5f86
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 0x2fc4d5f81
mov eax, 0
jmp 0x2fc4d5f86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5f8c
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 0x2fc4d600a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6001
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 0x2fc4d6001
mov rax, qword [rbp - 8]
jmp 0x2fc4d601f
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 0x2fc4d5fd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5080
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.2fc4d6160
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5a82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5b1a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5afe
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 0x2fc4d5af2
cmp qword [rbp - 0x10], 0
je 0x2fc4d5af2
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 0x2fc4d5ab8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5b1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5c20
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 0x2fc4d5c48
mov eax, 0
jmp 0x2fc4d5c96
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 0x2fc4d5c71
mov eax, 0
jmp 0x2fc4d5c96
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 0x2fc4d5c91
mov eax, 0
jmp 0x2fc4d5c96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d61f0
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.2fc4d72d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d6bf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d6c8a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d6c6e
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 0x2fc4d6c62
cmp qword [rbp - 0x10], 0
je 0x2fc4d6c62
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 0x2fc4d6c28
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6c8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6d90
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 0x2fc4d6db8
mov eax, 0
jmp 0x2fc4d6e06
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 0x2fc4d6de1
mov eax, 0
jmp 0x2fc4d6e06
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 0x2fc4d6e01
mov eax, 0
jmp 0x2fc4d6e06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6e0c
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 0x2fc4d6e8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6e81
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 0x2fc4d6e81
mov rax, qword [rbp - 8]
jmp 0x2fc4d6e9f
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 0x2fc4d6e54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140045530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1400e3020]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x24], 0
lea rdx, [0x1400d8b88]
call fcn.140003ccc
mov dword [rsp + 0x24], 1
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140009450
mov dword [rsp + 0x3c], 0x6b636954
mov dword [rsp + 0x38], 0x5f4f5353
mov word [rsp + 0x41], 0x74
mov byte [rsp + 0x40], 0x65
or r9, 0xffffffffffffffff
lea r8, str.4e681bb37763469189a80ab579b8ae72
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.140012500
or r9, 0xffffffffffffffff
lea r8, [rsp + 0x38]
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1400125d4
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1400126c4
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140045648
mov dword [rsp + 0x31], 0x25783830
mov byte [rsp + 0x30], 0x25
mov word [rsp + 0x35], 0x73
mov dword [rsp + 0x20], 0x74745f
lea r9, [rsp + 0x20]
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400044a8
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140006850
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret