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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x14006e990
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1400df990]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x14006e9ce
cmp rsi, r14
jb 0x14006e9c6
cmp rsi, r15
jae 0x14006e9c6
cmp qword [rsi + 8], 0
jne 0x14006eb97
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14006e9b1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x14006ea62
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x14006ea59
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14006ea59
cmp dword [rsp + 0x70], 0x10000
je 0x14006eadb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x14006ea59
sub rbx, rbp
cmp rbx, r14
jae 0x14006ea20
test rsi, rsi
jne 0x14006eb40
cmp rdi, r15
ja 0x14006eb7f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x14006eb7f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14006eb7f
cmp dword [rsp + 0x70], 0x10000
je 0x14006eb11
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x14006ea92
jmp 0x14006eb7f
test rbx, rbx
je 0x14006ea59
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14006eb40
cmp rbx, r14
jae 0x14006ea00
jmp 0x14006ea62
test rdi, rdi
je 0x14006eb7f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14006eb40
cmp rdi, r15
jbe 0x14006ea70
jmp 0x14006eb7f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x14006eb50
mov rax, qword [0x1400df990]
mov qword [rsi], rax
mov qword [0x1400df990], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x140073fa8
Capabilities:
Parse pe header

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

Function at 0x1400836cc
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140083290
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x140083717
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x14008374b
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14008374b
call fcn.140093d08
xor ebx, ebx
test eax, eax
jne 0x140083739
cmp byte [rbp - 0x48], bl
je 0x140083732
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x14008374b
cmp byte [rbp - 0x48], bl
je 0x140083749
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.140083114
mov esi, eax
test eax, eax
je 0x140083787
call fcn.14008279c
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x1400837e0
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.140083114
mov edi, eax
test eax, eax
je 0x1400837c3
call fcn.14008279c
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x1400837d2
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.14008b7c0
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x1400837e0
mov rcx, qword [rbp - 0x50]
call fcn.1400913c8
cmp byte [rbp - 8], bl
je 0x1400837ee
mov rcx, qword [rbp - 0x20]
call fcn.1400913c8
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140089124
Capabilities:
Parse pe header

Disassembly:
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 0x140088f83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140088f83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140088f83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140088f83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140088f83
cmp dword [rcx + 0x84], 0xe
jbe 0x140088f83
cmp dword [rcx + 0xf8], 0
je 0x140088f83
mov ecx, ebx
call fcn.140089040
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.140088e10
nop
cmp dword [rbp + 0x20], 0
je 0x140088fd1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140088fdc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140088f14
Function at 0x1400947c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400947fa
call fcn.14008279c
mov dword [rax], 0x16
call fcn.140082424
jmp 0x140094919
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140094919
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140094919
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140094829
lock or dword [rcx + 0x14], 0x10
jmp 0x140094919
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14009483d
call fcn.1400950cc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140092048
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400955e4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140094907
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400948d2
mov rcx, rsi
call fcn.140092048
cmp eax, edi
je 0x1400948bd
mov rcx, rsi
call fcn.140092048
cmp eax, 0xfffffffe
je 0x1400948bd
mov rcx, rsi
call fcn.140092048
movsxd rbx, eax
lea r14, [0x1400da480]
mov rcx, rsi
sar rbx, 6
call fcn.140092048
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400948c4
lea rdx, [0x1400d4840]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400948d2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400948f6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400948f6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400948f6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14009491c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140094934
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 0x140094656
call fcn.14008279c
mov dword [rax], 0x16
call fcn.140082424
jmp 0x1400947a6
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400947a6
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400947a6
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140094685
lock or dword [rcx + 0x14], 0x10
jmp 0x1400947a6
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140094699
call fcn.1400950cc
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1400946a9
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400946ac
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140092048
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400955e4
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140094794
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14009473f
mov rcx, rbx
call fcn.140092048
cmp eax, 0xffffffff
je 0x14009472a
mov rcx, rbx
call fcn.140092048
cmp eax, 0xfffffffe
je 0x14009472a
mov rcx, rbx
call fcn.140092048
movsxd rdi, eax
lea rsi, [0x1400da480]
mov rcx, rbx
sar rdi, 6
call fcn.140092048
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140094731
lea rdx, [0x1400d4840]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14009473f
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140094763
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140094763
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140094763
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140094781
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x14009478c
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1400947ab
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 0x140094620
Function at 0x140094e4c
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.140073df0
sub rsp, rax
mov rax, qword [0x1400d4460]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140092048
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140094e9b
mov rax, rbp
jmp 0x140094fa3
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 + 0xda480]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140095dbc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xda480]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140094f9f
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 0x140094f9f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140095dbc
test rax, rax
js 0x140094f9f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140094f9f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140094f91
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140094f91
cmp byte [rcx], 0xd
jne 0x140094f77
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140094f86
cmp byte [rcx + 1], 0xa
jne 0x140094f86
inc rcx
jmp 0x140094f86
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd4890]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140094f59
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140094fa3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140072f90
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 0x140095138
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, [0x1400da480]
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 0x140095196
cmp word [rdx], r12w
jne 0x140095196
or byte [rax + r8*8 + 0x38], cl
jmp 0x14009519c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400952f7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400952d2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400951d5
mov rcx, r9
jmp 0x1400951f8
cmp r9, rdx
jae 0x14009520f
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 0x1400951b9
jmp 0x1400952f7
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 0x1400952cc
cmp dword [rsp + 0x80], edi
je 0x1400952cc
mov rdx, r14
lea r11, [0x1400da480]
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 0x1400952a5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140095278
mov word [rbx], r12w
jmp 0x1400952f3
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 0x140095281
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400952f3
cmp word [rsp + 0x70], r12w
jne 0x1400952b2
cmp rbx, rsi
je 0x140095272
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140095dc4
cmp word [rsp + 0x70], r12w
je 0x1400952f7
mov word [rbx], r13w
jmp 0x1400952f3
lea r11, [0x1400da480]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400952ef
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400952f7
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 0x14009976c
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.140083290
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400997f6
cmp byte [rbp - 0x21], r15b
je 0x1400997f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14009982c
call fcn.140093d08
test eax, eax
jne 0x140099818
cmp byte [rbp - 0x21], r15b
je 0x140099810
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14009982c
cmp byte [rbp - 0x21], r15b
je 0x140099829
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.140083114
test eax, eax
jne 0x1400998cc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140083290
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009986b
cmp byte [rbp - 0x21], r15b
je 0x1400998a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400998a0
call fcn.140093d08
test eax, eax
jne 0x14009988c
cmp byte [rbp - 0x21], r15b
je 0x140099885
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400998a0
cmp byte [rbp - 0x21], r15b
je 0x14009989d
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.140083114
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400998cc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400998cf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400998dd
mov rcx, rdi
call fcn.1400913c8
cmp byte [rbp + 0x3f], r15b
je 0x1400998ec
mov rcx, qword [rbp + 0x27]
call fcn.1400913c8
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 0x14009b348
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 0x14009b378
xor eax, eax
jmp 0x14009b43b
mov rbp, rbx
cmp word [rax], si
je 0x14009b39d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009b384
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009b380
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.140098a80
movsxd r14, eax
test eax, eax
jne 0x14009b3db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009b371
mov rcx, r14
call fcn.14009392c
mov rdi, rax
test rax, rax
jne 0x14009b3f4
xor ecx, ecx
call fcn.1400913c8
jmp 0x14009b3d0
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.140098a80
test eax, eax
jne 0x14009b425
mov rcx, rdi
call fcn.1400913c8
jmp 0x14009b42f
xor ecx, ecx
call fcn.1400913c8
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 0x1400a3570
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.140095dc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140095dc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a36c0
cmp rax, 0xffffffffffffffff
je 0x1400a36c0
xor edi, edi
test rbp, rbp
jle 0x1400a366b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140094518
mov rbx, rax
test rax, rax
jne 0x1400a35f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a3661
mov edx, 0x8000
mov ecx, r14d
call fcn.14008eed4
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.1400931d8
cmp eax, 0xffffffff
je 0x1400a3641
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a3608
mov edx, r15d
mov ecx, r14d
call fcn.14008eed4
jmp 0x1400a3661
cmp byte [rsi + 0x38], dil
je 0x1400a3658
cmp dword [rsi + 0x34], 5
jne 0x1400a3658
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a3661
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400913c8
jmp 0x1400a36d4
jns 0x1400a36d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140095dc4
cmp rax, 0xffffffffffffffff
jne 0x1400a368c
cmp byte [rsi + 0x30], dil
je 0x1400a36d4
mov edi, dword [rsi + 0x2c]
jmp 0x1400a36d4
mov ecx, r14d
call fcn.14009bf4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a36d4
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 0x1400a36d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a36cd
mov eax, dword [rsi + 0x2c]
jmp 0x1400a36d2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140095dc4
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 0x1400a3b80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a3ba8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a3ba8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400065e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x14003f5b0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov dword [rsp + 0x20], 0
mov eax, dword [0x140041400]
and eax, 1
test eax, eax
jne 0x140006654
mov eax, dword [0x140041400]
or eax, 1
mov dword [0x140041400], eax
call fcn.140006820
mov rdx, rax
lea rcx, [0x1400413f8]
call fcn.140001900
lea rcx, [0x14002e850]
call fcn.140016a64
lea rax, [0x1400413f8]
mov rax, qword [rax]
mov eax, dword [rax - 0x10]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x140006676
mov dword [rsp + 0x24], 1
jmp 0x14000667e
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140006743
mov byte [rsp + 0x90], 0
lea rax, [rsp + 0x91]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x38]
call fcn.140001980
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea r8, str.inf_
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140002690
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [0x1400413f8]
call fcn.140002260
nop
mov rax, qword [rsp + 0x30]
sub rax, 0x18
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400095c0
nop
mov rax, qword [rsp + 0x38]
sub rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1400095c0
lea rax, [0x1400413f8]
mov rax, qword [rax]
sub rax, 0x18
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140003130
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
add rax, 0x18
mov rcx, qword [rsp + 0x1c8]
mov qword [rcx], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140019ef0
add rsp, 0x1b0
pop rdi
ret

Function at 0x1400067b0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
and eax, 0
test eax, eax
je 0x1400067e7
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140006950
jmp 0x140006807
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [0x140030218]
mov rcx, qword [rsp + 0x38]
call fcn.1400174c0
mov rax, qword [rsp + 0x38]
add rsp, 0x28
ret