joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008a80
Capabilities:
Terminate process

Disassembly:
jmp 0x140008a80
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, dword [0x14001989c]
mov rdi, rcx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebx
lea rdx, str.Error:_illegal_character_s____s__detected_at_line__d:_n
mov rcx, rax
mov r8, rdi
call fcn.1400014f6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [0x140018600]
lea rdx, [0x140013ab4]
call fcn.1400014f6
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000c314
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000c314
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c35e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c35e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c35e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c35e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c35e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c360
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
cdq
std
cld
xchg ecx, eax
sahf
nop
stc
wait
std
std
std
std
cld
xchg edx, eax
xchg ecx, eax
xchg ebx, eax
stc
cld
cdq
stc
xchg ecx, eax
stc
clc
lahf
xchg edx, eax
wait
std
cdq
cld
sahf
cwde
xchg ecx, eax
xchg ecx, eax
cwde
std
cwde
cdq
nop
lahf
std
nop
wait
wait
cwde
xchg ecx, eax
clc
std
cld
lahf
sahf
cwde
clc
stc
cdq
sahf
cld
xchg ebx, eax
cdq
xchg ecx, eax
stc
cld
std
cdq
stc
wait
xchg ebx, eax
cld
xchg ecx, eax
cdq
cdq
cdq
stc
nop
cdq
cwde
wait
cld
cwde
cld
nop
cdq
nop
cwde
stc
xchg ebx, eax
cdq
clc
xchg ecx, eax
wait
xchg ecx, eax
xchg edx, eax
stc
xchg ecx, eax
nop
wait
xchg edx, eax
cwde
std
nop
wait
xor r14, r14
mov r13, rsp
fcmovnu st(0), st(2)
movabs rbp, 0x59b347c043b22f2c
and r13w, 0xf840
fxsave64 [r13]
mov r14w, 0x2df
add r13, 8
mov rsi, qword [r13]
dec r14
xor qword [rsi + r14*8 + 0x31], rbp
test r14, r14
jne 0x14000408e
js 0x140004103
or edi, edx
cmp eax, 0xdf3757f0
or eax, 0xf9f028a
invalid
int3

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001b10
Capabilities:
Get file version info

Disassembly:
push rdi
sub rsp, 0x3f0
lea rdi, [rsp + 0x30]
mov ecx, 0xf0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x3e8], rax
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140001b64
lea rcx, str.Unable_to_get_executable_file_name._n
call fcn.140002a60
jmp 0x140001ce0
lea rdx, [rsp + 0x264]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x274], eax
cmp dword [rsp + 0x274], 0
jne 0x140001b98
lea rcx, str.Unable_to_get_version_info_size._n
call fcn.140002a60
jmp 0x140001ce0
mov eax, dword [rsp + 0x274]
mov ecx, eax
call fcn.140002b44
mov qword [rsp + 0x3e0], rax
mov rax, qword [rsp + 0x3e0]
mov qword [rsp + 0x278], rax
mov r9, qword [rsp + 0x278]
mov r8d, dword [rsp + 0x274]
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140001bef
lea rcx, str.Unable_to_get_version_info._n
call fcn.140002a60
jmp 0x140001ce0
lea r9, [rsp + 0x2a4]
lea r8, [rsp + 0x288]
lea rdx, [0x140005704]
mov rcx, qword [rsp + 0x278]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140001c28
lea rcx, str.Unable_to_query_version_value._n
call fcn.140002a60
jmp 0x140001ce0
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x2b8], rax
mov rax, qword [rsp + 0x2b8]
mov eax, dword [rax + 0x14]
and eax, 0xffff
mov rcx, qword [rsp + 0x2b8]
mov ecx, dword [rcx + 0x14]
shr ecx, 0x10
mov rdx, qword [rsp + 0x2b8]
mov edx, dword [rdx + 0x10]
and edx, 0xffff
mov r8, qword [rsp + 0x2b8]
mov r8d, dword [r8 + 0x10]
shr r8d, 0x10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, edx
lea rdx, str.version__i._i._i._i
lea rcx, [rsp + 0x2d0]
call fcn.140002740
lea rdx, [0x140005c18]
lea rcx, [rsp + 0x360]
call fcn.140002870
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x360]
call fcn.140002810
lea rdx, str._njabswitch_enables_or_disables_the_Java_Access_Bridge._n
lea rcx, [rsp + 0x360]
call fcn.140002810
lea rcx, [rsp + 0x360]
call fcn.140002a60
mov rcx, rsp
lea rdx, [0x140006480]
call fcn.140002de8
mov rcx, qword [rsp + 0x3e8]
xor rcx, rsp
call fcn.140002ef0
add rsp, 0x3f0
pop rdi
ret
Function at 0x14067e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14067e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14067e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067e06f
add dl, dl
jne 0x14067e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067e0f6
xor eax, eax
add dl, dl
jne 0x14067e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067e1ad
add dl, dl
jne 0x14067e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14067e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14067e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14067e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14067e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14067e07e
mov eax, 1
add dl, dl
jne 0x14067e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14067e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067e0fb
sub eax, ebx
mov ebx, 1
jne 0x14067e14c
mov ecx, 1
add dl, dl
jne 0x14067e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14067e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14067e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14067e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067e15d
cmp eax, 0x7d00
jae 0x14067e19b
cmp eax, 0x500
jb 0x14067e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067e07e
cmp eax, 0x7f
ja 0x14067e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14067e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14067e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400014b0
Capabilities:
Encode data using xor

Disassembly:
movsxd r8, dword [0x14003e3ac]
lea r9, [0x14003e3c0]
movsxd rax, edx
mov r10, rcx
mov r9, qword [r9 + r8*8]
inc r8d
dec rax
mov dword [0x14003e3ac], r8d
test rax, rax
jle 0x140001595
mov rdx, r9
sub r10, r9
mov r8, rax
nop word [rax + rax]
movzx ecx, byte [rdx + r10]
mov byte [rdx], cl
lea rdx, [rdx + 1]
xor cl, byte [0x14003d017]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d016]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d015]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d014]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d013]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d012]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d011]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d010]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d00f]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d00e]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d00d]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d00c]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d00b]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d00a]
mov byte [rdx - 1], cl
xor cl, byte [str.A_bE1]
mov byte [rdx - 1], cl
xor cl, byte [0x14003d008]
mov byte [rdx - 1], cl
sub r8, 1
jne 0x1400014f0
mov byte [rax + r9], 0
xor eax, eax
mov ecx, dword [0x14003e3ac]
cmp ecx, 0xf
cmovge ecx, eax
mov rax, r9
mov dword [0x14003e3ac], ecx
ret

Function at 0x1400015c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov rdi, rdx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x24]
add rsi, rcx
mov r10d, dword [r8 + 0x20]
add rbp, rcx
mov ebx, dword [r8 + 0x18]
add r10, rcx
test ebx, ebx
je 0x140001643
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001633
inc rax
test ecx, ecx
jne 0x140001620
test edx, edx
je 0x14000165a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x140001610
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x140001645

Function at 0x140015614
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015404
Function at 0x14001a764
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 0x14001a796
call fcn.140011864
mov dword [rax], 0x16
call fcn.14000d038
jmp 0x14001a8b5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001a8b5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001a8b5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001a7c5
lock or dword [rcx + 0x14], 0x10
jmp 0x14001a8b5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001a7d9
call fcn.14001bf14
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001952c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001b544
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14001a8a3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001a86e
mov rcx, rsi
call fcn.14001952c
cmp eax, edi
je 0x14001a859
mov rcx, rsi
call fcn.14001952c
cmp eax, 0xfffffffe
je 0x14001a859
mov rcx, rsi
call fcn.14001952c
movsxd rbx, eax
lea r14, [0x14003f6e0]
mov rcx, rsi
sar rbx, 6
call fcn.14001952c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14001a860
lea rdx, [0x14003d5e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001a86e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14001a892
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14001a892
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14001a892
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 0x14001a8b8
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 0x14001abe0
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.140006f30
sub rsp, rax
mov rax, qword [0x14003d238]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001952c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001ac2f
mov rax, rbp
jmp 0x14001ad37
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 + 0x3f6e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001bd1c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f6e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001ad33
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 0x14001ad33
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001bd1c
test rax, rax
js 0x14001ad33
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001ad33
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001ad25
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001ad25
cmp byte [rcx], 0xd
jne 0x14001ad0b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001ad1a
cmp byte [rcx + 1], 0xa
jne 0x14001ad1a
inc rcx
jmp 0x14001ad1a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d630]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001aced
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001ad37
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006f00
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 0x14001b098
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, [0x14003f6e0]
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 0x14001b0f6
cmp word [rdx], r12w
jne 0x14001b0f6
or byte [rax + r8*8 + 0x38], cl
jmp 0x14001b0fc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14001b257
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14001b232
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14001b135
mov rcx, r9
jmp 0x14001b158
cmp r9, rdx
jae 0x14001b16f
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 0x14001b119
jmp 0x14001b257
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 0x14001b22c
cmp dword [rsp + 0x80], edi
je 0x14001b22c
mov rdx, r14
lea r11, [0x14003f6e0]
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 0x14001b205
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14001b1d8
mov word [rbx], r12w
jmp 0x14001b253
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 0x14001b1e1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001b253
cmp word [rsp + 0x70], r12w
jne 0x14001b212
cmp rbx, rsi
je 0x14001b1d2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001bd24
cmp word [rsp + 0x70], r12w
je 0x14001b257
mov word [rbx], r13w
jmp 0x14001b253
lea r11, [0x14003f6e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001b24f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001b257
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 0x140020920
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 0x1400209a7
mov rsi, rbx
cmp word [rax], bp
je 0x140020966
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140020950
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002094c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001bf80
mov rdi, rax
test rax, rax
je 0x140020994
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400087d0
mov rbp, rdi
xor ecx, ecx
call fcn.1400186c4
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 0x140028244
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.14001bd24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bd24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028394
cmp rax, 0xffffffffffffffff
je 0x140028394
xor edi, edi
test rbp, rbp
jle 0x14002833f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140018700
mov rbx, rax
test rax, rax
jne 0x1400282cc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028335
mov edx, 0x8000
mov ecx, r14d
call fcn.140015690
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.14001a454
cmp eax, 0xffffffff
je 0x140028315
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400282dc
mov edx, r15d
mov ecx, r14d
call fcn.140015690
jmp 0x140028335
cmp byte [rsi + 0x38], dil
je 0x14002832c
cmp dword [rsi + 0x34], 5
jne 0x14002832c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028335
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400186c4
jmp 0x1400283a8
jns 0x1400283a8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bd24
cmp rax, 0xffffffffffffffff
jne 0x140028360
cmp byte [rsi + 0x30], dil
je 0x1400283a8
mov edi, dword [rsi + 0x2c]
jmp 0x1400283a8
mov ecx, r14d
call fcn.140021300
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x1400283a8
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 0x1400283a8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400283a1
mov eax, dword [rsi + 0x2c]
jmp 0x1400283a6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bd24
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 0x140004a90
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
xor r8, r8
push r8
push rax
pushfq
push r8
push rdx
sub rsp, 0xa8
push r8
push r15
push r14
push r13
push r12
push rbx
push r8
push rsi
push rdi
push rbp
push rax
push rdx
sub rsp, 0x280
movdqa xmmword [rsp + 0x2e0], xmm6
movdqa xmmword [rsp + 0x2f0], xmm7
movdqa xmmword [rsp + 0x300], xmm8
movdqa xmmword [rsp + 0x310], xmm9
movdqa xmmword [rsp + 0x320], xmm10
movdqa xmmword [rsp + 0x330], xmm11
movdqa xmmword [rsp + 0x340], xmm12
movdqa xmmword [rsp + 0x350], xmm13
movdqa xmmword [rsp + 0x360], xmm14
movdqa xmmword [rsp + 0x370], xmm15
mov eax, dword [0x14043fdc8]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x10
add rax, rbx
lea rdx, [rsp + 0x20]
xor r8, r8
mov qword [rdx + 0x10], r8
mov byte [rdx + 0x19], 1
mov dword [rdx + 0x1c], 0xffffffff
mov byte [rdx + 0x18], 2
mov r8, qword [rax + 0x80]
mov qword [rdx], r8
mov qword [rax + 0x80], rdx
lea r8, [rsp + 0x280]
mov qword [rdx + 8], r8
call fcn.140127330
int3
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x14043fdc8]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x10
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x140004c20
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r8, qword [r8 + 0x78]
xor r9d, r9d
mov rcx, qword [rcx]
cmp rcx, r9
je 0x140004c3c
cmp rcx, r8
jl 0x140004c2f
mov qword [rdx + 0x80], rcx
test dword [0x140439040], 1
je 0x140004c6b
cmp byte [rsp + 0xd0], 0
je 0x140004c6b
mov rcx, 0x43
mov rdx, rax
mov rsp, r8
jmp 0x140004790
mov rsp, r8
jmp rax