joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055d1c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov edi, edx
mov r15, rcx
test edx, edx
jne 0x140055d6c
lea r8d, [rdx + 0x30]
lea rcx, [rax - 0x50]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov edi, dword [rsp + 0x48]
cmp edi, 1
jae 0x140055d6c
mov eax, 0x80070057
jmp 0x140055f26
xor ebx, ebx
mov qword [rsp + 0x90], rbx
lea ecx, [rbx + 0x38]
call fcn.1400c8b40
test rax, rax
je 0x140055db3
lea rcx, [0x1400d4940]
mov qword [rax], rcx
and qword [rax + 8], rbx
lea rcx, [0x1400d4d68]
mov qword [rax + 0x10], rcx
and qword [rax + 0x18], rbx
lea rcx, [0x1400d4d70]
mov qword [rax + 0x20], rcx
and qword [rax + 0x28], rbx
and qword [rax + 0x30], rbx
test rax, rax
je 0x140055dd0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140055f7c
mov rbx, qword [rsp + 0x90]
lea r8, [rbx + 8]
lea rdx, [0x140055f40]
mov ecx, 4
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleExW]
test eax, eax
jne 0x140055e0d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov esi, 0x80004005
test ebx, ebx
cmovns ebx, esi
jmp 0x140055ebe
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x140055f40]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
mov rsi, rax
mov rcx, qword [rbx + 0x28]
cmp rax, rcx
je 0x140055e40
test rcx, rcx
je 0x140055e3c
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpoolWork]
and qword [rbx + 0x28], 0
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x28], 0
jne 0x140055e6b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
test ecx, ecx
cmovns ecx, esi
test ecx, ecx
jns 0x140055e70
jmp 0x140055ebc
mov esi, 0x80004005
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpool]
mov r14, rax
mov rcx, qword [rbx + 0x18]
cmp rax, rcx
je 0x140055e98
test rcx, rcx
je 0x140055e94
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpool]
and qword [rbx + 0x18], 0
mov qword [rbx + 0x18], r14
cmp qword [rbx + 0x18], 0
jne 0x140055ecf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, esi
test ecx, ecx
jns 0x140055ecf
mov ebx, ecx
lea rcx, [rsp + 0x90]
call fcn.140056014
mov eax, ebx
jmp 0x140055f26
mov edx, edi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolThreadMaximum]
lea rcx, [r15 + 0x10]
lea rax, [rsp + 0x90]
cmp rcx, rax
je 0x140055f03
and qword [rsp + 0x90], 0
cmp rbx, qword [rcx]
je 0x140055f03
mov rdx, rbx
call fcn.140055f7c
nop
lea rcx, [rsp + 0x90]
call fcn.140056014
xor eax, eax
jmp 0x140055f26
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14005676c
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0xc8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lea rdx, [rdi + 0xb0]
mov rcx, rdi
call fcn.14005651c
xor esi, esi
test eax, eax
js 0x14005680c
mov rcx, qword [rdi + 0xf8]
call fcn.140059114
test eax, eax
js 0x14005680c
lea rbx, [rdi + 0xd0]
xor edx, edx
mov rcx, rbx
lea r8d, [rsi + 0x20]
call sub.msvcrt.dll_memset
mov rax, qword [rdi + 0xc8]
mov rdx, rbx
mov rcx, qword [rdi + 0xb8]
mov qword [rdi + 0xe8], rax
call qword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400567ef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov dword [rdi + 0xf0], esi
cmp esi, 0x3e5
je 0x14005680a
mov rcx, qword [rdi + 0xe8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140058448
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rbx, rdx
mov rdi, rcx
mov esi, 1
lock add dword [rcx + 0x58], esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_StartThreadpoolIo]
mov qword [rsp + 0x38], rdi
mov byte [rsp + 0x40], sil
mov rcx, qword [rbx]
add rcx, 0xb0
xor edx, edx
lea r8d, [rsi + 0x1f]
call sub.msvcrt.dll_memset
mov rcx, qword [rbx]
mov rax, qword [rcx + 0xa8]
mov qword [rcx + 0xc8], rax
mov r9, qword [rbx]
mov r10, qword [r9 + 0xe8]
mov r8, qword [r9 + 0xf0]
sub r8, r10
mov rax, qword [r9 + 0x90]
mov rcx, qword [rax + 0x20]
mov edx, dword [r9 + 0x100]
lea rax, [r9 + 0xb0]
sub r8d, edx
add rdx, r10
mov qword [rsp + 0x20], rax
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14005851c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e5
je 0x14005851c
cmp eax, 0xea
je 0x14005851c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14005853a
mov ebx, 0x8000ffff
jmp 0x14005853a
xor ebx, ebx
test ebx, ebx
js 0x14005853a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140057c6a.0]
xor sil, sil
mov byte [rsp + 0x40], sil
test sil, sil
je 0x14005854d
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CancelThreadpoolIo]
lock dec dword [rdi + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14009b944
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 0xb
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, r9
lea r8d, [rdx - 1]
call fcn.1400908d8
mov rdx, qword [rbx + 8]
mov r8d, 0xf
sub rdx, qword [rbx]
mov rcx, qword [rsi]
sar rdx, 1
call fcn.140095444
mov rdi, qword [rbx]
mov rbx, qword [rbx + 8]
jmp 0x14009ba14
movzx ecx, word [rdi]
add rdi, 2
mov rax, qword [rsi]
movzx edx, cx
add cx, cx
sar dx, 0xf
xor dx, cx
mov r8, qword [rax]
mov ecx, dword [r8 + 0x20]
mov r9d, dword [r8 + 0x1c]
add rcx, 2
mov eax, dword [r8 + 0x18]
add rcx, r9
cmp rcx, rax
jae 0x14009ba0c
mov rcx, qword [r8 + 0x30]
movzx eax, dx
shr ax, 7
test ax, ax
je 0x14009b9fd
or dl, 0x80
mov byte [r9 + rcx], dl
movzx edx, ax
shr dx, 7
test dx, dx
je 0x14009b9f1
mov byte [r9 + rcx + 2], dl
or al, 0x80
mov edx, 3
jmp 0x14009b9f6
mov edx, 2
mov byte [r9 + rcx + 1], al
jmp 0x14009ba06
mov byte [r9 + rcx], dl
mov edx, 1
add dword [r8 + 0x1c], edx
jmp 0x14009ba14
mov rcx, r8
call fcn.140099ad0
cmp rdi, rbx
jne 0x14009b98e
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bb128
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov ebx, r9d
mov r14, r8
mov r15d, edx
mov rsi, rcx
mov r9d, edx
sub r9d, 0xe
je 0x1400bb2a2
sub r9d, 1
je 0x1400bb1e2
sub r9d, 1
je 0x1400bb1ba
cmp r9d, 1
je 0x1400bb192
test ebx, ebx
je 0x1400bb35c
mov edx, r15d
mov rcx, r14
call fcn.14008f630
add ebx, 0xffffffff
jne 0x1400bb17d
jmp 0x1400bb35c
mov qword [rbp - 0x10], r14
xor edi, edi
mov byte [rbp - 8], dil
test ebx, ebx
je 0x1400bb1b5
mov byte [rbp - 8], dil
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.140096a84
add ebx, 0xffffffff
jne 0x1400bb1a0
jmp 0x1400bb35c
mov qword [rbp - 0x10], r14
xor edi, edi
mov byte [rbp - 8], dil
test ebx, ebx
je 0x1400bb1dd
mov byte [rbp - 8], dil
lea rdx, [rbp - 0x18]
mov rcx, r14
call fcn.140096a84
add ebx, 0xffffffff
jne 0x1400bb1c8
jmp 0x1400bb35c
mov qword [rbp - 0x10], r14
xor edi, edi
mov byte [rbp - 8], dil
mov word [rbp + 0x38], di
mov r9, rbx
mov rax, qword [rcx + 8]
mov r15, qword [rcx]
mov rcx, rax
sub rcx, r15
sar rcx, 1
cmp rbx, rcx
jae 0x1400bb237
lea rbx, [r15 + rbx*2]
cmp rbx, r15
jne 0x1400bb217
mov qword [rsi + 8], r15
jmp 0x1400bb25e
mov r15, rax
cmp rbx, rax
je 0x1400bb25e
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_memmove]
mov r15, rbx
mov qword [rsi + 8], rbx
jmp 0x1400bb25e
mov r15, rax
cmp rcx, r9
jae 0x1400bb25e
sub r9, rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x20], rcx
mov r8, rax
lea rdx, [rbp - 0x18]
mov rcx, rsi
call fcn.1400bdf10
mov r15, qword [rsi + 8]
mov r12, qword [rsi]
cmp r12, r15
je 0x1400bb29d
mov esi, 1
mov rbx, r12
add r12, 2
mov byte [rbp - 8], dil
lea rdx, [rbp + 0x38]
mov rcx, r14
call fcn.14009eb20
movzx eax, word [rbp + 0x38]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor cx, ax
mov word [rbx], cx
cmp r12, r15
jne 0x1400bb26b
jmp 0x1400bb35c
mov qword [rbp - 0x10], r14
xor edi, edi
mov byte [rbp - 8], dil
mov word [rbp + 0x38], di
mov r9, rbx
mov rax, qword [rcx + 8]
mov r8, qword [rcx]
mov rcx, rax
sub rcx, r8
sar rcx, 1
cmp rbx, rcx
jae 0x1400bb2f7
lea rbx, [r8 + rbx*2]
cmp rbx, r8
jne 0x1400bb2d7
mov qword [rsi + 8], r8
jmp 0x1400bb31b
mov r8, rax
cmp rbx, rax
je 0x1400bb31b
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_memmove]
mov r8, rbx
mov qword [rsi + 8], rbx
jmp 0x1400bb31b
mov r8, rax
cmp rcx, r9
jae 0x1400bb31b
sub r9, rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x20], rcx
lea rdx, [rbp - 0x18]
mov rcx, rsi
call fcn.1400bdf10
mov r8, qword [rsi + 8]
mov r9, qword [rsi]
cmp r9, r8
je 0x1400bb35c
mov esi, 1
mov r11, r9
add r9, 2
mov byte [rbp - 8], dil
mov eax, dword [r14 + 0x18]
mov r10d, dword [r14 + 0x20]
sub eax, r10d
cmp eax, esi
jb 0x1400bb375
mov rcx, qword [r14 + 0x10]
movsx edx, byte [r10 + rcx]
lea eax, [r10 + 1]
mov dword [r14 + 0x20], eax
mov word [r11], dx
cmp r9, r8
jne 0x1400bb328
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov edx, esi
mov rcx, r14
call fcn.14006fbcc
int3
Function at 0x1400bb5b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov ebx, r9d
mov rdi, r8
mov r14d, edx
mov rsi, rcx
mov r9d, edx
sub r9d, 0xe
je 0x1400bb6ea
sub r9d, 1
je 0x1400bb696
sub r9d, 1
je 0x1400bb646
cmp r9d, 1
je 0x1400bb620
test ebx, ebx
je 0x1400bb73b
mov edx, r14d
mov rcx, rdi
call fcn.14008f630
add ebx, 0xffffffff
jne 0x1400bb60b
jmp 0x1400bb73b
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
test ebx, ebx
je 0x1400bb641
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.140096a84
add ebx, 0xffffffff
jne 0x1400bb62c
jmp 0x1400bb73b
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.1400bcf30
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp r14, r15
je 0x1400bb691
mov esi, 1
mov rbx, r14
add r14, 4
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14008a6ec
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, esi
neg eax
xor ecx, eax
mov dword [rbx], ecx
cmp r14, r15
jne 0x1400bb666
jmp 0x1400bb73b
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.1400bcf30
mov r14, qword [rsi]
mov r15, qword [rsi + 8]
cmp r14, r15
je 0x1400bb6e8
mov esi, 1
mov rbx, r14
add r14, 4
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14009eb20
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor ax, cx
cwde
mov dword [rbx], eax
cmp r14, r15
jne 0x1400bb6b6
jmp 0x1400bb73b
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, ebx
call fcn.1400bcf30
mov r8, qword [rsi]
mov r10, qword [rsi + 8]
cmp r8, r10
je 0x1400bb73b
mov esi, 1
mov r11, r8
add r8, 4
mov byte [rbp - 8], 0
mov eax, dword [rdi + 0x18]
mov r9d, dword [rdi + 0x20]
sub eax, r9d
cmp eax, esi
jb 0x1400bb754
mov rcx, qword [rdi + 0x10]
movsx edx, byte [r9 + rcx]
lea eax, [r9 + 1]
mov dword [rdi + 0x20], eax
mov dword [r11], edx
cmp r8, r10
jne 0x1400bb70a
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
mov edx, esi
mov rcx, rdi
call fcn.14006fbcc
int3
Function at 0x1400bb8c8
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov esi, r9d
mov rdi, r8
mov r14d, edx
mov rbx, rcx
mov ecx, edx
sub ecx, 0xe
je 0x1400bba42
sub ecx, 1
je 0x1400bb9e6
sub ecx, 1
je 0x1400bb98f
cmp ecx, 1
je 0x1400bb934
test r9d, r9d
je 0x1400bba97
mov edx, r14d
mov rcx, rdi
call fcn.14008f630
add esi, 0xffffffff
jne 0x1400bb91f
jmp 0x1400bba97
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bd030
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bb98a
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140096a84
mov rax, qword [rbp - 0x20]
mov rcx, rax
shr rcx, 1
and rax, rsi
neg rax
xor rcx, rax
mov qword [rbx], rcx
cmp r14, r15
jne 0x1400bb958
jmp 0x1400bba97
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bd030
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bb9e1
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14008a6ec
mov eax, dword [rbp + 0x28]
mov ecx, eax
shr ecx, 1
and eax, esi
neg eax
xor eax, ecx
cdqe
mov qword [rbx], rax
cmp r14, r15
jne 0x1400bb9b3
jmp 0x1400bba97
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bd030
mov r14, qword [rbx]
mov r15, qword [rbx + 8]
cmp r14, r15
je 0x1400bba40
mov esi, 1
mov rbx, r14
add r14, 8
mov byte [rbp - 8], 0
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14009eb20
movzx eax, word [rbp + 0x28]
movzx ecx, ax
shr cx, 1
and ax, si
neg ax
xor ax, cx
movsx rax, ax
mov qword [rbx], rax
cmp r14, r15
jne 0x1400bba0a
jmp 0x1400bba97
mov qword [rbp - 0x10], rdi
mov byte [rbp - 8], 0
mov edx, r9d
mov rcx, rbx
call fcn.1400bd030
mov r8, qword [rbx]
mov r10, qword [rbx + 8]
cmp r8, r10
je 0x1400bba97
mov esi, 1
mov r11, r8
add r8, 8
mov byte [rbp - 8], 0
mov eax, dword [rdi + 0x18]
mov r9d, dword [rdi + 0x20]
sub eax, r9d
cmp eax, esi
jb 0x1400bbab0
mov rcx, qword [rdi + 0x10]
movsx rdx, byte [r9 + rcx]
lea eax, [r9 + 1]
mov dword [rdi + 0x20], eax
mov qword [r11], rdx
cmp r8, r10
jne 0x1400bba66
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
mov edx, esi
mov rcx, rdi
call fcn.14006fbcc
int3
Function at 0x1400c8f0c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14013d4b8], rbx
je 0x1400c8f58
cmp rax, rbx
jne 0x1400c8f4b
mov ebx, 1
mov esi, ebx
jmp 0x1400c8f5d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400c8f30
mov ebx, 1
mov eax, dword [0x14013d4c0]
cmp eax, ebx
jne 0x1400c8f73
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400c8fd8
mov eax, dword [0x14013d4c0]
test eax, eax
jne 0x1400c8fd2
mov dword [0x14013d4c0], ebx
lea r15, [0x1400d6930]
lea rdi, [0x1400d6918]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400c8fc4
test eax, eax
jne 0x1400c8fc8
cmp qword [rdi], 0
je 0x1400c8fb9
mov rax, qword [rdi]
mov rcx, qword [case.0x140057c6a.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400c8f9a
test eax, eax
je 0x1400c8fd8
mov eax, 0xff
jmp 0x1400c90b4
mov dword [0x14012d750], ebx
mov eax, dword [0x14013d4c0]
cmp eax, ebx
jne 0x1400c8fff
lea rdx, [0x1400d6910]
lea rcx, [0x1400d5fb0]
call sub.msvcrt.dll__initterm
mov dword [0x14013d4c0], 2
test esi, esi
jne 0x1400c900c
xor eax, eax
xchg qword [0x14013d4b8], rax
cmp qword [0x14013d4d8], 0
je 0x1400c9040
lea rcx, [0x14013d4d8]
call fcn.1400c9490
test eax, eax
je 0x1400c9040
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14013d4d8]
mov r9, qword [case.0x140057c6a.0]
call r9
mov r8, qword [0x14012d768]
mov rdx, qword [0x14012d760]
mov ecx, dword [0x14012d758]
call fcn.140009e00
mov dword [0x14012d74c], eax
cmp dword [0x14012d770], 0
jne 0x1400c9070
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14012d750], 0
jne 0x1400c9085
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14012d74c]
jmp 0x1400c90b4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400c9510
add rsp, 0x28
jmp 0x1400c8f0c

Function at 0x1400c9390
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400c93dc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c93d4
cmp dword [rcx + 0x3c], edx
jl 0x1400c93d4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400c93d4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400c93dc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14001d358
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14001d1eb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d1eb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d1eb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d1eb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d1eb
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d1eb
cmp dword [rcx + 0xf8], 0
je 0x14001d1eb
mov ecx, ebx
call fcn.14001d28c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001d07c
cmp dword [rbp + 0x20], 0
je 0x14001d238
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d240
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001d184
Function at 0x140023a14
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 rbx, rcx
test rcx, rcx
jne 0x14002373a
call fcn.140015ff0
mov dword [rax], 0x16
call fcn.140016224
jmp 0x140023885
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140023885
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140023885
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140023769
lock or dword [rcx + 0x14], 0x10
jmp 0x140023885
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14002377d
call fcn.140023dd8
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14002378d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140023790
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140021550
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14002c60c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140023873
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140023821
mov rcx, rbx
call fcn.140021550
cmp eax, 0xffffffff
je 0x14002380c
mov rcx, rbx
call fcn.140021550
cmp eax, 0xfffffffe
je 0x14002380c
mov rcx, rbx
call fcn.140021550
movsxd rdi, eax
lea r14, [0x14004a620]
mov rcx, rbx
sar rdi, 6
call fcn.140021550
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140023813
lea rdx, [0x140048430]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140023821
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140023845
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140023845
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140023845
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140023863
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14002386e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14002388a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x140023704
Function at 0x140012110
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14001214d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.1400110dc
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14001224c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.1400110dc
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x1400121c0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140003a80
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x14001228b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001228b
call fcn.1400110e4
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x140012272
mov rcx, r14
call fcn.1400110e4
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret