joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010e0
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140008028]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x260]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
xor ebp, ebp
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x260]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], ebp
mov r8d, 0x105
mov qword [rsp + 0x20], rax
lea rcx, [0x140005458]
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x44], ebp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400011d8
mov ecx, dword [rsp + 0x40]
lea r9, str.0123456789
mov r8d, ebp
nop
cmp r8d, 0x103
je 0x1400011d1
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [rdx + rdx*4]
add eax, eax
sub ecx, eax
mov eax, ecx
mov ecx, r8d
inc r8d
movzx eax, word [r9 + rax*2]
mov word [rbx + rcx*2], ax
mov ecx, edx
test edx, edx
jne 0x1400011a0
mov eax, r8d
mov word [rbx + rax*2], bp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x140001284
lea r8, str.GlobalARM_Update_Mutex
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x1400012c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x104
mov rax, rbx
cmp word [rax], bp
je 0x140001227
add rax, 2
sub rcx, 1
jne 0x140001218
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x140001284
mov r9d, 0x104
lea r8, [rbx + rax*2]
sub r9, rax
je 0x140001276
lea rdx, str.thsnYaVieBoda
mov eax, 0x7ffffffe
sub rdx, r8
test rax, rax
je 0x140001276
movzx ecx, word [rdx + r8]
test cx, cx
je 0x140001276
mov word [r8], cx
dec rax
add r8, 2
sub r9, 1
jne 0x140001256
test r9, r9
lea rax, [r8 - 2]
cmovne rax, r8
mov word [rax], bp
test rsi, rsi
je 0x140001299
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.140001650
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140003b70
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140001210
test edi, edi
jne 0x140001210
mov ecx, 0x104
mov rax, rbx
cmp word [rax], bp
je 0x1400012f0
add rax, 2
sub rcx, 1
jne 0x1400012e1
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, rbp
je 0x140001284
mov edx, 0x104
lea rcx, [rbx + rax*2]
sub rdx, rax
je 0x140001341
lea r9, str.TsnIorcAeBoda
mov eax, 0x7ffffffe
sub r9, rcx
nop
test rax, rax
je 0x140001341
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140001341
mov word [rcx], r8w
dec rax
add rcx, 2
sub rdx, 1
jne 0x140001320
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
jmp 0x140001281
Function at 0x140001360
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
lea r8, str.GlobalARM_Update_Mutex
mov ecx, 0x100000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x140001390
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400013ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400013ca
lea r8, str.GlobalAcro_Update_Mutex
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
je 0x1400013bf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400013ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140001409
lea rdx, [0x140005817]
mov ecx, 0x208
call fcn.140003ad0
mov rbx, rax
test rax, rax
je 0x140001409
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov rcx, rbx
call section..text
test eax, eax
je 0x140001416
mov rcx, rbx
call fcn.140003ac8
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x3e8
jae 0x14000142d
add eax, 0x3e8
mov r8d, 1
mov edx, eax
mov rcx, rbx
call fcn.1400014a0
xor esi, esi
test eax, eax
sete sil
test eax, eax
jne 0x140001477
cmp edi, 2
je 0x140001477
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 1
jne 0x140001463
mov edx, 0xce
jmp 0x14000146c
test edi, edi
jne 0x140001477
mov edx, 0xcc
xor r8d, r8d
mov rcx, rbx
call fcn.1400014a0
mov rcx, rbx
call fcn.140003ac8
mov rbx, qword [rsp + 0x38]
mov eax, esi
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400014a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov edi, r8d
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x190000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001503
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov esi, 0xd
cmove eax, esi
jmp 0x14000162f
xor r9d, r9d
mov dword [rsp + 0x48], 3
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x14000154a
lea r9, [rsp + 0x44]
mov dword [rsp + 0x44], r14d
mov r8d, 4
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x78]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001561
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
mov esi, 0xd
cmove ebx, esi
jmp 0x140001624
test edi, edi
je 0x140001624
mov dword [rsp + 0x40], r14d
mov edi, r14d
mov esi, 0xd
nop word [rax + rax]
lea r9, [rsp + 0x88]
mov dword [rsp + 0x88], r14d
mov r8d, 4
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400015dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
cmove ebx, esi
cmp ebx, 0xe8
jne 0x1400015d6
mov ecx, 0xa
inc edi
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x140001580
jmp 0x140001624
test ebx, ebx
jne 0x140001624
jmp 0x1400015e6
cmp dword [rsp + 0x88], 4
jne 0x140001622
mov ecx, dword [rsp + 0x78]
lea r9, [rsp + 0x44]
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x88]
inc ecx
mov dword [rsp + 0x88], eax
cmp eax, ecx
mov qword [rsp + 0x20], r14
mov ebx, esi
mov r8d, 4
mov rcx, rbp
cmove ebx, r14d
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140001624
mov ebx, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140002470
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140008028]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov ebx, edx
mov r15, rcx
xor r12d, r12d
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x40], r12
mov r8d, 0x208
movzx r14d, r12w
call sub.VCRUNTIME140.dll_memset
test ebx, ebx
mov dword [rsp + 0x30], r12d
mov esi, r12d
mov dword [rsp + 0x34], r12d
lea r8, str.SoftwareAdobeAcrobat_ReaderDCFeatureState
mov dword [rsp + 0x38], 4
mov edx, 0x104
lea rcx, [rsp + 0x50]
sete sil
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ebx, [r12 + 1]
test eax, eax
jne 0x14000258a
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x34]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000256b
cmp dword [rsp + 0x30], 4
jne 0x14000256b
cmp dword [rsp + 0x34], r12d
je 0x140002566
movzx edi, bx
jmp 0x140002571
mov edi, r12d
jmp 0x140002571
mov r14d, ebx
movzx edi, si
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14w, r14w
jne 0x14000258a
movzx eax, di
jmp 0x140002656
xor edx, edx
mov qword [rsp + 0x40], r12
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea r8, str.SoftwareAdobeAdobe_AcrobatDCFeatureState
mov dword [rsp + 0x34], r12d
mov edx, 0x104
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002650
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002640
cmp dword [rsp + 0x34], 4
jne 0x140002640
cmp dword [rsp + 0x30], r12d
jne 0x140002643
mov rcx, qword [rsp + 0x40]
movzx ebx, r12w
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140002653
movzx ebx, si
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140002653
movzx ebx, si
movzx eax, bx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140003b70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x1400031a4
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x1400031a4
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x1400030ab
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x1400031cb
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400030c2
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x1400030c2
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400030d5
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140003122
mov r8d, eax
cmp eax, 0x800
jae 0x1400030ef
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140003122
cmp eax, 0x10000
jae 0x140003109
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140003122
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x1400031a4
add qword [r14], 2
test sil, sil
jne 0x140003143
cmp r10d, 3
jae 0x14000314f
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x140003181
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x140003160
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14000305f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x1400031b2
Function at 0x2fbac1d08
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x2fbac8040], 0
je 0x2fbac1d2b
mov edx, 1
jmp 0x2fbac1ef3
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x10]
xor eax, eax
mov rbx, qword [rcx + 0x30]
test rbx, rbx
je 0x2fbac1d8e
movsxd rdx, dword [rbx + 0x3c]
mov edx, dword [rbx + rdx + 0x88]
test edx, edx
je 0x2fbac1d86
lea rax, [rdx + rbx]
mov edx, dword [rax + 0xc]
add rdx, rbx
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x2fbac1d86
mov edx, dword [rdx + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x2fbac1d91
mov rcx, qword [rcx]
mov rdx, rbx
jmp 0x2fbac1d40
mov rbx, rdx
xor edx, edx
test rax, rax
je 0x2fbac1ef3
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x2fbac8048]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x2fbac1e04
call fcn.2fbac1c50
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x2fbac1e16
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x2fbac1e16
mov r10, rax
jmp 0x2fbac1dc8
mov dword [0x2fbac8040], esi
lea ebp, [rsi - 1]
lea r10, [0x2fbac8048]
test ebp, ebp
je 0x2fbac1e7d
lea rdx, [0x2fbac8040]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x2fbac1e71
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x2fbac1e33
dec ebp
jmp 0x2fbac1e26
mov eax, dword [0x2fbac804c]
mov r13d, dword [0x2fbac805c]
xor edi, edi
lea r15, [0x2fbac4440]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x2fbac1d21
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x2fbac1e9a
lea rdi, [0x2fbac8040]
test r14d, r14d
je 0x2fbac1d21
add rdi, 0x10
cmp esi, ebp
je 0x2fbac1d21
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.2fbac1c78
mov qword [rdi], rax
jmp 0x2fbac1ecf
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x2fbac25e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x800
call sub.msvcrt.dll_malloc
mov r8d, 0x800
mov rcx, rbx
mov rdi, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x2fbac5010]
mov rcx, rdi
call sub.msvcrt.dll_fopen
mov rbp, qword [0x2fbac52c0]
lea rdx, [rsp + 0x38]
mov r12, rax
movsxd rax, dword [rbp]
mov rcx, r12
mov qword [rsp + 0x38], rax
call sub.msvcrt.dll_fsetpos
movsxd r8, dword [rbp + 4]
mov rcx, r8
mov qword [rsp + 0x28], r8
call sub.msvcrt.dll_malloc
mov r8, qword [rsp + 0x28]
mov edx, 1
mov r9, r12
mov rcx, rax
mov rsi, rax
call sub.msvcrt.dll_fread
mov rcx, r12
mov rbx, rax
call sub.msvcrt.dll_fclose
mov edx, dword [rbp + 4]
movsxd rax, ebx
cmp edx, eax
jle 0x2fbac2685
mov cl, byte [rbp + rax + 0x18]
mov byte [rsi + rax], cl
inc rax
jmp 0x2fbac2675
lea r8, [rbp + 8]
mov rcx, rsi
call fcn.2fbac13b5
mov rcx, rdi
call sub.msvcrt.dll_free
mov rcx, rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_free

Function at 0x2fbac2900
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2fbac3540
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2fbac3540
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x2fbac2970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2fbac9ff4]
mov rbx, rcx
test esi, esi
jle 0x2fbac2aa0
mov rax, qword [0x2fbac9ff8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2fbac29bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2fbac2a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2fbac29a0
mov rcx, rbx
call fcn.2fbac31d0
mov rdi, rax
test rax, rax
je 0x2fbac2ac2
mov rax, qword [0x2fbac9ff8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2fbac3310
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2fbac9ff8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2fbac2aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2fbac2a3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2fbac2a50
add dword [0x2fbac9ff4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x2fbac9ff8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2fbac2a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2fbac2900
nop dword [rax]
xor esi, esi
jmp 0x2fbac29c8
mov rax, qword [0x2fbac9ff8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2fbac2900
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2fbac2900
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2fbac2e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2fbaca020]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2fbaca000]
test rbx, rbx
je 0x2fbac2e9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x2fbac2e93
test eax, eax
jne 0x2fbac2e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2fbac2e78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2fbac31d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2fbac5200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2fbac31f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2fbac31f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2fbac31f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2fbac324d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2fbac3244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2fbac31f0
add rax, 0x28
cmp rax, r9
jne 0x2fbac3230
xor eax, eax
ret

Function at 0x2fbac3250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2fbac5200]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2fbac326f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2fbac3278
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2fbac326f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2fbac3310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2fbac5200]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2fbac332f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2fbac3338
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400032c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400032f0
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140003368
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140003307
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003309
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003362
test ecx, ecx
jle 0x140003342
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003362
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003362
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140003384
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400033b2
xor eax, eax
jmp 0x14000349b
cmp qword [rcx + 0x68], 0
je 0x1400033c4
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14000349b
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400033db
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400033dd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000340f
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140003495
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140003446
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140003470
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140003495
cmp rsi, rbx
ja 0x14000344d
test rsi, rsi
je 0x140003495
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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