joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004fa0
Capabilities:
Get memory capacity

Disassembly:
push rdi
push r13
sub rsp, 0x1a8
mov r13, r8
mov rdi, r9
lea r8, [rsp + 0x58]
call fcn.140005220
test eax, eax
lea rax, [rsp + 0x58]
mov dword [rax + 0x108], 0x40
lea rcx, [rsp + 0x160]
cmovne rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14000501b
mov rax, qword [rsp + 0x170]
cmp rax, qword [rsp + 0x190]
mov r8, qword [rsp + 0x190]
cmovb r8, qword [rsp + 0x170]
mov rcx, rdi
mov rdx, r13
xor r9d, r9d
call fcn.140005050
add rsp, 0x1a8
pop r13
pop rdi
ret
mov dword [rsp + 0x20], 0x38
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea rdx, [rsp + 0x30]
mov rax, qword [rdx]
cmp rax, qword [rdx + 0x20]
mov r8, qword [rdx + 0x20]
cmovb r8, qword [rdx]
jmp 0x140005002

Function at 0x140005220
Capabilities:
Read .ini file

Disassembly:
push r15
push rbp
sub rsp, 0x38
mov r9, r8
movsxd rax, dword [rcx + 0x160]
mov r10d, 1
cmp rax, 1
jle 0x140005273
mov r8, qword [rcx + 0x168]
mov rbp, qword [r8 + r10*8]
cmp byte [rbp], 0x2d
jne 0x140005263
xor r11d, r11d
mov r15b, byte [r11 + rdx]
inc r11
test r15b, r15b
je 0x1400052a3
cmp r15b, byte [r11 + rbp]
je 0x140005251
nop dword [rax + rax]
inc r10
cmp r10, rax
jl 0x140005244
mov rax, rsp
lea r10, [rcx + 0x178]
add rcx, 0x188
xor r8d, r8d
mov qword [rax + 0x28], rcx
mov rcx, r10
mov dword [rax + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add rsp, 0x38
pop rbp
pop r15
ret
mov rax, rbp
cmp byte [r11 + rax], 0x3d
jne 0x1400052b7
inc r11
cmp byte [r11 + rax], 0x3d
je 0x1400052ad
add r11, rax
xor edx, edx
mov al, byte [r11]
test al, al
je 0x1400052d2
mov byte [rdx + r9], al
inc rdx
mov al, byte [rdx + r11]
test al, al
jne 0x1400052c3
mov byte [rdx + r9], 0
mov eax, edx
add rsp, 0x38
pop rbp
pop r15
ret

Function at 0x1400060a0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x98
lea rcx, [0x14002e950]
mov dword [rsp + 0x58], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14002ecb6]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400060e9
lea rcx, [rsp + 0x58]
call rax
test eax, eax
je 0x1400060e9
mov rax, qword [rsp + 0x68]
add rsp, 0x98
ret
mov dword [rsp + 0x20], 0x38
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov rax, qword [rsp + 0x30]
add rsp, 0x98
ret

Function at 0x140006110
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x98
lea rcx, [0x14002e950]
mov dword [rsp + 0x58], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14002ecb6]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000615c
lea rcx, [rsp + 0x58]
call rax
test eax, eax
je 0x14000615c
mov rax, qword [rsp + 0x88]
add rsp, 0x98
ret
mov dword [rsp + 0x20], 0x38
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov rax, qword [rsp + 0x50]
add rsp, 0x98
ret
Function at 0x1400069d0
Capabilities:
Hash data using sha512

Disassembly:
push r15
sub rsp, 0x20
mov r15, rcx
test r15, r15
je 0x140006a6a
movabs rax, 0x6a09e667f3bcc908
movabs rdx, 0xbb67ae8584caa73b
mov qword [r15 + 8], rax
movabs rcx, 0x3c6ef372fe94f82b
movabs r8, 0xa54ff53a5f1d36f1
movabs r9, 0x510e527fade682d1
movabs r10, 0x9b05688c2b3e6c1f
movabs r11, 0x1f83d9abfb41bd6b
movabs rax, 0x5be0cd19137e2179
mov dword [r15 + 0x48], 0
mov qword [r15], 0
mov qword [r15 + 0x10], rdx
mov qword [r15 + 0x18], rcx
mov qword [r15 + 0x20], r8
mov qword [r15 + 0x28], r9
mov qword [r15 + 0x30], r10
mov qword [r15 + 0x38], r11
mov qword [r15 + 0x40], rax
xor eax, eax
add rsp, 0x20
pop r15
ret
lea rcx, str.md___NULL
lea rdx, str..._src_Encryption_hashes_sha2_sha512.c
mov r8d, 0xb1
call fcn.14000d530
jmp 0x1400069e2
Function at 0x140008960
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rsi, rcx
mov rdi, r8
mov r13, rdx
mov r12, qword [rsi + 0x18]
test r12, r12
je 0x140008b56
cmp qword [rsi + 8], 0
je 0x140008b3a
mov rcx, rdi
lea rdx, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
call fcn.1400082a0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.140008090
mov rcx, rdi
lea rdx, [rsp + 0x58]
call fcn.1400082d0
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x58]
call fcn.1400087d0
test al, al
jne 0x140008a99
lea rcx, [rsp + 0x48]
call fcn.140008030
cmp dword [rax + 0x18], 0
je 0x1400089a0
lea rcx, [rsp + 0x48]
call fcn.140008030
mov r8, qword [rsi + 0x18]
sub r8, r12
mov eax, dword [rax + 0x10]
add eax, 0x18
add r8, qword [rsi + 0x10]
cmp r8, rax
jl 0x140008a99
lea rcx, [rsp + 0x48]
call fcn.140008030
mov eax, dword [rax + 0x10]
lea rcx, [rsp + 0x48]
mov dword [r12], eax
call fcn.140008030
mov rax, qword [rax]
lea rcx, [rsp + 0x48]
mov qword [r12 + 4], rax
call fcn.140008030
mov rbx, qword [rax + 8]
lea rcx, [rsp + 0x48]
mov qword [r12 + 0xc], rbx
call fcn.140008030
mov rcx, rax
lea r8, [r12 + 0x14]
mov rdx, r13
call fcn.140007e80
lea rcx, [rsp + 0x48]
call fcn.140008030
mov eax, dword [rax + 0x10]
lea rcx, [rsp + 0x48]
add eax, 0x14
add r12, rax
call fcn.140008030
mov rcx, rax
mov rdx, r13
call fcn.14000f550
lea rcx, [rsp + 0x48]
call fcn.140008000
mov rcx, rdi
mov rdx, rax
call fcn.140008240
jmp 0x1400089a0
mov dword [r12], 0
lea r13, [rsi + 0x20]
mov rcx, r13
call fcn.140008790
test al, al
je 0x140008b25
mov eax, dword [rsi + 0x48]
mov r12d, eax
inc eax
mov dword [rsi + 0x48], eax
mov rdx, r12
xor r8d, r8d
imul rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
call fcn.14001a444
mov edx, 1
mov rcx, qword [rsi + 0x18]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 8]
call fcn.14001a6fc
mov rax, qword [rsi + 0x10]
lea rcx, [rsp + 0x20]
add qword [rsi + 0x58], rax
call fcn.140005680
mov rcx, rdi
lea rdx, [rsp + 0x40]
mov qword [rdx - 0x20], r12
lea r8, [rsp + 0x20]
mov qword [rdx - 0x18], rbx
mov dword [rdx - 0x10], 0
call fcn.1400041f0
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, r13
call fcn.1400087c0
mov rcx, r13
mov r12d, dword [rax]
call fcn.1400087b0
jmp 0x140008abc
lea rdx, [0x14002eae2]
mov rcx, qword [rsi]
call fcn.14001ac78
mov qword [rsi + 8], rax
mov r12, qword [rsi + 0x18]
jmp 0x14000898c
mov rcx, qword [rsi + 0x10]
call fcn.140019690
mov r12, rax
mov qword [rsi + 0x18], r12
jmp 0x140008981
Function at 0x140008b70
Capabilities:
Read file on windows

Disassembly:
push r12
push r13
push r14
push r15
push rbp
sub rsp, 0x50
mov rbp, rdx
mov r15, rcx
mov rcx, rbp
mov r13, r9
mov r12, r8
call fcn.14000f5f0
mov r14, qword [r15 + 0x10]
cmp rax, r14
jae 0x140008bb9
mov rcx, r15
mov rdx, rbp
mov r8, r12
call fcn.140008960
mov rcx, rbp
call fcn.14000f5f0
mov r14, qword [r15 + 0x10]
cmp rax, r14
jb 0x140008b9a
mov rcx, r13
call fcn.1400045d0
xor r8d, r8d
mov rcx, qword [r15 + 8]
mov r9d, dword [rax]
mov dword [rsp + 0x48], r9d
imul r14, r9
mov rdx, r14
call fcn.14001a444
mov edx, 1
mov rcx, qword [r15 + 0x18]
mov r8, qword [r15 + 0x10]
mov r9, qword [r15 + 8]
call fcn.14001aad8
mov rax, qword [r15 + 0x10]
lea rcx, [r15 + 0x20]
add qword [r15 + 0x50], rax
lea rdx, [rsp + 0x48]
call fcn.1400087a0
mov r13, qword [r15 + 0x18]
mov r14d, dword [r13]
test r14d, r14d
je 0x140008c68
lea rcx, [rsp + 0x20]
call fcn.140005680
mov rax, qword [r13 + 4]
lea r8, [r13 + 0x14]
mov r9, qword [r13 + 0xc]
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rcx + 0x10], r14d
mov qword [rcx], rax
mov qword [rcx + 8], r9
call fcn.14000f580
mov rcx, r12
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x20]
call fcn.1400041f0
mov eax, dword [rsp + 0x30]
add eax, 0x14
add r13, rax
mov r14d, dword [r13]
test r14d, r14d
jne 0x140008c15
add rsp, 0x50
pop rbp
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x14000d530
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbp
sub rsp, 0x30
mov edi, r8d
mov rbp, rdx
mov rsi, rcx
call fcn.14001a0d8
mov rcx, rax
mov rax, rsp
add rcx, 0x60
lea rdx, str.LTC_ARGCHK__s_failure_on_line__d_of_file__s_n
mov r8, rsi
mov r9d, edi
mov qword [rax + 0x20], rbp
call fcn.14001c658
mov ecx, 0x16
add rsp, 0x30
pop rbp
pop rdi
pop rsi
jmp fcn.14001c7b0

Function at 0x1400104d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rax
mov r9, r10
mov r8, rdx
and r9, 0xfff
and r8, 0xfff
movdqu xmm4, xmmword [0x1400378a0]
neg r9d
neg r8d
add r9d, 0x1000
add r8d, 0x1000
movdqu xmm3, xmmword [0x1400378b0]
cmp r9d, 0x10
jl 0x14001051c
cmp r8d, 0x10
jge 0x140010570
movzx eax, byte [r10]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
lea ebx, [rax + 0x20]
movzx ecx, byte [rdx]
cmovbe eax, ebx
lea r11d, [rcx - 0x41]
cmp r11d, 0x19
lea ebx, [rcx + 0x20]
cmovbe ecx, ebx
cmp eax, ecx
jne 0x140010693
test eax, eax
je 0x140010659
inc r10
inc rdx
dec r8d
dec r9d
jne 0x140010614
mov r9d, 0x1000
test r8d, r8d
jne 0x140010516
mov r8d, 0x1000
movups xmmword [rsp + 0x20], xmm6
movdqu xmm1, xmmword [r10]
movdqu xmm2, xmmword [rdx]
movdqu xmm0, xmmword [0x1400378c0]
movdqa xmm5, xmm1
pcmpgtb xmm5, xmm3
pcmpgtb xmm0, xmm1
pand xmm5, xmm0
pand xmm5, xmm4
pxor xmm0, xmm0
movdqu xmm6, xmmword [0x1400378c0]
paddb xmm1, xmm5
movdqa xmm5, xmm2
pcmpgtb xmm6, xmm2
pcmpgtb xmm5, xmm3
pcmpeqb xmm0, xmm1
pand xmm5, xmm6
pand xmm5, xmm4
paddb xmm2, xmm5
pcmpeqb xmm1, xmm2
pmovmskb eax, xmm1
xor eax, 0xffff
jne 0x14001063d
pmovmskb eax, xmm0
test eax, eax
jne 0x14001069b
add r9d, 0xfffffff0
add r10, 0x10
add rdx, 0x10
add r8d, 0xfffffff0
cmp r9d, 0x10
jl 0x140010601
cmp r8d, 0x10
jge 0x140010575
nop word [rax + rax]
movups xmm6, xmmword [rsp + 0x20]
jmp 0x14001051c
test r8d, r8d
jne 0x14001062e
mov r8d, 0x1000
cmp r9d, 0x10
jge 0x14001056a
jmp 0x14001051c
cmp r9d, 0x10
jl 0x14001051c
jmp 0x140010516
bsf r8d, eax
pmovmskb eax, xmm0
movups xmm6, xmmword [rsp + 0x20]
mov ecx, r8d
test eax, eax
je 0x140010661
bsf eax, eax
cmp eax, r8d
jae 0x140010661
xor eax, eax
add rsp, 0x30
pop rbx
ret
movzx eax, byte [rcx + r10]
movzx r10d, byte [rcx + rdx]
lea r8d, [rax - 0x41]
cmp r8d, 0x19
lea r9d, [rax + 0x20]
lea edx, [r10 - 0x41]
cmovbe eax, r9d
cmp edx, 0x19
lea ecx, [r10 + 0x20]
cmovbe r10d, ecx
sub eax, r10d
add rsp, 0x30
pop rbx
ret
sub eax, ecx
add rsp, 0x30
pop rbx
ret
movups xmm6, xmmword [rsp + 0x20]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140010570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rax
mov r9, r10
mov r8, rdx
and r9, 0xfff
and r8, 0xfff
movdqu xmm4, xmmword [0x1400378a0]
neg r9d
neg r8d
add r9d, 0x1000
add r8d, 0x1000
movdqu xmm3, xmmword [0x1400378b0]
cmp r9d, 0x10
jl 0x14001051c
cmp r8d, 0x10
jge 0x140010570
movzx eax, byte [r10]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
lea ebx, [rax + 0x20]
movzx ecx, byte [rdx]
cmovbe eax, ebx
lea r11d, [rcx - 0x41]
cmp r11d, 0x19
lea ebx, [rcx + 0x20]
cmovbe ecx, ebx
cmp eax, ecx
jne 0x140010693
test eax, eax
je 0x140010659
inc r10
inc rdx
dec r8d
dec r9d
jne 0x140010614
mov r9d, 0x1000
test r8d, r8d
jne 0x140010516
mov r8d, 0x1000
movups xmmword [rsp + 0x20], xmm6
movdqu xmm1, xmmword [r10]
movdqu xmm2, xmmword [rdx]
movdqu xmm0, xmmword [0x1400378c0]
movdqa xmm5, xmm1
pcmpgtb xmm5, xmm3
pcmpgtb xmm0, xmm1
pand xmm5, xmm0
pand xmm5, xmm4
pxor xmm0, xmm0
movdqu xmm6, xmmword [0x1400378c0]
paddb xmm1, xmm5
movdqa xmm5, xmm2
pcmpgtb xmm6, xmm2
pcmpgtb xmm5, xmm3
pcmpeqb xmm0, xmm1
pand xmm5, xmm6
pand xmm5, xmm4
paddb xmm2, xmm5
pcmpeqb xmm1, xmm2
pmovmskb eax, xmm1
xor eax, 0xffff
jne 0x14001063d
pmovmskb eax, xmm0
test eax, eax
jne 0x14001069b
add r9d, 0xfffffff0
add r10, 0x10
add rdx, 0x10
add r8d, 0xfffffff0
cmp r9d, 0x10
jl 0x140010601
cmp r8d, 0x10
jge 0x140010575
nop word [rax + rax]
movups xmm6, xmmword [rsp + 0x20]
jmp 0x14001051c
test r8d, r8d
jne 0x14001062e
mov r8d, 0x1000
cmp r9d, 0x10
jge 0x14001056a
jmp 0x14001051c
cmp r9d, 0x10
jl 0x14001051c
jmp 0x140010516
bsf r8d, eax
pmovmskb eax, xmm0
movups xmm6, xmmword [rsp + 0x20]
mov ecx, r8d
test eax, eax
je 0x140010661
bsf eax, eax
cmp eax, r8d
jae 0x140010661
xor eax, eax
add rsp, 0x30
pop rbx
ret
movzx eax, byte [rcx + r10]
movzx r10d, byte [rcx + rdx]
lea r8d, [rax - 0x41]
cmp r8d, 0x19
lea r9d, [rax + 0x20]
lea edx, [r10 - 0x41]
cmovbe eax, r9d
cmp edx, 0x19
lea ecx, [r10 + 0x20]
cmovbe r10d, ecx
sub eax, r10d
add rsp, 0x30
pop rbx
ret
sub eax, ecx
add rsp, 0x30
pop rbx
ret
movups xmm6, xmmword [rsp + 0x20]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140010614
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rax
mov r9, r10
mov r8, rdx
and r9, 0xfff
and r8, 0xfff
movdqu xmm4, xmmword [0x1400378a0]
neg r9d
neg r8d
add r9d, 0x1000
add r8d, 0x1000
movdqu xmm3, xmmword [0x1400378b0]
cmp r9d, 0x10
jl 0x14001051c
cmp r8d, 0x10
jge 0x140010570
movzx eax, byte [r10]
lea ecx, [rax - 0x41]
cmp ecx, 0x19
lea ebx, [rax + 0x20]
movzx ecx, byte [rdx]
cmovbe eax, ebx
lea r11d, [rcx - 0x41]
cmp r11d, 0x19
lea ebx, [rcx + 0x20]
cmovbe ecx, ebx
cmp eax, ecx
jne 0x140010693
test eax, eax
je 0x140010659
inc r10
inc rdx
dec r8d
dec r9d
jne 0x140010614
mov r9d, 0x1000
test r8d, r8d
jne 0x140010516
mov r8d, 0x1000
movups xmmword [rsp + 0x20], xmm6
movdqu xmm1, xmmword [r10]
movdqu xmm2, xmmword [rdx]
movdqu xmm0, xmmword [0x1400378c0]
movdqa xmm5, xmm1
pcmpgtb xmm5, xmm3
pcmpgtb xmm0, xmm1
pand xmm5, xmm0
pand xmm5, xmm4
pxor xmm0, xmm0
movdqu xmm6, xmmword [0x1400378c0]
paddb xmm1, xmm5
movdqa xmm5, xmm2
pcmpgtb xmm6, xmm2
pcmpgtb xmm5, xmm3
pcmpeqb xmm0, xmm1
pand xmm5, xmm6
pand xmm5, xmm4
paddb xmm2, xmm5
pcmpeqb xmm1, xmm2
pmovmskb eax, xmm1
xor eax, 0xffff
jne 0x14001063d
pmovmskb eax, xmm0
test eax, eax
jne 0x14001069b
add r9d, 0xfffffff0
add r10, 0x10
add rdx, 0x10
add r8d, 0xfffffff0
cmp r9d, 0x10
jl 0x140010601
cmp r8d, 0x10
jge 0x140010575
nop word [rax + rax]
movups xmm6, xmmword [rsp + 0x20]
jmp 0x14001051c
test r8d, r8d
jne 0x14001062e
mov r8d, 0x1000
cmp r9d, 0x10
jge 0x14001056a
jmp 0x14001051c
cmp r9d, 0x10
jl 0x14001051c
jmp 0x140010516
bsf r8d, eax
pmovmskb eax, xmm0
movups xmm6, xmmword [rsp + 0x20]
mov ecx, r8d
test eax, eax
je 0x140010661
bsf eax, eax
cmp eax, r8d
jae 0x140010661
xor eax, eax
add rsp, 0x30
pop rbx
ret
movzx eax, byte [rcx + r10]
movzx r10d, byte [rcx + rdx]
lea r8d, [rax - 0x41]
cmp r8d, 0x19
lea r9d, [rax + 0x20]
lea edx, [r10 - 0x41]
cmovbe eax, r9d
cmp edx, 0x19
lea ecx, [r10 + 0x20]
cmovbe r10d, ecx
sub eax, r10d
add rsp, 0x30
pop rbx
ret
sub eax, ecx
add rsp, 0x30
pop rbx
ret
movups xmm6, xmmword [rsp + 0x20]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400112c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r15
push rbp
sub rsp, 0x240
mov r15d, edx
mov ebp, r15d
mov r14d, r15d
mov rax, qword [0x14003c390]
and ebp, 4
xor rax, rsp
mov qword [rsp + 0x230], rax
and r14d, 2
je 0x14001130d
test cl, 2
je 0x140011329
test ebp, ebp
je 0x1400112fe
test cl, 4
je 0x140011329
test r15d, 1
jne 0x1400113bf
jmp 0x140011363
test ebp, ebp
je 0x140011395
test cl, 4
je 0x140011329
test r15d, 1
jne 0x1400113bf
jmp 0x14001137c
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.14001f310
nop
fxsave [rsp + 0x30]
xor edx, edx
mov eax, dword [rsp + 0x4c]
test al, 0x40
cmove r14d, edx
test eax, 0x20000
cmove ebp, edx
test r15d, 1
jne 0x1400113bf
test r14d, r14d
je 0x140011378
stmxcsr dword [rsp + 0x20]
mov eax, dword [rsp + 0x20]
or eax, 0x40
mov dword [rsp + 0x20], eax
ldmxcsr dword [rsp + 0x20]
test ebp, ebp
je 0x14001139e
stmxcsr dword [rsp + 0x20]
mov eax, dword [rsp + 0x20]
or eax, 0x20000
mov dword [rsp + 0x20], eax
ldmxcsr dword [rsp + 0x20]
jmp 0x14001139e
test r15d, 1
jne 0x1400113bf
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
cmp rcx, qword [0x14003c390]
jne 0x1400113d8
add rsp, 0x240
pop rbp
pop r15
pop r14
ret
stmxcsr dword [rsp + 0x20]
mov eax, dword [rsp + 0x20]
or eax, 0x8000
mov dword [rsp + 0x20], eax
ldmxcsr dword [rsp + 0x20]
jmp 0x14001135e
call fcn.1400244d0
nop
nop
Function at 0x140018d00
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x150
xor edi, edi
mov rax, qword [0x14003c390]
mov edx, 0x100
xor rax, rsp
pxor xmm0, xmm0
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x140], edi
mov byte [rsp + 0x144], dil
movups xmmword [rsp + rdx + 0x30], xmm0
movups xmmword [rsp + rdx + 0x20], xmm0
movups xmmword [rsp + rdx + 0x10], xmm0
movups xmmword [rsp + rdx], xmm0
sub rdx, 0x40
jne 0x140018d3d
cmp qword [0x140040d20], 0
je 0x140018f32
lea rcx, [0x140040d20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x14003c980], 0xffffffffffffffff
je 0x140018f02
lea rcx, str.SYSTEMROOT
lea rdx, [rsp + 0x40]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140018db1
mov edx, 0x105
lea rcx, [rsp + 0x40]
lea r8, str._system32_
call fcn.14002b624
mov edx, 0x105
lea rcx, [rsp + 0x40]
lea r8, str.msvcrt.dll
call fcn.14002b624
mov ecx, 1
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
cmp qword [rsp + 0x38], 0
je 0x140018eda
mov edx, 1
mov eax, 0x10
mov qword [rsp + 0x30], rbx
mov rbx, rax
mov qword [rsp + 0x28], rsi
mov rsi, rdx
mov qword [rsp + 0x20], r12
lea r12, [0x140000000]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [r12 + rbx + 0x3c988]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140018e87
mov qword [r12 + rbx + 0x3c980], rax
inc rsi
add rbx, 0x10
cmp rsi, 0x32
jl 0x140018e0e
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
lea rcx, [0x140040d20]
mov qword [0x14003c980], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
cmp rcx, qword [0x14003c390]
jne 0x140018e81
mov eax, edi
add rsp, 0x150
pop rdi
ret
call fcn.1400244d0
nop
mov rcx, qword [r12 + rbx + 0x3c980]
test rcx, rcx
je 0x140018eb2
cmp rcx, rsi
jge 0x140018e2e
shl rcx, 4
mov rcx, qword [r12 + rcx + 0x3c980]
mov qword [r12 + rbx + 0x3c980], rcx
jmp 0x140018e2e
mov r8, qword [0x14003c990]
test r8, r8
je 0x140018e2e
lea rcx, str.Warning:_Missing__s_function_during_Intel_Library_Wrapper_initialization._n
mov rdx, qword [r12 + rbx + 0x3c988]
call r8
nop
jmp 0x140018e2e
xor edx, edx
lea rcx, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140018de8
mov edi, 0xffffffff
jmp 0x140018e4a
lea rcx, [0x140040d20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
cmp rcx, qword [0x14003c390]
jne 0x140018e81
xor eax, eax
add rsp, 0x150
pop rdi
ret
lea rcx, [0x140040d20]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
jmp 0x140018d64

Function at 0x14001b278
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001b0e0
Function at 0x14001e0d4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001e0ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001e0ec
xor eax, eax
test eax, eax
je 0x14001e0fc
mov ecx, eax
call fcn.14001db00
or eax, 0xffffffff
jmp 0x14001e0fe
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400024d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400024f1
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000251e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002520
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002579
test ecx, ecx
jle 0x140002559
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002579
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002579
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x1400025a0
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 0x1400025c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400025d1
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400025f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400025f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002632
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400026ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000266d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400026ae
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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400026ce
cmp rbx, rax
ja 0x140002680
test rbx, rbx
je 0x1400026ce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret