joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140122434
Capabilities:
Parse pe header

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

Function at 0x1401251d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401251f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401251f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14012ab00
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x14015abf5]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14012ab55
mov rdi, rax
lea rdx, [0x14015ac16]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14012ab55
mov rsi, rax
lea rdx, [0x14015ac24]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14012ab55
mov r14, rax
xor edi, edi
jmp 0x14012abdd
lea rcx, [0x14015abb0]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14012ac45
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14012ac45
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14012ac45
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14012ac45
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x14012ac45
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x1401a2308]
mov edx, 0x18
xor ecx, ecx
call fcn.1400ea350
test rax, rax
je 0x14012ac4a
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1401a21c0], rbx
je 0x14012ac38
mov rsi, rax
cmp qword [rbx], 0
je 0x14012ac23
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x1401a2270]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14012ac60
mov ecx, 8
mov edx, 0x18
call fcn.140125f20
int3
Function at 0x14012e860
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x14012ea7c
mov rbx, r8
mov r15, r8
inc r15
js 0x14012ea88
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1401a2308]
xor ecx, ecx
mov rdx, r15
call fcn.1400ea350
test rax, rax
je 0x14012ea8d
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.1401253f0
cmp rbx, 0x10
jae 0x14012e8f8
test rbx, rbx
je 0x14012e99f
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x14012ea04
inc rax
cmp rbx, rax
jne 0x14012e8e0
jmp 0x14012e99f
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x14012e951
lea rcx, [rbx - 0x10]
xor eax, eax
movabs rdx, 0x101010101010100
movabs r8, 0x8080808080808080
nop
mov r9, qword [r14 + rax]
mov r10, qword [r14 + rax + 8]
mov r11, rdx
sub r11, r10
or r11, r10
mov r10, rdx
sub r10, r9
or r10, r9
and r10, r11
not r10
test r10, r8
jne 0x14012e97c
add rax, 0x10
cmp rax, rcx
jbe 0x14012e920
jmp 0x14012e97c
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r14 + rcx], 0
je 0x14012ea04
inc rcx
cmp rax, rcx
jne 0x14012e960
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x14012e90b
cmp rax, rbx
je 0x14012e99f
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x14012ea04
inc rax
cmp rbx, rax
jne 0x14012e990
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.140004ad0
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14012ea37
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14012ea4b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, qword [0x1401a2270]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rdi]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x14012ea6c
mov rcx, qword [0x1401a2270]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.alloc_src_ffic_str.rs
call fcn.1401266e0
call fcn.1400049d0
mov ecx, 1
mov rdx, r15
call fcn.140125f00
int3

Function at 0x140130270
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movdqa xmmword [rsp + 0x80], xmm6
mov r8, rcx
mov eax, ecx
Function at 0x1401b8350
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401b835d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401b836d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401b8355
lea eax, [rcx + 1]
jmp 0x1401b837b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401b838e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401b8374
sub eax, 3
jb 0x1401b83ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401b83fd
sar eax, 1
movsxd rbp, eax
jb 0x1401b83e4
jmp 0x1401b83bc
add ebx, ebx
jne 0x1401b83ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401b83e4
inc ecx
add ebx, ebx
jne 0x1401b83ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401b83e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401b83dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401b83cc
add ecx, 2
jmp 0x1401b83e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401b8312
jmp 0x1401b835d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x56c00
mov dl, 0x13
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401b8449
cmp rsi, rcx
jae 0x1401b8451
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401b8430
cmp al, 0x8f
ja 0x1401b8430
cmp byte [rsi - 2], 0xf
je 0x1401b8436
sub al, 0xe8
cmp al, 1
ja 0x1401b841a
cmp rsi, rcx
jae 0x1401b8451
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401b8420
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401b8451
lodsb al, byte [rsi]
jmp 0x1401b8430
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1b5000]
mov eax, dword [rdi]
or eax, eax
je 0x1401b84ba
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1b81e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401b845e
jns 0x1401b8493
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401b849d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401b84b4
mov qword [rbx], rax
add rbx, 8
jmp 0x1401b847e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1401b84fe
cmp al, 0xef
ja 0x1401b84e6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401b84c6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1401b84d5
mov eax, dword [rdi]
add rdi, 4
jmp 0x1401b84d5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401b8552
sub rsp, 0xffffffffffffff80
jmp 0x140056b08
Function at 0x100003880
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x10000a110]
xor rax, rsp
mov qword [rsp + 0x480], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x48]
mov rsi, rcx
lea rdx, [0x1000033a0]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x100003a14
xor edi, edi
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x20a
mov dword [rsp + 0x40], 0x104
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x1000039e7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1000039e7
lea rcx, [rsp + 0x270]
xor edx, edx
mov r8d, 0x20a
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x58]
and dword [rsp + 0x50], ebx
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
lea rdx, [0x100003378]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x270]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1000039e5
cmp dword [rsp + 0x50], 1
jne 0x1000039e5
lea rdx, [rsp + 0x270]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000039f2
xor ebx, ebx
inc edi
test ebx, ebx
jne 0x100003a14
jmp 0x1000038e6
mov rdi, qword [rsp + 0x48]
call sub.loadperf.dll_LpAcquireInstallationMutex
mov ebx, eax
test eax, eax
jne 0x100003a14
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, rdi
call fcn.100003684
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100003a2a
cmp rcx, 0xffffffffffffffff
je 0x100003a2a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rsi
test ebx, ebx
jne 0x100003a3f
xor edx, edx
mov ecx, 0x323
call fcn.100007828
jmp 0x100003a51
mov r9d, ebx
mov edx, 2
mov ecx, 0x324
call fcn.100007828
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.100008140
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1000074d4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x10000a110]
xor rax, rsp
mov qword [rsp + 0x280], rax
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov rbx, qword [r8]
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov rsi, rdx
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
jmp 0x100007578
lea rax, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov r9d, 0x2000000
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000075b0
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1000074d4
test eax, eax
jne 0x1000075b0
lea rcx, [rsp + 0x70]
mov r8d, 0x20a
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rsp + 0x60]
lea r8, [rsp + 0x70]
dec edx
mov r9d, 0x105
mov rcx, rbx
mov dword [rsp + 0x60], edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x100007541
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.100008140
add rsp, 0x290
pop rdi
pop rsi
pop rbx
ret
Function at 0x100008140
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10000a110]
jne 0x10000815b
rol rcx, 0x10
test cx, 0xffff
jne 0x100008157
ret 0
ror rcx, 0x10
jmp 0x10000844c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10000a370]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10000a468]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1000084d1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10000a370]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x1000084f3
mov rax, qword [rsp + 0x88]
mov qword [0x10000a468], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10000a408], rax
mov rax, qword [0x10000a468]
mov qword [0x10000a2e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10000a3f0], rax
mov dword [0x10000a2d0], 0xc0000409
mov dword [0x10000a2d4], 1
mov rax, qword [0x10000a110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10000a118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001310]
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, 0x88
ret

Function at 0x1000082e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100008335
cmp rcx, 0xffffffffffffffff
je 0x100008335
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000832d
cmp dword [rcx + 0x3c], edx
jl 0x10000832d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000832d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100008335
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14004d7b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14004d7d1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14004d7fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004d800
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004d859
test ecx, ecx
jle 0x14004d839
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 0x14004d859
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004d859
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
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rcx + 0x31], cl
invalid
Function at 0x14004d880
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14004d8a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14004d8b1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004d8d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004d8d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004d912
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14004d9ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004d94d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14004d98e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14004d9ae
cmp rbx, rax
ja 0x14004d960
test rbx, rbx
je 0x14004d9ae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140001710
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.140002530
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.140002530
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 0x140001780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400790a4]
mov rbx, rcx
test esi, esi
jle 0x1400018b0
mov rax, qword [0x1400790a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017b0
mov rcx, rbx
call fcn.1400021d0
mov rdi, rax
test rax, rax
je 0x1400018d2
mov rax, qword [0x1400790a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002310
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400790a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000184e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001860
add dword [0x1400790a4], 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 [0x1400790a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001710
nop dword [rax]
xor esi, esi
jmp 0x1400017d8
mov rax, qword [0x1400790a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001710
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001710
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140079100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400790e0]
test rbx, rbx
je 0x140001e9c
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 eax, eax
jne 0x140001e93
test rsi, rsi
je 0x140001e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e78
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 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002250
Capabilities:
Parse pe header

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

Function at 0x140002310
Capabilities:
Parse pe header

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