joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420b50
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_rwlock]
lea rcx, str.cond_locked_shmem_rwlock
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x421590
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init_init]
lea rcx, str.init
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x4215b0
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.eh_globals
xor r8d, r8d
mov edx, 0x10
jmp dbg.__shmem_grab

Function at 0x421c60
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x421c80
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x422f40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
test rax, rax
jle 0x422f71
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov dword [rbx + 0x48], 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4238c0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x004b8650], 0
jne 0x423987
mov byte [0x004b8650], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x423a1a
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
mov rdi, rax
call rsi
lea rcx, str.terminate_called_after_throwing_an_instance_of_
lea r9, [rax + 0x60]
mov r8d, 0x30
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x423977
call rsi
lea rdx, [rax + 0x60]
mov rcx, rbx
call sym.fputs
call rsi
lea rcx, [0x004ba461]
lea r9, [rax + 0x60]
mov r8d, 2
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x4239ad
call sym.__cxa_rethrow
call rsi
lea rdx, [rax + 0x60]
mov rcx, rdi
call sym.fputs
jmp 0x42394e
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_recursively_n
lea r9, [rax + 0x60]
mov r8d, 0x1d
mov edx, 1
call sym.fwrite
call sym.abort
mov rcx, rdi
call sym.free
jmp 0x423972
call sym.abort
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_without_an_active_exception_n
lea r9, [rax + 0x60]
mov r8d, 0x2d
mov edx, 1
call sym.fwrite
jmp 0x423a15

Function at 0x451d40
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x451d90
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x451d5a
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001254
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov r14, qword [rax + 0x18]
add r14, 0x10
xor eax, eax
mov ebp, 0xa06f02f9
mov r15d, 0xb642b6c1
mov r14, qword [r14]
mov ecx, 0x3e3cfa9a
test r12b, 1
mov edx, 0x3ded02c8
cmovne edx, ebp
cmp ecx, 0x3e3cfa99
jg 0x1400012c3
cmp ecx, 0xa06f02f9
je 0x1400012e1
cmp ecx, 0xb642b6c1
je 0x1400012dd
cmp ecx, 0x3ded02c8
jne 0x1400012a1
jmp 0x140001324
cmp ecx, 0x455b6c48
je 0x1400012fa
cmp ecx, 0x404d9cd3
je 0x14000128d
cmp ecx, 0x3e3cfa9a
jne 0x1400012a1
jmp 0x14000130e
mov ecx, edx
jmp 0x1400012a1
mov rdx, qword [r14 + 0x30]
mov rcx, rbx
mov r8, rdi
mov r9, rsi
call fcn.140007fb1
mov ecx, 0x404d9cd3
jmp 0x140001295
test rax, rax
sete byte [rsp + 0x2f]
mov ecx, 0xb642b6c1
mov r12b, byte [rsp + 0x2f]
jmp 0x140001295
cmp qword [r14 + 0x30], 0
mov ecx, 0x455b6c48
cmove ecx, r15d
xor r12d, r12d
jmp 0x140001295
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14000771f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r9
mov qword [rsp + 0x30], r8
mov rbx, rdx
mov r14, rcx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbp, qword [rax + 0x10]
mov eax, 0xde8ccc85
xor r12d, r12d
cmp eax, 0x21e79644
jg 0x1400077a7
cmp eax, 0xde8ccc84
jle 0x1400077d2
cmp eax, 0xe89ac012
jg 0x140007845
cmp eax, 0xde8ccc85
je 0x140007866
cmp eax, 0xe37f1244
jne 0x14000775a
mov rcx, r14
mov rdx, qword [rsp + 0x30]
call fcn.14000239c
mov r13, rax
test rax, rax
mov eax, 0xc69b7e63
mov ecx, 0x6e7168c6
cmove eax, ecx
jmp 0x14000775a
cmp eax, 0x6e7168c5
jg 0x14000780a
cmp eax, 0x21e79645
je 0x14000787f
cmp eax, 0x2733c1fa
je 0x140007894
cmp eax, 0x5f42d33d
jne 0x14000775a
mov eax, 0xe89ac013
jmp 0x14000775a
cmp eax, 0xa75a4f15
je 0x1400078ab
cmp eax, 0xa9bccdf6
je 0x1400078c4
cmp eax, 0xc69b7e63
jne 0x14000775a
mov rcx, r13
mov rdx, rsi
call qword [r14 + 0x38]
mov r12, rax
mov eax, 0x5f42d33d
jmp 0x14000775a
cmp eax, 0x6e7168c6
je 0x1400078d2
cmp eax, 0x72677407
je 0x14000783b
cmp eax, 0x78dc92ed
jne 0x14000775a
mov rcx, r14
mov rdx, r15
mov r8, rsi
xor r9d, r9d
call fcn.1400078fe
mov r12, rax
mov eax, 0xa9bccdf6
jmp 0x14000775a
cmp eax, 0x1f329483
jne 0x1400078df
test dil, 1
mov eax, 0x21e79645
mov ecx, 0xa75a4f15
cmovne eax, ecx
jmp 0x14000775a
cmp qword [rbp + 0x30], 0
mov eax, 0x2733c1fa
mov ecx, 0x1f329483
cmove eax, ecx
xor edi, edi
jmp 0x14000775a
test r12, r12
mov eax, 0xe89ac013
mov ecx, 0xe37f1244
cmove eax, ecx
jmp 0x14000775a
test r12, r12
sete byte [rsp + 0x2f]
mov eax, 0x1f329483
mov dil, byte [rsp + 0x2f]
jmp 0x14000775a
mov r15, qword [rbp + 0x30]
cmp r15, rbx
mov eax, 0x78dc92ed
mov ecx, 0x72677407
cmove eax, ecx
jmp 0x14000775a
mov rbp, qword [rbp]
mov eax, 0xde8ccc85
jmp 0x14000775a
mov eax, 0x5f42d33d
xor r12d, r12d
jmp 0x14000775a
cmp eax, 0xe89ac013
jne 0x14000775a
mov rax, r12
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a477
Capabilities:
Encrypt data using speck

Disassembly:
push rsi
sub rsp, 0x10
mov r8, rdx
shr r8, 0x20
mov r11d, 0x5050f968
xor r9d, r9d
mov eax, 0xa3b79a83
mov r10d, 0xbb0b9dec
cmp r11d, 0xc7ec3ee5
jle 0x14000a4ca
cmp r11d, 0x5050f967
jg 0x14000a4f8
cmp r11d, 0xc7ec3ee6
je 0x14000a538
cmp r11d, 0x66c535a
jne 0x14000a497
inc r9d
mov r11d, 0x54687d6e
jmp 0x14000a497
cmp r11d, 0xa3b79a82
jle 0x14000a521
cmp r11d, 0xa3b79a83
je 0x14000a546
cmp r11d, 0xbb0b9dec
jne 0x14000a497
mov r11d, r9d
mov esi, dword [rcx + r11*4]
mov dword [rsp + r11*4], esi
mov r11d, 0xc7ec3ee6
jmp 0x14000a497
cmp r11d, 0x54687d6e
je 0x14000a58b
cmp r11d, 0x5050f968
jne 0x14000a497
cmp r9d, 4
mov r11d, 0x91557d37
cmovb r11d, r10d
jmp 0x14000a497
cmp r11d, 0x91557d37
jne 0x14000a59e
mov r11d, 0x54687d6e
xor r9d, r9d
jmp 0x14000a497
inc r9d
mov r11d, 0x5050f968
jmp 0x14000a497
rol edx, 0x18
add edx, r8d
mov r11d, dword [rsp]
mov esi, dword [rsp + 4]
xor edx, r11d
rol r8d, 3
xor r8d, edx
rol esi, 0x18
add esi, r11d
xor esi, r9d
rol r11d, 3
xor r11d, esi
mov dword [rsp], r11d
mov r11, qword [rsp + 8]
mov dword [rsp + 0xc], esi
mov qword [rsp + 4], r11
mov r11d, 0x66c535a
jmp 0x14000a497
cmp r9d, 0x1b
mov r11d, 0x9cb7d8ed
cmovb r11d, eax
jmp 0x14000a497
cmp r11d, 0x9cb7d8ed
jne 0x14000a497
shl r8, 0x20
mov eax, edx
or rax, r8
add rsp, 0x10
pop rsi
ret
Function at 0x14000a852
Capabilities:
Encrypt data using chaskey

Disassembly:
push rsi
push rdi
push rbx
mov r11d, 0x5e805a6b
xor r9d, r9d
mov eax, 0xe8390d19
mov r8d, 0x76e7cd04
mov r10d, 0xd8754b89
cmp r11d, 0xefbb40a2
jle 0x14000a8b4
cmp r11d, 0x5e805a6a
jg 0x14000a8f3
cmp r11d, 0xefbb40a3
je 0x14000a95d
cmp r11d, 0x14fc9f6e
je 0x14000a96b
cmp r11d, 0x3f5acfcc
jne 0x14000a86f
cmp r9d, 0x10
mov r11d, 0xe53dc56b
cmovb r11d, r8d
jmp 0x14000a86f
cmp r11d, 0xe53dc56a
jg 0x14000a92d
cmp r11d, 0xb1e25c25
je 0x14000a979
cmp r11d, 0xd8754b89
je 0x14000a987
cmp r11d, 0xe182b450
jne 0x14000a86f
cmp r9d, 4
mov r11d, 0xee990ecc
cmovb r11d, eax
jmp 0x14000a86f
cmp r11d, 0x76e7cd04
je 0x14000a99d
cmp r11d, 0x6c24e710
je 0x14000a9e8
cmp r11d, 0x5e805a6b
jne 0x14000a86f
cmp r9d, 4
mov r11d, 0x6c24e710
cmovb r11d, r10d
jmp 0x14000a86f
cmp r11d, 0xe53dc56b
je 0x14000a9f6
cmp r11d, 0xe8390d19
jne 0x14000aa04
mov r11d, r9d
mov esi, dword [rcx + r11*4]
xor dword [rdx + r11*4], esi
mov r11d, 0x14fc9f6e
jmp 0x14000a86f
inc r9d
mov r11d, 0x5e805a6b
jmp 0x14000a86f
inc r9d
mov r11d, 0xe182b450
jmp 0x14000a86f
inc r9d
mov r11d, 0x3f5acfcc
jmp 0x14000a86f
mov r11d, r9d
mov esi, dword [rcx + r11*4]
xor dword [rdx + r11*4], esi
mov r11d, 0xefbb40a3
jmp 0x14000a86f
mov r11d, dword [rdx + 4]
mov esi, dword [rdx]
add esi, r11d
rol r11d, 5
mov edi, dword [rdx + 0xc]
xor r11d, esi
mov ebx, dword [rdx + 8]
add ebx, edi
rol edi, 8
xor edi, ebx
add ebx, r11d
rol esi, 0x10
add esi, edi
mov dword [rdx], esi
rol edi, 0xd
xor edi, esi
mov dword [rdx + 0xc], edi
rol r11d, 7
xor r11d, ebx
mov dword [rdx + 4], r11d
rol ebx, 0x10
mov dword [rdx + 8], ebx
mov r11d, 0xb1e25c25
jmp 0x14000a86f
mov r11d, 0x3f5acfcc
xor r9d, r9d
jmp 0x14000a86f
mov r11d, 0xe182b450
xor r9d, r9d
jmp 0x14000a86f
cmp r11d, 0xee990ecc
jne 0x14000a86f
pop rbx
pop rdi
pop rsi
ret
Function at 0x140001430
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
sub rsp, 0x10
cmp dword [0x1400058c0], 0
jne 0x140001633
mov rax, qword gs:[0x60]
xor r15d, r15d
mov edx, r15d
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14000163f
nop word [rax + rax]
mov r10, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x1400014ad
lea rdx, [r10 + rcx]
mov ecx, dword [r10 + rcx + 0xc]
mov eax, dword [rcx + r10]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x1400014ad
mov eax, dword [rcx + r10 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400014b9
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x140001470
test rdx, rdx
je 0x14000163f
mov r11d, dword [rdx + 0x18]
mov qword [rsp + 0x20], rbx
mov ebx, r15d
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
mov esi, dword [rdx + 0x1c]
mov qword [rsp + 0x38], rdi
add rsi, r10
mov edi, dword [rdx + 0x20]
mov qword [rsp + 8], r12
add rdi, r10
mov qword [rsp], r14
add rbp, r10
mov r12d, 0x775a
lea r14, [0x1400058c0]
nop word [rax + rax]
lea eax, [r11 - 1]
mov r9d, dword [rdi + rax*4]
add r9, r10
cmp word [r9], r12w
jne 0x140001574
mov edx, r15d
mov r8d, 0x1cba6880
mov rax, r9
nop dword [rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc edx
add ecx, eax
mov eax, edx
add rax, r9
xor r8d, ecx
cmp byte [rax], r15b
jne 0x140001530
mov edx, ebx
lea eax, [r11 - 1]
add rdx, rdx
inc ebx
mov dword [r14 + rdx*8 + 8], r8d
movzx eax, word [rbp + rax*2]
mov eax, dword [rsi + rax*4]
mov dword [r14 + rdx*8 + 0xc], eax
mov qword [r14 + rdx*8 + 0x10], r15
cmp ebx, 0x258
je 0x14000157a
add r11d, 0xffffffff
jne 0x140001510
mov r12, qword [rsp + 8]
lea eax, [rbx - 1]
mov rbp, qword [rsp + 0x28]
mov r11d, r15d
mov dword [0x1400058c0], ebx
test eax, eax
je 0x140001620
nop dword [rax + rax]
mov ecx, ebx
mov eax, r15d
sub ecx, r11d
cmp ecx, 1
je 0x140001615
nop dword [rax]
lea r10d, [rax + 1]
mov r9d, eax
add r9, r9
mov r8d, r10d
add r8, r8
mov esi, dword [r14 + r9*8 + 0xc]
mov edi, dword [r14 + r8*8 + 0xc]
cmp esi, edi
jbe 0x140001606
mov eax, dword [r14 + r8*8 + 8]
mov edx, dword [r14 + r9*8 + 8]
mov rcx, qword [r14 + r9*8 + 0x10]
mov dword [r14 + r9*8 + 8], eax
mov rax, qword [r14 + r8*8 + 0x10]
mov qword [r14 + r9*8 + 0x10], rax
mov dword [r14 + r9*8 + 0xc], edi
mov dword [r14 + r8*8 + 8], edx
mov dword [r14 + r8*8 + 0xc], esi
mov qword [r14 + r8*8 + 0x10], rcx
mov ebx, dword [0x1400058c0]
mov ecx, ebx
mov eax, r10d
sub ecx, r11d
dec ecx
cmp r10d, ecx
jb 0x1400015b0
inc r11d
lea eax, [rbx - 1]
cmp r11d, eax
jb 0x1400015a0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
mov r14, qword [rsp]
mov eax, 1
add rsp, 0x10
pop r15
ret
xor eax, eax
add rsp, 0x10
pop r15
ret
Function at 0x140001b50
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x791111f
call fcn.140001650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001b90
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x5973f25
call fcn.140001650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001d50
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x871e828e
call fcn.140001650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001d90
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xba0476f
call fcn.140001650
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400027a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400027ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400027ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400027ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400027ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400027ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400027ec
xor al, al
add rsp, 0x28
ret
Function at 0x140002310
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000233d
xor eax, eax
jmp 0x1400024a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002377
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002377
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 0x1400024a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000249c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400023ba
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 0x1400023e5
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 0x1400024a1
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 0x140002454
sub eax, 1
je 0x140002454
cmp eax, 2
jne 0x14000249c
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 0x1400024a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002482
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 0x14000249c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400024a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002ee0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400026b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002783
cmp byte [rcx + 0x71], 0
je 0x140002783
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000277f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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]
test eax, eax
je 0x140002744
sub eax, 1
je 0x140002748
cmp eax, 2
jne 0x14000277f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002ee0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002776
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000277f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000272c
xor al, al
jmp 0x14000272c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002ee0
add rsp, 0x60
pop rbx
ret

Function at 0x14000389c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rcx, qword [rsp + 0x90]
call fcn.140137540
test eax, eax
je 0x1400026e9
mov rax, qword [rsp + 0x90]
cmp qword [rax - 0x10], 0
jbe 0x1400026c7
mov rax, qword [rsp + 0x90]
mov rax, qword [rax - 0x18]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x68], rax
jmp 0x1400026d0
mov qword [rsp + 0x68], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x70], rax
jmp 0x1400026f2
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov edx, 0xfffc
mov rcx, qword [rsp + 0x90]
call fcn.140001180
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x30], 0
je 0x1400027b6
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x50], 0
je 0x1400027b6
mov r9d, 1
lea r8, [0x1404d72f4]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call fcn.1401452e0
inc eax
mov dword [rsp + 0x48], eax
lea rdx, [0x14057a640]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor r9d, r9d
xor r8d, r8d
mov edx, eax
lea rcx, [0x14057a640]
call fcn.140137020
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
lea r8, [0x1404d72f8]
mov edx, 0x10000
lea rcx, [0x14057a640]
call fcn.140015f80
nop
jmp 0x1400027d7
mov r9, qword [rsp + 0x90]
lea r8, [0x1404d7300]
mov edx, 0x10000
lea rcx, [0x14057a640]
call fcn.140015f80
nop
mov edx, 0x10000
lea rcx, [0x14057a640]
call fcn.140001180
mov qword [rsp + 0x40], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x98]
movsx eax, byte [rcx + rax]
cmp eax, 0x2e
jne 0x140002865
mov r9d, 1
lea r8, [0x1404d7304]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x14057a640]
call fcn.1401452e0
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x58]
mov ecx, 0x10000
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x58]
lea rdx, [0x14057a640]
add rdx, rcx
mov rcx, rdx
mov r9, qword [rsp + 0x98]
lea r8, [0x1404d7308]
mov rdx, rax
call fcn.140015f80
nop
jmp 0x1400028c3
mov r9d, 1
lea r8, [0x1404d730c]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x14057a640]
call fcn.1401452e0
inc eax
mov dword [rsp + 0x5c], eax
movsxd rax, dword [rsp + 0x5c]
mov ecx, 0x10000
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x5c]
lea rdx, [0x14057a640]
add rdx, rcx
mov rcx, rdx
mov r9, qword [rsp + 0x98]
lea r8, [0x1404d7310]
mov rdx, rax
call fcn.140015f80
nop
cmp dword [rsp + 0xa0], 0
je 0x14000293a
mov edx, 0x10000
lea rcx, [0x14057a640]
call fcn.140001180
mov qword [rsp + 0x28], 2
lea rcx, [0x1404d7314]
mov qword [rsp + 0x20], rcx
mov r9d, 1
lea r8, [0x1404d7318]
mov rdx, rax
lea rcx, [0x14057a640]
call fcn.1401454d0
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x60]
mov edx, 0x10000
lea rcx, [0x14057a640]
call fcn.14038a150
mov edx, 1
mov rcx, qword [rsp + 0x60]
call fcn.1403ba8b0
nop
lea rax, [0x14057a640]
add rsp, 0x80
pop rdi
ret