joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140314240
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140314270
xor eax, eax
jmp 0x140314333
mov rbp, rbx
cmp word [rax], si
je 0x140314295
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14031427c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140314278
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1403124e4
movsxd r14, eax
test eax, eax
jne 0x1403142d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140314269
mov rcx, r14
call fcn.14030e5d0
mov rdi, rax
test rax, rax
jne 0x1403142ec
xor ecx, ecx
call fcn.14030e594
jmp 0x1403142c8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1403124e4
test eax, eax
jne 0x14031431d
mov rcx, rdi
call fcn.14030e594
jmp 0x140314327
xor ecx, ecx
call fcn.14030e594
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140314350
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1403143d7
mov rsi, rbx
cmp word [rax], bp
je 0x140314396
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140314380
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14031437c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14030e5d0
mov rdi, rax
test rax, rax
je 0x1403143c4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14031e5f0
mov rbp, rdi
xor ecx, ecx
call fcn.14030e594
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140317468
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14030d9c8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140317509
cmp ebx, dword [rsp + 0x30]
je 0x140317502
test esi, esi
je 0x140317502
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1403174dd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1403174ea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1403174c7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1403174ee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14031750b
mov eax, 1
jmp 0x14031750b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14031781c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14031783c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402f4dbc
or eax, 0xffffffff
jmp 0x14031783e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140317fa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14031dd70
sub rsp, rax
mov rax, qword [0x14045f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140309198
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140317fef
mov rax, rbp
jmp 0x1403180f7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x462f40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140304f9c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x462f40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1403180f3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1403180f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140304f9c
test rax, rax
js 0x1403180f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1403180f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1403180e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1403180e5
cmp byte [rcx], 0xd
jne 0x1403180cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1403180da
cmp byte [rcx + 1], 0xa
jne 0x1403180da
inc rcx
jmp 0x1403180da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x45f210]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1403180ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1403180f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1402e2560
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140318414
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14031842a
mov al, 1
jmp 0x14031848a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14031843b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140318488
mov ecx, dword [rcx + 0x18]
nop
call fcn.140304808
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140318488
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140318488
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140318488
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14031848a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140319de8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14045f040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140319e32
call fcn.1402f4e28
mov dword [rax], 0xf
call fcn.1402f4e48
mov dword [rax], 0xd
call fcn.140303280
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1402e2560
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140319e3d
lea eax, [rbx + 1]
jmp 0x140319e1f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140319e1d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140319e1f
Function at 0x14031c7ec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1402f4b9c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14031c876
cmp byte [rbp - 0x21], r15b
je 0x14031c871
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14031c8ac
call fcn.14030ede8
test eax, eax
jne 0x14031c898
cmp byte [rbp - 0x21], r15b
je 0x14031c890
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14031c8ac
cmp byte [rbp - 0x21], r15b
je 0x14031c8a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1402f4a20
test eax, eax
jne 0x14031c94c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402f4b9c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14031c8eb
cmp byte [rbp - 0x21], r15b
je 0x14031c920
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14031c920
call fcn.14030ede8
test eax, eax
jne 0x14031c90c
cmp byte [rbp - 0x21], r15b
je 0x14031c905
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14031c920
cmp byte [rbp - 0x21], r15b
je 0x14031c91d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1402f4a20
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14031c94c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14031c94f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14031c95d
mov rcx, rdi
call fcn.14030e594
cmp byte [rbp + 0x3f], r15b
je 0x14031c96c
mov rcx, qword [rbp + 0x27]
call fcn.14030e594
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14031de60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14031de88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14031de88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001210
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0xb0]
mov r12, rdx
xor edx, edx
mov qword [rsp + 0x30], r8
movzx r13d, r9b
mov r15, r8
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [rsp + 0xb8]
test ebx, ebx
je 0x140001265
cmp eax, ebx
cmova eax, ebx
xor esi, esi
mov dword [rsp + 0x38], 0
mov bpl, 1
test r13b, r13b
je 0x14000129a
cmp eax, ebx
jbe 0x1400012e2
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare__size_is_too_few_error
call fcn.140005b00
xor al, al
jmp 0x140001385
lea ebx, [rax + 1]
mov ecx, ebx
mov r15d, ebx
call fcn.14001fdb4
mov qword [r12], rax
test rax, rax
jne 0x1400012cf
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare__no_memory
call fcn.140005b00
xor al, al
jmp 0x140001385
mov rdi, rax
mov rcx, r15
mov r15, qword [rsp + 0x30]
xor eax, eax
rep stosb byte [rdi], al
mov rdi, qword [r12]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000132f
nop
mov eax, dword [rsp + 0x38]
add esi, eax
sub ebx, eax
test eax, eax
je 0x14000134a
mov edx, esi
lea r9, [rsp + 0x38]
add rdx, rdi
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001300
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare_fail
call fcn.1400068e0
xor bpl, bpl
test r13b, r13b
jne 0x140001366
test bpl, bpl
jne 0x14000136b
mov rcx, rdi
mov qword [r12], 0
call fcn.14001fad4
jmp 0x14000136e
test bpl, bpl
je 0x14000136e
mov dword [r15], esi
cmp byte [rsp + 0xc0], 0
je 0x140001381
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001fab0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400013b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x68
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001409
xor al, al
jmp 0x14000151a
mov qword [rsp + 0xa8], rbx
xor edx, edx
mov qword [rsp + 0x60], rsi
mov rcx, rbp
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], edi
mov r14b, 1
mov ebx, edi
lea esi, [rax + 1]
mov ecx, esi
mov r15d, esi
call fcn.14001fdb4
mov qword [r12], rax
test rax, rax
jne 0x14000146a
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare__no_memory
call fcn.140005b00
xor r14b, r14b
jmp 0x1400014ff
mov rdi, rax
lea r9, [rsp + 0x40]
xor eax, eax
mov rcx, r15
rep stosb byte [rdi], al
mov rdi, qword [r12]
xor r15d, r15d
mov rdx, rdi
mov qword [rsp + 0x20], r15
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400014cf
nop dword [rax + rax]
mov eax, dword [rsp + 0x40]
add ebx, eax
sub esi, eax
test eax, eax
je 0x140001532
mov edx, ebx
lea r9, [rsp + 0x40]
add rdx, rdi
mov qword [rsp + 0x20], r15
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400014a0
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.readBytesFileShare_fail
call fcn.1400068e0
mov rcx, rdi
mov qword [r12], r15
xor r14b, r14b
call fcn.14001fad4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x50]
movzx eax, r14b
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rbp
ret
mov dword [r13], ebx
jmp 0x1400014f6
Function at 0x140001540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000175f
test al, 0x10
jne 0x14000175f
mov rcx, rbp
call fcn.140015200
mov rdi, rax
xor esi, esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], sil
test rax, rax
jne 0x1400015c7
mov qword [rsp + 0x60], rax
mov byte [rsp + rax + 0x50], sil
jmp 0x1400015f8
lea rcx, [rsp + 0x50]
cmp rdi, 0xf
ja 0x1400015e8
mov qword [rsp + 0x60], rdi
mov r8, rdi
xor edx, edx
call fcn.140022630
mov byte [rsp + rdi + 0x50], 0
jmp 0x1400015f8
mov byte [rsp + 0x20], 0
mov r9, rdi
mov rdx, rdi
call fcn.140001d90
lea r14, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r14, qword [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140001707
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9b, 1
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.140001210
test al, al
je 0x140001707
mov eax, dword [rsp + 0x40]
cmp qword [rsp + 0x60], rax
je 0x1400016f4
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.File_size_error
call fcn.140005b00
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
xor r8d, r8d
lea rdx, [0x140059368]
mov rcx, rbx
call fcn.140001bd0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001782
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017aa
call fcn.14001fad4
jmp 0x140001782
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140001782
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
xor r8d, r8d
lea rdx, [0x140059368]
mov rcx, rbx
call fcn.140001bd0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140001782
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400017b0
jmp 0x1400016ea
xor esi, esi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
xor r8d, r8d
lea rdx, [0x140059368]
mov rcx, rbx
call fcn.140001bd0
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001fab0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140029424
int3
call fcn.140029424
int3
Function at 0x1400017c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400017ff
mov rcx, qword [rcx]
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14000188b
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.CreateFile_fail
call fcn.1400068e0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001884
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000187f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001948
mov rcx, r8
call fcn.14001fad4
xor al, al
jmp 0x14000191d
mov dword [rsp + 0x48], r12d
mov r14d, edi
mov esi, r12d
nop word [rax + rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
mov r8d, edi
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400018d6
mov eax, dword [rsp + 0x48]
sub edi, eax
add esi, eax
cmp esi, r14d
ja 0x1400018d1
add rbp, rax
test edi, edi
jne 0x1400018a0
mov dil, 1
jmp 0x1400018d9
xor dil, dil
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001919
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140001914
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000194e
mov rcx, r8
call fcn.14001fad4
movzx eax, dil
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140029424
int3
call fcn.140029424
int3
Function at 0x140005810
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push r15
sub rsp, 0xab8
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x208
call fcn.140022630
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140022630
xor edx, edx
lea rcx, [rsp + 0x470]
mov r8d, 0x208
call fcn.140022630
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.140014b30
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x260]
lea rdx, str._s_s.log
lea rcx, [rsp + 0x470]
call fcn.140001d30
mov rax, qword [rbp + 8]
xor r15d, r15d
cmp rax, 0xffffffffffffffff
jne 0x140005902
mov qword [rsp + 0x30], r15
lea r8d, [rax + 8]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x470]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp rax, 0xffffffffffffffff
je 0x140005a1a
mov qword [rsp + 0xab0], rbx
lea rcx, [rsp + 0x680]
mov qword [rsp + 0xaa8], rsi
lea rbx, [rsp + 0xae0]
mov qword [rsp + 0xaa0], rdi
xor edx, edx
mov r8d, 0x400
mov qword [rsp + 0xa98], r14
call fcn.140022630
call fcn.1400011a0
mov r9, qword [rsp + 0xad8]
lea rdx, [rsp + 0x680]
mov qword [rsp + 0x28], rbx
mov r8d, 0x400
mov qword [rsp + 0x20], r15
mov rcx, qword [rax]
call fcn.14002902c
lea r8, [0x1400599b4]
mov edx, 0x400
lea rcx, [rsp + 0x680]
call fcn.14002ad54
lea rax, [rsp + 0x680]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r15b
jne 0x140005994
mov rbp, qword [rbp + 8]
lea rsi, [rsp + 0x680]
mov dword [rsp + 0x40], r15d
mov r14d, ebx
mov edi, r15d
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400059fa
mov eax, dword [rsp + 0x40]
sub ebx, eax
add edi, eax
cmp edi, r14d
ja 0x1400059f1
add rsi, rax
test ebx, ebx
jne 0x1400059c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rdi, qword [rsp + 0xaa0]
mov rsi, qword [rsp + 0xaa8]
mov rbx, qword [rsp + 0xab0]
mov r14, qword [rsp + 0xa98]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0xab8
pop r15
pop rbp
ret
Function at 0x140005a40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov rsi, rcx
test r9, r9
jne 0x140005a7c
lea rcx, str.error_argument_is_null
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.1400011a0
mov qword [rsp + 0x28], rbx
mov r9, rdi
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov rcx, qword [rax]
or rcx, 2
call fcn.140029024
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
inc eax
cmp eax, 0x800
jb 0x140005ad5
lea rcx, str.error_argument_is_too_big
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r9, rbx
mov r8, rdi
mov edx, 0x800
mov rcx, rsi
call fcn.140002190
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140005b00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x1048
call fcn.1400208c0
sub rsp, rax
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov eax, dword [rcx + 0x14]
mov rdi, rdx
mov rbx, rcx
test eax, eax
je 0x140005c28
cmp eax, 2
jl 0x140005b50
cmp qword [rcx], 0xffffffffffffffff
je 0x140005c28
mov qword [rsp + 0x1040], rsi
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], 0
mov r8d, 0x800
lea rsi, [rsp + 0x1070]
call fcn.140022630
mov r9, rsi
lea rcx, [rsp + 0x30]
mov r8, rdi
call fcn.140005a40
mov rsi, qword [rsp + 0x1040]
test al, al
je 0x140005c28
mov ecx, dword [rbx + 0x14]
sub ecx, 1
je 0x140005bad
sub ecx, 1
je 0x140005bef
cmp ecx, 1
jne 0x140005c28
xor edx, edx
lea rcx, [rsp + 0x830]
mov r8d, 0x800
call fcn.140022630
lea r8, [rsp + 0x30]
lea rdx, str._s_r_n
lea rcx, [rsp + 0x830]
call fcn.140007610
lea rcx, [rsp + 0x830]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rbx + 0x14], 3
jne 0x140005c28
lea r8, [0x1400599b4]
mov edx, 0x800
lea rcx, [rsp + 0x30]
call fcn.14002ad54
lea rax, [rsp + 0x30]
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rax + r9], 0
jne 0x140005c11
mov rdx, qword [rbx]
lea r8, [rsp + 0x30]
call fcn.140005e30
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14001fab0
add rsp, 0x1048
pop rdi
pop rbx
ret