joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400315f4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140059610]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140031652
cmp word [rdx], r12w
jne 0x140031652
or byte [rax + r8*8 + 0x38], cl
jmp 0x140031658
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400317b3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14003178e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140031691
mov rcx, r9
jmp 0x1400316b4
cmp r9, rdx
jae 0x1400316cb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140031675
jmp 0x1400317b3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140031788
cmp dword [rsp + 0x80], edi
je 0x140031788
mov rdx, r14
lea r11, [0x140059610]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140031761
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140031734
mov word [rbx], r12w
jmp 0x1400317af
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14003173d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400317af
cmp word [rsp + 0x70], r12w
jne 0x14003176e
cmp rbx, rsi
je 0x14003172e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002e184
cmp word [rsp + 0x70], r12w
je 0x1400317b3
mov word [rbx], r13w
jmp 0x1400317af
lea r11, [0x140059610]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400317ab
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400317b3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140036500
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.1400170d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003658a
cmp byte [rbp - 0x21], r15b
je 0x140036585
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400365c0
call fcn.140026f6c
test eax, eax
jne 0x1400365ac
cmp byte [rbp - 0x21], r15b
je 0x1400365a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400365c0
cmp byte [rbp - 0x21], r15b
je 0x1400365bd
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.140017174
test eax, eax
jne 0x140036660
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400170d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400365ff
cmp byte [rbp - 0x21], r15b
je 0x140036634
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140036634
call fcn.140026f6c
test eax, eax
jne 0x140036620
cmp byte [rbp - 0x21], r15b
je 0x140036619
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140036634
cmp byte [rbp - 0x21], r15b
je 0x140036631
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.140017174
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140036660
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140036663
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140036671
mov rcx, rdi
call fcn.140026394
cmp byte [rbp + 0x3f], r15b
je 0x140036680
mov rcx, qword [rbp + 0x27]
call fcn.140026394
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 0x140036e9c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002e184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002e184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140036fec
cmp rax, 0xffffffffffffffff
je 0x140036fec
xor edi, edi
test rbp, rbp
jle 0x140036f97
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400279a0
mov rbx, rax
test rax, rax
jne 0x140036f24
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140036f8d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400209b0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002fd94
cmp eax, 0xffffffff
je 0x140036f6d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140036f34
mov edx, r15d
mov ecx, r14d
call fcn.1400209b0
jmp 0x140036f8d
cmp byte [rsi + 0x38], dil
je 0x140036f84
cmp dword [rsi + 0x34], 5
jne 0x140036f84
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140036f8d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140026394
jmp 0x140037000
jns 0x140037000
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002e184
cmp rax, 0xffffffffffffffff
jne 0x140036fb8
cmp byte [rsi + 0x30], dil
je 0x140037000
mov edi, dword [rsi + 0x2c]
jmp 0x140037000
mov ecx, r14d
call fcn.14002f3f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140037000
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140037000
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140036ff9
mov eax, dword [rsi + 0x2c]
jmp 0x140036ffe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002e184
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x40317f
Capabilities:
Encode data using xor

Disassembly:
xor ebx, 0x26b57b0a
pop edi
xor ebx, edi
xor esi, ebx
mov edi, 0x1fb82d25
mov eax, 0x3e123043
xor eax, edi
xor esi, eax
mov ecx, 0x7f2339f6
xor ecx, 0x7f2339f6
xor ecx, esi
mov edi, ecx
mov eax, edi
push eax
pop edi
mov ebx, edi
add esp, 0xfffffffc
mov dword [esp], ebx
pop eax
add esp, 0xfffffffc
mov dword [esp], eax
mov ebx, 0x1b28a302
mov eax, 0x533ce92c
push ebx
xor eax, ebx
mov ebx, 0x63271c47
mov esi, 0x35d04675
xor esi, ebx
xor esi, eax
xor edi, esi
mov ecx, 0
xor ecx, edi
mov edx, ecx
add esp, 0xfffffffc
mov dword [esp], edx
adc al, 0x24
pop ebx
and ebx, 0xffffffff
je 0x403538
pop ebx
xor edx, edx
add edx, ebx
add esp, 0xfffffffc
mov dword [esp], edx
mov edi, 0x59948fe0
mov eax, 0x704d92af
xor eax, edi
mov ecx, 0x40080283
mov edx, 0x21212900
Function at 0x140012130
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x210
mov r9d, edx
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x208], rax
lea r8, [0x1400342be]
lea rdi, [rsp + 0x130]
mov r15d, 0x80
mov edx, 0x80
mov rcx, rdi
call fcn.140012310
mov word [rsp + 0x30], 0
movzx ebp, byte [rsp + 0x130]
test bpl, bpl
je 0x14001222f
lea r12, [rsp + 0x30]
xor eax, eax
lea rbx, [rsp + 0x1b0]
nop word cs:[rax + rax]
mov r14, r12
mov rcx, r15
test ax, ax
je 0x1400121e1
mov rcx, r15
mov rax, r12
nop word cs:[rax + rax]
lea r14, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, r14
jne 0x1400121d0
test rcx, rcx
je 0x14001230a
mov rcx, r14
call fcn.14001b0c8
lea rcx, [r14 + rax*2]
mov byte [rsp + 0x1b0], bpl
mov byte [rsp + 0x1b1], 0
mov r8d, 2
mov rdx, rbx
call fcn.14001a78c
movzx ebp, byte [rdi + 1]
test bpl, bpl
je 0x14001222f
inc rdi
dec r15
movzx eax, word [r12 + 2]
add r12, 2
jmp 0x1400121b0
mov word [rsp + 0x1b0], 0
movzx ebp, byte [rsi]
test bpl, bpl
je 0x1400122d4
mov r14d, 0x28
lea r15, [rsp + 0x1b0]
xor eax, eax
lea rdi, [rsp + 0x2e]
nop word [rax + rax]
mov rbx, r15
mov rcx, r14
test ax, ax
je 0x140012291
mov rcx, r14
mov rax, r15
nop word cs:[rax + rax]
lea rbx, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, rbx
jne 0x140012280
test rcx, rcx
je 0x14001230a
mov rcx, rbx
call fcn.14001b0c8
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2e], bpl
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, rdi
call fcn.14001a78c
movzx ebp, byte [rsi + 1]
test bpl, bpl
je 0x1400122d4
inc rsi
dec r14
movzx eax, word [r15 + 2]
add r15, 2
jmp 0x140012260
lea rcx, [rsp + 0x1b0]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.1400142b0
nop
add rsp, 0x210
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.14001a710
int3
Function at 0x140012ca0
Capabilities:
Check if file exists
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm8
movaps xmmword [rsp + 0x70], xmm7
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x14003daf8]
test rcx, rcx
je 0x140012d0a
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012cfd
mov rcx, qword [0x14003daf8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14003daf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140040340], 1
jne 0x140012db7
mov rbx, qword [0x14002e060]
mov qword [rsp + 0x50], rbx
movups xmm6, xmmword [0x14002e050]
movaps xmmword [rsp + 0x40], xmm6
movups xmm7, xmmword [0x14002e040]
movaps xmmword [rsp + 0x30], xmm7
movups xmm8, xmmword [0x14002e030]
movaps xmmword [rsp + 0x20], xmm8
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
lea rdi, [0x14003db10]
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax + rax]
mov rcx, rdi
call r14
cmp eax, 0xffffffff
je 0x140012db7
and eax, 0x10
je 0x140012db7
mov ecx, 0x64
call r15
mov qword [rsp + 0x50], rbx
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm8
mov rcx, rsi
call r12
dec ebp
jne 0x140012d80
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400142b0
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
movaps xmm8, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400140f0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.140014250
sub rsp, rax
mov rsi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x14003db00]
test eax, eax
je 0x140014125
test eax, eax
jg 0x14001416d
jmp 0x1400141a2
lea rdx, [0x140034436]
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.1400123a0
test al, al
je 0x14001422a
lea rcx, [rsp + 0x20]
call fcn.14001a434
movsxd rcx, dword [0x14003db00]
lea rdx, [0x140042b80]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003db00], eax
test eax, eax
jle 0x1400141a2
lea rdi, [0x140042b80]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001b090
test eax, eax
je 0x14001420b
inc rbx
movsxd rax, dword [0x14003db00]
add rdi, 8
cmp rbx, rax
jl 0x140014180
mov rcx, rsi
call fcn.14001b0c8
cmp rax, 2
jne 0x1400141b9
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x14001420d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400141d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x14001420d
cmp dword [0x14003db00], 0x3ff
jg 0x14001420d
mov rcx, rsi
call fcn.14001a434
movsxd rcx, dword [0x14003db00]
lea rdx, [0x140042b80]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x14003db00], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.1400142b0
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140034436]
call fcn.140013640
int3

Function at 0x140014a20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014a6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014a6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014a6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014a6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140014a6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014a6c
xor al, al
add rsp, 0x28
ret
Function at 0x140019200
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019348
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400193b7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400193b7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400193b7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400193b7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400193b7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400193b7
cmp dword [rcx + 0xf8], 0
je 0x1400193b7
mov ecx, ebx
call fcn.140019280
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400194dc
nop
cmp dword [rbp + 0x20], 0
je 0x140019405
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140019314
int3

Function at 0x140019348
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019348
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400193b7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400193b7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400193b7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400193b7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400193b7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400193b7
cmp dword [rcx + 0xf8], 0
je 0x1400193b7
mov ecx, ebx
call fcn.140019280
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400194dc
nop
cmp dword [rbp + 0x20], 0
je 0x140019405
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140019314
int3

Function at 0x14001b550
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b578
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b578
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140020dfc
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 0x140020e83
mov rsi, rbx
cmp word [rax], bp
je 0x140020e42
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140020e2c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140020e28
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e324
mov rdi, rax
test rax, rax
je 0x140020e70
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002a060
mov rbp, rdi
xor ecx, ecx
call fcn.14001d3d4
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 0x140025cf0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140025d06
mov al, 1
jmp 0x140025d66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140025d17
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140025d64
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400212f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140025d64
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140025d64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140025d64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140025d66
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001b630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x14001b660
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14001b688
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001b68a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001b6e3
test ecx, ecx
jle 0x14001b6c3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001b6e3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001b6e3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov cl, byte [rbx + rcx*4 + 0x3b94c376]
cwde
cmp dword [rdx + 0x28], ecx
pop rdi
invalid
Function at 0x14001b710
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001b732
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001b741
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x20], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001b764
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001b766
xor ecx, ecx
mov qword [rsp + 0x28], rbx
movsxd rax, ecx
test ecx, ecx
je 0x14001b7a0
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001b847
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14001b7db
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x14001b821
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x14001b860
cmp rdi, rax
ja 0x14001b7f0
mov r8, rbx
test rbx, rbx
je 0x14001b847
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rdi
jmp 0x14001b84a
xchg edi, eax
adc bl, byte [rsi + 0x6d]
in eax, dx
or byte [rcx - 0x7d], ch
invalid