joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012b10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x180076008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, qword [rcx]
xor r14d, r14d
mov esi, r14d
mov qword [rbp - 0x51], rcx
mov rdi, rdx
mov r13, rcx
call fcn.18001232c
mov rcx, rbx
call fcn.180012388
mov rcx, rdi
mov r15, rax
call fcn.180012388
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x59], rax
xor edx, edx
lea r8d, [r14 + 0x58]
call fcn.1800182c0
lea r8, [rbp - 0x49]
mov rcx, r15
call fcn.180012950
mov ebx, eax
cmp eax, 5
jb 0x180012d3d
mov edx, ebx
mov rcx, r15
call fcn.180012768
mov r8, qword [rbp - 0x41]
mov rcx, r15
mov rdx, qword [rbp - 0x49]
call fcn.18001240c
mov rsi, rax
test rax, rax
je 0x180012d38
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [r14 + 0x40]
mov dword [rbp - 0x65], r14d
mov rdi, rax
mov dword [rbp - 0x69], r14d
lea rax, [rbp - 0x65]
mov rcx, rdi
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, r15
mov r12d, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012d19
lea rax, [rbp - 0x69]
mov rdx, rsi
lea r9d, [r14 + 0x40]
mov qword [rsp + 0x20], rax
lea r8d, [r14 + 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012cef
lea r13, [rsi + 0x38]
test ebx, ebx
je 0x180012c3f
mov rdx, r15
mov r8, rsi
sub rdx, r13
mov rcx, r13
sub r8, r13
mov r9d, ebx
mov al, byte [rdx + rcx]
mov byte [rcx], al
mov byte [r8 + rcx + 0x58], al
inc rcx
sub r9, 1
jne 0x180012c2c
lea rdx, [rbx + r15]
lea rcx, [rbx + r13]
call fcn.1800123c8
lea r8, [rbp - 0x49]
mov rdx, r15
mov rcx, r13
call fcn.180012914
mov rdx, qword [rbp - 0x59]
mov rcx, r15
sub rcx, rdx
mov rax, rdx
sub rax, r15
cmp rdx, r15
cmovb rax, rcx
cmp rax, 0x7fff0000
jbe 0x180012ca8
lea rbx, [rsi + 0x18]
mov rcx, rbx
call fcn.1800123c8
sub rax, rsi
mov rdx, rbx
mov rcx, rdi
lea r8, [rax - 0x18]
call fcn.18000fd74
mov rdx, rbx
mov rcx, r15
call fcn.1800123c8
mov ebx, r12d
jmp 0x180012cb0
mov rcx, r15
call fcn.1800123c8
mov rax, qword [rbp - 0x59]
mov r8, r12
mov rdx, r13
mov qword [rsi + 0x10], rax
mov rcx, rdi
mov dword [rsi + 8], ebx
mov qword [rsi], r15
call fcn.18000fd74
mov r9d, dword [rbp - 0x69]
lea rax, [rbp - 0x69]
mov r8d, 0x78
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r13, qword [rbp - 0x51]
mov r8, r12
mov rdx, r15
mov rcx, rdi
call fcn.18000fd74
mov r9d, dword [rbp - 0x65]
lea rax, [rbp - 0x65]
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp qword [rsi], r14
je 0x180012d28
lea rax, [rsi + 0x38]
mov qword [r13], rax
jmp 0x180012d38
mov edx, 1
mov rcx, rsi
call fcn.18001258c
mov rsi, r14
call fcn.1800126c0
call fcn.180012378
test rsi, rsi
setne r14b
mov eax, r14d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800134c0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012d74
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
call fcn.18001232c
mov rcx, qword [rsi]
call fcn.18001255c
mov rbx, rax
test rax, rax
je 0x180012e40
mov edx, dword [rax + 8]
mov rcx, qword [rax]
call fcn.180012768
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rbx + 8]
lea r9d, [rdi + 0x40]
mov rdx, qword [rbx]
mov rbp, rax
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], edi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012e3b
mov rdx, qword [rbx]
cmp dword [rbx + 8], edi
jbe 0x180012df8
mov ecx, edi
inc edi
mov al, byte [rbx + rcx + 0x58]
mov byte [rcx + rdx], al
cmp edi, dword [rbx + 8]
jb 0x180012de8
mov r8d, dword [rbx + 8]
mov rcx, rbp
mov rdx, qword [rbx]
call fcn.18000fd74
mov r8d, dword [rbx + 8]
lea rax, [rsp + 0x48]
mov r9d, dword [rsp + 0x48]
mov rcx, rbp
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
mov qword [rsi], rax
mov edi, 1
call fcn.18001258c
call fcn.1800126c0
call fcn.180012378
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180042c50
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.1800452a4
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x180042ca3
test rbx, rbx
je 0x180042c94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bpl, bpl
je 0x180042ca3
mov edi, 4
jmp 0x180042d4c
call fcn.18004504c
test al, al
jne 0x180042cc0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x180042d4c
test bpl, bpl
je 0x180042d23
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x180042b68]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180042d4c
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x180042d1d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180042d4c
mov edi, dword [rsp + 0x44]
jmp 0x180042d15
call fcn.1800451d0
test al, al
jne 0x180042d34
bts esi, 0x15
xor ecx, ecx
jmp 0x180042d3c
call fcn.180045108
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.180044dfc
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x180042d6c
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.1800452a4
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x180042dbf
test rbx, rbx
je 0x180042db0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x180042dbf
mov edi, 4
jmp 0x180042e68
call fcn.18004504c
test al, al
jne 0x180042ddc
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x180042e68
test bpl, bpl
je 0x180042e3f
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x180042b90]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180042e68
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x180042e39
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180042e68
mov edi, dword [rsp + 0x44]
jmp 0x180042e31
call fcn.1800451d0
test al, al
jne 0x180042e50
bts esi, 0x15
xor ecx, ecx
jmp 0x180042e58
call fcn.180045108
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.180044e84
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x2fc4ce580
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.2fc4cf660
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cef82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4cf01a
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4ceffe
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 0x2fc4ceff2
cmp qword [rbp - 0x10], 0
je 0x2fc4ceff2
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 0x2fc4cefb8
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cf01b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cf120
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 0x2fc4cf148
mov eax, 0
jmp 0x2fc4cf196
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 0x2fc4cf171
mov eax, 0
jmp 0x2fc4cf196
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 0x2fc4cf191
mov eax, 0
jmp 0x2fc4cf196
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cf19c
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 0x2fc4cf21a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cf211
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 0x2fc4cf211
mov rax, qword [rbp - 8]
jmp 0x2fc4cf22f
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 0x2fc4cf1e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x141b19058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b191df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141b19089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b1906f
add dl, dl
jne 0x141b19096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b190f6
xor eax, eax
add dl, dl
jne 0x141b190a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b191ad
add dl, dl
jne 0x141b190b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b190c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b190d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b190dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b190ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b1907e
mov eax, 1
add dl, dl
jne 0x141b19106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b19113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b190fb
sub eax, ebx
mov ebx, 1
jne 0x141b1914c
mov ecx, 1
add dl, dl
jne 0x141b1912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b1913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b19123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b19168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b19175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b1915d
cmp eax, 0x7d00
jae 0x141b1919b
cmp eax, 0x500
jb 0x141b19196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1907e
cmp eax, 0x7f
ja 0x141b1919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b191d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141b1907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x142179509
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x30]
call fcn.1422638da
xor eax, 0xa4768f9
movsb byte [rdi], byte [rsi]
invalid
Function at 0x1400019d0
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx eax, word [rsp + 0x3a]
movsx edx, word [rsp + 0x3e]
sub edx, eax
lea eax, [rdx + 1]
sub eax, dword [rdi + 0x10]
shr rax, 1
mov word [rsp + 0x20], ax
mov word [rsp + 0x22], bx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140001a50
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002e20
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140001a97
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140001a92
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001ac2
mov rcx, r8
call fcn.1400033b4
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003040
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140003b38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003b82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003b82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003b82
cmp dword [rcx + 0x84], 0xe
jbe 0x140003b82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003b84
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4f2920
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 0x2fc4f3322
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc517108]
test eax, eax
je 0x2fc4f33ba
lea rax, [0x2fc5170e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc517110]
mov qword [rbp - 8], rax
jmp 0x2fc4f339e
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 0x2fc4f3392
cmp qword [rbp - 0x10], 0
je 0x2fc4f3392
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 0x2fc4f3358
lea rax, [0x2fc5170e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4f33bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4f34c0
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 0x2fc4f34e8
mov eax, 0
jmp 0x2fc4f3536
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 0x2fc4f3511
mov eax, 0
jmp 0x2fc4f3536
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 0x2fc4f3531
mov eax, 0
jmp 0x2fc4f3536
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4f353c
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 0x2fc4f35ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4f35b1
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 0x2fc4f35b1
mov rax, qword [rbp - 8]
jmp 0x2fc4f35cf
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 0x2fc4f3584
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140042490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400424a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140021f40
jmp 0x14000123c
mov rax, qword [0x1400424a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400424a0]
mov dword [rax], 1
mov rax, qword [0x1400424e0]
mov rdx, rax
mov rax, qword [0x1400424d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140046024], 1
mov rax, qword [0x1400424a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400424c0]
mov rdx, rax
mov rax, qword [0x1400424b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400424a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140042490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400423e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400423e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400211c8
mov rax, qword [0x140042520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140042480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400209c0
mov eax, dword [0x140046004]
lea rdx, [0x140046008]
mov ecx, eax
call fcn.14000147c
call fcn.140020757
mov rax, qword [0x140042410]
mov rax, qword [rax]
mov rdx, qword [0x140046010]
mov qword [rax], rdx
mov rcx, qword [0x140046010]
mov rdx, qword [0x140046008]
mov eax, dword [0x140046004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004601c], eax
mov eax, dword [0x140046020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004601c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140046024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004601c]
add rsp, 0x70
pop rbp
ret