joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007e3a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
movsxd rbp, r9d
mov rdi, r8
mov rsi, rdx
mov r12, rcx
mov r13, rbp
movsxd rbx, dword [rsp + 0xa0]
test rbx, rbx
js 0x18007e590
mov r15, qword [rsp + 0xa8]
mov r9, qword [rsp + 0xb0]
movsxd r8, dword [r9 + rbx*4]
movsxd r14, dword [r15 + rbx*4]
test r14d, r14d
je 0x18007e526
test r8d, r8d
je 0x18007e526
cmp ebp, 0x40
jle 0x18007e526
mov rcx, rdi
mov rax, rsi
mov edx, 2
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x18007e430
mov r10d, 0x40
mov r11d, r10d
cmp r13, r10
jle 0x18007e543
mov eax, r10d
sub rax, r8
lea r9, [rdi + rax*4]
mov rcx, r8
sub rcx, r14
lea r12, [rcx*4]
lea r15, [r8*4]
mov r13, r15
sub r13, rdi
add r13, rsi
lea r14, [rbp - 0x40]
lea r8, [r12 + r9]
mov ecx, r11d
imul ecx, dword [r9]
sar ecx, 9
mov eax, r10d
imul eax, dword [r8]
sar eax, 9
sub eax, ecx
add eax, dword [r9 + r13]
mov dword [r15 + r9], eax
mov edx, dword [r9 + r13]
mov eax, edx
xor eax, dword [r9]
lea ecx, [r11 + 1]
lea r11d, [r11 - 1]
cmovle r11d, ecx
lea r9, [r9 + 4]
xor edx, dword [r8]
lea eax, [r10 - 1]
lea r10d, [r10 + 1]
cmovle r10d, eax
sub r14, 1
jne 0x18007e4c1
mov r15, qword [rsp + 0xa8]
mov r13, rbp
mov r12, qword [rsp + 0x80]
jmp 0x18007e53b
lea eax, [rbp*4]
movsxd r8, eax
mov rdx, rsi
mov rcx, rdi
call fcn.18008b7d0
mov r9, qword [rsp + 0xb0]
sub rbx, 1
mov rdx, rdi
js 0x18007e57e
mov dword [rsp + 0x30], 0x40
mov eax, dword [r9 + rbx*4]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + rbx*4]
mov dword [rsp + 0x20], eax
mov r9d, ebp
mov r8, rsi
mov rcx, r12
call fcn.18007ee60
sub rbx, 1
jns 0x18007e3f0
jmp 0x18007e590
lea eax, [rbp*4]
movsxd r8, eax
mov rcx, rsi
call fcn.18008b7d0
lea rcx, [rsp + 0x40]
call fcn.18007cf40
lea rax, [0x1800b1ef8]
mov qword [rsp + 0x40], rax
mov r9d, ebp
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180080230
nop
lea rcx, [rsp + 0x40]
call fcn.18007cf50
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18007ee60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [rsp + 0x50], 0
mov rsi, r8
movsxd rbx, r9d
mov rbp, rdx
je 0x18007ef58
movsxd r14, dword [rsp + 0x58]
test r14d, r14d
je 0x18007ef58
movsxd rdi, dword [rsp + 0x60]
cmp ebx, edi
jle 0x18007ef58
lea eax, [rdi*4]
mov rcx, rsi
movsxd r8, eax
call fcn.18008b7d0
mov r10d, 0x40
mov r8, rdi
mov r11d, r10d
cmp rdi, rbx
jge 0x18007ef6a
movsxd rcx, dword [rsp + 0x50]
lea rdi, [r14*4]
mov rax, r8
sub rax, r14
lea r9, [rsi + rax*4]
mov rax, r14
sub rax, rcx
lea r14, [rax*4]
mov rax, rdi
sub rax, rsi
sub rbx, r8
lea rsi, [rax + rbp]
mov ecx, dword [r9]
lea r8, [r14 + r9]
mov eax, dword [r8]
lea r9, [r9 + 4]
imul eax, r10d
imul ecx, r11d
sar eax, 9
sar ecx, 9
sub eax, ecx
lea ecx, [r11 + 1]
add eax, dword [rsi + r9 - 4]
lea r11d, [r11 - 1]
mov dword [rdi + r9 - 4], eax
mov edx, dword [rsi + r9 - 4]
mov eax, edx
xor eax, dword [r9 - 4]
lea eax, [r10 - 1]
cmovle r11d, ecx
lea r10d, [r10 + 1]
xor edx, dword [r8]
cmovle r10d, eax
sub rbx, 1
jne 0x18007ef02
jmp 0x18007ef6a
lea eax, [rbx*4]
mov rcx, rsi
movsxd r8, eax
call fcn.18008b7d0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18007f3a0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rsi
push rdi
sub rsp, 0x40
mov esi, r9d
mov rbx, r8
mov rdi, rdx
cmp r9d, 8
jge 0x18007f3d5
lea eax, [r9*4]
mov rcx, rbx
movsxd r8, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbx
jmp fcn.18008b7d0
movups xmm0, xmmword [rdx]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
movups xmmword [r8], xmm0
mov eax, dword [rdx + 0x10]
mov dword [r8 + 0x10], eax
mov r9d, dword [rdx + 8]
sub r9d, dword [rdx + 0xc]
shl r9d, 3
sub r9d, dword [rdx + 4]
add r9d, dword [rdx]
add r9d, dword [rdx + 0x10]
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x38], r14
lea r14, [rdx + 0x10]
mov dword [rsp + 0x20], eax
sub eax, dword [r8 + 0xc]
mov qword [rsp + 0x30], r15
xor r15d, r15d
lea ebp, [rax + rax*2]
add ebp, dword [r8 + 8]
lea r13d, [r15 + 0x40]
lea r12d, [r15 + 0x1c]
cmp esi, 5
jle 0x18007f4ec
mov r10, rbx
mov r11, r14
mov r14d, dword [rsp + 0x20]
sub r10, rdi
add esi, 0xfffffffb
nop dword [rax + rax]
mov eax, dword [r11 + 4]
lea r11, [r11 + 4]
mov edx, r9d
mov ecx, r14d
imul ecx, r15d
sar ecx, 8
add ecx, eax
xor eax, r14d
mov r14d, ecx
lea eax, [r15 - 1]
lea r15d, [r15 + 1]
cmovle r15d, eax
imul edx, r13d
lea eax, [r13 - 1]
lea r13d, [r13 + 1]
sar edx, 0xb
add edx, ecx
xor ecx, r9d
mov dword [r11], edx
mov r9d, dword [r11 - 8]
lea ecx, [r12 - 1]
cmovle r13d, eax
sub r9d, dword [r11 - 4]
shl r9d, 3
mov eax, ebp
sub r9d, dword [r11 - 0xc]
add r9d, dword [r11 - 0x10]
imul eax, r12d
add r9d, edx
lea r12d, [r12 + 1]
sar eax, 9
add edx, eax
mov dword [r10 + r11], edx
mov eax, dword [r11]
xor eax, ebp
cmovle r12d, ecx
sub edx, dword [r10 + r11 - 4]
lea ebp, [rdx + rdx*2]
add ebp, dword [r10 + r11 - 8]
sub rsi, 1
jne 0x18007f450
mov esi, dword [rsp + 0x78]
lea r14, [rdi + 0x10]
mov r8d, dword [r8]
mov eax, 0xf3c
add r8d, dword [rdi + 4]
mov r10d, 0x172
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov dword [rbx + 4], r8d
mov edx, dword [rdi + 8]
add edx, r8d
mov dword [rbx + 8], edx
mov r8d, dword [rdi + 0xc]
add r8d, edx
mov dword [rbx + 0xc], r8d
mov edx, dword [r14]
add edx, r8d
mov dword [rbx + 0x10], edx
mov r8d, dword [r14]
mov r14, qword [rsp + 0x38]
lea r11d, [r8 + r8]
sub r11d, dword [rdi + 0xc]
cmp esi, 5
jle 0x18007f5a6
add rbx, 0x14
lea edi, [rsi - 5]
nop
mov ecx, dword [rbx]
lea rbx, [rbx + 4]
mov r9d, r11d
imul r9d, r10d
sar r9d, 9
add r9d, ecx
xor ecx, r11d
lea ecx, [r10 - 1]
lea r10d, [r10 + 1]
cmovle r10d, ecx
lea r11d, [r9 + r9]
sub r11d, r8d
mov ecx, r9d
mov r8d, edx
imul r8d, eax
sar r8d, 0xc
add r8d, r9d
xor ecx, edx
mov dword [rbx - 4], r8d
lea edx, [rax - 1]
lea eax, [rax + 1]
cmovle eax, edx
mov edx, r8d
mov r8d, r9d
sub rdi, 1
jne 0x18007f550
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x180083340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov ebp, edx
lea rdx, [0x1800b22c0]
mov rsi, rcx
mov edi, r14d
lea r8d, [r14 + 4]
call fcn.18009b180
test eax, eax
jne 0x1800834f1
mov r10d, dword [rsi + 4]
lea eax, [r10 + 8]
cmp eax, 0x20
jb 0x1800834f1
add r10d, 0xffffffe8
mov qword [rsp + 0x30], rbx
lea rax, [rsi + 0x20]
cmp r10d, 2
jb 0x1800834b3
movzx r9d, byte [rax + 1]
add r10d, 0xfffffffe
movzx ebx, byte [rax]
add r9d, r9d
add rax, 2
test bl, bl
jns 0x1800833df
cmp r10d, 2
jb 0x1800834ed
movzx r8d, byte [rax + 1]
movzx edx, byte [rax]
add rax, 2
shl r8d, 8
add r8d, edx
shl r8d, 9
add r9d, r8d
add r10d, 0xfffffffe
cmp r10d, r9d
jb 0x1800834ed
test ebp, ebp
je 0x1800834a0
movzx ecx, bl
and cl, 0x3f
cmp cl, 0x2f
jne 0x1800834a0
mov edx, eax
or r8d, 0xffffffff
sub edx, esi
mov r11, rsi
sub edx, 2
sar edx, 1
test bl, 0x40
jne 0x1800834ed
cmp r9d, 2
jb 0x1800834ed
cmp r9d, 4
ja 0x1800834ed
test edx, edx
je 0x180083444
movzx ecx, word [r11]
lea r8d, [r8 + r8*2]
add r8d, ecx
lea r11, [r11 + 2]
sub edx, 1
jne 0x180083430
cmp r9d, 4
jne 0x18008347f
cmp byte [rax], r8b
jne 0x1800834ed
mov edx, r8d
shr edx, 8
cmp byte [rax + 1], dl
jne 0x1800834ed
mov edx, r8d
shr edx, 0x10
cmp byte [rax + 2], dl
jne 0x1800834ed
movzx ecx, byte [rax + 3]
shr r8d, 0x18
add rax, 4
jmp 0x180083499
mov ecx, r8d
shr ecx, 0x10
xor r8d, ecx
cmp byte [rax], r8b
jne 0x1800834ed
movzx ecx, byte [rax + 1]
shr r8d, 8
add rax, 2
cmp cl, r8b
jne 0x1800834ed
inc edi
mov ecx, r9d
sub r10d, r9d
add rax, rcx
cmp r10d, 2
jae 0x1800833a0
test r10d, r10d
jne 0x1800834cf
test ebp, ebp
je 0x1800834c9
test dword [rsi + 0x18], 0x10000000
je 0x1800834c9
test edi, edi
je 0x1800834cf
mov r14d, 1
mov eax, r14d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
xor eax, eax
jmp 0x1800834d2
xor eax, eax
jmp 0x1800834d7
Function at 0x1800a637c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800a621c
call fcn.18009ad04
mov dword [rax], socket
call fcn.18008d724
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800a6204
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800a6204
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800a624e
lock or dword [rax + 0x14], 0x10
jmp 0x1800a6204
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800a626b
mov rcx, qword [rbp + 0x10]
call fcn.1800a6570
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18009dde4
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800a5c54
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800a62c2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800a6204
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800a632e
mov rcx, qword [rbp + 0x10]
call fcn.18009dde4
cmp eax, 0xffffffff
je 0x1800a6315
mov rcx, qword [rbp + 0x10]
call fcn.18009dde4
cmp eax, 0xfffffffe
je 0x1800a6315
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18009dde4
movsxd rdi, eax
lea rsi, [0x1800ef740]
mov rcx, rbx
sar rdi, 6
call fcn.18009dde4
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800a631c
lea rax, [0x1800eb7d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800a632e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800a6364
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800a6360
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800a6360
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800a6207
jmp 0x1800a61d4
Function at 0x2fc4d29b0
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.2fc4d3a90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d33b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d344a
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 0x2fc4d342e
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 0x2fc4d3422
cmp qword [rbp - 0x10], 0
je 0x2fc4d3422
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 0x2fc4d33e8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d344b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3550
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 0x2fc4d3578
mov eax, 0
jmp 0x2fc4d35c6
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 0x2fc4d35a1
mov eax, 0
jmp 0x2fc4d35c6
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 0x2fc4d35c1
mov eax, 0
jmp 0x2fc4d35c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d35cc
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 0x2fc4d364a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3641
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 0x2fc4d3641
mov rax, qword [rbp - 8]
jmp 0x2fc4d365f
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 0x2fc4d3614
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc539140
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.2fc53a220
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc539b42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc55c108]
test eax, eax
je 0x2fc539bda
lea rax, [0x2fc55c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc55c110]
mov qword [rbp - 8], rax
jmp 0x2fc539bbe
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 0x2fc539bb2
cmp qword [rbp - 0x10], 0
je 0x2fc539bb2
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 0x2fc539b78
lea rax, [0x2fc55c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc539bdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc539ce0
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 0x2fc539d08
mov eax, 0
jmp 0x2fc539d56
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 0x2fc539d31
mov eax, 0
jmp 0x2fc539d56
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 0x2fc539d51
mov eax, 0
jmp 0x2fc539d56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc539d5c
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 0x2fc539dda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc539dd1
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 0x2fc539dd1
mov rax, qword [rbp - 8]
jmp 0x2fc539def
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 0x2fc539da4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d2810
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.2fc4d38f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3212
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d32aa
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 0x2fc4d328e
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 0x2fc4d3282
cmp qword [rbp - 0x10], 0
je 0x2fc4d3282
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 0x2fc4d3248
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d32ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d33b0
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 0x2fc4d33d8
mov eax, 0
jmp 0x2fc4d3426
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 0x2fc4d3401
mov eax, 0
jmp 0x2fc4d3426
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 0x2fc4d3421
mov eax, 0
jmp 0x2fc4d3426
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d342c
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 0x2fc4d34aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d34a1
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 0x2fc4d34a1
mov rax, qword [rbp - 8]
jmp 0x2fc4d34bf
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 0x2fc4d3474
mov eax, 0
add rsp, 0x20
pop rbp
ret