joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001450
Capabilities:
Decode data using base64 via winapi
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rdx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 1
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
jne 0x1400014e0
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov r8d, ebx
lea rax, str.Base64_decode_failed:__lu_n
mov rdx, rax
call dbg.fprintf
mov ecx, 1
call sym.exit
nop
add rsp, 0x48
pop rbx
pop rbp
ret

Function at 0x1400014e8
Capabilities:
Create process on windows
Get common file path
Persist via application shimming
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc8], 0x400
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xc0], 0
jne 0x140001537
lea rax, str.Failed_to_allocate_memory_for_the_executable
mov rcx, rax
call sym.perror
jmp 0x14000166a
mov rax, qword [section..data]
lea rcx, [rbp + 0xb4]
mov rdx, qword [rbp + 0xc0]
mov r8, rcx
mov rcx, rax
call sym.decode_base64
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x50]
add rax, rdx
movabs rdx, 0x726f576f6c6c6548
mov qword [rax], rdx
movabs rdx, 0x6578652e646c72
mov qword [rax + 7], rdx
lea rax, [rbp - 0x50]
lea rdx, [0x1400308dd]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
je 0x14000164b
mov eax, dword [rbp + 0xb4]
mov ecx, eax
mov rdx, qword [rbp + 0xb8]
mov rax, qword [rbp + 0xc0]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sym.fclose
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Executable_created_at:__s_n
mov rcx, rax
call dbg.printf
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.open
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
jmp 0x14000165a
lea rax, str.Failed_to_create_executable_file
mov rcx, rax
call sym.perror
mov rax, qword [rbp + 0xc0]
mov rcx, rax
call sym.free
nop
add rsp, 0x150
pop rbp
ret
Function at 0x140001721
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, str.example.com
mov qword [rbp - 0x30], rax
lea rax, str.test.com
mov qword [rbp - 0x28], rax
lea rax, str.nonexistent123456.com
mov qword [rbp - 0x20], rax
mov dword [rbp - 4], 0
jmp 0x1400017d0
mov eax, dword [rbp - 4]
cdqe
mov rax, qword [rbp + rax*8 - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400017b0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_inet_ntoa]
call rax
mov rdx, rax
mov eax, dword [rbp - 4]
cdqe
mov rax, qword [rbp + rax*8 - 0x30]
mov r8, rdx
mov rdx, rax
lea rax, str.Resolved__s_to__s_n
mov rcx, rax
call dbg.printf
jmp 0x1400017cc
mov eax, dword [rbp - 4]
cdqe
mov rax, qword [rbp + rax*8 - 0x30]
mov rdx, rax
lea rax, str.Failed_to_resolve__s_n
mov rcx, rax
call dbg.printf
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 2
jbe 0x140001753
nop
nop
add rsp, 0x50
pop rbp
ret

Function at 0x1400017e4
Capabilities:
Set environment variable
Set registry value
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [0x14003094d]
mov rdx, rax
lea rax, str.C:WindowsTempAV_Test_File.exe
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001829
lea rax, str.Failed_to_create_test_file
mov rcx, rax
call sym.perror
mov eax, 1
jmp 0x140001902
mov rax, qword [rbp - 8]
mov r9, rax
mov r8d, 0x2d
mov edx, 1
lea rax, str.This_is_a_test_file_for_antivirus_detection._n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
call sym.CreateSuspiciousFiles
lea rax, str.test_value
mov rdx, rax
lea rax, str.AV_TEST_ENV
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call rax
lea rax, [rbp - 0x10]
mov r8, rax
lea rax, str.SoftwareAVTestKey
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
call rax
test eax, eax
jne 0x1400018e4
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], 7
lea rdx, str.AVTest
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.TestValue
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
call sym.create_and_execute_executable
call sym.SimulateDNSRequests
lea rax, str.Test_completed.
mov rcx, rax
call sym.puts
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140001c60
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140034094]
mov rbx, rcx
test esi, esi
jle 0x140001e00
mov rax, qword [0x140034098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001da5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001e22
mov rax, qword [0x140034098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140034098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001db0
add dword [0x140034094], 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 [0x140034098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001d28
mov rax, qword [0x140034098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400023c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140034100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400340e0]
test rbx, rbx
je 0x14000241c
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 0x140002413
test eax, eax
jne 0x140002413
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023f8
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 0x140002630
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002648
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002650
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002660
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400026ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400026a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400026af
add rax, 0x28
cmp rax, r9
jne 0x140002690
xor eax, eax
ret

Function at 0x1400026b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002740
mov rdx, qword [0x140030e20]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000272e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000272e
cmp word [rax + 0x18], 0x20b
jne 0x14000272e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002740
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002719
add rbx, 0x28
cmp rbx, rdi
je 0x140002740
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002710
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002750
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140030e20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002770
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002778
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002770
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400027cd
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 0x1400027c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002770
add rax, 0x28
cmp rax, r9
jne 0x1400027b0
xor eax, eax
ret

Function at 0x1400027d0
Capabilities:
Parse pe header

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

Function at 0x140002810
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140030e20]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002830
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002838
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002830
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002880
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002877
test rcx, rcx
je 0x140002830
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002868
xor eax, eax
ret
Function at 0x140002890
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140030e20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400028af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400028b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400028d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140030e20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400028f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400028f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400028f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002944
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002950
add rdx, 0x28
cmp r9, rdx
jne 0x140002930
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002960
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140030e20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002982
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002990
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002982
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002982
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002982
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400029e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400029f8
add rdx, 0x28
cmp r10, rdx
jne 0x1400029d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002a07
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002a17
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400029ee
test ecx, ecx
jg 0x140002a00
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1408ec160
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408ec2e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408ec191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ec177
add dl, dl
jne 0x1408ec19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ec1fe
xor eax, eax
add dl, dl
jne 0x1408ec1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ec2b5
add dl, dl
jne 0x1408ec1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ec1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ec1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ec1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408ec1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408ec186
mov eax, 1
add dl, dl
jne 0x1408ec20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ec21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ec203
sub eax, ebx
mov ebx, 1
jne 0x1408ec254
mov ecx, 1
add dl, dl
jne 0x1408ec236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408ec243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ec22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ec186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408ec270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408ec27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ec265
cmp eax, 0x7d00
jae 0x1408ec2a3
cmp eax, 0x500
jb 0x1408ec29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ec186
cmp eax, 0x7f
ja 0x1408ec2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ec186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408ec2da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408ec186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001ac0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.180002470
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x180002190
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x18000f230]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x1800021fc
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1800021fc
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x1800021fc
movzx edx, word [rax + 6]
test edx, edx
je 0x1800021fc
sub rcx, qword [0x18000f230]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x1800021e8
add rax, 0x28
dec edx
je 0x1800021fc
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x1800021e0
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x1800021e0
jmp 0x1800021fe
xor eax, eax
ret

Function at 0x180002200
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x18000f230]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x180002235
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x180002235
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x180002235
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1800022b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x18000f230]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1800022dc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1800022dc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1800022de
xor eax, eax
ret

Function at 0x1800074e8
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, rcx
mov eax, dword [0x180014180]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rsi, [rax + 8]
mov edx, 0x50
mov rcx, rsi
call fcn.180008087
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
lea rcx, [rax + 0x10]
lea rdx, [0x1800140d8]
mov qword [rax + 0x10], rdx
lea rdx, str.IOError
mov qword [rax + 0x20], rdx
movups xmm1, xmmword [rdi]
movaps xmmword [rsp + 0x20], xmm1
movups xmmword [rdi], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rax + 0x28], xmm0
mov qword [rax + 0x18], 0
lea rdx, str.raiseEIO
mov r8d, 0x9e
call fcn.180009b27
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x180007593
test byte [rdx + 7], 0x40
jne 0x180007593
mov rcx, rsi
add rsp, 0x38
pop rdi
pop rsi
jmp fcn.18000869a
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x18000759b
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rax, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rax
mov r9, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rsi, rax
cmp rax, rdi
je 0x18000777a
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x18000777a
movabs r15, 0x4000000000000000
mov eax, dword [0x180014180]
mov rcx, qword gs:[0x58]
mov r14, qword [rcx + rax*8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
movsxd rdx, dword [rax]
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.1800071da
mov rdi, qword [rdi + 8]
cmp byte [r14 + 0x2ac8], 0
jne 0x18000774e
lea r14, [rsp + 0x20]
mov r13, qword [r14]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
mov rcx, r14
mov rdx, rax
call fcn.1800082f0
mov rbp, qword [r14]
mov r14, qword [r14 + 8]
lea r12, [rbp + 0xa]
add r12, r13
test r12, r12
jle 0x180007692
lea rdx, [r12 + 9]
mov eax, dword [0x180014180]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 8]
call fcn.180008087
mov r15, rax
mov qword [rax], r12
mov byte [rax + 8], 0
jmp 0x180007695
xor r15d, r15d
movabs rax, 0x203a6f6e727265
mov qword [r15 + 8], rax
test r13, r13
jle 0x1800076bf
lea rcx, [r15 + 0xf]
lea rdx, [rdi + 8]
lea r8, [r13 + 1]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add r13, 7
jmp 0x1800076c5
mov r13d, 7
mov byte [r15 + r13 + 0xa], 0
mov word [r15 + r13 + 8], 0x6020
add r13, 2
test rbp, rbp
jle 0x1800076f4
lea rcx, [r15 + r13]
add rcx, 8
lea rdx, [r14 + 8]
lea r8, [rbp + 1]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add r13, rbp
mov word [r15 + r13 + 8], 0x60
inc r13
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
lea rcx, [rsp + 0x20]
mov qword [rcx], r13
mov qword [rcx + 8], r15
call fcn.1800074e8
test r14, r14
movabs r15, 0x4000000000000000
je 0x18000774e
test qword [r14], r15
jne 0x18000774e
mov eax, dword [0x180014180]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 8]
mov rdx, r14
call fcn.18000869a
test rdi, rdi
je 0x18000777a
test qword [rdi], r15
jne 0x18000777a
mov eax, dword [0x180014180]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 8]
mov rdx, rdi
call fcn.18000869a
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18000778e
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rdi, rcx
mov eax, dword [0x180014180]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea r12, [rax + 0x2ac8]
movups xmm0, xmmword [0x18000f888]
movups xmmword [rdi], xmm0
lea rsi, [rax + 8]
mov edx, 0xfa9
mov rcx, rsi
call fcn.180008087
mov rbx, rax
lea r15, [rax + 8]
mov r8d, 0xfa1
mov rcx, r15
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, 0xfa0
mov qword [rbx], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov r8d, 0xfa0
mov rcx, r14
mov rdx, r15
call fcn.18000759b
cmp byte [r12], 0
jne 0x1800078ac
cmp rax, 0xfa0
jne 0x18000785e
mov edx, 0xfa0
mov rcx, rdi
call fcn.18000924d
mov r13, qword [rdi]
mov rax, qword [rdi + 8]
lea rcx, [rax + r13]
add rcx, 8
mov r8d, 0xfa1
mov rdx, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add r13, 0xfa0
mov qword [rdi], r13
jmp 0x180007804
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rax
call fcn.1800095ec
mov r14, qword [rbx]
mov rcx, rdi
mov rdx, r14
call fcn.18000924d
mov rbx, qword [rbx + 8]
test r14, r14
jle 0x1800078a7
mov r15, qword [rdi]
mov rax, qword [rdi + 8]
lea rcx, [rax + r15]
add rcx, 8
lea rdx, [rbx + 8]
lea r8, [r14 + 1]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add r15, r14
mov qword [rdi], r15
test rbx, rbx
je 0x1800078cc
test byte [rbx + 7], 0x40
jne 0x1800078cc
mov rcx, rsi
mov rdx, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.18000869a
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1800078dd
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, [0x18000f9e0]
mov rcx, rax
call fcn.180007906
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3

Function at 0x180007906
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x180007924
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
jmp 0x180007927
xor r8d, r8d
mov edx, 1
mov rcx, rdi
mov r9, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush