joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017fc0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push rbp
push rsi
push r15
sub rsp, 0x20
mov rbp, rdx
mov r8, rdx
mov rdx, rcx
mov rsi, rcx
xor r15d, r15d
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r15
call fcn.140054178
cmp eax, 0xd
jne 0x140018011
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400180f1
and eax, 0xfffffffe
mov rcx, rsi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400180d3
cmp eax, 2
jne 0x1400180e3
test rsi, rsi
je 0x1400180d3
mov qword [rsp + 0x40], rbx
mov rcx, rsi
mov qword [rsp + 0x48], rdi
call fcn.140057314
lea rdx, [0x14008f990]
mov rcx, rax
mov rdi, rax
call fcn.14004a854
mov rbx, rax
test rax, rax
je 0x1400180c1
cmp word [rdi], r15w
je 0x140018074
cmp word [rdi + 2], 0x3a
jne 0x140018074
lea rcx, [rax + 2]
lea rdx, [0x14008f990]
call fcn.14004a854
mov rbx, rax
test rax, rax
je 0x1400180c1
mov qword [rsp + 0x58], r14
mov r14d, 0x5c
nop
xor edx, edx
mov word [rbx], r15w
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400180a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400180bc
lea rcx, [rbx + 2]
mov word [rbx], r14w
lea rdx, [0x14008f990]
call fcn.14004a854
mov rbx, rax
test rax, rax
jne 0x140018080
mov r14, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140055bc8
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r8, rbp
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.140054178
test eax, eax
jne 0x1400180f1
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x1400180f3
xor eax, eax
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x140019700
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14009c020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rdx
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], r15w
jne 0x140019750
lea rcx, [rsp + 0x28]
call fcn.14000b2e0
nop
mov r8d, 5
lea rdx, str..temp
lea rcx, [rsp + 0x28]
call fcn.140002150
lea rsi, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rsi, qword [rsp + 0x28]
mov qword [rsp + 0x20], r15
lea r8, str.w__ccsUTF_8
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140054178
cmp eax, 0xd
jne 0x1400197d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400198e9
and eax, 0xfffffffe
mov edx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140019874
cmp eax, 2
jne 0x140019888
test rsi, rsi
je 0x140019874
mov rcx, rsi
call fcn.140057314
mov rdi, rax
lea rdx, [0x14008f990]
mov rcx, rax
call fcn.14004a854
mov rbx, rax
test rax, rax
je 0x14001986c
cmp word [rdi], 0
je 0x140019829
cmp word [rdi + 2], 0x3a
jne 0x140019829
lea rcx, [rax + 2]
lea rdx, [0x14008f990]
call fcn.14004a854
mov rbx, rax
test rax, rax
je 0x14001986c
mov r12d, 0x5c
nop
mov word [rbx], r15w
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140019850
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001986c
mov word [rbx], r12w
lea rcx, [rbx + 2]
lea rdx, [0x14008f990]
call fcn.14004a854
mov rbx, rax
test rax, rax
jne 0x140019830
mov rcx, rdi
call fcn.140055bc8
lea r8, str.w__ccsUTF_8
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140054178
test eax, eax
jne 0x1400198e9
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x1400198e9
cmp byte [r14 + 0x9c], al
je 0x1400198c6
mov rdx, rbx
mov ecx, 0xef
call fcn.1400571e8
mov rdx, rbx
mov ecx, 0xbb
call fcn.1400571e8
mov rdx, rbx
mov ecx, 0xbf
call fcn.1400571e8
mov rax, qword [r14]
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [rax + 8]
mov rcx, rbx
call fcn.140054204
mov rcx, rbx
test eax, eax
je 0x140019952
call fcn.140054458
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140019929
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019924
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019991
call fcn.140048430
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140048410
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.14005eba4
nop
mov ecx, eax
call fcn.14005e664
mov rcx, rbx
call fcn.140054458
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov r8d, 3
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
jmp 0x1400198eb
call fcn.140054034
int3
Function at 0x14006b5fc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14006b5d9
call fcn.140055c94
mov dword [rax], 0x16
call fcn.140054014
or eax, 0xffffffff
jmp 0x14006b5f6
sub dword [rcx + 0x10], 1
jns 0x14006b5e8
add rsp, 0x28
jmp fcn.14006ebc8
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14006b5b8

Function at 0x14006ed34
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 0x14006ea5a
call fcn.140055c94
mov dword [rax], 0x16
call fcn.140054014
jmp 0x14006eba5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14006eba5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14006eba5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14006ea89
lock or dword [rcx + 0x14], 0x10
jmp 0x14006eba5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14006ea9d
call fcn.140076ef0
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14006eaad
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14006eab0
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14005eba4
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14006d21c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14006eb93
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14006eb41
mov rcx, rbx
call fcn.14005eba4
cmp eax, 0xffffffff
je 0x14006eb2c
mov rcx, rbx
call fcn.14005eba4
cmp eax, 0xfffffffe
je 0x14006eb2c
mov rcx, rbx
call fcn.14005eba4
movsxd rdi, eax
lea r14, [0x14009f330]
mov rcx, rbx
sar rdi, 6
call fcn.14005eba4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14006eb33
lea rdx, [0x14009c240]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006eb41
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14006eb65
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14006eb65
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14006eb65
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14006eb83
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14006eb8e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14006ebaa
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 0x14006ea24
Function at 0x140001880
Capabilities:
Accept command line arguments

Disassembly:
push rbx
mov eax, 0x20
call fcn.140008650
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x1400018d3
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor r8d, r8d
lea rdx, [0x140022920]
mov r9, rax
mov cl, 0x45
call fcn.140004d00
mov ecx, 0x1e7
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8d, [rbx + 1]
lea rdx, str.called_with_NULL_pointer
lea rcx, str.ss_free
call fcn.140002950
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x140001909
xor r8d, r8d
lea rdx, [0x140022970]
lea rcx, str.ss_free
call fcn.140002950
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140001970
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rbx
mov eax, 0x250
call fcn.140008650
sub rsp, rax
mov rax, qword [0x140030d00]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x20
lea rdx, [rsp + 0x20]
lea rcx, str._AsJob
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140001bf6
lea rcx, str.C:MgrRun_
call fcn.140001fb0
test eax, eax
je 0x140001bf6
call fcn.140004f70
mov rdx, rax
lea rcx, str.Han0
mov r8d, 4
call fcn.140002210
test eax, eax
jne 0x140001bf6
mov byte [rsp + 0x20], al
mov word [rsp + 0x140], ax
call fcn.140005050
mov r9, rax
lea rdx, [rsp + 0x140]
xor r8d, r8d
xor ecx, ecx
call fcn.140001d00
movups xmm0, xmmword [str.C:MgrRun_]
movaps xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x1400229a0]
movsd qword [rsp + 0x50], xmm0
call fcn.140004fe0
lea rcx, [rsp + 0x40]
mov r8, rax
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001a40
xor edx, edx
nop dword [rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001a50
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001a70
movsd xmm0, qword [str._Run_]
mov eax, dword [0x1400229b8]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001aa0
lea r8, [rsp + 0x140]
xor edx, edx
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001ac0
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001ae0
movsd xmm0, qword [str..log]
lea rdx, [rsp + 0x20]
movzx eax, word [0x1400229c8]
mov r8d, 0x20
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, str._Job
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140001b3e
call fcn.1400050e0
lea rdx, [rsp + 0x20]
sub rdx, rax
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140001b30
lea rcx, [rsp + 0x40]
call fcn.140002e60
mov rbx, rax
test rax, rax
je 0x140001bf6
call fcn.140005170
mov rdx, rax
mov rcx, rbx
call fcn.140003800
lea rdx, [0x1400229d4]
mov rcx, rbx
call fcn.140003800
call fcn.140004f70
mov rdx, rax
mov rcx, rbx
call fcn.140003800
lea rdx, [0x1400229d4]
mov rcx, rbx
call fcn.140003800
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140003800
lea rcx, [rsp + 0x20]
call fcn.140005340
cmp eax, 0x10
jge 0x140001bc6
mov r8d, 0x10
lea rdx, [0x1400229d8]
sub r8d, eax
mov rcx, rbx
call fcn.1400036e0
lea rdx, [0x1400229d4]
mov rcx, rbx
call fcn.140003800
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
mov rcx, rbx
call fcn.140003800
mov rcx, rbx
call fcn.140003860
mov rcx, rbx
call fcn.140002cc0
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400086b0
add rsp, 0x250
pop rbx
ret
Function at 0x140001fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
mov eax, 0x20
call fcn.140008650
sub rsp, rax
lea rdx, [0x1400229f0]
mov rbx, rcx
call fcn.1400022f0
test eax, eax
je 0x140001feb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140002060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x28
call fcn.140008650
sub rsp, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002083
shr eax, 4
and eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400025a0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.140008650
sub rsp, rax
cmp qword [0x140031838], 0
mov rbp, rcx
jne 0x14000261f
xor r8d, r8d
lea edx, [rax - 0x1f]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x140031830], rax
test rax, rax
jne 0x1400025fb
lea r8d, [rax + 1]
lea rdx, str.CreateMutex
lea rcx, str.ss_wc
call fcn.140002950
mov ecx, 0x1000
call fcn.140001920
mov ecx, 0x2000
mov qword [0x140031838], rax
call fcn.140001920
mov qword [0x140031840], rax
jmp 0x14000264f
mov rcx, qword [0x140031830]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14000264f
mov r8d, 1
lea rdx, [0x140022a48]
lea rcx, str.ss_wc
call fcn.140002950
movsxd rbx, dword [0x140031828]
lea eax, [rbx + 1]
mov dword [0x140031828], eax
cmp eax, 0x400
jl 0x140002670
mov dword [0x140031828], 0
mov rcx, rbp
call fcn.140005340
mov rcx, qword [0x140031840]
mov rsi, rbx
lea edi, [rax*2 + 0x10]
cmp qword [rcx + rbx*8], 0
lea rbx, [rbx*4]
jne 0x1400026d2
mov eax, 0x40
movsxd rcx, edi
cmp rcx, rax
cmovb rcx, rax
mov rax, qword [0x140031838]
mov dword [rbx + rax], ecx
mov rcx, qword [0x140031838]
mov ecx, dword [rbx + rcx]
call fcn.140001920
mov rcx, qword [0x140031840]
mov qword [rcx + rsi*8], rax
mov rcx, qword [0x140031840]
mov rax, qword [0x140031838]
cmp dword [rbx + rax], edi
jge 0x140002703
mov rcx, qword [rcx + rsi*8]
call fcn.140001880
mov ecx, edi
call fcn.140001920
mov rdx, qword [0x140031840]
mov qword [rdx + rsi*8], rax
mov rax, qword [0x140031838]
mov dword [rbx + rax], edi
mov rcx, qword [0x140031830]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x14000272b
lea r8d, [rax + 1]
lea rdx, [0x140022a70]
lea rcx, str.ss_wc
call fcn.140002950
mov rcx, qword [0x140031840]
mov rdx, rbp
mov rcx, qword [rcx + rsi*8]
call fcn.1400053e0
mov rax, qword [0x140031840]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, qword [rax + rsi*8]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002950
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0xc0
call fcn.140008650
sub rsp, rax
mov rax, qword [0x140030d00]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [0x140030200], 0
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
je 0x140002b61
mov qword [rsp + 0xf0], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xf8], r14
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6c]
movzx edx, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x66]
movzx r11d, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], edx
mov edx, 0x40
mov dword [rsp + 0x30], r8d
lea r8, str._4.4d._2.2d._2.2d__2.2d:_2.2d:_2.2d._3.3d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.140002c00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140002a12
test ebp, ebp
mov eax, 1
cmovne ebx, eax
call fcn.140005420
lea rcx, [0x140022ae4]
call fcn.140002c60
mov r8d, ebx
lea rcx, [0x140022ae8]
mov edx, ebx
call fcn.140002c60
lea rdx, [rsp + 0x70]
lea rcx, str._Date:_______s_n
call fcn.140002c60
call fcn.140005050
mov rdx, rax
lea rcx, str._Imagename:___s__n
call fcn.140002c60
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, str._Command:_____s__n
call fcn.140002c60
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 0xff
xor r14d, r14d
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x30], r14
mov r9d, 0x400
mov dword [rsp + 0x28], 0x100
mov r8d, ebx
mov ecx, 0x1100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jle 0x140002b1e
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140002b1e
movzx ecx, word [rdx]
mov rax, rdx
test cx, cx
je 0x140002ae5
cmp cx, 0xa
je 0x140002ace
cmp cx, 0xd
jne 0x140002ad3
mov word [rax], 0x20
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x140002ac2
mov rdx, qword [rsp + 0x50]
cmp word [rax - 2], 0x20
jne 0x140002af6
mov word [rax - 2], r14w
mov rdx, qword [rsp + 0x50]
cmp word [rax - 4], 0x20
jne 0x140002b07
mov word [rax - 4], r14w
mov rdx, qword [rsp + 0x50]
lea rcx, str._Message:_____s__n
call fcn.140002c60
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp word [rsi], 0
mov r14, qword [rsp + 0xf8]
je 0x140002b3b
mov rdx, rsi
lea rcx, str._Function:____s__n
call fcn.140002c60
cmp word [rdi], 0
je 0x140002b50
mov rdx, rdi
lea rcx, str._Parameter:___s__n
call fcn.140002c60
test ebp, ebp
jne 0x140002b7e
call fcn.1400054e0
mov rbx, qword [rsp + 0xf0]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400086b0
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str._Status:_____Program_aborted___n
call fcn.140002c60
mov ecx, ebx
call fcn.140012ccc
int3
Function at 0x140002cc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x30
call fcn.140008650
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x140002ce9
lea eax, [rcx + 1]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx]
mov edi, 1
test rcx, rcx
je 0x140002d57
cmp dword [rbx + 0x1c], 0
je 0x140002d2f
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jle 0x140002d2f
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002d2f
lea eax, [rdi - 2]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 0x18], 0
jne 0x140002d57
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test eax, eax
jne 0x140002d57
mov rdx, qword [rbx + 8]
lea rcx, str.ss_fclose
xor r8d, r8d
call fcn.140002950
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002d65
call fcn.140001880
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140002d73
call fcn.140001880
mov rcx, rbx
call fcn.140001880
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x140002d90
Capabilities:
Get file size

Disassembly:
push rbx
mov eax, 0x20
call fcn.140008650
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x140002dbe
lea r8d, [rax - 0x1f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fhsize
call fcn.140002950
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x140002fe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x40
call fcn.140008650
sub rsp, rax
mov rdi, rcx
call fcn.140002de0
cmp word [rdi], 0x2d
mov rbx, rax
jne 0x140003050
cmp word [rdi + 2], 0
jne 0x140003050
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rbx + 0x18], 1
mov qword [rbx], rax
mov ecx, dword [0x140030208]
mov dword [rbx + 0x20], ecx
mov ecx, dword [0x140030208]
call fcn.140001920
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov eax, dword [0x140030204]
xor esi, esi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140003022
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140030204]
lea r8d, [rsi + 1]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140003022
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140030204]
lea r8d, [rsi + 3]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140003022
test rbx, rbx
je 0x140003182
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000315e
cmp dword [rbx + 0x1c], esi
je 0x140003139
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jle 0x140003139
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003182
cmp dword [rbx + 0x18], esi
jne 0x14000315e
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000315e
mov rdx, qword [rbx + 8]
lea rcx, str.ss_fclose
xor r8d, r8d
call fcn.140002950
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000316c
call fcn.140001880
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000317a
call fcn.140001880
mov rcx, rbx
call fcn.140001880
mov rbx, qword [rsp + 0x58]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400031a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x40
call fcn.140008650
sub rsp, rax
mov rdi, rcx
call fcn.140002de0
cmp word [rdi], 0x2d
mov rbx, rax
jne 0x1400031ee
cmp word [rdi + 2], 0
jne 0x1400031ee
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
mov rax, rbx
mov dword [rbx + 0x18], 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov eax, dword [0x140030204]
xor r9d, r9d
mov qword [rsp + 0x58], rsi
mov edx, 0x80000000
xor esi, esi
mov rcx, rdi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000333b
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140030204]
lea r8d, [rsi + 1]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000333b
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140030204]
lea r8d, [rsi + 3]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000333b
test rbx, rbx
je 0x140003329
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003305
cmp dword [rbx + 0x1c], esi
je 0x1400032e0
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jle 0x1400032e0
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140003329
cmp dword [rbx + 0x18], esi
jne 0x140003305
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140003305
mov rdx, qword [rbx + 8]
lea rcx, str.ss_fclose
xor r8d, r8d
call fcn.140002950
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140003313
call fcn.140001880
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140003321
call fcn.140001880
mov rcx, rbx
call fcn.140001880
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rsi, qword [rsp + 0x58]
mov qword [rbx], rax
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret