joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
movsxd rdi, dword [0x180397cc8]
mov rsi, rdx
movzx r11d, byte [0x180397c6a]
mov rbx, rcx
mov ecx, dword [0x180397c7c]
mov eax, edi
shl eax, 2
mov r15, r8
movsxd r10, eax
inc ecx
mov rax, qword [0x180397ca0]
mov r12, r9
movsxd r9, dword [0x180397c9c]
mov r14, r9
mov eax, dword [rax + r10*4]
cdq
idiv r11d
mov r8d, eax
mov eax, 0x3ca
cdq
idiv ecx
dec ecx
mov dword [0x180397c7c], ecx
movsxd rax, dword [r15 + rdi*4]
inc dword [0x180397cdc]
mov qword [rsp + 0x60], rax
mov eax, dword [r15]
add eax, 3
movsxd r10, edx
lea eax, [rax + rax*2]
movsxd rcx, eax
mov eax, dword [rbx + 0x1104]
sub eax, dword [rsi + rcx*4]
movsxd rdx, eax
movsxd rax, dword [rbx + 4]
movsxd r11, dword [rbx + rax*4 + 4]
cmp r9d, dword [r15 + 0x551c]
jl 0x180003103
movsxd rax, dword [0x180397c98]
movzx ebx, r8w
movzx r8d, r8w
mov dword [rsp + 0xd0], r8d
lea r13, [rax + rdx]
mov qword [rsp + 0x70], rbx
lea r8, [r12 + rax*4]
lea r10, [r10 + rax*8]
lea rax, [r11 + r9*2]
mov qword [rsp + 0xe0], rax
movzx eax, word [rax]
xor edx, edx
movzx ecx, byte [r13]
add r10, 8
div ecx
movsxd rdx, edi
add r8, 4
mov rdi, qword [r10]
inc r13
movsxd rbp, eax
mov eax, dword [rsi]
mov qword [rsp + 0xe8], r8
mov qword [rsp + 0x50], 0xf28
mov qword [rsp + 0x68], r10
lea eax, [rax + rax*2]
cdqe
movzx r8d, word [r15 + rax*4]
mov eax, 0x8ff
or r8w, word [rsi + rdx*4]
movsxd rsi, r9d
mov r9, rbx
or r9, rsi
movsxd rax, dword [rax]
mov ebx, dword [r12 + rax*4]
mov rax, qword [rsp + 0xe8]
movsxd r11, dword [rax]
mov rax, qword [rsp + 0x60]
movzx r10d, byte [rdx + rax]
mov eax, r14d
cdq
xor r10, 0x1e6a
idiv dword [rsp + 0xd0]
mov rdx, rbp
movsxd rcx, eax
mov qword [rsp + 0x48], rcx
mov ecx, 0x1a25
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call fcn.180005a40
mov ecx, dword [0x180397cc8]
inc r14d
lea ecx, [rcx*4 + 0xb]
movsxd rdx, ecx
mov dword [r12 + rdx*4], eax
mov rax, qword [rsp + 0xe0]
add rax, 2
mov qword [rsp + 0xe0], rax
cmp r14d, dword [r15 + 0x551c]
jl 0x180003103
mov edi, dword [0x180397cc8]
mov r9d, dword [0x180397c9c]
mov r8, qword [rsp + 0xe8]
mov r10, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xd8]
jmp 0x180002ff3
mov eax, 0xa81
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180004214
Capabilities:
Encode data using xor

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
mov eax, dword [rsp + 0x30]
mov esi, r9d
mov r9d, eax
mov r11d, r8d
xor r11d, 0x651
mov ebx, r8d
mov ecx, 0xe48
mov ebp, r8d
lea edi, [rax + 0x93e]
xor ebx, ecx
xor ebp, 0x1efa
xor esi, 0x37d
lea eax, [r11 + 0x88b]
xor r9d, 0xc46
mov r10, rdx
cmp r9d, eax
jg 0x1800043e9
xor ebx, ecx
xor r14d, r14d
mov rcx, qword [section..data]
mov eax, dword [rcx + 0xf8]
xor eax, dword [r10 + 0x10c]
sub eax, 0xa71cf
or dword [rcx + 0x134], eax
mov eax, dword [0x18015e02c]
mov ecx, dword [r10 + 0xa4]
dec eax
xor dword [r10 + 0xb4], eax
lea eax, [rcx - 0x14]
xor ecx, dword [r10 + 0x150]
or dword [r10 + 0x10c], eax
sub ecx, 0x14
mov eax, dword [0x18015e130]
imul eax, ecx
mov dword [0x18015e130], eax
mov rax, qword [section..data]
mov rcx, qword [rax + 0xc8]
mov rax, qword [0x18015e0e0]
mov r8d, dword [rcx + r14]
add r14, 4
imul r8d, dword [r10 + 0x84]
movsxd rcx, dword [r10 + 0x88]
mov edx, r8d
shr edx, 0x10
mov byte [rcx + rax], dl
mov edx, r8d
inc dword [r10 + 0x88]
movsxd rcx, dword [0x18015e098]
mov rax, qword [0x18015e0e0]
shr edx, 8
mov byte [rcx + rax], dl
inc dword [0x18015e098]
mov ecx, dword [r10 + 0x28]
xor ecx, dword [r10 + 0x38]
mov eax, dword [0x18015e014]
add eax, 0xfff9211b
add ecx, eax
mov dword [0x18015e014], ecx
mov eax, dword [r10 + 0x94]
mov rcx, qword [section..data]
sub eax, 0x319a99c8
add dword [rcx + 0x78], eax
mov eax, 1
sub eax, dword [r10 + 0x100]
mov rcx, qword [section..data]
add dword [rcx + 0x94], eax
movsxd rcx, dword [r10 + 0x88]
mov rax, qword [r10 + 0xd0]
mov byte [rcx + rax], r8b
inc dword [r10 + 0x88]
mov eax, dword [0x18015e020]
add dword [0x18015e02c], eax
mov rcx, qword [section..data]
mov eax, dword [r10 + 0x100]
sub eax, dword [rcx + 0x50]
dec eax
or dword [rcx + 0x108], eax
cmp r14, 0x7f40
jl 0x18000427b
mov rdx, qword [section..data]
lea rcx, [0x18015e010]
mov eax, dword [rdx + 0x78]
cmp dword [0x18015e16c], eax
cmovae rcx, qword [0x18015e128]
mov qword [0x18015e128], rcx
jmp 0x1800043f0
mov rdx, qword [section..data]
xor edi, 0x1a0e
cmp r9d, edi
jg 0x180004420
lea eax, [rsi - 0x292]
cmp r11d, eax
je 0x18000447b
mov eax, dword [rdx + 0x24]
add eax, dword [r10 + 0x20]
add eax, dword [0x18015e10c]
xor eax, 0xb9d1313f
mov dword [0x18015e164], eax
jmp 0x18000447b
mov eax, dword [rdx + 0x160]
mov r8d, dword [r10 + 0x38]
imul eax, ebx
cmp r8d, eax
ja 0x18000447b
mov ecx, dword [r10 + 0x6c]
mov eax, r11d
sub eax, dword [r10 + 0x14]
inc r8d
add dword [r10 + 0x14c], eax
sub ecx, dword [0x18015e150]
mov rdx, qword [section..data]
add ecx, r9d
mov eax, dword [rdx + 0x158]
imul eax, ecx
mov dword [rdx + 0x158], eax
mov rax, qword [section..data]
mov ecx, dword [rax + 0x160]
imul ecx, ebx
cmp r8d, ecx
jbe 0x180004432
mov rbx, qword [rsp + 0x10]
lea eax, [rbp - 0x726]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x180005e00
Capabilities:
Encode data using xor

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 r12
push r14
push r15
sub rsp, 0x30
lea ebp, [rdx - 0x8cb]
add r8d, 0x292
mov edx, dword [rsp + 0x70]
mov r14d, r9d
mov esi, edx
mov rbx, rcx
xor esi, 0x1cee
mov eax, esi
lea edi, [rdx - 0x96a]
xor eax, 0x499
xor edx, 0x5c3
cmp edx, eax
je 0x180005e6c
lea rax, [0x180173e70]
add edi, 0x17c6
mov qword [0x18015e0d8], rax
jmp 0x180005ef9
mov eax, dword [rcx + 0xf4]
or eax, dword [rcx + 0x158]
mov r15d, dword [0x18015e01c]
and eax, ebp
cmp r15d, eax
jbe 0x180005ef9
imul r12d, edi, 0xca9
or r12d, edi
mov eax, r8d
lea rdx, [0x18015e010]
or eax, 0x722
xor r8d, 0x111d
sub eax, edi
mov ecx, r12d
imul ebp, eax
mov rax, qword [section..data]
mov r9d, dword [rax + 0xb0]
imul eax, dword [rbx + 0x168], 0xf8a
xor r9d, dword [rbx + 0x64]
xor r9d, 0x1584
xor eax, 0xca9
mov dword [rsp + 0x20], eax
call fcn.180004214
mov ecx, dword [rbx + 0xf4]
add r15d, 2
or ecx, dword [rbx + 0x158]
mov r8d, eax
and ecx, ebp
cmp r15d, ecx
ja 0x180005e90
lea ecx, [r8 + 0x636]
cmp esi, ecx
jle 0x180006077
xor r14d, 0x173e
cmp edi, r14d
jl 0x180006066
lea eax, [r8 - 0x5d1]
cmp ebp, eax
jge 0x180006066
xor r9d, r9d
mov r10d, 0x14c3da
mov rax, qword [rbx + 0xc8]
mov r8d, dword [r9 + rax]
add r9, 4
mov eax, dword [rbx + 0x14]
sub eax, r10d
or dword [0x18015e074], eax
mov eax, dword [rbx + 0x114]
xor eax, 1
add dword [rbx + 0x5c], eax
mov eax, 0x11
mov rcx, qword [section..data]
sub eax, dword [rcx + 0x28]
add dword [0x18015e058], eax
mov eax, dword [0x18015e0b4]
add eax, 0xffffffec
xor dword [rcx + 0xa4], eax
mov eax, 0x319a998f
mov ecx, dword [rbx + 0x134]
xor ecx, dword [0x18015e0a4]
imul r8d, dword [0x18015e094]
sub eax, ecx
add dword [rbx + 4], eax
mov rax, qword [rbx + 0xd0]
movsxd rcx, dword [0x18015e098]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
inc dword [0x18015e098]
mov ecx, dword [rbx + 0x108]
mov eax, dword [0x18015e0ec]
add eax, 0xfffffffe
add ecx, eax
or dword [rbx + 0x134], ecx
movsxd rcx, dword [0x18015e098]
mov rax, qword [0x18015e0e0]
mov byte [rcx + rax], r8b
inc dword [0x18015e098]
mov eax, dword [rbx + 0xf8]
mov rcx, qword [section..data]
sub eax, 0xa71ce
xor dword [rcx + 0x144], eax
mov eax, dword [rbx + 0x14]
mov rcx, qword [section..data]
sub eax, dword [rcx + 0x50]
sub eax, r10d
add dword [rcx + 0x168], eax
mov eax, 0x319a99c9
mov ecx, dword [rbx + 0x94]
xor ecx, dword [rbx + 0x114]
sub eax, ecx
add dword [0x18015e088], eax
mov eax, dword [rbx + 0x78]
mov ecx, dword [rbx + 0x134]
add eax, 0xffffffa7
add ecx, eax
mov rax, qword [section..data]
xor dword [0x18015e17c], ecx
mov ecx, dword [rax + 0xf4]
sub ecx, 0x1c55d1
or dword [rbx + 0xdc], ecx
cmp r9, 0x61b30
jl 0x180005f30
mov eax, dword [0x18015e0c4]
add eax, 0x17ee
mov dword [rbx + 0x84], eax
mov rbx, qword [rsp + 0x50]
lea eax, [rsi - 0xd32]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x2fc4d5140
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.2fc4d6220
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5b42
Capabilities:
Get thread local storage value

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

Function at 0x2fc4d5ce0
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 0x2fc4d5d08
mov eax, 0
jmp 0x2fc4d5d56
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 0x2fc4d5d31
mov eax, 0
jmp 0x2fc4d5d56
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 0x2fc4d5d51
mov eax, 0
jmp 0x2fc4d5d56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5d5c
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 0x2fc4d5dda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5dd1
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 0x2fc4d5dd1
mov rax, qword [rbp - 8]
jmp 0x2fc4d5def
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 0x2fc4d5da4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc505640
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.2fc506720
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc506042
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc528108]
test eax, eax
je 0x2fc5060da
lea rax, [0x2fc5280e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc528110]
mov qword [rbp - 8], rax
jmp 0x2fc5060be
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 0x2fc5060b2
cmp qword [rbp - 0x10], 0
je 0x2fc5060b2
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 0x2fc506078
lea rax, [0x2fc5280e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5060db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5061e0
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 0x2fc506208
mov eax, 0
jmp 0x2fc506256
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 0x2fc506231
mov eax, 0
jmp 0x2fc506256
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 0x2fc506251
mov eax, 0
jmp 0x2fc506256
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc50625c
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 0x2fc5062da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5062d1
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 0x2fc5062d1
mov rax, qword [rbp - 8]
jmp 0x2fc5062ef
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 0x2fc5062a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6e60
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.2fc4d7f40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d7862
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d78fa
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 0x2fc4d78de
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 0x2fc4d78d2
cmp qword [rbp - 0x10], 0
je 0x2fc4d78d2
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 0x2fc4d7898
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d78fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7a00
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 0x2fc4d7a28
mov eax, 0
jmp 0x2fc4d7a76
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 0x2fc4d7a51
mov eax, 0
jmp 0x2fc4d7a76
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 0x2fc4d7a71
mov eax, 0
jmp 0x2fc4d7a76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7a7c
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 0x2fc4d7afa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7af1
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 0x2fc4d7af1
mov rax, qword [rbp - 8]
jmp 0x2fc4d7b0f
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 0x2fc4d7ac4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400634c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400634cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400634dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400634c5
lea eax, [rcx + 1]
jmp 0x1400634eb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400634fe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400634e4
sub eax, 3
jb 0x14006351e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14006356d
sar eax, 1
movsxd rbp, eax
jb 0x140063554
jmp 0x14006352c
add ebx, ebx
jne 0x14006352a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140063554
inc ecx
add ebx, ebx
jne 0x14006353a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140063554
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14006354d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14006353c
add ecx, 2
jmp 0x140063559
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140063482
jmp 0x1400634cd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400635b9
cmp rsi, rcx
jae 0x1400635c1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400635a0
cmp al, 0x8f
ja 0x1400635a0
cmp byte [rsi - 2], 0xf
je 0x1400635a6
sub al, 0xe8
cmp al, 1
ja 0x14006358a
cmp rsi, rcx
jae 0x1400635c1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140063590
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400635c1
lodsb al, byte [rsi]
jmp 0x1400635a0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x61000]
mov eax, dword [rdi]
or eax, eax
je 0x14006362a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7d3f4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400635ce
jns 0x140063603
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14006360d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140063624
mov qword [rbx], rax
add rbx, 8
jmp 0x1400635ee
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140063664
cmp al, 0xef
ja 0x140063656
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140063636
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140063645
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400636b8
sub rsp, 0xffffffffffffff80
jmp 0x14000c1f0
Function at 0x180003047
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000d008]
jne 0x18000164a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001646
repz ret
ror rcx, 0x10
jmp 0x180002fa0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000e4d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18000e5c8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180003025
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000e4d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180003047
mov rax, qword [rsp + 0x88]
mov qword [0x18000e5c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000e568], rax
mov rax, qword [0x18000e5c8]
mov qword [0x18000e440], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000e550], rax
mov dword [0x18000e430], 0xc0000409
mov dword [0x18000e434], 1
mov rax, qword [0x18000d008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000d010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000e4c8], eax
mov ecx, 1
call fcn.18000666c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000a430]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000e4c8], 0
jne 0x1800030ce
mov ecx, 1
call fcn.18000666c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180004670
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1800044e4