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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1402db490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1402db4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1402bd5f0
jmp 0x14000123c
mov rax, qword [0x1402db4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1402db4a0]
mov dword [rax], 1
mov rax, qword [0x1402db4e0]
mov rdx, rax
mov rax, qword [0x1402db4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1402df024], 1
mov rax, qword [0x1402db4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1402db4c0]
mov rdx, rax
mov rax, qword [0x1402db4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1402db4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1402db490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1402db3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1402db3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1402bc878
mov rax, qword [0x1402db520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1402db480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1402bc070
mov eax, dword [0x1402df004]
lea rdx, [0x1402df008]
mov ecx, eax
call fcn.14000147c
call fcn.1402bbe07
mov rax, qword [0x1402db410]
mov rax, qword [rax]
mov rdx, qword [0x1402df010]
mov qword [rax], rdx
mov rcx, qword [0x1402df010]
mov rdx, qword [0x1402df008]
mov eax, dword [0x1402df004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x1402df01c], eax
mov eax, dword [0x1402df020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1402df01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1402df024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1402df01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1402db440]
mov dword [rax], 1
mov rax, qword [0x1402db450]
mov dword [rax], 1
mov rax, qword [0x1402db460]
mov dword [rax], 1
mov rax, qword [0x1402db400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1402bc080
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1402bd3e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1402bcd52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1402df168]
test eax, eax
je 0x1402bcdea
lea rax, [0x1402df140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1402df170]
mov qword [rbp - 8], rax
jmp 0x1402bcdce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1402bcdc2
cmp qword [rbp - 0x10], 0
je 0x1402bcdc2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1402bcd88
lea rax, [0x1402df140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1402bcdeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1402bcef0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1402bcf18
mov eax, 0
jmp 0x1402bcf66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1402bcf41
mov eax, 0
jmp 0x1402bcf66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1402bcf61
mov eax, 0
jmp 0x1402bcf66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1402bcf6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1402bcfea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1402bcfe1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1402bcfe1
mov rax, qword [rbp - 8]
jmp 0x1402bcfff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1402bcfb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400012d0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rbp, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.140013348
test rax, rax
je 0x140001501
mov rbx, rax
movzx eax, word [rbp + rax*2 - 2]
cmp ax, 0x5c
je 0x1400014f9
cmp ax, 0x2f
je 0x1400014f9
lea rax, [rbx + 2]
add rax, rax
mov rcx, 0xffffffffffffffff
cmovae rcx, rax
call fcn.14001325c
mov rdi, rax
lea r8, [rbx + rbx]
add r8, 4
xor r14d, r14d
mov rcx, rax
xor edx, edx
call fcn.140015960
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, rbp
call fcn.140013508
mov rcx, rdi
call fcn.140013560
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140001506
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001539
add ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001539
lea r9, [rsp + 0x2c]
mov dword [r9], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140001539
lea r14, [rsp + 0x28]
mov ebp, dword [r14]
mov rcx, rbp
call fcn.14001325c
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.140015960
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, r15
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140001539
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001464
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001476
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.140013500
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.140013508
mov r14d, 1
cmp dword [rsp + 0x28], 0
je 0x1400014d1
add rsi, 0x48
xor ebp, ebp
lea rdi, str._.2x
mov rbx, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [r15 + rbp]
mov rcx, rsi
mov rdx, rdi
call rbx
add rsi, 4
inc rbp
mov eax, dword [rsp + 0x28]
cmp rbp, rax
jb 0x1400014b4
mov rdi, r15
mov rcx, rdi
call fcn.140013500
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023680
mov eax, r14d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x14000131b
xor r14d, r14d
jmp 0x1400014dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140001539
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140001397
xor r14d, r14d
jmp 0x1400014d4
Function at 0x140001f80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ecx, 2
mov edx, 0x4000000
call fcn.14000f400
test rax, rax
je 0x1400020ad
mov r12, rax
mov rax, qword [rbx + 8]
lea r15, [rsp + 0x28]
mov qword [r15], rax
xorps xmm0, xmm0
movups xmmword [r15 + 8], xmm0
mov rax, qword [rbx + 0x10]
mov qword [r15 + 0x18], rax
mov qword [r15 + 0x20], 0
mov rax, qword [rbx + 0x20]
mov qword [r15 + 0x28], rax
xor esi, esi
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x1400020b4
cmp esi, eax
jge 0x14000203d
mov rax, qword [rsp + 0x30]
cmp rax, qword [rsp + 0x38]
jne 0x14000203d
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.14000d410
test eax, eax
jle 0x1400020c2
add esi, eax
mov eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov rcx, r12
mov rdx, r15
call fcn.14000e2f0
mov ebp, eax
mov r8, qword [rsp + 0x48]
cmp r8, qword [rbx + 0x20]
jne 0x140002079
mov rcx, qword [rbx + 0x10]
mov edx, 1
mov r9, r14
call fcn.1400209b0
cmp rax, qword [rsp + 0x48]
jne 0x1400020bb
mov qword [rsp + 0x48], 0
xor r8d, r8d
test ebp, ebp
je 0x140001fef
mov esi, 0x27
cmp ebp, 1
jne 0x1400020c7
mov rcx, qword [rbx + 0x10]
mov edx, 1
mov r9, r14
call fcn.1400209b0
xor ecx, ecx
cmp rax, qword [rsp + 0x48]
mov esi, 0x46
cmove esi, ecx
jmp 0x1400020c7
mov esi, 0x27
jmp 0x1400020cf
mov esi, 0x28
jmp 0x1400020c7
mov esi, 0x46
jmp 0x1400020c7
mov esi, 6
mov rcx, r12
call fcn.14000f500
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140023680
mov eax, esi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400043d0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov dx, 0x2f
call fcn.140015cc8
test rax, rax
je 0x140004405
mov rsi, rax
mov word [rax], 0
mov rcx, rdi
call fcn.1400043d0
mov ebx, eax
test eax, eax
je 0x140004411
mov word [rsi], 0x2f
jmp 0x140004407
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
cmp word [rdi], 0
je 0x1400043fe
mov rcx, rdi
call fcn.14001eee0
test eax, eax
jns 0x1400043fe
call fcn.1400136f4
cmp dword [rax], 0x11
je 0x1400043fe
mov eax, dword [0x1400480c8]
mov ecx, dword [0x140045e74]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004475
call fcn.1400136f4
mov r9d, dword [rax]
lea rcx, [0x140047eb8]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov r8, rdi
call fcn.140011390
mov ebx, 7
jmp 0x1400043fe
lea rcx, [0x1400480c8]
call fcn.140013880
cmp dword [0x1400480c8], 0xffffffff
jne 0x140004450
mov qword [0x140047eb8], 0
lea rcx, [0x14000afc0]
call fcn.140013a38
lea rcx, [0x1400480c8]
call fcn.1400138e8
jmp 0x140004450
Function at 0x140005f90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
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.14001ddbc
mov rcx, rdi
call fcn.14001e554
test eax, eax
je 0x14000600a
mov eax, dword [0x1400480c8]
mov ecx, dword [0x140045e74]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400060c0
lea rcx, [0x140047eb8]
lea rdx, str.Warning:_chdir_failed
call fcn.140011390
test bl, bl
je 0x14000602d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140023680
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi]
lea r9, [rsp + 0x28]
mov edx, ebp
mov r8, rsi
call fcn.1400323f0
test eax, eax
je 0x14000600e
mov rsi, qword [rsp + 0x28]
mov rbp, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rbp
mov edi, eax
call rbp
sub eax, edi
cmp eax, 0x270f
ja 0x1400060b0
mov r14, qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [sym.imp.USER32.dll_WaitForInputIdle]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x2710
sub ebx, eax
xor ecx, ecx
call r14
mov rcx, rsi
mov edx, ebx
call r15
cmp eax, 0xffffffff
jne 0x1400060b0
call r12
cmp eax, 0x5bf
jne 0x1400060b0
mov ecx, 0xa
call r13
call rbp
sub eax, edi
cmp eax, 0x2710
jb 0x14000607a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000600e
lea rcx, [0x1400480c8]
call fcn.140013880
cmp dword [0x1400480c8], 0xffffffff
jne 0x140005ff7
mov qword [0x140047eb8], 0
lea rcx, [0x14000afc0]
call fcn.140013a38
lea rcx, [0x1400480c8]
call fcn.1400138e8
jmp 0x140005ff7
Function at 0x140008780
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.140015960
cmp byte [0x140047ca8], 0
je 0x1400087da
lea rcx, [0x140047260]
lea rdx, [0x14003d212]
lea r8, [rsp + 0x30]
call fcn.140011d20
test eax, eax
jne 0x140008803
jmp 0x14000885c
lea rax, [0x14003d206]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea r9, [0x140047260]
lea rcx, [rsp + 0x30]
mov edx, 0x105
call fcn.140004c30
lea rdx, [0x14003db44]
lea rcx, [rsp + 0x30]
call fcn.14001edb4
test rax, rax
je 0x14000885c
mov rdi, rax
mov rcx, rsi
call fcn.140021140
mov r8d, 1
mov rcx, rsi
mov rdx, rax
mov r9, rdi
call fcn.1400209b0
cmp rax, 1
jne 0x140008860
cmp byte [0x140047ca8], 0
je 0x140008857
lea rcx, [0x140047260]
call fcn.140011db0
test eax, eax
je 0x140008860
mov sil, 1
jmp 0x140008862
xor esi, esi
jmp 0x14000886a
xor esi, esi
mov rcx, rdi
call fcn.140020258
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140023680
mov eax, esi
add rsp, 0x248
pop rdi
pop rsi
ret

Function at 0x140008890
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x660
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x658], rax
mov eax, dword [0x1400480c8]
mov ecx, dword [0x140045e74]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140008a01
mov rcx, qword [0x140047eb8]
test rcx, rcx
je 0x1400088eb
call fcn.140020258
mov qword [0x140047eb8], 0
cmp byte [0x140047a99], 1
jne 0x1400089e7
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015960
lea rcx, [0x140047260]
lea rdx, [0x14003d212]
mov r8, rsi
call fcn.140011d20
test eax, eax
je 0x140008971
lea rsi, [rsp + 0x230]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015960
lea r8, str._supdate.status
lea r9, [0x140047260]
mov edx, 0x105
mov rcx, rsi
call fcn.140004c30
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.140015960
lea rcx, [0x140047260]
lea rdx, [0x14003d78a]
mov r8, rsi
call fcn.140011d20
test eax, eax
je 0x1400089e7
lea rsi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140015960
lea r8, str._supdate.log
lea r9, [0x140047260]
mov edx, 0x105
mov rcx, rsi
call fcn.140004c30
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.140023680
nop
add rsp, 0x660
pop rsi
ret
lea rcx, [0x1400480c8]
call fcn.140013880
cmp dword [0x1400480c8], 0xffffffff
jne 0x1400088cf
mov qword [0x140047eb8], 0
lea rcx, [0x14000afc0]
call fcn.140013a38
lea rcx, [0x1400480c8]
call fcn.1400138e8
jmp 0x1400088cf
Function at 0x14000be10
Capabilities:
Hash data via wincrypt
Read 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 0x14000be8e
mov rsi, rdx
test rdx, rdx
je 0x14000be8e
mov rdi, r9
test r9, r9
je 0x14000be8e
mov r14, qword [rsp + 0x88]
test r14, r14
je 0x14000be8e
mov ebp, r8d
mov r9, rcx
mov edx, r8d
mov r8d, 1
mov rcx, rsi
call fcn.1400206ec
cmp rax, 1
jne 0x14000bea9
mov r15d, dword [rsp + 0x80]
xor ebx, ebx
mov r12, qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rdi + rbx*8]
mov rdx, rsi
mov r8d, ebp
xor r9d, r9d
call r12
test eax, eax
je 0x14000bed9
inc rbx
cmp r15, rbx
jne 0x14000be6e
xor eax, eax
jmp 0x14000beca
mov ecx, 2
call fcn.1400135c8
lea rdx, str.ERROR:_Invalid_parameter_specified._n
mov rcx, rax
call fcn.140001260
jmp 0x14000bec5
mov ecx, 2
call fcn.1400135c8
lea rdx, str.ERROR:_Could_not_read__s_n
mov rcx, rax
mov r8, r14
call fcn.140001260
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 2
call fcn.1400135c8
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, r14
call fcn.140001260
mov eax, 0xfffffffe
jmp 0x14000beca
Function at 0x14000c8e0
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.1400206ec
mov ebx, 6
cmp rax, 0x20
jne 0x14000c9b8
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.14001b4c0
lea rdx, [rsp + 0x28]
mov ecx, eax
call fcn.14001b724
mov ebx, 6
test eax, eax
jne 0x14000c9b8
movabs rax, 0x303146464944424d
mov ebx, 0x29
cmp qword [rsi], rax
jne 0x14000c9b8
movsxd rax, dword [rsp + 0x3c]
cmp rax, 0x20
jb 0x14000c9b8
add rax, 0xffffffffffffffe0
mov ecx, dword [rsi + 0x14]
sub rax, rcx
jb 0x14000c9b8
mov ecx, dword [rsi + 0x18]
sub rax, rcx
jb 0x14000c9b8
mov ecx, dword [rsi + 0x1c]
xor edx, edx
cmp rax, rcx
mov ebx, 0x29
cmove ebx, edx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140023680
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000c9d0
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 + 0x28], r9
mov qword [rsp + 0x20], 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.140020e74
test rax, rax
je 0x14000ca66
mov r15, rax
test ebp, ebp
je 0x14000ca4c
mov r12d, 0x7fffffff
mov rsi, r15
cmp rbp, r12
mov edi, 0x7fffffff
cmovb rdi, rbp
mov edx, 1
mov rcx, rsi
mov r8, rdi
mov r9, rbx
call fcn.1400206ec
cmp rax, rdi
jne 0x14000ca70
add rsi, rdi
sub rbp, rdi
jne 0x14000ca1c
mov esi, dword [r13 + 0x14]
imul eax, esi, 0xaaaaaaab
ror eax, 2
cmp eax, 0x15555555
jbe 0x14000ca7a
mov ebp, 0x29
jmp 0x14000cbbc
mov ebp, 0xc
jmp 0x14000cbc4
mov ebp, 6
jmp 0x14000cbbc
test esi, esi
je 0x14000cbba
mov rcx, qword [rsp + 0x20]
add r14, rcx
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 r13, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
mov r12, r15
mov ecx, dword [r12]
mov rsi, qword [sym.imp.WSOCK32.dll_ntohl]
call rsi
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 0x14000ca5c
mov rcx, qword [rsp + 0x40]
sub rcx, rdi
cmp rcx, rax
jb 0x14000ca5c
test eax, eax
je 0x14000cb1e
xor ecx, ecx
mov al, byte [r13 + rcx]
add byte [rdi + rcx], al
inc rcx
mov eax, dword [r12]
cmp rcx, rax
jb 0x14000cb08
jmp 0x14000cb20
xor eax, eax
mov r8d, eax
mov edx, 1
mov rcx, rdi
mov r9, qword [rsp + 0x28]
call fcn.1400209b0
mov rsi, rax
mov ebp, 0x40
cmp dword [r12], esi
jne 0x14000cbbc
mov r8d, dword [r12 + 4]
mov rax, qword [rsp + 0x38]
sub rax, rbx
cmp rax, r8
jb 0x14000ca5c
mov edx, 1
mov rcx, rbx
mov r9, qword [rsp + 0x28]
call fcn.1400209b0
cmp dword [r12 + 4], eax
jne 0x14000cbbc
mov edx, esi
add r13, rdx
movsxd rcx, dword [r12 + 8]
mov rbp, qword [rsp + 0x20]
sub rbp, r13
cmp rbp, rcx
jg 0x14000ca5c
mov rbp, r14
sub rbp, r13
cmp rbp, rcx
jl 0x14000ca5c
add rdi, rdx
mov eax, eax
add rbx, rax
add r13, rcx
add r12, 0xc
xor ebp, ebp
cmp r12, qword [rsp + 0x30]
jb 0x14000cab5
jmp 0x14000cbbc
xor ebp, ebp
mov rcx, r15
call fcn.14002099c
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret