joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025671
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
jmp 0x140040870
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x758
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x13a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x778]
mov rax, qword [0x14008b048]
xor rax, rbp
mov qword [rbp + 0x718], rax
mov dword [rbp + 0x704], 0
lea rcx, [0x14009910d]
call fcn.140025c02
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.MyApp
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140040921
lea rdx, [0x14007a3fc]
mov rcx, qword [rbp + 0x740]
call fcn.140024c76
mov eax, dword [rbp + 0x704]
or eax, 1
mov dword [rbp + 0x704], eax
mov rax, qword [rbp + 0x740]
jmp 0x140040a27
mov rcx, qword [rbp + 0x748]
call fcn.140024258
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140040994
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x14007a3fc]
mov rcx, qword [rbp + 0x740]
call fcn.140024c76
mov eax, dword [rbp + 0x704]
or eax, 1
mov dword [rbp + 0x704], eax
mov rax, qword [rbp + 0x740]
jmp 0x140040a27
lea rcx, [rbp + 0x48]
call fcn.140025bcb
nop
lea r9, [rbp + 0x4a4]
mov r8d, 0x400
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400409e4
cmp dword [rbp + 0x4a4], 0
jbe 0x1400409e4
mov eax, dword [rbp + 0x4a4]
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x48]
call fcn.140025d88
jmp 0x14004099e
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x740]
call fcn.140025a22
mov eax, dword [rbp + 0x704]
or eax, 1
mov dword [rbp + 0x704], eax
lea rcx, [rbp + 0x48]
call fcn.14002450a
mov rax, qword [rbp + 0x740]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400771f0]
call fcn.1400256fd
mov rax, rdi
mov rcx, qword [rbp + 0x718]
xor rcx, rbp
call fcn.140024d34
lea rsp, [rbp + 0x728]
pop rdi
pop rbp
ret
Function at 0x140025b7b
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400427c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14008b048]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x140099108]
call fcn.140025c02
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140042826
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14004282d
mov al, 1
jmp 0x14004299f
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.1400247a3
mov dword [rbp + 0x1a0], eax
mov edx, dword [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov dword [rbp + 0x164], eax
call fcn.1400247a3
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140025739
movzx eax, al
test eax, eax
je 0x140042892
xor al, al
jmp 0x14004299f
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.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 [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x140042905
cmp dword [rbp + 0x1a0], 1
je 0x140042910
cmp dword [rbp + 0x1a0], 3
je 0x14004298e
jmp 0x14004299d
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140042960
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140042960
xor al, al
jmp 0x14004299f
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14004297b
mov dword [rbp + 0x194], 1
jmp 0x140042985
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14004299f
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14004299f
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140077f00]
call fcn.1400256fd
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.140024d34
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b4410]
mov dword [rax], 1
mov rax, qword [str._b__f_]
mov dword [rax], 1
mov rax, qword [str._f__f_]
mov dword [rax], 1
mov rax, qword [0x1400b43a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140009fb0
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.140095130
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.14002faa0
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14000a011
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x14000a020
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.14002faa0
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x14000a0f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.1400279f0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14000a1aa
mov rdx, r14
mov rcx, rbx
call fcn.14000a020
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python310.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
jne 0x14000a1ec
sub qword [r14], 1
jne 0x14000a171
mov rcx, r14
call fcn.14000a060
sub qword [r13], 1
jne 0x14000a180
mov rcx, r13
call fcn.14000a060
sub qword [r12], 1
jne 0x14000a19c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.14000a060
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.14002faa0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x14000a171
mov rcx, r15
call fcn.14000a070
jmp 0x14000a171
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x14008aaa0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c52b1], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x14008ab28
lea rdx, [0x1400b2822]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14008ac40
mov rsi, qword [0x1400c5168]
jmp 0x14008aae5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14008aae0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400784c0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400c5168], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400c5168], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400c5168], rcx
test eax, eax
je 0x14008ac28
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x14008ab90
not eax
cmp r9d, eax
jne 0x14008acc7
mov byte [0x1400c52b1], 1
jmp 0x14008aabd
cmp byte [0x1400c52b0], 0
jne 0x14008aad4
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400c5be8], rax
call rbx
mov qword [0x1400c5be0], rax
call rbx
mov qword [0x1400c5bd8], rax
call rbx
mov qword [0x1400c5bd0], rax
call rbx
mov qword [0x1400c5bc8], rax
call rbx
mov qword [0x1400c5bc0], rax
call rbx
mov qword [0x1400c5bb8], rax
call rbx
mov byte [0x1400c52b0], 1
mov qword [0x1400c5bb0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400c5160], rax
jmp 0x14008aad4
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140093e30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400a5190
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400a5190
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140094ae2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c60a8]
test eax, eax
je 0x140094b7a
lea rax, [0x1400c6080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c60b0]
mov qword [rbp - 8], rax
jmp 0x140094b5e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140094b52
cmp qword [rbp - 0x10], 0
je 0x140094b52
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140094b18
lea rax, [0x1400c6080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140094b7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140094c80
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140094ca8
mov eax, 0
jmp 0x140094cf6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140094cd1
mov eax, 0
jmp 0x140094cf6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140094cf1
mov eax, 0
jmp 0x140094cf6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140094cfc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140094d7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140094d71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140094d71
mov rax, qword [rbp - 8]
jmp 0x140094d8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140094d44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x14076e734
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14076e73e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14076e767
pop rbp
sub rbp, 0x33
sub rbp, 0x76e734
sub rsp, 0x20
jmp 0x14076e786
mov rax, 0x76e734
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x4a09158
xor byte [rax], dl
inc rax
dec rcx
jne 0x14076e7a5
jmp 0x14076e7bc
adc cl, dl
mov cl, 0xd3
shl dword [rax + rbx*2 + 0x58], 1
pop rax
adc cl, bl
cdq
push rax
pop rcx
pop rax
pop rax
adc byte [rcx - 0x4f], bl
adc byte [rdi + 0x58585098], bl
pop rax
adc byte [rdi + 0x5858709a], bl
pop rax
adc byte [rdi - 0x66a6ef46], ch
rcr ecx, cl
push rsp
pop rax
pop rax
pop rax
adc byte [rcx - 0x50], bl
or byte [rax], cl
adc al, ah
hlt
Function at 0x1400110eb
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a9a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400320f3]
call fcn.14001184d
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001a9f7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x14001ab03
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001aa9c
cmp qword [rbp + 0x28], 0
jle 0x14001aa9c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001aa3c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400117cb
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001aaf2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001aaf2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400114bf
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d600
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400115e1
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001e130
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001e150
xor al, al
jmp 0x14001e1d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001e163
xor al, al
jmp 0x14001e1d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001e18d
xor al, al
jmp 0x14001e1d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001e1a1
xor al, al
jmp 0x14001e1d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001e1b3
xor al, al
jmp 0x14001e1d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001e1cf
xor al, al
jmp 0x14001e1d1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011834
Capabilities:
Write file on windows

Disassembly:
jmp 0x140017380
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14002b018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400320f3]
call fcn.14001184d
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x1400173e6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400173ed
mov al, 1
jmp 0x140017547
call fcn.140011262
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.140011262
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011708
movzx eax, al
test eax, eax
je 0x140017448
xor al, al
jmp 0x140017547
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.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 [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x1400174ad
cmp dword [rbp + 0x194], 1
je 0x1400174b8
cmp dword [rbp + 0x194], 3
je 0x140017536
jmp 0x140017545
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140017508
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140017508
xor al, al
jmp 0x140017547
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140017523
mov dword [rbp + 0x194], 1
jmp 0x14001752d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140017547
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140017547
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140025830]
call fcn.1400116ea
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.140011410
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x1400131f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014540
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014560
xor al, al
jmp 0x1400145e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014573
xor al, al
jmp 0x1400145e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001459d
xor al, al
jmp 0x1400145e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400145b1
xor al, al
jmp 0x1400145e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400145c3
xor al, al
jmp 0x1400145e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400145df
xor al, al
jmp 0x1400145e1
mov al, 1
add rsp, 0x38
ret