joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14020a1e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14020a1f6
mov al, 1
jmp 0x14020a256
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14020a207
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14020a254
mov ecx, dword [rcx + 0x18]
nop
call fcn.140208420
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14020a254
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14020a254
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14020a254
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14020a256
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14020e320
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14020e348
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14020e348
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001820
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180001853
xor eax, eax
jmp 0x18000192b
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x180001880
xor eax, eax
jmp 0x18000192b
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
jmp 0x1800018a9
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jge 0x180001929
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x1800018e5
inc rcx
test dl, dl
jne 0x1800018d2
xor eax, eax
jmp 0x1800018ea
sbb eax, eax
or eax, 1
test eax, eax
jne 0x180001924
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x10]
mov eax, dword [rdx + rax + 8]
mov dword [rcx], eax
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
jmp 0x18000192b
jmp 0x1800018a1
xor eax, eax
add rsp, 0x28
ret

Function at 0x180001c30
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov rax, qword [0x180012040]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x58]
call fcn.180002100
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18000ab00
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180001c93
mov eax, dword [rsp + 0x50]
jmp 0x180001d46
mov dword [rsp + 0xa0], 0x68
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
lea rax, str.C:Program_Files__x86_AssaultCube_
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Program_Files__x86_AssaultCube_assaultcube.bat
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180001d3b
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001d3f
xor eax, eax
jmp 0x180001d46
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.18000ac70
add rsp, 0x120
pop rdi
ret
Function at 0x180003550
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x180012040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800035a1
xor eax, eax
jmp 0x1800036ff
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x1800035d4
mov rax, qword [rsp + 0x30]
jmp 0x1800036ff
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, pe_nt_image_headers64
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
cmp dword [rsp + rax + 0xd0], 0
jne 0x180003609
mov rax, qword [rsp + 0x30]
jmp 0x1800036ff
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0xd0]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x180003691
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x1800036fa
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x188]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1800036f8
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x180]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x1800036fa
jmp 0x180003687
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18000ac70
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x180003fa0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x180012040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x88]
call fcn.180007f40
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov edx, 0x18
mov rcx, qword [rsp + 0x80]
call fcn.1800040d0
lea rcx, [rsp + 0x40]
call fcn.1800024a0
mov ecx, dword [rsp + 0x58]
mov r8, rax
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call fcn.180008110
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x80]
call fcn.180007f40
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x88]
call fcn.180007f40
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
mov r9, rcx
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
nop
mov rcx, qword [rsp + 0x88]
call fcn.180007f60
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000ac70
add rsp, 0x78
ret
Function at 0x180004510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x180004534
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x1800045b5
mov byte [rsp], 0
jmp 0x18000454d
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x1800045b0
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 0x20]
shl edx, 2
movzx r8d, byte [rsp + 1]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rsp]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rsp + 0x30]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov r8, qword [rsp + 0x28]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x180004544
jmp 0x180004529
add rsp, 0x18
ret

Function at 0x1800045c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x1800045db
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x180004639
mov byte [rsp], 0
jmp 0x1800045f4
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x180004637
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, [0x18000e230]
movzx edx, byte [rsp]
mov r8, qword [rsp + 0x20]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x1800045eb
jmp 0x1800045d0
add rsp, 0x18
ret
Function at 0x180004d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [0x180012040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0x10
jmp 0x180004d8a
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x24], eax
jae 0x180004e73
cmp dword [rsp + 0x20], 0x10
jne 0x180004e49
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
mov rdi, rax
lea rsi, [rcx + 0xb0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x60]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.180004ca0
mov dword [rsp + 0x20], 0xf
jmp 0x180004de4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x180004e41
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax + 0xb0]
cmp eax, 0xff
jne 0x180004e18
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov byte [rcx + rax + 0xb0], 0
jmp 0x180004dda
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax + 0xb0]
inc eax
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x60]
mov byte [rdx + rcx + 0xb0], al
jmp 0x180004e41
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0x28]
xor eax, ecx
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
jmp 0x180004d76
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18000ac70
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x180005320
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov rax, qword [0x180012040]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x78]
call fcn.1800021c0
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.HTTPGET
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x4c8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800053bd
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea r9, [rsp + 0x70]
mov r8d, 0x400
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180005401
cmp dword [rsp + 0x70], 0
jbe 0x180005401
mov eax, dword [rsp + 0x70]
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.1800082b0
jmp 0x1800053bd
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, 0x18
mov rcx, qword [rsp + 0x4c0]
call fcn.1800040d0
lea rcx, [rsp + 0x30]
call fcn.1800024a0
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1800081f0
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.180008250
mov rcx, qword [rsp + 0x48]
mov r9, rcx
mov rcx, qword [rsp + 0x50]
mov r8, qword [rcx]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x4c0]
call fcn.180009290
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x78]
call fcn.1800020d0
mov rax, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.18000ac70
add rsp, 0x4b8
ret
Function at 0x180007030
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 0x180007069
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 0x180007157
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 0x1800070ff
cmp qword [rsp + 0x20], 0
jle 0x1800070ff
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1800070a9
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.180002470
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 0x180007147
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x180007147
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 0x180007160
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 [0x180012040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x180007194
xor eax, eax
jmp 0x180007346
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x1800071bd
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 0x180007346
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 0x18000725c
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.180002720
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.180002470
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 0x180007336
mov rcx, qword [rsp + 0x70]
call fcn.1800087f0
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x1800072fd
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 0x1800072fb
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x180007346
jmp 0x180007282
cmp qword [rsp + 0x40], 0
jbe 0x180007336
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.18000ac70
add rsp, 0x68
ret
Function at 0x1800088b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x180012040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x1800088ed
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1800088f4
mov al, 1
jmp 0x180008a38
call fcn.180009020
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.180009020
mov ecx, dword [rsp + 0x38]
mov edx, ecx
mov ecx, eax
call fcn.180009080
movzx eax, al
test eax, eax
je 0x18000893f
xor al, al
jmp 0x180008a38
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 0x1800089a5
cmp dword [rsp + 0x30], 1
je 0x1800089b1
cmp dword [rsp + 0x30], 3
je 0x180008a26
jmp 0x180008a36
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 0x1800089fd
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 0x1800089fd
xor al, al
jmp 0x180008a38
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180008a17
mov dword [rsp + 0x34], 1
jmp 0x180008a1f
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x180008a38
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180008a38
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18000ac70
add rsp, 0x98
ret
Function at 0x18000ab00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3c8
mov rax, qword [0x180012040]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov dword [rsp + 0x40], 0
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x18000abdf
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000abdf
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x8c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rsp + 0x3d0]
call fcn.180002080
mov rdx, rax
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x18000abcb
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x40], eax
jmp 0x18000abdf
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18000ab60
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x3d0]
call fcn.1800020d0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.18000ac70
add rsp, 0x3c8
ret
Function at 0x140001844
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0
mov rax, qword [0x1403f56d8]
test rax, rax
je 0x14000187a
mov rax, qword [0x1403f56d8]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [0x1403f56d8], 0
lea rax, str.HOME
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400018b5
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c5d69]
mov rcx, rax
call fcn.1400015a4
lea rax, str.LOCALAPPDATA
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400018f0
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c5d69]
mov rcx, rax
call fcn.1400015a4
lea rax, str.USERPROFILE
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000192b
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, str._s_Local_Settings_Application_Data_s
mov rcx, rax
call fcn.1400015a4
lea rax, str.COMMONPROGRAMFILES
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001966
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c5d69]
mov rcx, rax
call fcn.1400015a4
lea rax, [rbp - 0x10]
mov edx, 0
mov rcx, rax
call fcn.140001683
mov rdx, qword [0x1403f56d0]
lea rax, [rbp - 0x10]
mov rcx, rax
call fcn.140001683
mov rax, qword [rbp - 0x10]
mov qword [0x1403f56d8], rax
mov rax, qword [0x1403f56d8]
add rsp, 0x30
pop rbp
ret

Function at 0x1400019a2
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
cmp qword [rbp + 0x10], 0
je 0x1400019be
mov rax, qword [rbp + 0x10]
jmp 0x1400019f2
lea rax, str.MAGIC
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
je 0x1400019de
mov rax, qword [rbp + 0x10]
jmp 0x1400019f2
cmp dword [rbp + 0x18], 0
jne 0x1400019eb
call fcn.140001844
jmp 0x1400019f2
lea rax, str._opt_mxe_usr_x86_64_w64_mingw32.static_share_misc_magic
add rsp, 0x20
pop rbp
ret