joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012130
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r13
sub rsp, 0x30
xor esi, esi
mov rdi, rcx
lea r13, [0x180054b90]
cmp dword [0x1800558bc], esi
jne 0x180012178
lea rcx, [0x180054b60]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
mov r8d, 0x200
mov rcx, r13
call sub.MSVCR100.dll_memset
mov dword [0x1800558bc], 1
lea rcx, [0x180054b60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r11d, r11d
mov rcx, r13
nop dword [rax + rax]
mov rbx, qword [rcx]
test rbx, rbx
je 0x1800121a1
lea rax, [rbx + 0x38]
cmp rax, qword [rdi]
je 0x1800121b3
inc r11d
add rcx, 8
cmp r11d, 0x40
jb 0x180012190
jmp 0x18001228d
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
mov qword [rsp + 0x50], rbp
call fcn.180011860
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rbp, rax
lea rax, [rsp + 0x58]
mov r9d, 0x40
mov rcx, rbp
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180012283
mov rcx, qword [rbx]
xor edx, edx
cmp dword [rbx + 8], edx
jbe 0x180012223
mov r8, rbx
sub r8, rcx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx + 0x58]
inc edx
inc rcx
mov byte [rcx - 1], al
cmp edx, dword [rbx + 8]
jb 0x180012210
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r8d, dword [rbx + 8]
mov r9d, dword [rsp + 0x58]
mov rdx, qword [rbx]
lea rax, [rsp + 0x58]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r11, qword [rbx]
mov qword [rdi], r11
mov esi, 1
xor eax, eax
mov rcx, r13
cmp qword [rcx], rbx
je 0x180012274
inc eax
add rcx, 8
cmp eax, 0x40
jb 0x180012262
jmp 0x180012283
dec dword [0x1800559c4]
mov qword [r13 + rax*8], 0
call fcn.1800117a0
mov rbp, qword [rsp + 0x50]
lea rcx, [0x180054b60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x180062790
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1800627bd
xor al, al
jmp 0x18006291f
mov rax, qword [0x180082670]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x180082678]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x180082680]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x180082688]
mov qword [rcx + 0x18], rax
mov rax, qword [0x180082690]
mov qword [rcx + 0x20], rax
mov rax, qword [0x180082698]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1800826a0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1800826a8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1800826b0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x180062911
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x180062869
mov r11d, 2
jmp 0x18006288d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x180062883
mov r11d, 1
jmp 0x18006288d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x180062935
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1800628d2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1800628ea
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1800628fa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x180062908
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x180062850
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x18006291a
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140020b00]
mov dword [rax], 1
mov rax, qword [0x140020b10]
mov dword [rax], 1
mov rax, qword [0x140020b20]
mov dword [rax], 1
mov rax, qword [0x140020a90]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009770
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
lea rsi, [0x14001f42c]
lea rdi, [0x140030120]
mov rcx, qword [0x1400270a8]
movq xmm6, rdi
movq xmm0, rsi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x1400097c7
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400097e8
mov rcx, qword [0x1400270a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030108], 0
jne 0x140009800
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400270a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400097ba
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400098b4
test al, 0x10
je 0x1400097d0
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x1400097d0
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140009860
jmp 0x1400097d0
Function at 0x140011230
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.140016d50
sub rsp, rax
mov eax, dword [0x140034120]
mov r12, rcx
test eax, eax
je 0x140011300
xor ebx, ebx
lea rsi, [0x140032120]
test eax, eax
jg 0x140011274
jmp 0x1400112a0
add rbx, 1
cmp dword [0x140034120], ebx
jle 0x1400112a0
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140011268
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x1400112b7
cmp word [r12 + 2], 0x3a
je 0x140011284
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140011350
movsxd rbx, dword [0x140034120]
cmp ebx, 0x3ff
jg 0x140011284
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x140034120], 1
mov r8, rax
lea rax, [0x140032120]
mov qword [rax + rbx*8], r8
jmp 0x140011284
lea r13, [rsp + 0x20]
lea r14, str._HOME_
mov r8d, 0x1000
mov rdx, r14
mov rcx, r13
call fcn.140008ed0
test al, al
je 0x140011368
movsxd rbx, dword [0x140034120]
mov rcx, r13
lea rsi, [0x140032120]
call sub.msvcrt.dll__wcsdup
mov qword [rsi + rbx*8], rax
mov eax, dword [0x140034120]
add eax, 1
mov dword [0x140034120], eax
jmp 0x140011256
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400112ca
xor eax, eax
jmp 0x140011289
mov rcx, r14
call fcn.140009740
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140015a50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001c950
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001c950
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140016702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034208]
test eax, eax
je 0x14001679a
lea rax, [0x1400341e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034210]
mov qword [rbp - 8], rax
jmp 0x14001677e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140016772
cmp qword [rbp - 0x10], 0
je 0x140016772
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140016738
lea rax, [0x1400341e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001679b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400168a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400168c8
mov eax, 0
jmp 0x140016916
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400168f1
mov eax, 0
jmp 0x140016916
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140016911
mov eax, 0
jmp 0x140016916
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001691c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001699a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140016991
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140016991
mov rax, qword [rbp - 8]
jmp 0x1400169af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140016964
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002ed0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008f10
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008f10
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0a4]
mov rbx, rcx
test esi, esi
jle 0x140003070
mov rax, qword [0x14000f0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003015
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f70
mov rcx, rbx
call fcn.140003990
mov rdi, rax
test rax, rax
je 0x140003092
mov rax, qword [0x14000f0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003ad0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003077
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000300e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003020
add dword [0x14000f0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000300e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ed0
nop dword [rax]
xor esi, esi
jmp 0x140002f98
mov rax, qword [0x14000f0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ed0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ed0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003600
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f0e0]
test rbx, rbx
je 0x14000365c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003653
test rsi, rsi
je 0x140003653
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003638
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003990
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000bde0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400039b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400039b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400039b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003a0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003a04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400039b0
add rax, 0x28
cmp rax, r9
jne 0x1400039f0
xor eax, eax
ret

Function at 0x140003a10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bde0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003a2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003a38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003a2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003ad0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bde0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003aef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003af8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001253
Capabilities:
Query environment variable

Disassembly:
jmp 0x140078a30
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0x130
mov rax, qword [0x140099d40]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov ebp, r9d
mov rsi, rdx
mov r14, rcx
test r8d, r8d
jle 0x140078b4a
xor ebx, ebx
lea rax, [rsp + 0x20]
mov rdx, r14
lea rcx, [rsp + 0x20]
sub rdx, rax
cmp ebx, r8d
je 0x140078b08
movzx eax, byte [rdx + rcx]
mov byte [rcx], al
cmp al, 0x20
je 0x140078b08
inc ebx
inc rcx
cmp ebx, 0x100
jb 0x140078a76
movsxd rax, ebx
movsxd rcx, r8d
mov qword [rsp + 0x160], rdi
cmp rax, rcx
jge 0x140078ac1
nop dword [rax]
cmp byte [rax + r14], 0x20
je 0x140078ac1
inc ebx
inc rax
cmp rax, rcx
jl 0x140078ab0
lea ecx, [rbx + 1]
lea rdx, str.getenv_
call fcn.140001172
movsxd rbx, ebx
mov rdx, r14
mov r8, rbx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, rdi
mov byte [rbx + rdi], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsp + 0x160]
jmp 0x140078b26
movsxd rax, ebx
cmp rax, 0x100
jae 0x140078b7f
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rbx, rbx
je 0x140078b4a
movzx ecx, byte [rbx]
test cl, cl
je 0x140078b4a
sub rbx, rsi
mov eax, ebp
dec ebp
test eax, eax
jle 0x140078b4a
mov byte [rsi], cl
inc rsi
movzx ecx, byte [rbx + rsi]
test cl, cl
jne 0x140078b35
test ebp, ebp
jle 0x140078b5b
mov r8d, ebp
mov dl, 0x20
mov rcx, rsi
call fcn.140080100
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400012c1
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop r14
pop rsi
pop rbp
ret
call fcn.140001456
int3

Function at 0x14000132a
Capabilities:
Terminate process

Disassembly:
jmp 0x14007ed60
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001393
Capabilities:
Terminate process

Disassembly:
jmp 0x14007c990
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, [0x14008c624]
mov rcx, rax
call fcn.140001514
test edi, edi
je 0x14007c9ff
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
call fcn.1400010c8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
xor edx, edx
lea ecx, [rdx + 0x16]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_signal]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400013c0
Capabilities:
Terminate process

Disassembly:
jmp 0x140077930
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
test edx, edx
jle 0x1400779b0
mov ecx, 2
mov qword [rsp + 0x30], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.STOP
call fcn.140001514
mov esi, ebx
nop dword [rax]
nop dword [rax + rax]
movsx ebx, byte [rdi]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
lea rdi, [rdi + 1]
sub rsi, 1
jne 0x140077970
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._statement_executed_n
call fcn.140001514
mov rsi, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000142e
Capabilities:
Terminate process

Disassembly:
jmp 0x14007a8b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rbx, ecx
mov rdi, rdx
cmp ebx, 0x63
ja 0x14007a8da
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
jmp 0x14007a94c
lea eax, [rbx + 1]
mov ecx, 2
cmp eax, 0x84
ja 0x14007a931
cmp ebx, 0xffffffff
jne 0x14007a908
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str._s:_end_of_file_n
mov rcx, rax
call fcn.140001514
jmp 0x14007a94c
lea rsi, str.error_in_format
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, qword [rsi + rbx*8 - 0x320]
lea rdx, str._s:__s_n
mov rcx, rax
mov r8, rdi
call fcn.140001514
jmp 0x14007a94c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea rdx, str._s:_illegal_error_number__d_n
mov rcx, rax
mov r8, rdi
call fcn.140001514
mov rcx, qword [0x1403122e0]
test rcx, rcx
je 0x14007a9dc
lea rax, [0x140311020]
sub rcx, rax
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
mov ecx, 2
mov rbx, rdx
sar rbx, 3
mov rax, rbx
shr rax, 0x3f
add rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, ebx
lea rdx, str.apparent_state:_unit__d
mov rcx, rax
call fcn.140001514
mov rax, qword [0x1403122e0]
lea rbx, str._unnamed__n
mov ecx, 2
mov rdi, qword [rax + 8]
lea rax, str.named__s_n
test rdi, rdi
cmovne rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001514
jmp 0x14007a9f6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.apparent_state:_internal_I_O_n
call fcn.140001514
cmp qword [0x140310fd0], 0
je 0x14007aa21
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140310fd0]
lea rdx, str.last_format:__s_n
mov rcx, rax
call fcn.140001514
cmp dword [0x140312318], 0
lea rax, str.external
lea rbp, str.internal
mov ecx, 2
cmovne rbp, rax
lea rsi, str.unformatted
cmp dword [0x140312310], 0
lea rax, str.formatted
lea rdi, str.direct
cmovne rsi, rax
lea rbx, str.writing
cmp dword [0x140312314], 0
lea rax, str.sequential
cmovne rdi, rax
cmp dword [0x14031231c], 0
lea rax, str.reading
cmovne rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x28], rbp
lea rdx, str.lately__s__s__s__s
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8, rbx
call fcn.140001514
mov edx, 1
lea rcx, [0x14008c5a8]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140001393
Function at 0x140001474
Capabilities:
Delete file

Disassembly:
jmp 0x140077770
sub rsp, 0x28
movsxd rax, dword [rcx + 4]
cmp eax, 0x64
jge 0x140077828
mov qword [rsp + 0x30], rbx
lea rbx, [rax + rax*2]
shl rbx, 4
lea rax, [0x140311020]
add rbx, rax
mov qword [rsp + 0x20], rdi
mov rdx, qword [rbx]
test rdx, rdx
je 0x14007780c
cmp dword [rbx + 0x2c], 1
je 0x1400777de
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400777bd
movzx eax, byte [rax]
sub al, 0x44
test al, 0xdf
je 0x1400777de
cmp dword [rbx + 0x28], 1
jne 0x1400777c8
call fcn.1400013a7
cmp qword [rbx + 8], 0
lea rdi, [rbx + 8]
je 0x140077803
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400777fa
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbx + 8]
lea rdi, [rbx + 8]
test rcx, rcx
je 0x140077803
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx], 0
jmp 0x140077810
lea rdi, [rbx + 8]
mov dword [rbx + 0x24], 0
mov rbx, qword [rsp + 0x30]
mov qword [rdi], 0
mov rdi, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret