joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140121130
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
mov eax, 0x40
call fcn.1401c1690
sub rsp, rax
movsxd rbx, dword [rsp + 0x80]
lea r14d, [rax - 0x20]
xor esi, esi
mov r15, r9
cmp dword [rsp + 0x88], 2
mov edi, edx
mov r13, rcx
je 0x1401211dc
test r8, r8
je 0x1401211b0
mov r9, r8
lea rdx, [rsp + 0x30]
xor r8d, r8d
xor ecx, ecx
call fcn.1400e2300
cmp dword [rsp + 0x30], 0xffffffff
je 0x1401211b0
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [r9 + 0x10]
lea r8d, [r9 + 0x66]
call fcn.1400c0d40
xor eax, eax
jmp 0x1401213c3
test r15, r15
je 0x140121190
cmp edi, 0x40a
je 0x1401211d5
cmp edi, 0x43f
je 0x1401211d5
cmp edi, 0x40b
mov eax, esi
setne al
add eax, 0x38
jmp 0x1401211d8
mov eax, r14d
cmp ebx, eax
jne 0x140121190
mov r8d, 0x46
mov qword [rsp + 0x60], rbp
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 + 2]
call fcn.1400c9c50
mov rbp, rax
test rax, rax
jne 0x14012121e
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400c0d40
xor eax, eax
jmp 0x1401213be
cmp dword [rsp + 0x88], esi
jne 0x14012123a
mov r8, rbx
mov rdx, r15
mov rcx, rbp
call fcn.1401c1f80
jmp 0x1401213ac
cmp edi, 0x40a
je 0x14012125c
cmp edi, 0x43f
je 0x14012125c
cmp edi, 0x40b
mov rcx, rsi
setne cl
add rcx, 0x38
jmp 0x14012125f
mov rcx, r14
mov r8d, 0x50
lea rdx, str.cryptoececx_meth.c
call fcn.1400fd8c0
mov qword [rbp + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x140121297
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400c0d40
jmp 0x1401212ee
cmp dword [rsp + 0x88], 2
jne 0x140121330
cmp edi, 0x40a
je 0x1401212c6
cmp edi, 0x43f
je 0x1401212c6
cmp edi, 0x40b
mov r14d, esi
setne r14b
add r14d, 0x38
mov edx, r14d
mov rcx, rbx
call fcn.1400cd3b0
test eax, eax
jg 0x14012130a
mov r8d, 0x57
lea rdx, str.cryptoececx_meth.c
mov rcx, rbx
call fcn.1400fd8a0
mov qword [rbp + 0x40], rsi
mov r8d, 0x79
lea rdx, str.cryptoececx_meth.c
mov rcx, rbp
call fcn.1400c9960
xor eax, eax
jmp 0x1401213be
cmp edi, 0x40a
jne 0x14012131f
and byte [rbx], 0xf8
and byte [rbx + 0x1f], 0x3f
or byte [rbx + 0x1f], 0x40
jmp 0x140121361
cmp edi, 0x40b
jne 0x140121361
and byte [rbx], 0xfc
or byte [rbx + 0x37], 0x80
jmp 0x140121361
cmp edi, 0x40a
je 0x140121350
cmp edi, 0x43f
je 0x140121350
cmp edi, 0x40b
setne sil
add rsi, 0x38
jmp 0x140121353
mov rsi, r14
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call fcn.1401c1f80
mov ecx, edi
sub ecx, 0x40a
je 0x1401213a1
sub ecx, 1
je 0x140121394
sub ecx, 0x34
je 0x140121387
cmp ecx, 1
jne 0x1401213ac
mov rdx, rbx
mov rcx, rbp
call fcn.140157e60
jmp 0x1401213ac
mov rdx, rbx
mov rcx, rbp
call fcn.14014cdb0
jmp 0x1401213ac
mov rdx, rbx
mov rcx, rbp
call fcn.140154e10
jmp 0x1401213ac
mov rdx, rbx
mov rcx, rbp
call fcn.14014d370
mov r8, rbp
mov edx, edi
mov rcx, r13
call fcn.1400b6c40
mov eax, 1
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140129b20
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, gethostname
call fcn.1401c1690
sub rsp, rax
mov r11, rcx
cmp dword [rsp + 0x60], r9d
jne 0x140129bfc
movzx r10d, byte [r8]
lea eax, [r10 - 0x6a]
cmp al, 1
ja 0x140129bfc
lea rdx, [r8 + 1]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
cmp r10b, 0x6b
jne 0x140129bb2
lea ebx, [r9 - 3]
mov eax, r8d
test ebx, ebx
jle 0x140129b86
nop dword [rax + rax]
movzx ecx, byte [rdx]
inc rdx
cmp cl, 0xba
je 0x140129b86
cmp cl, 0xbb
jne 0x140129b8c
inc eax
cmp eax, ebx
jl 0x140129b70
sub ebx, eax
test eax, eax
jne 0x140129bb6
mov edx, 0x80
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xa]
call fcn.1400c0d40
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x38
ret
lea ebx, [r9 - 2]
movsxd rax, ebx
cmp byte [rax + rdx], 0xcc
je 0x140129be5
mov edx, 0x80
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xb]
call fcn.1400c0d40
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x38
ret
mov r8d, ebx
mov rcx, r11
call fcn.1401c1f80
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
mov edx, 0x80
xor r8d, r8d
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 9]
call fcn.1400c0d40
or eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x14016b6f0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f]
mov eax, 0xb0
call fcn.1401c1690
sub rsp, rax
mov rax, qword [0x1402b9f00]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rax, qword [rbp + 0x7f]
mov r14, r8
mov dword [rbp - 0x11], 0x61707865
mov rsi, rdx
mov dword [rbp - 0xd], 0x3320646e
mov rdi, rcx
mov dword [rbp - 9], 0x79622d32
mov dword [rbp - 5], 0x6b206574
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rbp - 1], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm1
movups xmmword [rbp + 0x1f], xmm0
test r8, r8
je 0x14016b884
mov qword [rsp + 0xd8], rbx
nop dword [rax + rax]
mov ebx, 0x40
lea rdx, [rbp - 0x11]
cmp r14, rbx
lea rcx, [rbp - 0x51]
cmovb rbx, r14
call fcn.14016b8b0
xor eax, eax
test rbx, rbx
je 0x14016b86a
cmp rbx, 0x20
jb 0x14016b835
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rbp + rbx - 0x52]
cmp rdi, rcx
ja 0x14016b7b8
lea rcx, [rbp - 0x51]
cmp rdx, rcx
jae 0x14016b835
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x14016b7c9
cmp rdx, rsi
jae 0x14016b835
lea rcx, [rbp - 0x51]
mov rdx, rsi
sub rdx, rcx
mov r9, rbx
lea rcx, [rbp - 0x51]
and r9, 0xffffffffffffffe0
mov r8, rdi
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rbp + rax - 0x51]
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x51]
lea rcx, [r8 + rax]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax - 0x41]
movdqu xmmword [rbp + rcx - 0x51], xmm1
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x41]
lea rcx, [r8 + rax]
add rax, 0x20
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x41], xmm1
cmp rax, r9
jb 0x14016b7f0
cmp rax, rbx
jae 0x14016b86a
lea rcx, [rbp - 0x51]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rbp - 0x51]
sub r9, rcx
nop
lea rdx, [rbp - 0x51]
add rdx, rax
inc rax
movzx ecx, byte [r8 + rdx]
xor cl, byte [rdx]
mov byte [r9 + rdx], cl
cmp rax, rbx
jb 0x14016b850
inc dword [rbp + 0x1f]
add rdi, rbx
add rsi, rbx
sub r14, rbx
jne 0x14016b770
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401c1120
mov rsi, qword [rsp + 0xe0]
add rsp, 0xb0
pop r14
pop rdi
pop rbp
ret
Function at 0x140172240
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0xf0
call fcn.1401c1690
sub rsp, rax
mov r14, r9
mov r15, r9
shr r14, 3
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp r8, r9
jb 0x14017233f
mov qword [rsp + 0x110], rbx
xor edx, edx
test r14, r14
je 0x1401722f0
nop word [rax + rax]
movzx eax, byte [rsi + 6]
movzx ecx, byte [rsi + 7]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 5]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 2]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi]
shl rcx, 8
add rsi, 8
or rcx, rax
xor qword [rdi + rdx*8], rcx
inc rdx
cmp rdx, r14
jb 0x140172290
xor ebx, ebx
nop dword [rax]
nop word [rax + rax]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140171e70
lea r8, [rbx + 1]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.140171e70
add rbx, 2
cmp rbx, 0x18
jb 0x140172300
sub rbp, r15
cmp rbp, r15
jae 0x140172280
mov rbx, qword [rsp + 0x110]
lea r11, [rsp + 0xf0]
mov rax, rbp
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1401c3818
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401c35ec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c35ec
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c35ec
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c35ec
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c35ec
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c35ec
cmp dword [rcx + 0xf8], esi
je 0x1401c35ec
mov ecx, r14d
call fcn.1401c3734
mov ecx, 2
call fcn.1401d83e4
nop
cmp byte [0x1402bc830], 0
jne 0x1401c36b6
mov r15d, 1
mov eax, r15d
xchg dword [0x1402bc820], eax
test ebx, ebx
jne 0x1401c365f
mov rdi, qword [0x1402b9f00]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1402bc828]
cmp rcx, rax
je 0x1401c3656
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140003d60]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402bcbe0]
jmp 0x1401c366b
cmp ebx, r15d
jne 0x1401c3671
lea rcx, [0x1402bcbf8]
call fcn.1401d8038
nop
test ebx, ebx
jne 0x1401c3688
lea rdx, [0x1401efc10]
lea rcx, [0x1401efbf0]
call fcn.1401d7a78
lea rdx, [0x1401efc20]
lea rcx, [0x1401efc18]
call fcn.1401d7a78
movzx eax, byte [0x1402bc830]
test esi, esi
cmove eax, r15d
mov byte [0x1402bc830], al
jmp 0x1401c36b6
mov ecx, 2
call fcn.1401d8438
test esi, esi
jne 0x1401c36cd
mov ecx, r14d
call fcn.1401c36e8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401c357c

Function at 0x1401cfff0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401d0010
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401c8bec
or eax, 0xffffffff
jmp 0x1401d0012
xor eax, eax
add rsp, 0x28
ret

Function at 0x1401d0018
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1401d0038
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401c8bec
or eax, 0xffffffff
jmp 0x1401d003a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401db0fc
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 0x1401daf9c
call fcn.1401c8c5c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401c8788
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 0x1401daf84
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401daf84
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401dafce
lock or dword [rax + 0x14], 0x10
jmp 0x1401daf84
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401dafeb
mov rcx, qword [rbp + 0x10]
call fcn.1401e3284
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401d4510
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401d0570
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401db042
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 0x1401daf84
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401db0ae
mov rcx, qword [rbp + 0x10]
call fcn.1401d4510
cmp eax, 0xffffffff
je 0x1401db095
mov rcx, qword [rbp + 0x10]
call fcn.1401d4510
cmp eax, 0xfffffffe
je 0x1401db095
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401d4510
movsxd rdi, eax
lea rsi, [0x1402bcfd0]
mov rcx, rbx
sar rdi, 6
call fcn.1401d4510
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401db09c
lea rax, [0x1402ba210]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401db0ae
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401db0e4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401db0e0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401db0e0
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 0x1401daf87
jmp 0x1401daf54

Function at 0x1401db2f8
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1401db2d5
call fcn.1401c8c5c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401c8788
or eax, 0xffffffff
jmp 0x1401db2f2
sub dword [rcx + 0x10], 1
jns 0x1401db2e4
add rsp, 0x28
jmp fcn.1401db0fc
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1401db2b4
Function at 0x140001000
Capabilities:
Create thread
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, 0x37a
mov ecx, 0x40000
mov r8d, ebx
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
movdqa xmm1, xmmword [0x140002280]
lea rdx, [0x140003040]
movdqa xmm2, xmmword [0x140002270]
lea ecx, [rbx - 0xa]
xor r9d, r9d
mov r10, rax
mov r8d, r9d
nop
movdqu xmm0, xmmword [r8 + rdx]
pxor xmm0, xmm1
paddb xmm0, xmm1
pxor xmm0, xmm2
paddb xmm0, xmm2
movdqu xmmword [r8 + rdx], xmm0
add r8, 0x10
cmp r8, rcx
jl 0x140001050
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor al, 5
add al, 5
xor al, 4
add al, 4
mov byte [rcx + rdx], al
inc rcx
cmp rcx, rbx
jl 0x140001080
mov rcx, r10
cmp r10, rdx
jae 0x1400010d0
sub rdx, r10
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x1400010b0
jmp 0x1400010e0
movzx eax, byte [rbx + rdx - 1]
mov byte [r10 + rbx - 1], al
sub rbx, 1
jne 0x1400010d0
mov qword [rsp + 0x28], r9
mov r8, r10
xor edx, edx
mov dword [rsp + 0x20], r9d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140001a0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a56
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a58
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4da9c0
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.2fc4dbaa0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4db3c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4db45a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4db43e
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 0x2fc4db432
cmp qword [rbp - 0x10], 0
je 0x2fc4db432
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 0x2fc4db3f8
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db45b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db560
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 0x2fc4db588
mov eax, 0
jmp 0x2fc4db5d6
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 0x2fc4db5b1
mov eax, 0
jmp 0x2fc4db5d6
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 0x2fc4db5d1
mov eax, 0
jmp 0x2fc4db5d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db5dc
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 0x2fc4db65a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db651
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 0x2fc4db651
mov rax, qword [rbp - 8]
jmp 0x2fc4db66f
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 0x2fc4db624
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4b00
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.2fc4d5be0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5502
Capabilities:
Get thread local storage value

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

Function at 0x2fc4d56a0
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 0x2fc4d56c8
mov eax, 0
jmp 0x2fc4d5716
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 0x2fc4d56f1
mov eax, 0
jmp 0x2fc4d5716
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 0x2fc4d5711
mov eax, 0
jmp 0x2fc4d5716
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d571c
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 0x2fc4d579a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5791
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 0x2fc4d5791
mov rax, qword [rbp - 8]
jmp 0x2fc4d57af
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 0x2fc4d5764
mov eax, 0
add rsp, 0x20
pop rbp
ret