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

Function at 0x2fc4d6a22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d6aba
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 0x2fc4d6a9e
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 0x2fc4d6a92
cmp qword [rbp - 0x10], 0
je 0x2fc4d6a92
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 0x2fc4d6a58
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6abb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6bc0
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 0x2fc4d6be8
mov eax, 0
jmp 0x2fc4d6c36
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 0x2fc4d6c11
mov eax, 0
jmp 0x2fc4d6c36
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 0x2fc4d6c31
mov eax, 0
jmp 0x2fc4d6c36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6c3c
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 0x2fc4d6cba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6cb1
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 0x2fc4d6cb1
mov rax, qword [rbp - 8]
jmp 0x2fc4d6ccf
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 0x2fc4d6c84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800026b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rax, qword [0x180064be8]
mov rsi, rdx
mov ebx, dword [rax]
or ebx, 2
cmp ecx, 8
mov rcx, rdx
cmovne ebx, dword [rax]
call fcn.180002b10
movsxd rbp, eax
test bl, 1
je 0x1800026ed
mov rcx, rsi
call qword [0x1800481f8]
test bl, 2
je 0x180002788
mov rbx, qword [0x180064bf0]
mov qword [rsp + 0x30], rdi
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180002740
mov eax, dword [rbx + 8]
test eax, eax
jne 0x180002783
mov edi, 1
lock xadd dword [rbx + 8], edi
inc edi
cmp edi, 1
jne 0x180002783
mov rcx, rbx
call fcn.180003110
cmp qword [rbx], 0
je 0x180002783
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call fcn.180003510
jmp 0x180002783
mov edi, 1
test ebp, ebp
je 0x18000275b
mov r9, rcx
mov r8, rbp
mov rcx, rsi
mov edx, edi
call fcn.18002811c
jmp 0x18000276a
mov r8, rsi
lea rdx, [0x1800571f0]
call fcn.1800015e0
lock xadd dword [rbx + 0xc], edi
inc edi
cmp edi, 1
jne 0x180002783
xor eax, eax
xchg dword [rbx + 0xc], eax
mov rcx, qword [rbx]
call fcn.180023f70
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x180002b10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x180064be0]
mov rbx, rcx
test rax, rax
je 0x180002bb6
cmp dword [rax], 0
je 0x180002bb6
mov edx, dword [0x180063e9c]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + rdx*8]
mov edx, dword [rcx + rax]
cmp dword [0x180064cb0], edx
jle 0x180002b8f
lea rcx, [0x180064cb0]
call fcn.1800185f0
cmp dword [0x180064cb0], 0xffffffff
jne 0x180002b8f
mov rdx, qword [0x180064be0]
lea rcx, [0x180064cb0]
movzx eax, byte [rdx + 1]
sub al, byte [rdx + 3]
sub al, byte [rdx + 2]
add al, byte [rdx]
mov byte [0x180064ba0], al
call fcn.180018590
movzx ecx, byte [rbx]
mov rax, rbx
test cl, cl
je 0x180002bae
movzx edx, byte [0x180064ba0]
xor cl, dl
mov byte [rax], cl
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x180002ba0
sub eax, ebx
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180002f70
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push r12
push r13
sub rsp, 0x4b8
mov rax, qword [0x180062020]
xor rax, rsp
mov qword [rsp + 0x480], rax
cmp qword [rcx], 0
mov r13d, edx
mov r12, rcx
je 0x1800030f0
mov qword [r11 + 0x18], rbx
xorps xmm0, xmm0
mov qword [r11 - 0x18], rbp
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
movups xmmword [rsp + 0x70], xmm0
call qword [0x180048090]
mov r15d, eax
lea rcx, [rsp + 0x70]
mov eax, 0x10624dd3
mul r15d
mov eax, 0x88888889
mov r14d, edx
shr r14d, 6
mul r14d
mov eax, 0x88888889
mov ebp, edx
shr ebp, 5
mul ebp
mov esi, edx
shr esi, 5
call qword [0x180048148]
movzx ecx, word [rsp + 0x7a]
mov eax, 0xaaaaaaab
movzx r10d, word [rsp + 0x78]
mov ebx, r15d
movzx r11d, word [rsp + 0x76]
movzx r9d, word [rsp + 0x72]
movzx r8d, word [rsp + 0x70]
mul esi
imul eax, r14d, 0x3e8
mov dword [rsp + 0x68], r15d
mov edi, edx
lea rdx, str.________________________________n_Closed__at_:__.4d__.2d__.2d__.2d:_.2d:_.2d_n_UpTime_____:__u_Days__.2uh__.2um__.2us_::__u_ms___u__n________________________________n
shr edi, 4
sub ebx, eax
imul eax, ebp, 0x3c
mov dword [rsp + 0x60], ebx
sub r14d, eax
imul eax, esi, 0x3c
mov dword [rsp + 0x58], r14d
sub ebp, eax
lea eax, [rdi + rdi*2]
mov dword [rsp + 0x50], ebp
shl eax, 3
sub esi, eax
movzx eax, word [rsp + 0x7c]
mov dword [rsp + 0x48], esi
test r13d, r13d
mov dword [rsp + 0x40], edi
lea r13, str.________________________________n_Started_at_:__.4d__.2d__.2d__.2d:_.2d:_.2d_n_UpTime_____:__u_Days__.2uh__.2um__.2us_::__u_ms___u__n________________________________n
mov dword [rsp + 0x38], eax
cmovne rdx, r13
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.180008d60
lea rcx, [rsp + 0x80]
movsxd rbx, eax
call fcn.180002b10
mov r9, qword [r12]
lea rcx, [rsp + 0x80]
mov r8, rbx
mov edx, 1
call fcn.18002811c
mov r15, qword [rsp + 0x490]
mov r14, qword [rsp + 0x498]
mov rdi, qword [rsp + 0x4a0]
mov rsi, qword [rsp + 0x4a8]
mov rbp, qword [rsp + 0x4b0]
mov rbx, qword [rsp + 0x4e0]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180018470
add rsp, 0x4b8
pop r13
pop r12
ret
Function at 0x180003510
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rsi, r8d
mov rcx, qword [rcx]
mov rbp, rdx
mov edi, 1
test rcx, rcx
jne 0x18000355e
mov eax, dword [rbx + 8]
test eax, eax
jne 0x18000359d
mov eax, edi
lock xadd dword [rbx + 8], eax
inc eax
cmp eax, edi
jne 0x18000359d
mov rcx, rbx
call fcn.180003110
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000359d
test esi, esi
je 0x180003575
mov r9, rcx
mov r8, rsi
mov rcx, rbp
mov rdx, rdi
call fcn.18002811c
jmp 0x180003584
mov r8, rbp
lea rdx, [0x1800571f0]
call fcn.1800015e0
lock xadd dword [rbx + 0xc], edi
inc edi
cmp edi, 1
jne 0x18000359d
xor eax, eax
xchg dword [rbx + 0xc], eax
mov rcx, qword [rbx]
call fcn.180023f70
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800035c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rsi, r8d
mov rcx, qword [rcx]
mov rbp, rdx
mov edi, 1
test rcx, rcx
jne 0x18000360e
mov eax, dword [rbx + 8]
test eax, eax
jne 0x18000364d
mov eax, edi
lock xadd dword [rbx + 8], eax
inc eax
cmp eax, edi
jne 0x18000364d
mov rcx, rbx
call fcn.180003110
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000364d
test esi, esi
je 0x180003625
mov r9, rcx
mov r8, rsi
mov rcx, rbp
mov rdx, rdi
call fcn.18002811c
jmp 0x180003634
mov r8, rbp
lea rdx, [0x1800571f4]
call fcn.1800014d0
lock xadd dword [rbx + 0xc], edi
inc edi
cmp edi, 1
jne 0x18000364d
xor eax, eax
xchg dword [rbx + 0xc], eax
mov rcx, qword [rbx]
call fcn.180023f70
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18001920c
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov byte [rsp + 0x60], 0x44
mov byte [rsp + 0x61], 0x76
mov byte [rsp + 0x62], 0x43
mov byte [rsp + 0x63], 0x34
mov byte [rsp + 0x64], 0x7a
mov byte [rsp + 0x65], 0x64
mov byte [rsp + 0x66], 0x59
mov byte [rsp + 0x67], 0x50
mov byte [rsp + 0x68], 0x35
mov byte [rsp + 0x69], 0x26
mov byte [rsp + 0x6a], 0x57
mov byte [rsp + 0x6b], 0x70
mov byte [rsp + 0x6c], 0x29
mov byte [rsp + 0x6d], 0x6c
mov byte [rsp + 0x6e], 0x48
mov byte [rsp + 0x6f], 0x64
mov byte [rsp + 0x70], 0x21
mov byte [rsp + 0x71], 0x51
mov byte [rsp + 0x72], 0x45
mov byte [rsp + 0x73], 0x77
mov byte [rsp + 0x74], 0x3f
mov byte [rsp + 0x75], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x7c], 0
mov eax, 0x6b
mov word [rsp + 0xa0], ax
mov eax, 0x65
mov word [rsp + 0xa2], ax
mov eax, 0x72
mov word [rsp + 0xa4], ax
mov eax, 0x6e
mov word [rsp + 0xa6], ax

Function at 0x180019238
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x228
mov byte [rsp + 0x60], 0x44
mov byte [rsp + 0x61], 0x76
mov byte [rsp + 0x62], 0x43
mov byte [rsp + 0x63], 0x34
mov byte [rsp + 0x64], 0x7a
mov byte [rsp + 0x65], 0x64
mov byte [rsp + 0x66], 0x59
mov byte [rsp + 0x67], 0x50
mov byte [rsp + 0x68], 0x35
mov byte [rsp + 0x69], 0x26
mov byte [rsp + 0x6a], 0x57
mov byte [rsp + 0x6b], 0x70
mov byte [rsp + 0x6c], 0x29
mov byte [rsp + 0x6d], 0x6c
mov byte [rsp + 0x6e], 0x48
mov byte [rsp + 0x6f], 0x64
mov byte [rsp + 0x70], 0x21
mov byte [rsp + 0x71], 0x51
mov byte [rsp + 0x72], 0x45
mov byte [rsp + 0x73], 0x77
mov byte [rsp + 0x74], 0x3f
mov byte [rsp + 0x75], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x7c], 0
mov eax, 0x6b
mov word [rsp + 0xa0], ax
mov eax, 0x65
mov word [rsp + 0xa2], ax
mov eax, 0x72
mov word [rsp + 0xa4], ax
mov eax, 0x6e
mov word [rsp + 0xa6], ax
Function at 0x180019c7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp dword [rcx + rax + 0x88], 0
jne 0x180019ccc
xor eax, eax
jmp 0x180019da4
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
and al, 0x30
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x24], 0
jmp 0x180019d12
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x24], eax
jge 0x180019da2
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x70]
movsxd rcx, dword [rsp + 0x24]
mov eax, dword [rax + rcx*4]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x70]
movsxd rcx, dword [rsp + 0x24]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x20]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x28], eax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call fcn.180019bbc
test eax, eax
jne 0x180019d9d
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x180019da4
jmp 0x180019d08
xor eax, eax
add rsp, 0x68
ret
Function at 0x18001a11c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x18001a1cd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x18001a22b
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.18001a03c
cmp eax, dword [rsp + 0x78]
jne 0x18001a229
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
jmp 0x18001a22d
jmp 0x18001a1c3
xor eax, eax
add rsp, 0x68
ret

Function at 0x180037358
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180037335
call fcn.18002daa8
mov dword [rax], 0x16
call fcn.180029164
or eax, 0xffffffff
jmp 0x180037352
sub dword [rcx + 0x10], 1
jns 0x180037344
add rsp, 0x28
jmp fcn.18003a100
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180037314
Function at 0x2fc4d5560
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.2fc4d6640
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5f62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5ffa
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 0x2fc4d5fde
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 0x2fc4d5fd2
cmp qword [rbp - 0x10], 0
je 0x2fc4d5fd2
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 0x2fc4d5f98
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5ffb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6100
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 0x2fc4d6128
mov eax, 0
jmp 0x2fc4d6176
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 0x2fc4d6151
mov eax, 0
jmp 0x2fc4d6176
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 0x2fc4d6171
mov eax, 0
jmp 0x2fc4d6176
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d617c
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 0x2fc4d61fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d61f1
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 0x2fc4d61f1
mov rax, qword [rbp - 8]
jmp 0x2fc4d620f
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 0x2fc4d61c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7650
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.2fc4d8730
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8052
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d80ea
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d80ce
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 0x2fc4d80c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d80c2
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 0x2fc4d8088
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d80eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d81f0
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 0x2fc4d8218
mov eax, 0
jmp 0x2fc4d8266
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 0x2fc4d8241
mov eax, 0
jmp 0x2fc4d8266
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 0x2fc4d8261
mov eax, 0
jmp 0x2fc4d8266
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d826c
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 0x2fc4d82ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d82e1
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 0x2fc4d82e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d82ff
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 0x2fc4d82b4
mov eax, 0
add rsp, 0x20
pop rbp
ret