joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402d66e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x1402d6740
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a2070
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1402df920
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x1402df95f
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x1402df92f
mov dword [rsi], 7
jmp 0x1402df92f
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140109630
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1402df93b
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1402df93b
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x1402dfa11
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x1402df931
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1402df92f

Function at 0x1402e5500
Capabilities:
Decompress data using quicklz

Disassembly:
mov r8d, dword [rdx]
mov eax, r8d
and eax, 0xf800d000
xor eax, 0xf0008000
mov r9d, r8d
not r9d
test r9d, 0x3c00000
setne r9b
mov r10d, ecx
and r10d, 1
or r10d, eax
sete r10b
lea eax, [rcx + 0x100000]
cmp eax, 0x200000
setb al
and al, r9b
and al, r10b
cmp al, 1
jne 0x1402e559f
mov r9d, ecx
shr r9d, 1
and r9d, 0x7ff
and r8d, 0xfbc0d000
mov r10d, ecx
shl r10d, 6
and r10d, 0x4000000
mov r11d, ecx
shl r11d, 4
and r11d, 0x3f0000
or r11d, r10d
mov r10d, ecx
shr r10d, 5
and r10d, 0x2000
or r10d, r11d
shr ecx, 8
and ecx, 0x800
or ecx, r10d
or ecx, r9d
or ecx, r8d
mov dword [rdx], ecx
ret

Function at 0x1402e5630
Capabilities:
Decompress data using quicklz

Disassembly:
mov eax, edx
or eax, ecx
test al, 1
je 0x1402e563b
xor eax, eax
ret
sub edx, ecx
mov eax, edx
and eax, 1
lea ecx, [rdx + rax]
add ecx, 0xfffffffc
mov rdx, r8
jmp fcn.1402e5500
Function at 0x1402e9150
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1402fd120]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1401da660
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1402ee180
test al, al
je 0x1402e92a2
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1402e921d
mov rcx, r14
call fcn.1401da660
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1402ee180
test al, al
je 0x1402e9266
cmp dword [rbx], 0x4550
jne 0x1402e92d3
mov sil, 1
test rdi, rdi
je 0x1402e92b2
mov qword [rdi], r14
jmp 0x1402e92b2
mov ecx, 1
call fcn.14014c5f0
test al, al
je 0x1402e92b0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140075d80
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1402e9315
mov ecx, 1
call fcn.14014c5f0
test al, al
je 0x1402e92b0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140075d80
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1402e930f
mov ecx, 1
call fcn.14014c5f0
test al, al
jne 0x1402e92e3
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401a2070
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.14014c5f0
test al, al
je 0x1402e92b0
jmp 0x1402e9349
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140075d80
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1401daa50
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1402e932a
and r8d, 0x7f
jmp 0x1402e9331
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1401daa50
mov rcx, rdi
call fcn.1400763d0
jmp 0x1402e92b0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140075d80
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1402e9315
Function at 0x1402e9380
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1402fd120]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1401da660
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1402ee180
test al, al
je 0x1402e94d2
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x1402e944d
mov rcx, r14
call fcn.1401da660
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1402ee180
test al, al
je 0x1402e9496
cmp dword [rbx], 0x4550
jne 0x1402e9503
mov sil, 1
test rdi, rdi
je 0x1402e94e2
mov qword [rdi], r14
jmp 0x1402e94e2
mov ecx, 1
call fcn.14014c5f0
test al, al
je 0x1402e94e0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.140075d80
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1402e9545
mov ecx, 1
call fcn.14014c5f0
test al, al
je 0x1402e94e0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.140075d80
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1402e953f
mov ecx, 1
call fcn.14014c5f0
test al, al
jne 0x1402e9513
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401a2070
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.14014c5f0
test al, al
je 0x1402e94e0
jmp 0x1402e9579
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.140075d80
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1401daa50
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1402e955a
and r8d, 0x7f
jmp 0x1402e9561
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1401daa50
mov rcx, rdi
call fcn.1400763d0
jmp 0x1402e94e0
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.140075d80
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1402e9545
Function at 0x1400010cd
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14003b548
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14003b5d5
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14003b5d5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003b5d5
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14003b5bc
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14003b5b6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14003b5be
add rdx, 0x28
jmp 0x14003b59b
xor edx, edx
test rdx, rdx
jne 0x14003b5c7
xor al, al
jmp 0x14003b5db
cmp dword [rdx + 0x24], 0
jge 0x14003b5d1
xor al, al
jmp 0x14003b5db
mov al, 1
jmp 0x14003b5db
xor al, al
jmp 0x14003b5db
add rsp, 0x18
ret

Function at 0x140001127
Capabilities:
Terminate process

Disassembly:
jmp 0x14003ad50
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000115e
Capabilities:
Terminate process

Disassembly:
jmp 0x14003ad38
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.140001203
test al, al
je 0x14003ac03
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400011e0
mov bl, al
mov ecx, dword [0x140043838]
cmp ecx, 1
je 0x14003ac0e
test ecx, ecx
jne 0x14003ab39
mov dword [0x140043838], 1
lea rdx, [0x140040660]
lea rcx, [0x140040330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14003ab1a
mov eax, 0xff
jmp 0x14003abf3
lea rdx, [0x140040220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140043838], 2
jmp 0x14003ab41
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400011cc
call fcn.140001181
mov rbx, rax
cmp qword [rax], 0
je 0x14003ab74
mov rcx, rax
call fcn.1400010cd
test al, al
je 0x14003ab74
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140047020]
call fcn.14000119f
mov rbx, rax
cmp qword [rax], 0
je 0x14003ab96
mov rcx, rax
call fcn.1400010cd
test al, al
je 0x14003ab96
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.140001159
mov ebx, eax
call fcn.140001163
test al, al
je 0x14003ac18
test sil, sil
jne 0x14003abcd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400010c3
mov eax, ebx
jmp 0x14003abf3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400011d6
nop
mov ecx, 7
call fcn.1400011d6
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.140001172
add rsp, 0x28
jmp 0x14003aaac

Function at 0x140001163
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14003baf8
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003bb42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003bb42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003bb42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003bb42
cmp dword [rcx + 0x84], 0xe
jbe 0x14003bb42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003bb44
xor al, al
add rsp, 0x28
ret
Function at 0x14001102d
Capabilities:
Write file on windows

Disassembly:
jmp 0x140016460
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x1d0
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x34
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1f8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x1400240ad]
call fcn.1400113bb
lea rax, [rbp + 0x28]
lea rcx, str.This_is_some_test_data_to_write_to_the_file.
mov rdi, rax
mov rsi, rcx
mov ecx, 0x2d
rep movsb byte [rdi], byte [rsi]
lea rcx, [rbp + 0x28]
call fcn.14001118b
mov dword [rbp + 0x74], eax
mov dword [rbp + 0x94], 0
mov dword [rbp + 0xb4], 0
lea rcx, [0x14001ae60]
call fcn.1400111b3
cmp dword [rbp + 0x1b0], 2
je 0x14001652b
lea rcx, str.Usage_Error:_tIncorrect_number_of_arguments_n_n
call fcn.1400111b3
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x1b8]
mov rdx, qword [rcx + rax]
lea rcx, str._s__file_name__n
call fcn.140011032
jmp 0x14001665c
mov eax, 8
imul rax, rax, 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x1b8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400165a5
lea rcx, str.CreateFile
call fcn.14001106e
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x1b8]
mov rdx, qword [rcx + rax]
lea rcx, str.Terminal_failure:_Unable_to_open_file___s__for_write._n
call fcn.140011032
jmp 0x14001665c
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x1b8]
mov r8, qword [rcx + rax]
mov edx, dword [rbp + 0x74]
lea rcx, str.Writing__d_bytes_to__s._n
call fcn.140011032
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x94]
mov r8d, dword [rbp + 0x74]
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0xb4], eax
cmp dword [rbp + 0xb4], 0
jne 0x140016613
lea rcx, str.WriteFile
call fcn.14001106e
lea rcx, str.Terminal_failure:_Unable_to_write_to_file._n
call fcn.1400111b3
jmp 0x140016652
mov eax, dword [rbp + 0x74]
cmp dword [rbp + 0x94], eax
je 0x14001662c
lea rcx, str.Error:_dwBytesWritten___dwBytesToWrite_n
call fcn.1400111b3
jmp 0x140016652
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x1b8]
mov r8, qword [rcx + rax]
mov edx, dword [rbp + 0x94]
lea rcx, str.Wrote__d_bytes_to__s_successfully._n
call fcn.140011032
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001bcb0]
call fcn.140011348
mov eax, edi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.1400111d6
lea rsp, [rbp + 0x190]
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011221
Capabilities:
Terminate process

Disassembly:
jmp 0x140013740
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 0x1400112b7
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ad0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014af0
xor al, al
jmp 0x140014b71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014b03
xor al, al
jmp 0x140014b71
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 0x140014b2d
xor al, al
jmp 0x140014b71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014b41
xor al, al
jmp 0x140014b71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014b53
xor al, al
jmp 0x140014b71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014b6f
xor al, al
jmp 0x140014b71
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4d3760
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d4162
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d41fa
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d41de
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 0x2fc4d41d2
cmp qword [rbp - 0x10], 0
je 0x2fc4d41d2
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 0x2fc4d4198
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d41fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4300
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 0x2fc4d4328
mov eax, 0
jmp 0x2fc4d4376
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 0x2fc4d4351
mov eax, 0
jmp 0x2fc4d4376
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 0x2fc4d4371
mov eax, 0
jmp 0x2fc4d4376
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d437c
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 0x2fc4d43fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d43f1
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 0x2fc4d43f1
mov rax, qword [rbp - 8]
jmp 0x2fc4d440f
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 0x2fc4d43c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001620
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r9
mov dword [rsp + 0x38], edx
xor r9d, r9d
lea rdx, [rsp + 0x38]
mov rdi, r8
mov rbx, rcx
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400016a1
xor r9d, r9d
mov dword [rsp + 0x38], edi
lea rdx, [rsp + 0x38]
mov rcx, rbx
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400016a1
xor r9d, r9d
mov dword [rsp + 0x38], esi
lea rdx, [rsp + 0x38]
mov rcx, rbx
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140003014
Capabilities:
Parse pe header

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

Function at 0x14000c7c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c5c0
Function at 0x14001259c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400125cc
xor eax, eax
jmp 0x14001268f
mov rbp, rbx
cmp word [rax], si
je 0x1400125f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400125d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400125d4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400124bc
movsxd r14, eax
test eax, eax
jne 0x14001262f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400125c5
mov rcx, r14
call fcn.14000e914
mov rdi, rax
test rax, rax
jne 0x140012648
xor ecx, ecx
call fcn.14000dd88
jmp 0x140012624
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400124bc
test eax, eax
jne 0x140012679
mov rcx, rdi
call fcn.14000dd88
jmp 0x140012683
xor ecx, ecx
call fcn.14000dd88
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140013bc4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140013bda
mov al, 1
jmp 0x140013c3a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140013beb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013c38
mov ecx, dword [rcx + 0x18]
nop
call fcn.140012bbc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013c38
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013c38
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013c38
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013c3a
xor al, al
add rsp, 0x20
pop rbx
ret