joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011f1e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x14011f27d
xor eax, eax
cmp r8d, 4
jl 0x14011f231
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x14011f278
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x14011f271
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x14011f269
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x14011f261
add rax, 4
test r8d, r8d
jle 0x14011f45a
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x14011f278
inc rax
test r8d, r8d
jg 0x14011f240
jmp 0x14011f45a
add eax, 3
jmp 0x14011f455
add eax, 2
jmp 0x14011f455
inc eax
jmp 0x14011f455
jmp 0x14011f455
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x14011f396
add rax, 0x10
cmp rax, r10
jbe 0x14011f2a0
mov eax, r8d
test al, 7
je 0x14011f45a
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x14011f45a
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x14011f44c
mov ecx, 0x20
jmp 0x14011f44f
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x14011f43d
mov r8d, 0x20
jmp 0x14011f441
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x14011f455
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x1400014df
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x34], 0x60
mov eax, dword [rbp - 0x34]
mov rax, qword gs:[rax]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000151b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x118]
cmp eax, 0xa
je 0x140001525
mov eax, 0
jmp 0x140001679
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000154d
mov eax, 0
jmp 0x140001679
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x14000156a
mov eax, 0
jmp 0x140001679
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001589
mov eax, 0
jmp 0x140001679
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400015b5
mov eax, 0
jmp 0x140001679
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x1400015dd
mov eax, 0
jmp 0x140001679
mov rax, qword [rbp - 0x30]
mov edx, dword [rax + 0x18]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], edx
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax], rdx
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x18]
mov qword [rax + 0x20], rdx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
test rax, rax
je 0x14000166d
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
je 0x14000166d
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140001674
mov eax, 0
jmp 0x140001679
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x140002614
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetOpenW]
call rax
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2400
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlW]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x20]
mov r8d, eax
lea rcx, [rbp - 0x18]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8d, 0
mov edx, 0x27
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionW]
call rax
nop
add rsp, 0x50
pop rbp
ret

Function at 0x140002810
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
pxor xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x10]
cmp eax, 1
ja 0x140002847
mov eax, 1
jmp 0x14000284c
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140002852
Capabilities:
Enumerate process modules

Disassembly:
push rbp
mov eax, 0x1040
call fcn.140009b50
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp - 0x54], 0
mov dword [rbp + 0xfbc], 0
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x14000289c
mov eax, 0
jmp 0x1400028bd
mov eax, dword [rbp - 0x54]
shr eax, 2
mov dword [rbp + 0xfbc], eax
cmp dword [rbp + 0xfbc], 0x31
ja 0x1400028b8
mov eax, 1
jmp 0x1400028bd
mov eax, 0
add rsp, 0x1040
pop rbp
ret
Function at 0x140008980
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rdx
cmp qword [rbp + 0xf0], 0
je 0x1400089b2
cmp qword [rbp + 0xf8], 0
jne 0x1400089bc
mov eax, 2
jmp 0x140008a8e
mov dword [rbp - 0x60], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x1400089ed
mov eax, 0
jmp 0x140008a8e
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x140008a1e
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140008a8e
mov rax, qword [rbp + 0xf0]
lea rdx, [rbp - 0x60]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x140008a5f
mov edx, dword [rbp - 0x58]
mov rax, qword [rbp + 0xf8]
mov dword [rax], edx
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140008a8e
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140008a1e
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x140008d90
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.140016180
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.140016180
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 0x140008e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001c0c4]
mov rbx, rcx
test esi, esi
jle 0x140008f30
mov rax, qword [0x14001c0c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140008e4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140008ed5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140008e30
mov rcx, rbx
call fcn.140009870
mov rdi, rax
test rax, rax
je 0x140008f52
mov rax, qword [0x14001c0c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400099b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001c0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140008f37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140008ece
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140008ee0
add dword [0x14001c0c4], 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 [0x14001c0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140008ece
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140008d90
nop dword [rax]
xor esi, esi
jmp 0x140008e58
mov rax, qword [0x14001c0c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140008d90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140008d90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400094e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001c120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001c100]
test rbx, rbx
je 0x14000953c
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 0x140009533
test eax, eax
jne 0x140009533
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140009518
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 0x140009870
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400098f0
Capabilities:
Parse pe header

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

Function at 0x1400099b0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400034c4
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14000353c
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400034db
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400034dd
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003536
test ecx, ecx
jle 0x140003516
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 0x140003536
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003536
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140003558
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140003586
xor eax, eax
jmp 0x14000366f
cmp qword [rcx + 0x68], 0
je 0x140003598
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14000366f
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400035af
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400035b1
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400035e3
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140003669
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000361a
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140003644
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140003669
cmp rsi, rbx
ja 0x140003621
test rsi, rsi
je 0x140003669
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140003a54
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140108040]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140003a8d
xor eax, eax
jmp 0x140003bad
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140003ac7
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140003ac7
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140003bad
cmp qword [rbx + 0x80], 0
je 0x140003bab
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003b02
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003b23
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x140003ba8
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003b71
sub eax, 1
je 0x140003b71
cmp eax, 2
jne 0x140003bab
movsx ecx, byte [rbp - 0x40]
jmp 0x140003b0f
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140003b9c
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140003bab
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c4160
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400042cc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140108040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000433b
cmp byte [rcx + 0x71], 0
je 0x14000433b
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004390
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004355
sub eax, 1
je 0x140004359
cmp eax, 2
jne 0x140004390
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c4160
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004387
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004390
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000433d
xor al, al
jmp 0x14000433d
Function at 0x140008b6c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140108040]
xor rax, rsp
mov qword [rbp - 8], rax
xor r12d, r12d
mov r15, r8
mov qword [rdx], r12
mov rbx, rdx
mov qword [rdx + 8], r12
mov r14d, r12d
mov dword [rdx + 0x10], r12d
movsxd rsi, dword [r8 + 0x3c]
add rsi, r8
movzx eax, word [rsi + 0x14]
lea rdi, [rsi + 0x18]
add rdi, rax
cmp r12w, word [rsi + 6]
jae 0x140008ca1
xorps xmm0, xmm0
mov qword [rbp - 0x18], r12
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x10], r12
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], r12b
jne 0x140008bda
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140004c84
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rbp - 0x18], 5
jne 0x140008c5e
cmp dword [rax], 0x7865742e
jne 0x140008c5e
cmp byte [rax + 4], 0x74
jne 0x140008c5e
mov r9d, dword [rdi + 0xc]
mov r8d, r12d
mov r11d, dword [rdi + 8]
add r9, r15
mov qword [rbp - 0x40], rdi
mov r10, r12
mov qword [rbp - 0x38], r9
test r11, r11
je 0x140008c49
movzx eax, byte [r9 + r10]
inc r10
crc32 r8d, eax
cmp r10, r11
jb 0x140008c36
movups xmm0, xmmword [rbp - 0x40]
mov dword [rbp - 0x30], r8d
movsd xmm1, qword [rbp - 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
cmp rdx, 0xf
jbe 0x140008c8d
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008c88
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008cc9
call fcn.1400c41c4
movzx eax, word [rsi + 6]
inc r14d
add rdi, 0x28
cmp r14d, eax
jl 0x140008bc7
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400c4160
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000ad04
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140108040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x14000ad6c
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x14000ad9c
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14000ad4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400c4160
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov dword [0x1401f4a90], eax
jmp 0x14000ad7b