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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140055990], rbx
je 0x1400165dc
cmp rax, rbx
jne 0x1400165cf
mov ebx, 1
mov esi, ebx
jmp 0x1400165e1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400165b4
mov ebx, 1
mov eax, dword [0x140055998]
cmp eax, ebx
jne 0x1400165f7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14001665c
mov eax, dword [0x140055998]
test eax, eax
jne 0x140016656
mov dword [0x140055998], ebx
lea r15, [0x140018660]
lea rdi, [0x140018648]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140016648
test eax, eax
jne 0x14001664c
cmp qword [rdi], 0
je 0x14001663d
mov rax, qword [rdi]
mov rcx, qword [0x1400185c0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14001661e
test eax, eax
je 0x14001665c
mov eax, 0xff
jmp 0x140016738
mov dword [0x140055344], ebx
mov eax, dword [0x140055998]
cmp eax, ebx
jne 0x140016683
lea rdx, [0x140018640]
lea rcx, [0x1400185c8]
call sub.msvcrt.dll__initterm
mov dword [0x140055998], 2
test esi, esi
jne 0x140016690
xor eax, eax
xchg qword [0x140055990], rax
cmp qword [0x1400559b0], 0
je 0x1400166c4
lea rcx, [0x1400559b0]
call fcn.140016a70
test eax, eax
je 0x1400166c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400559b0]
mov r9, qword [0x1400185c0]
call r9
mov r8, qword [0x140055358]
mov rdx, qword [0x140055350]
mov ecx, dword [0x140055348]
call fcn.140004aa0
mov dword [0x140055340], eax
cmp dword [0x140055360], 0
jne 0x1400166f4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140055344], 0
jne 0x140016709
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140055340]
jmp 0x140016738
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401c7000
add rsp, 0x28
jmp 0x140016590

Function at 0x14001695c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400169a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400169a0
cmp dword [rcx + 0x3c], edx
jl 0x1400169a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400169a0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400169a8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x141c7dc60
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141c7dde7
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 0x141c7dc91
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c7dc77
add dl, dl
jne 0x141c7dc9e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c7dcfe
xor eax, eax
add dl, dl
jne 0x141c7dcad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141c7ddb5
add dl, dl
jne 0x141c7dcbe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c7dccb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c7dcd8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c7dce5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141c7dcf2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141c7dc86
mov eax, 1
add dl, dl
jne 0x141c7dd0e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141c7dd1b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c7dd03
sub eax, ebx
mov ebx, 1
jne 0x141c7dd54
mov ecx, 1
add dl, dl
jne 0x141c7dd36
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c7dd43
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c7dd2b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7dc86
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141c7dd70
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141c7dd7d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141c7dd65
cmp eax, 0x7d00
jae 0x141c7dda3
cmp eax, 0x500
jb 0x141c7dd9e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7dc86
cmp eax, 0x7f
ja 0x141c7dda6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141c7dc86
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141c7ddda
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 0x141c7dc86
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000d9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rax, qword [0x14004f700]
xor rax, rbp
mov qword [rbp - 8], rax
mov eax, 0xc7c4be7d
jmp 0x14000da10
mov r11d, r10d
and r11b, 1
mov eax, 0xb7204b5b
nop dword [rax + rax]
cmp eax, 0xbca9b67d
jle 0x14000dab0
cmp eax, 0xc7c4be7d
je 0x14000dad9
cmp eax, 0x2a8e67fa
jne 0x14000db0a
nop word cs:[rax + rax]
mov rax, qword [rbp - 0x28]
mov qword [rax], rcx
mov rax, qword [rbp - 0x28]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
cmp qword [rax + 0x48], 0
setne byte [rbp - 9]
movzx eax, byte [rbp - 9]
cmp dword [0x140050ae8], 0xa
jl 0x14000d9ff
mov eax, dword [0x140050aec]
lea r11d, [rax + 1]
imul r11d, eax
and r11d, 1
je 0x14000d9ff
mov rax, qword [rbp - 0x28]
mov qword [rax], rcx
mov rax, qword [rbp - 0x28]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
cmp qword [rax + 0x48], 0
setne byte [rbp - 9]
movzx eax, byte [rbp - 9]
jmp 0x14000da40
cmp eax, 0x824d2a68
je 0x14000dafb
cmp eax, 0xb7204b5b
jne 0x14000da10
movzx r9d, byte [rbp - 9]
xor r9d, 1
shl r9d, 2
mov eax, 0xbca9b67e
jmp 0x14000da10
mov eax, 0x10
call fcn.1400211e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x28], rax
mov byte [rbp - 0xb], r8b
mov eax, 0x824d2a68
jmp 0x14000da10
mov eax, 0x2a8e67fa
movzx r10d, byte [rbp - 0xb]
jmp 0x14000da10
cmp eax, 0xbca9b67e
jne 0x14000da10
mov dword [rbp - 0x14], r9d
and r11b, 1
mov byte [rbp - 0xa], r11b
mov dword [rbp - 0x10], edx
nop word cs:[rax + rax]
mov edx, dword [rbp - 0x10]
or edx, dword [rbp - 0x14]
mov rcx, qword [rbp - 0x20]
movzx r8d, byte [rbp - 0xa]
sub rsp, 0x20
call fcn.14000dbf0
add rsp, 0x20
cmp dword [0x140050ae8], 0xa
jl 0x14000dbcd
mov eax, dword [0x140050aec]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14000dbcd
nop word cs:[rax + rax]
mov edx, dword [rbp - 0x10]
or edx, dword [rbp - 0x14]
mov rcx, qword [rbp - 0x20]
movzx r8d, byte [rbp - 0xa]
sub rsp, 0x20
call fcn.14000dbf0
add rsp, 0x20
mov edx, dword [rbp - 0x10]
or edx, dword [rbp - 0x14]
mov rcx, qword [rbp - 0x20]
movzx r8d, byte [rbp - 0xa]
sub rsp, 0x20
call fcn.14000dbf0
add rsp, 0x20
mov ecx, dword [0x140050aec]
lea eax, [rcx + 1]
imul eax, ecx
and eax, 1
cmp dword [0x140050ae8], 0xa
jl 0x14000db30
test eax, eax
jne 0x14000db70
jmp 0x14000db30
mov rcx, qword [rbp - 8]
xor rcx, rbp
sub rsp, 0x20
call fcn.140021240
nop
mov rsp, rbp
pop rbp
ret
Function at 0x140022c2c
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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140022c5a
xor eax, eax
jmp 0x140022d40
cmp qword [rcx + 0x68], 0
je 0x140022c6b
call fcn.1400223a8
jmp 0x140022d40
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140022c82
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140022c84
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140022cb6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14003e0e0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140022d3a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140022ced
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140022d16
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14002a390
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140022d3a
cmp rsi, rbx
ja 0x140022cf4
test rsi, rsi
je 0x140022d3a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14002a390
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x140023d18
Capabilities:
Parse pe header

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

Function at 0x140026510
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140026664
Function at 0x140026664
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140026664
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 0x1400266d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400266d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400266d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400266d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400266d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400266d3
cmp dword [rcx + 0xf8], 0
je 0x1400266d3
mov ecx, ebx
call fcn.140026590
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.1400267f8
nop
cmp dword [rbp + 0x20], 0
je 0x140026721
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140026630
int3

Function at 0x14002b6e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002b708
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002b708
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400359b0
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.1400211e0
sub rsp, rax
mov rax, qword [0x14004f700]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140031f24
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400359ff
mov rax, rbp
jmp 0x140035b07
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 + 0x52220]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400356d8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x52220]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140035b03
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 0x140035b03
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400356d8
test rax, rax
js 0x140035b03
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140035b03
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140035af5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140035af5
cmp byte [rcx], 0xd
jne 0x140035adb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140035aea
cmp byte [rcx + 1], 0xa
jne 0x140035aea
inc rcx
jmp 0x140035aea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x50090]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140035abd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140035b07
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140021240
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 0x140035f40
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 0x140035f70
xor eax, eax
jmp 0x140036033
mov rbp, rbx
cmp word [rax], si
je 0x140035f95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140035f7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140035f78
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.140035e90
movsxd r14, eax
test eax, eax
jne 0x140035fd3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140035f69
mov rcx, r14
call fcn.140031b74
mov rdi, rax
test rax, rax
jne 0x140035fec
xor ecx, ecx
call fcn.14002ec98
jmp 0x140035fc8
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.140035e90
test eax, eax
jne 0x14003601d
mov rcx, rdi
call fcn.14002ec98
jmp 0x140036027
xor ecx, ecx
call fcn.14002ec98
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 0x140037774
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 0x1400377a6
call fcn.14002895c
mov dword [rax], 0x16
call fcn.1400291c0
jmp 0x1400378c5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400378c5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400378c5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400377d5
lock or dword [rcx + 0x14], 0x10
jmp 0x1400378c5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400377e9
call fcn.140039460
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140031f24
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140037b44
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400378b3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14003787e
mov rcx, rsi
call fcn.140031f24
cmp eax, edi
je 0x140037869
mov rcx, rsi
call fcn.140031f24
cmp eax, 0xfffffffe
je 0x140037869
mov rcx, rsi
call fcn.140031f24
movsxd rbx, eax
lea r14, [0x140052220]
mov rcx, rsi
sar rbx, 6
call fcn.140031f24
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140037870
lea rdx, [0x14004f980]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003787e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400378a2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400378a2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400378a2
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 0x1400378c8
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 0x140038380
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, [0x140052220]
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 0x1400383de
cmp word [rdx], r12w
jne 0x1400383de
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400383e4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003853f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14003851a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14003841d
mov rcx, r9
jmp 0x140038440
cmp r9, rdx
jae 0x140038457
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 0x140038401
jmp 0x14003853f
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 0x140038514
cmp dword [rsp + 0x80], edi
je 0x140038514
mov rdx, r14
lea r11, [0x140052220]
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 0x1400384ed
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400384c0
mov word [rbx], r12w
jmp 0x14003853b
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 0x1400384c9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14003853b
cmp word [rsp + 0x70], r12w
jne 0x1400384fa
cmp rbx, rsi
je 0x1400384ba
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140035634
cmp word [rsp + 0x70], r12w
je 0x14003853f
mov word [rbx], r13w
jmp 0x14003853b
lea r11, [0x140052220]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140038537
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003853f
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 0x14003c644
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.14002b208
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003c6ce
cmp byte [rbp - 0x21], r15b
je 0x14003c6c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003c704
call fcn.14002fd8c
test eax, eax
jne 0x14003c6f0
cmp byte [rbp - 0x21], r15b
je 0x14003c6e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003c704
cmp byte [rbp - 0x21], r15b
je 0x14003c701
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.14002b448
test eax, eax
jne 0x14003c7a4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002b208
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003c743
cmp byte [rbp - 0x21], r15b
je 0x14003c778
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003c778
call fcn.14002fd8c
test eax, eax
jne 0x14003c764
cmp byte [rbp - 0x21], r15b
je 0x14003c75d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003c778
cmp byte [rbp - 0x21], r15b
je 0x14003c775
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.14002b448
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003c7a4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003c7a7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003c7b5
mov rcx, rdi
call fcn.14002ec98
cmp byte [rbp + 0x3f], r15b
je 0x14003c7c4
mov rcx, qword [rbp + 0x27]
call fcn.14002ec98
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 0x140002453
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002472
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140013c88

Function at 0x14000428d
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140013c88

Function at 0x1400042cc
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1400230f0], 0
jne 0x1400042e4
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14000428d
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.1400041f7
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1400230f0]
test rbx, rbx
je 0x140004315
test byte [rbx + 7], 0x40
jne 0x140004315
mov rcx, rbx
call fcn.140003928
lea rcx, [0x14001a1e0]
call fcn.14000e8d0
cmp byte [rax], 0
je 0x14000434d
lea rcx, [0x14001a0e0]
mov byte [rax], 0
call fcn.14000e8d0
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004259
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140004922
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1400230c0]
xor ebx, ebx
lea r14, [0x14001a1e0]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rdi
mov ecx, 1
jl 0x1400049a8
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14001c2bb]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.140013c88
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140004870
mov rcx, r14
call fcn.14000e8d0
cmp byte [rax], 0
jne 0x1400049da
inc rbx
jmp 0x14000495b
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14000680f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, qword gs:[0x60]
movzx rax, byte [rax + 2]
ret