joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027d60
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.14001b7e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b7e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027eb0
cmp rax, 0xffffffffffffffff
je 0x140027eb0
xor edi, edi
test rbp, rbp
jle 0x140027e5b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dde8
mov rbx, rax
test rax, rax
jne 0x140027de8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027e51
mov edx, 0x8000
mov ecx, r14d
call fcn.140015898
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.14001c4c0
cmp eax, 0xffffffff
je 0x140027e31
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027df8
mov edx, r15d
mov ecx, r14d
call fcn.140015898
jmp 0x140027e51
cmp byte [rsi + 0x38], dil
je 0x140027e48
cmp dword [rsi + 0x34], 5
jne 0x140027e48
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027e51
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019ea8
jmp 0x140027ec4
jns 0x140027ec4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b7e4
cmp rax, 0xffffffffffffffff
jne 0x140027e7c
cmp byte [rsi + 0x30], dil
je 0x140027ec4
mov edi, dword [rsi + 0x2c]
jmp 0x140027ec4
mov ecx, r14d
call fcn.140016f8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027ec4
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 0x140027ec4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027ebd
mov eax, dword [rsi + 0x2c]
jmp 0x140027ec2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b7e4
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 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 0x140652058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406521df
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 0x140652089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065206f
add dl, dl
jne 0x140652096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406520f6
xor eax, eax
add dl, dl
jne 0x1406520a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406521ad
add dl, dl
jne 0x1406520b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406520c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406520d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406520dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406520ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065207e
mov eax, 1
add dl, dl
jne 0x140652106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140652113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406520fb
sub eax, ebx
mov ebx, 1
jne 0x14065214c
mov ecx, 1
add dl, dl
jne 0x14065212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140652123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140652168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140652175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065215d
cmp eax, 0x7d00
jae 0x14065219b
cmp eax, 0x500
jb 0x140652196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065207e
cmp eax, 0x7f
ja 0x14065219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406521d2
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 0x14065207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400021dc
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 [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
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.140132000
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
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 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400016f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov ecx, 2
mov edx, 0x4000000
call fcn.140012aa0
test rax, rax
je 0x140001817
mov r15, rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x38], xmm6
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x58], rax
xor esi, esi
lea r12, [rsp + 0x30]
jmp 0x140001788
test ebp, ebp
jne 0x140001825
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x14000181e
cmp esi, eax
jge 0x1400017d6
mov rax, qword [rsp + 0x38]
cmp rax, qword [rsp + 0x40]
jne 0x1400017d6
mov eax, dword [rbx + 0x18]
mov rcx, qword [rbx]
mov r9, qword [rbx + 8]
mov dword [rsp + 0x20], eax
mov rdx, rdi
mov r8d, esi
call fcn.140010af0
test eax, eax
jle 0x140001858
add esi, eax
cdqe
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rcx, r15
mov rdx, r12
call fcn.140011800
mov ebp, eax
mov r8, qword [rsp + 0x50]
cmp r8, qword [rbx + 0x20]
jne 0x140001780
mov rcx, qword [rbx + 0x10]
mov edx, 1
mov r9, r14
call fcn.1400210f8
cmp rax, qword [rsp + 0x50]
jne 0x140001851
mov qword [rsp + 0x50], 0
xor r8d, r8d
jmp 0x140001780
mov esi, 0x27
jmp 0x140001865
mov esi, 0x28
jmp 0x14000185d
mov esi, 0x27
cmp ebp, 1
jne 0x14000185d
mov rcx, qword [rbx + 0x10]
mov edx, 1
mov r9, r14
call fcn.1400210f8
xor ecx, ecx
cmp rax, qword [rsp + 0x50]
mov esi, 0x46
cmove esi, ecx
jmp 0x14000185d
mov esi, 0x46
jmp 0x14000185d
mov esi, 6
mov rcx, r15
call fcn.140012bb0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140023e80
mov eax, esi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140003a00
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov dx, 0x2f
call fcn.14001639c
test rax, rax
je 0x140003a35
mov rsi, rax
mov word [rax], 0
mov rcx, rdi
call fcn.140003a00
mov ebx, eax
test eax, eax
je 0x140003a41
mov word [rsi], 0x2f
jmp 0x140003a37
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
cmp word [rdi], 0
je 0x140003a2e
mov rcx, rdi
call fcn.14001f4fc
test eax, eax
jns 0x140003a2e
call fcn.14001b914
cmp dword [rax], 0x11
je 0x140003a2e
mov eax, dword [0x140048558]
mov ecx, dword [0x140045e44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003aa5
call fcn.14001b914
mov r9d, dword [rax]
lea rcx, [0x140048348]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov r8, rdi
call fcn.14000ec80
mov ebx, 7
jmp 0x140003a2e
lea rcx, [0x140048558]
call fcn.140013ec0
cmp dword [0x140048558], 0xffffffff
jne 0x140003a80
mov qword [0x140048348], 0
lea rcx, [0x14000ab80]
call fcn.140014078
lea rcx, [0x140048558]
call fcn.140013f28
jmp 0x140003a80
Function at 0x140005200
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xf0
mov rbx, r9
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0xe8], rax
lea rcx, [rsp + 0x50]
call fcn.1400053c0
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x14000532b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x80], 0x68
lea rax, str.winsta0Default
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test eax, eax
je 0x140005340
mov rcx, qword [rsp + 0x60]
test rbx, rbx
je 0x140005338
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], 0
mov rcx, rsi
call fcn.140013d4c
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140023e80
mov eax, edi
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x50], 0
xor edi, edi
jmp 0x14000530e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400052f2
mov qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [rsp + 0x58]
test rax, rax
lea rdx, [0x14003da10]
cmovne rdx, rax
call fcn.1400056f0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400052fd
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400052fd
Function at 0x140005cc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, r9d
mov rsi, r8
mov ebp, edx
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.MOZ_LAUNCHED_CHILD1
call fcn.14001e370
mov rcx, rdi
call fcn.14001eb08
test eax, eax
je 0x140005d36
mov eax, dword [0x140048558]
mov ecx, dword [0x140045e44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005dde
lea rcx, [0x140048348]
lea rdx, str.Warning:_chdir_failed
call fcn.14000ec80
test bl, bl
je 0x140005d55
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140023e80
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsi]
lea r9, [rsp + 0x28]
mov edx, ebp
mov r8, rsi
call fcn.140005200
test eax, eax
je 0x140005d3a
mov rsi, qword [rsp + 0x28]
mov rbx, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rbx
mov edi, eax
call rbx
sub eax, edi
cmp eax, 0x270f
ja 0x140005dce
mov rbp, qword [sym.imp.USER32.dll_WaitForInputIdle]
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov edx, 0x2710
sub edx, eax
mov rcx, rsi
call rbp
cmp eax, 0xffffffff
jne 0x140005dce
call r14
cmp eax, 0x5bf
jne 0x140005dce
mov ecx, 0xa
call r15
call rbx
sub eax, edi
cmp eax, 0x2710
jb 0x140005da0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005d3a
lea rcx, [0x140048558]
call fcn.140013ec0
cmp dword [0x140048558], 0xffffffff
jne 0x140005d23
mov qword [0x140048348], 0
lea rcx, [0x14000ab80]
call fcn.140014078
lea rcx, [0x140048558]
call fcn.140013f28
jmp 0x140005d23
Function at 0x1400083f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x248
mov rsi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
xor edx, edx
call fcn.140015fa0
cmp byte [0x140048138], 0
je 0x14000844a
lea rcx, [0x1400476f0]
lea rdx, [0x14003d132]
lea r8, [rsp + 0x30]
call fcn.14000f300
test eax, eax
jne 0x140008473
jmp 0x1400084cc
lea rax, [0x14003d126]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea r9, [0x1400476f0]
lea rcx, [rsp + 0x30]
mov edx, 0x105
call fcn.140004260
lea rdx, [0x14003d9f2]
lea rcx, [rsp + 0x30]
call fcn.14001f3d0
test rax, rax
je 0x1400084cc
mov rdi, rax
mov rcx, rsi
call fcn.140021720
mov r8d, 1
mov rcx, rsi
mov rdx, rax
mov r9, rdi
call fcn.1400210f8
cmp rax, 1
jne 0x1400084d0
cmp byte [0x140048138], 0
je 0x1400084c7
lea rcx, [0x1400476f0]
call fcn.14000f390
test eax, eax
je 0x1400084d0
mov sil, 1
jmp 0x1400084d2
xor esi, esi
jmp 0x1400084da
xor esi, esi
mov rcx, rdi
call fcn.140020874
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140023e80
mov eax, esi
add rsp, 0x248
pop rdi
pop rsi
ret

Function at 0x140008500
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x660
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x658], rax
mov eax, dword [0x140048558]
mov ecx, dword [0x140045e44]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140008671
mov rcx, qword [0x140048348]
test rcx, rcx
je 0x14000855b
call fcn.140020874
mov qword [0x140048348], 0
cmp byte [0x140047f29], 1
jne 0x140008657
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015fa0
lea rcx, [0x1400476f0]
lea rdx, [0x14003d132]
mov r8, rsi
call fcn.14000f300
test eax, eax
je 0x1400085e1
lea rsi, [rsp + 0x230]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015fa0
lea r8, str._supdate.status
lea r9, [0x1400476f0]
mov edx, 0x105
mov rcx, rsi
call fcn.140004260
lea rcx, [rsp + 0x440]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rsi, [rsp + 0x230]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015fa0
lea rcx, [0x1400476f0]
lea rdx, [0x14003d618]
mov r8, rsi
call fcn.14000f300
test eax, eax
je 0x140008657
lea rsi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015fa0
lea r8, str._supdate.log
lea r9, [0x1400476f0]
mov edx, 0x105
mov rcx, rsi
call fcn.140004260
lea rcx, [rsp + 0x230]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov rcx, qword [rsp + 0x658]
xor rcx, rsp
call fcn.140023e80
nop
add rsp, 0x660
pop rsi
ret
lea rcx, [0x140048558]
call fcn.140013ec0
cmp dword [0x140048558], 0xffffffff
jne 0x14000853f
mov qword [0x140048348], 0
lea rcx, [0x14000ab80]
call fcn.140014078
lea rcx, [0x140048558]
call fcn.140013f28
jmp 0x14000853f
Function at 0x14000ba70
Capabilities:
Hash data via wincrypt
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14000bb01
mov rsi, rdx
test rdx, rdx
je 0x14000bb01
mov rdi, r9
test r9, r9
je 0x14000bb01
mov ebx, dword [rsp + 0x80]
test ebx, ebx
je 0x14000bb01
mov r14, qword [rsp + 0x88]
test r14, r14
je 0x14000bb01
mov r15d, r8d
mov r9, rcx
mov edx, r8d
mov r8d, 1
mov rcx, rsi
call fcn.140020e34
cmp rax, 1
jne 0x14000bb5c
mov ebx, ebx
xor ebp, ebp
mov r12, qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop word [rax + rax]
mov rcx, qword [rdi + rbp*8]
mov rdx, rsi
mov r8d, r15d
xor r9d, r9d
call r12
test eax, eax
je 0x14000bb2c
add rbp, 1
cmp rbx, rbp
jne 0x14000bae0
xor eax, eax
jmp 0x14000bb4d
mov ecx, 2
call fcn.140016828
lea rcx, str.ERROR:_Invalid_parameter_specified._n
mov edx, 0x24
mov r8d, 1
mov r9, rax
call fcn.1400210f8
mov eax, 0xffffffff
jmp 0x14000bb4d
mov ecx, 2
call fcn.140016828
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, r14
call fcn.140005c50
mov eax, 0xfffffffe
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 2
call fcn.140016828
lea rdx, str.ERROR:_Could_not_read__s_n
mov rcx, rax
mov r8, r14
call fcn.140005c50
mov eax, 0xffffffff
jmp 0x14000bb4d
Function at 0x14000c870
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, 1
mov r8d, 0x20
mov rcx, rsi
mov r9, rdi
call fcn.140020e34
mov ebx, 6
cmp rax, 0x20
jne 0x14000c94d
mov ecx, dword [rsi + 8]
mov rbx, qword [sym.imp.WSOCK32.dll_ntohl]
call rbx
mov dword [rsi + 8], eax
mov ecx, dword [rsi + 0xc]
call rbx
mov dword [rsi + 0xc], eax
mov ecx, dword [rsi + 0x10]
call rbx
mov dword [rsi + 0x10], eax
mov ecx, dword [rsi + 0x14]
call rbx
mov dword [rsi + 0x14], eax
mov ecx, dword [rsi + 0x18]
call rbx
mov dword [rsi + 0x18], eax
mov ecx, dword [rsi + 0x1c]
call rbx
mov dword [rsi + 0x1c], eax
mov rcx, rdi
call fcn.14001bcf0
lea rdx, [rsp + 0x28]
mov ecx, eax
call fcn.14001bf54
mov ebx, 6
test eax, eax
jne 0x14000c94d
movabs rax, 0x303146464944424d
mov ebx, 0x29
cmp qword [rsi], rax
jne 0x14000c94d
movsxd rax, dword [rsp + 0x3c]
cmp rax, 0x20
jb 0x14000c94d
add rax, 0xffffffffffffffe0
mov ecx, dword [rsi + 0x14]
sub rax, rcx
jb 0x14000c94d
mov ecx, dword [rsi + 0x18]
sub rax, rcx
jb 0x14000c94d
mov ecx, dword [rsi + 0x1c]
cmp rax, rcx
jb 0x14000c94d
xor edx, edx
cmp rax, rcx
mov ebx, 0x29
cmove ebx, edx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140023e80
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000c970
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x20], r9
mov r12, r8
mov rbx, rdx
mov r13, rcx
mov r14d, dword [rcx + 8]
mov esi, dword [rcx + 0x14]
mov ebp, dword [rcx + 0x18]
add ebp, esi
add ebp, dword [rcx + 0x1c]
mov rcx, rbp
call fcn.1400215bc
test rax, rax
je 0x14000ca0e
mov r15, rax
test ebp, ebp
je 0x14000c9f4
mov rsi, r15
nop word cs:[rax + rax]
nop
cmp rbp, 0x7fffffff
mov edi, 0x7fffffff
cmovb rdi, rbp
mov edx, 1
mov rcx, rsi
mov r8, rdi
mov r9, rbx
call fcn.140020e34
cmp rax, rdi
jne 0x14000ca18
add rsi, rdi
sub rbp, rdi
jne 0x14000c9c0
mov esi, dword [r13 + 0x14]
imul eax, esi, 0xaaaaaaab
ror eax, 2
cmp eax, 0x15555555
jbe 0x14000ca22
mov ebp, 0x29
jmp 0x14000cb76
mov ebp, 0xc
jmp 0x14000cb7e
mov ebp, 6
jmp 0x14000cb76
test esi, esi
je 0x14000cb74
add r14, r12
mov eax, esi
mov rdi, r15
add rdi, rax
mov ebx, dword [r13 + 0x18]
add rbx, rdi
mov eax, dword [r13 + 0x1c]
add rax, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov r13, r12
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x28], rdi
mov r12, r15
nop dword [rax]
mov ecx, dword [r12]
mov rax, qword [sym.imp.WSOCK32.dll_ntohl]
mov rsi, rax
call rax
mov dword [r12], eax
mov ecx, dword [r12 + 4]
call rsi
mov dword [r12 + 4], eax
mov ecx, dword [r12 + 8]
call rsi
mov dword [r12 + 8], eax
mov eax, dword [r12]
mov rcx, r14
sub rcx, r13
cmp rcx, rax
jb 0x14000ca04
mov rcx, qword [rsp + 0x40]
sub rcx, rdi
cmp rcx, rax
jb 0x14000ca04
test eax, eax
je 0x14000cad8
xor ecx, ecx
nop word cs:[rax + rax]
movzx eax, byte [r13 + rcx]
add byte [rdi + rcx], al
add rcx, 1
mov eax, dword [r12]
cmp rcx, rax
jb 0x14000cac0
jmp 0x14000cada
xor eax, eax
mov r8d, eax
mov edx, 1
mov rcx, rdi
mov r9, qword [rsp + 0x20]
call fcn.1400210f8
mov rsi, rax
mov ebp, 0x40
cmp dword [r12], esi
jne 0x14000cb76
mov r8d, dword [r12 + 4]
mov rax, qword [rsp + 0x38]
sub rax, rbx
cmp rax, r8
jb 0x14000ca04
mov edx, 1
mov rcx, rbx
mov r9, qword [rsp + 0x20]
call fcn.1400210f8
cmp dword [r12 + 4], eax
jne 0x14000cb76
mov edx, esi
add r13, rdx
movsxd rcx, dword [r12 + 8]
mov rbp, qword [rsp + 0x30]
sub rbp, r13
cmp rbp, rcx
jg 0x14000ca04
mov rbp, r14
sub rbp, r13
cmp rbp, rcx
jl 0x14000ca04
add rdi, rdx
mov eax, eax
add rbx, rax
add r13, rcx
add r12, 0xc
xor ebp, ebp
cmp r12, qword [rsp + 0x28]
jb 0x14000ca60
jmp 0x14000cb76
xor ebp, ebp
mov rcx, r15
call fcn.1400210e4
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000eb90
Capabilities:
Get token privileges

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000ec04
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x2c]
mov edx, 0x12
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
setne al
cmp dword [rsp + 0x2c], 3
sete sil
and sil, al
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000ec06
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140023e80
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x14000ed00
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx], 0
je 0x14000ed8f
mov r14, rdx
mov rsi, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, qword [rcx]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.1400210f8
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsi]
call fcn.14000af50
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov r8, r14
xor r9d, r9d
call fcn.140016be4
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.1400210f8
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140023e80
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret