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

Disassembly:
jmp 0x140205f80
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1403268cc]
call fcn.1400e7e4a
nop
cmp qword [rbp + 0x160], 0
je 0x140205fc3
cmp qword [rbp + 0x168], 0
jne 0x140205fe4
mov eax, dword [0x14030a544]
inc eax
mov r8d, eax
lea rdx, str.C:UsersemrullahDownloadsValoratio_mainValoratio_main_src_thirdpartyimguiimgui.cpp
lea rcx, str.filename__file_open_mode
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
cmp qword [rbp + 0x170], 0
je 0x140205ffc
mov rax, qword [rbp + 0x170]
mov qword [rax], 0
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rbp + 0x160]
call fcn.1400e6397
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140206021
xor eax, eax
jmp 0x140206133
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
test eax, eax
jne 0x14020605d
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_ftell]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
je 0x14020605d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
test eax, eax
je 0x14020606f
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
nop
xor eax, eax
jmp 0x140206133
movsxd rax, dword [rbp + 0x24]
mov qword [rbp + 0x48], rax
movsxd rax, dword [rbp + 0x178]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400e5de3
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1402060ad
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
nop
xor eax, eax
jmp 0x140206133
mov r9, qword [rbp + 8]
mov r8, qword [rbp + 0x48]
mov edx, 1
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ucrtbased.dll_fread]
cmp rax, qword [rbp + 0x48]
je 0x1402060e3
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
nop
mov rcx, qword [rbp + 0x68]
call fcn.1400e781e
nop
xor eax, eax
jmp 0x140206133
cmp dword [rbp + 0x178], 0
jle 0x14020610c
movsxd rax, dword [rbp + 0x178]
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x68]
add rdx, rcx
mov rcx, rdx
mov r8, rax
xor edx, edx
call fcn.1400e7346
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
nop
cmp qword [rbp + 0x170], 0
je 0x14020612f
mov rax, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x48]
mov qword [rax], rcx
mov rax, qword [rbp + 0x68]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400e708f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402ad7f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1402ad810
xor al, al
jmp 0x1402ad891
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1402ad823
xor al, al
jmp 0x1402ad891
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 0x1402ad84d
xor al, al
jmp 0x1402ad891
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1402ad861
xor al, al
jmp 0x1402ad891
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1402ad873
xor al, al
jmp 0x1402ad891
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1402ad88f
xor al, al
jmp 0x1402ad891
mov al, 1
add rsp, 0x38
ret
Function at 0x1400e7652
Capabilities:
Create thread
Hide graphical window

Disassembly:
jmp 0x1401e9720
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14030a8c0]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x14032681f]
call fcn.1400e7e4a
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400e537f]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov dword [rbp + 0x10], 0x50
mov dword [rbp + 0x14], 0
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x28], 0
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbp + 0x30], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
lea rax, [0x1402c4560]
mov qword [rbp + 0x50], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbp + 0x58], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rbp + 0x78]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_RegisterClassExA]
nop
mov qword [rsp + 0x58], 0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rbp + 0x84]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x80]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x7c]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x78]
mov dword [rsp + 0x20], eax
mov r9d, 0x80000000
lea r8, [0x1402c4560]
lea rdx, [0x1402c4560]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x14030dbc0], rax
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x14030dbc0]
call qword [sym.imp.USER32.dll_SetWindowLongW]
nop
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, qword [0x14030dbc0]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
nop
mov dword [rbp + 0xa8], 0xffffffff
lea rax, [rbp + 0xac]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
lea rdx, [rbp + 0xa8]
mov rcx, qword [0x14030dbc0]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
nop
mov edx, 5
mov rcx, qword [0x14030dbc0]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov rcx, qword [0x14030dbc0]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
lea rcx, [rbp - 0x60]
lea rdx, [0x1402c4480]
call fcn.1400e76b1
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.1400e66b7
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret
Function at 0x1400e7927
Capabilities:
Parse pe header

Disassembly:
jmp 0x1402a1990
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140326e8c]
call fcn.1400e7e4a
nop
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1402a19cd
xor eax, eax
jmp 0x1402a19fa
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x1402a19f6
xor eax, eax
jmp 0x1402a19fa
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400e7dcd
Capabilities:
Write file on windows

Disassembly:
jmp 0x1401e2f90
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x14030a8c0]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x140326506]
call fcn.1400e7e4a
nop
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x1401e2ff7
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1401e2ffe
mov al, 1
jmp 0x1401e316e
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.1400e5c99
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.1400e5c99
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1400e74d6
movzx eax, al
test eax, eax
je 0x1401e3061
xor al, al
jmp 0x1401e316e
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
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 + 0x158]
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 + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x1401e30d4
cmp dword [rbp + 0x160], 1
je 0x1401e30df
cmp dword [rbp + 0x160], 3
je 0x1401e315d
jmp 0x1401e316c
mov rax, qword [rbp + 0x1a0]
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 0x1401e312f
mov rax, qword [rbp + 0x1a0]
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 0x1401e312f
xor al, al
jmp 0x1401e316e
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1401e314a
mov dword [rbp + 0x154], 1
jmp 0x1401e3154
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1401e316e
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1401e316e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402c1be0]
call fcn.1400e76b1
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1400e66b7
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400e7f8a
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402ae9dc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400e7346
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1402f4f70]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.1400e65fe
test eax, eax
jne 0x1402aea73
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1402aea73
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1402aea6c
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14030da20], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400e813d
Capabilities:
Create thread

Disassembly:
jmp 0x1401cff90
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1c8]
mov rax, qword [0x14030a8c0]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140326254]
call fcn.1400e7e4a
nop
mov qword [rbp + 8], 0
cmp dword [rbp + 0x190], 0
jl 0x1401d0021
cmp dword [rbp + 0x190], 0x7c
jge 0x1401d0021
lea rax, [0x14030a010]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 8], 0
je 0x1401d0021
movsxd rax, dword [rbp + 0x190]
mov rcx, qword [rbp + 0x28]
mov rax, qword [rcx + rax*8]
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x48]
call fcn.1400e7e22
nop
cmp qword [rbp + 8], 0
jne 0x1401d0045
lea rdx, str.Select_Key
lea rcx, [rbp + 0x48]
call fcn.1400e51d6
nop
jmp 0x1401d0053
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x48]
call fcn.1400e51d6
nop
cmp dword [rbp + 0x1a0], 1
jne 0x1401d006d
lea rdx, str.Press_key_to_bind
lea rcx, [rbp + 0x48]
call fcn.1400e51d6
nop
movss xmm2, dword [0x1402bed50]
movss xmm1, dword [0x1402bed58]
lea rcx, [rbp + 0x144]
call fcn.1400e6dc9
mov qword [rbp + 0x158], rax
lea rcx, [rbp + 0x48]
call fcn.1400e542e
mov qword [rbp + 0x160], rax
mov rdx, qword [rbp + 0x158]
mov rcx, qword [rbp + 0x160]
call fcn.1400e5f5a
movzx eax, al
test eax, eax
je 0x1401d00e9
cmp dword [rbp + 0x1a0], 0
jne 0x1401d00e9
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x198]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rbp + 0x48]
call fcn.1400e58c5
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1402be7b0]
call fcn.1400e76b1
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400e66b7
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1401e1580
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
sub rsp, 0x598
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xfe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14030a8c0]
xor rax, rbp
mov qword [rbp + 0x568], rax
lea rcx, [0x140326566]
call fcn.1400e7e4a
nop
lea rax, str.explorer.exe
mov qword [rbp + 8], rax
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x468]
call fcn.1400e6540
mov qword [rbp + 0x558], rax
mov rax, qword [rbp + 0x558]
mov qword [rbp + 0x560], rax
mov rdx, qword [rbp + 0x560]
lea rcx, [rbp + 0x28]
call fcn.1400e5e74
nop
lea rcx, [rbp + 0x468]
call fcn.1400e58c5
nop
xor edx, edx
mov ecx, 2
call fcn.1400e663a
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x90], 0x238
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x68]
call fcn.1400e6c52
test eax, eax
jne 0x1401e165a
mov qword [rbp + 0x4a8], 0
lea rcx, [rbp + 0x28]
call fcn.1400e77a1
mov rax, qword [rbp + 0x4a8]
jmp 0x1401e16f1
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x68]
call fcn.1400e77ba
test eax, eax
je 0x1401e16d6
lea rdx, [rbp + 0xbc]
lea rcx, [rbp + 0x4e8]
call fcn.1400e5f55
mov qword [rbp + 0x558], rax
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 0x558]
call fcn.1400e5b95
mov byte [rbp + 0x4c4], al
lea rcx, [rbp + 0x4e8]
call fcn.1400e77a1
movzx eax, byte [rbp + 0x4c4]
test eax, eax
je 0x1401e16d4
mov eax, dword [rbp + 0x98]
mov qword [rbp + 0x528], rax
lea rcx, [rbp + 0x28]
call fcn.1400e77a1
mov rax, qword [rbp + 0x528]
jmp 0x1401e16f1
jmp 0x1401e165a
mov qword [rbp + 0x548], 0
lea rcx, [rbp + 0x28]
call fcn.1400e77a1
mov rax, qword [rbp + 0x548]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1402c1230]
call fcn.1400e76b1
mov rax, rdi
mov rcx, qword [rbp + 0x568]
xor rcx, rbp
call fcn.1400e66b7
lea rsp, [rbp + 0x578]
pop rdi
pop rbp
ret
Function at 0x1402ac610
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400e7fd5
movzx eax, al
test eax, eax
jne 0x1402ac630
mov ecx, 7
call fcn.1400e76d4
nop
mov byte [rsp + 0x20], 0
call fcn.1400e7792
mov byte [rsp + 0x21], al
cmp dword [0x1403139f0], 1
jne 0x1402ac654
mov ecx, 7
call fcn.1400e76d4
nop
jmp 0x1402ac6ac
cmp dword [0x1403139f0], 0
jne 0x1402ac6a7
mov dword [0x1403139f0], 1
lea rdx, [0x1402bbaf0]
lea rcx, [0x1402bb7c0]
call fcn.1400e6617
test eax, eax
je 0x1402ac688
mov eax, 0xff
jmp 0x1402ac7b1
lea rdx, [0x1402bb6b0]
lea rcx, [section..rdata]
call fcn.1400e776f
mov dword [0x1403139f0], 2
jmp 0x1402ac6ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400e7670
call fcn.1400e71d9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1402ac709
mov rcx, qword [rsp + 0x30]
call fcn.1400e61f3
movzx eax, al
test eax, eax
je 0x1402ac709
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140329020]
nop
call fcn.1400e73c3
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1402ac73d
mov rcx, qword [rsp + 0x38]
call fcn.1400e61f3
movzx eax, al
test eax, eax
je 0x1402ac73d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400e7ce2
nop
call fcn.1402ac820
mov dword [rsp + 0x28], eax
call fcn.1400e708f
movzx eax, al
test eax, eax
jne 0x1402ac75c
mov ecx, dword [rsp + 0x28]
call fcn.1400e536b
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1402ac76b
call fcn.1400e7d64
nop
xor edx, edx
mov cl, 1
call fcn.1400e60b8
mov eax, dword [rsp + 0x28]
jmp 0x1402ac7b1
add rsp, 0x68
ret
Function at 0x140001c20
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140001c65
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_target_process._n
call fcn.1400041f0
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r8, qword [rdi + 0x10]
xor edx, edx
mov qword [rsp + 0x50], rsi
inc r8
mov qword [rsp + 0x58], r14
mov r9d, 0x1000
lea r14, [rdi + 0x10]
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140001cbe
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_allocate_memory_in_target_process._n
call fcn.1400041f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140001db9
cmp qword [rdi + 0x18], 0xf
jbe 0x140001cc8
mov rdi, qword [rdi]
mov r9, qword [r14]
mov r8, rdi
inc r9
mov qword [rsp + 0x20], 0
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001cf3
lea rdx, str.Failed_to_write_memory_in_target_process._n
jmp 0x140001d54
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001d1e
lea rdx, str.Failed_to_get_LoadLibraryA_address._n
jmp 0x140001d54
mov qword [rsp + 0x30], 0
mov r9, rax
mov dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x140001d82
lea rdx, str.Failed_to_create_remote_thread._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400041f0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140001db9
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400030b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400030d8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400030fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003100
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003159
test ecx, ecx
jle 0x140003139
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 0x140003159
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003159
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140003180
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400031a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400031b8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400031d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400031d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003212
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400032ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000324d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000328e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400032ae
cmp rbx, rax
ja 0x140003260
test rbx, rbx
je 0x1400032ae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140003710
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000373d
xor eax, eax
jmp 0x1400038a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003777
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003777
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400038a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000389c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400037ba
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 0x1400037e5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400038a1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003854
sub eax, 1
je 0x140003854
cmp eax, 2
jne 0x14000389c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400038a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003882
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000389c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400038a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005210
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret