joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c920
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 edi, edx
mov r14, rcx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.MOZ_LAUNCHED_CHILD1
call fcn.140023f60
mov rcx, r14
call fcn.140024754
test eax, eax
je 0x14000c993
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ca45
lea rdx, str.Warning:_chdir_failed
call fcn.140013a80
test bl, bl
je 0x14000c9b6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002cd90
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, edi
mov r8, rsi
call fcn.14003d800
test eax, eax
je 0x14000c997
mov rsi, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov r14, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15, qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [sym.imp.USER32.dll_WaitForInputIdle]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
call r14
mov ebx, eax
sub ebx, edi
cmp ebx, 0x270f
ja 0x14000ca35
xor ecx, ecx
call r15
mov edx, 0x2710
sub edx, ebx
mov rcx, rsi
call r12
cmp eax, 0xffffffff
jne 0x14000ca35
call r13
cmp eax, 0x5bf
jne 0x14000ca35
mov ecx, 0xa
call rbp
jmp 0x14000c9fc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c997
lea rcx, [0x140055e98]
call fcn.1400157d4
cmp dword [0x140055e98], 0xffffffff
jne 0x14000c987
mov qword [0x140055c88], 0
lea rcx, [0x1400087f0]
call fcn.1400158b8
lea rcx, [0x140055e98]
call fcn.14001584c
jmp 0x14000c987
Function at 0x140010dd0
Capabilities:
Hash data via wincrypt

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r12, qword [rsp + 0x90]
movq xmm0, rcx
movq xmm1, rdx
punpcklqdq xmm1, xmm0
movq xmm0, r12
movq xmm2, r8
punpcklqdq xmm2, xmm0
pxor xmm0, xmm0
pcmpeqd xmm2, xmm0
pshufd xmm3, xmm2, 0xb1
pand xmm3, xmm2
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
packssdw xmm0, xmm3
movmskps eax, xmm0
test eax, eax
jne 0x140010ea4
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x140010ea4
mov esi, r9d
mov r15d, r9d
mov rax, qword [rcx + 8]
sub rax, r15
jb 0x140010ede
mov r14, rdx
mov rdx, qword [rdx]
cmp rdx, rax
ja 0x140010ede
mov rdi, r8
mov ebp, dword [rsp + 0x98]
add rdx, qword [rcx]
mov rcx, r8
mov r8, r15
call fcn.14003d190
add qword [r14], r15
mov r14d, ebp
xor r15d, r15d
mov r13, qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [r12 + r15*8]
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call r13
test eax, eax
je 0x140010ef1
inc r15
cmp r14, r15
jne 0x140010e84
xor eax, eax
jmp 0x140010ecd
mov ecx, 2
call fcn.140017770
lea rcx, str.ERROR:_Invalid_parameter_specified._n
mov edx, 0x24
mov r8d, 1
mov r9, rax
call fcn.140027258
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.140017770
lea rdx, str.ERROR:_Could_not_read__s_n
jmp 0x140010f02
mov ecx, 2
call fcn.140017770
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, rbx
call fcn.14003dad0
jmp 0x140010ec8
Function at 0x140012620
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rbp, rcx
mov rcx, qword [r8]
sub r9, rcx
mov r10d, dword [rbp]
cmp r10d, 4
je 0x1400126be
cmp r10d, 7
jne 0x1400126c4
cmp r9, 4
jb 0x1400126c4
add rcx, rdx
add rcx, 3
mov edx, 0xfffffff8
xor r10d, r10d
cmp byte [rcx + r10], 0xeb
jne 0x1400126a6
movzx eax, byte [rcx + r10 - 3]
movzx r11d, byte [rcx + r10 - 2]
movzx esi, byte [rcx + r10 - 1]
shl esi, 0x12
shl r11d, 0xa
or r11d, esi
lea eax, [r11 + rax*4]
sub eax, dword [rbp + 0xc]
add eax, edx
mov r11d, eax
shr r11d, 2
mov byte [rcx + r10 - 3], r11b
mov r11d, eax
shr r11d, 0xa
mov byte [rcx + r10 - 2], r11b
shr eax, 0x12
mov byte [rcx + r10 - 1], al
lea rsi, [r10 + 4]
add r10, 8
add edx, 0xfffffffc
cmp r10, r9
mov r10, rsi
jbe 0x14001265a
jmp 0x140012825
cmp r9, 5
jae 0x1400126cb
xor esi, esi
jmp 0x140012825
add rdx, rcx
mov edi, dword [rbp + 0x10]
add r9, 0xfffffffffffffffc
mov r10, 0xffffffffffffffff
xor esi, esi
lea r11, [0x140046058]
mov cl, byte [rdx + rsi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x140012700
mov rcx, rsi
sub rcx, r10
cmp rcx, 3
jbe 0x140012708
xor edi, edi
jmp 0x140012745
mov rcx, rsi
jmp 0x1400127ff
dec cl
shl edi, cl
mov ecx, edi
mov edi, 0
and ecx, 7
je 0x140012745
mov eax, 0xe8
bt eax, ecx
jb 0x1400127f2
movzx r10d, byte [rcx + r11]
mov rdi, rsi
sub rdi, r10
mov r10b, byte [rdi + rdx + 4]
dec r10b
cmp r10b, 0xfe
jae 0x1400127f2
mov edi, ecx
mov cl, byte [rdx + rsi + 4]
dec cl
cmp cl, 0xfe
jae 0x14001275c
lea edi, [rdi*2 + 1]
jmp 0x1400127f9
mov r14d, dword [rbp + 0xc]
mov r15d, 0xfffffffb
sub r15d, esi
mov ebx, dword [rdx + rsi + 1]
add ebx, r15d
sub ebx, r14d
test edi, edi
je 0x1400127c4
mov ecx, edi
movzx ecx, byte [rcx + r11]
shl ecx, 3
mov r10d, 0x18
sub r10d, ecx
neg cl
mov r12d, 0xffffffff
shl r12d, cl
mov r13d, ebx
mov ecx, r10d
shr r13d, cl
dec r13b
cmp r13b, 0xfe
jb 0x1400127c4
xor ebx, r12d
not ebx
add ebx, r15d
sub ebx, r14d
mov r13d, ebx
mov ecx, r10d
shr r13d, cl
dec r13b
cmp r13b, 0xfd
ja 0x1400127a7
lea rcx, [rsi + 4]
mov eax, ebx
and eax, 0x1000000
mov r10d, eax
neg r10d
or r10d, eax
mov byte [rdx + rsi + 1], bl
mov byte [rdx + rsi + 2], bh
shr ebx, 0x10
mov byte [rdx + rsi + 3], bl
shr r10d, 0x18
mov byte [rdx + rsi + 4], r10b
jmp 0x1400127fc
lea edi, [rcx*2 + 1]
mov rcx, rsi
mov r10, rsi
mov rsi, rcx
inc rsi
cmp rsi, r9
jb 0x1400126e5
mov rax, rsi
sub rax, r10
lea ecx, [rax - 1]
shl edi, cl
xor ecx, ecx
cmp rax, 4
cmovb ecx, edi
mov dword [rbp + 0x10], ecx
add qword [r8], rsi
add dword [rbp + 0xc], esi
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400136a0
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x14003f010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400136f6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140028a4c
cmp rax, 0x105
jb 0x14001370d
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002cd90
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.140028f14
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.14003dcc0
test eax, eax
je 0x1400136f6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001375a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400136f6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.14003dcc0
test eax, eax
je 0x1400136f6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001378f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400136f6
mov esi, 1
jmp 0x1400136f6
Function at 0x140013870
Capabilities:
Query service status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov ebp, ecx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140013968
mov rsi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14001398e
mov rdi, rax
lea rbx, [rsp + 0x2c]
mov dword [rbx + 4], 0xcf
imul ebp, ebp, 0x3e8
xor r14d, r14d
lea r15, [rsp + 0x28]
mov r12, qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 0x24
call r12
test eax, eax
je 0x14001391d
cmp dword [rsp + 0x30], 1
jne 0x14001394e
jmp 0x1400139cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x14001393a
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x14001394e
jmp 0x140013a20
cmp eax, 0x79
jle 0x1400139d6
cmp eax, 0x41c
jne 0x140013a01
mov ecx, 0x32
call r13
add r14d, 0x32
cmp r14d, ebp
jb 0x1400138f7
mov ebx, dword [rsp + 0x30]
jmp 0x140013a3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov ebx, 0xfd
cmovne ebx, ecx
jmp 0x140013a51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x1400139b8
cmp edi, 5
je 0x1400139ec
cmp edi, 6
jne 0x1400139fa
mov ebx, 0xec
jmp 0x140013a51
cmp edi, 0x7b
je 0x1400139f3
cmp edi, 0x424
jne 0x1400139fa
mov ebx, 0xee
jmp 0x140013a51
mov ebx, 1
jmp 0x140013a3e
cmp eax, 5
je 0x140013a12
cmp eax, 6
je 0x140013a19
cmp eax, 0x57
jne 0x140013a2e
mov ebx, 0xdc
jmp 0x140013a3a
mov ebx, 0xeb
jmp 0x140013a51
mov ebx, 0xed
jmp 0x140013a51
mov ebx, 0xef
jmp 0x140013a51
cmp eax, 0x7a
je 0x140013a35
cmp eax, 0x7c
jne 0x140013a2e
mov ebx, 0xdd
jmp 0x140013a3a
mov ebx, 0xda
jmp 0x140013a3a
mov ebx, 0xd9
jmp 0x140013a3a
cmp eax, 0x45b
jne 0x140013a2e
mov ebx, 0xde
jmp 0x140013a3a
mov ebx, 0xdf
jmp 0x140013a3a
mov ebx, 0xdb
mov dword [rsp + 0x30], ebx
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call r14
mov rcx, rsi
call r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002cd90
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140015500
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, rcx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdi, [0x140054a50]
mov rcx, rdi
call fcn.140028a4c
test rax, rax
je 0x14001573a
mov rbx, rax
movzx eax, word [rdi + rax*2 - 2]
cmp eax, 0x5c
je 0x140015732
cmp eax, 0x2f
je 0x140015732
mov rax, rbx
add rax, 2
lea r14, [rbx + rbx + 4]
mov rcx, 0xffffffffffffffff
cmovns rcx, r14
call fcn.140015780
mov rdi, rax
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.14003cdd0
lea r8, [rbx + 1]
lea rdx, [0x140054a50]
mov rcx, rdi
call fcn.140028f14
mov rcx, rdi
call fcn.140024bcc
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r15
mov qword [rsp + 0x30], r15
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 0x14001573e
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 0x140015771
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 0x140015771
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 0x140015771
lea r14, [rsp + 0x28]
mov r15d, dword [r14]
mov rcx, r15
call fcn.140015780
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14003cdd0
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, rbx
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140015771
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001569d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400156af
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.140015790
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.140028f14
mov ebp, 1
cmp dword [rsp + 0x28], 0
je 0x14001570b
add rsi, 0x48
xor r14d, r14d
lea rdi, str._.2x
mov r15, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [rbx + r14]
mov rcx, rsi
mov rdx, rdi
call r15
add rsi, 4
inc r14
mov eax, dword [rsp + 0x28]
cmp r14, rax
jb 0x1400156ed
mov rdi, rbx
mov rcx, rdi
call fcn.140015790
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002cd90
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x140015550
xor ebp, ebp
jmp 0x140015716
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140015771
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 0x1400155d0
xor ebp, ebp
jmp 0x14001570e
Function at 0x140015e68
Capabilities:
Parse pe header

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

Function at 0x1400163f4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14001646c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14001646c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14001646c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140016460
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14001647e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14001644e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14001646e

Function at 0x14001f688
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14001f6bf
call fcn.1400204f4
mov dword [rax], 0x16
call fcn.140022a30
xor eax, eax
jmp 0x14001f74d
mov rdx, r9
mov rcx, r8
call fcn.14001f770
mov rbx, rax
test rax, rax
je 0x14001f74a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14001f7e0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001f737
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140020534
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001f71e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001f72d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14002b208
jmp 0x14001f74a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001f747
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001f9fc
Capabilities:
Parse pe header

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

Function at 0x140021074
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14004c288]
mov rbp, rcx
call fcn.140028f5c
xor edi, edi
test rax, rax
je 0x14002115a
mov ebx, edi
call fcn.1400204f4
mov r14d, dword [rax]
call fcn.1400204f4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14002f0b4
mov rsi, rax
test rax, rax
je 0x1400210eb
call fcn.1400204f4
mov dword [rax], r14d
jmp 0x140021115
call fcn.1400204f4
cmp dword [rax], 0x22
jne 0x140021152
call fcn.1400204f4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14002f0b4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140021152
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140021119
cmp rax, 3
je 0x140021134
mov rcx, rsi
call fcn.140020fd0
test al, al
je 0x140021145
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140021145
mov dil, 1
mov rcx, rbx
call fcn.140027244
mov al, dil
jmp 0x14002115c
mov rcx, rbx
call fcn.140027244
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002cd90
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400218d4
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.14002f640
sub rsp, rax
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400208ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021923
mov rax, rbp
jmp 0x140021a2b
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 + 0x53670]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002ebd0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x53670]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140021a27
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 0x140021a27
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002ebd0
test rax, rax
js 0x140021a27
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140021a27
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021a19
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021a19
cmp byte [rcx], 0xd
jne 0x1400219ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021a0e
cmp byte [rcx + 1], 0xa
jne 0x140021a0e
inc rcx
jmp 0x140021a0e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x52980]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400219e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021a2b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002cd90
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 0x1400248b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x1400248eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140020534
call fcn.1400204f4
mov eax, dword [rax]
jmp 0x140024962
cmp rdi, qword [rbx + 0x18]
ja 0x1400248f7
mov qword [rbx + 0x20], rdi
jmp 0x140024960
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14002490e
mov rcx, qword [rbx + 0x10]
call fcn.14002b208
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14002b8f8
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140024962
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1400248d5
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140025288
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400252a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140020534
or eax, 0xffffffff
jmp 0x1400252aa
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400252e0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140025300
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140020534
or eax, 0xffffffff
jmp 0x140025302
xor eax, eax
add rsp, 0x28
ret

Function at 0x140029070
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029098
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029098
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002fec8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140053670]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002ff1f
cmp word [rdx], r13w
jne 0x14002ff1f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002ff24
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140030049
mov r11d, ntohl
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003006a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002ff5d
mov rdx, r9
mov word [rbx], cx
jmp 0x14002ff84
cmp r9, r8
jae 0x14002ff94
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002ff3e
jmp 0x140030049
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003003e
cmp dword [rsp + 0x80], esi
je 0x14003003e
lea r8, [0x140053670]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140030016
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002ffe6
mov word [rbx], r13w
jmp 0x140030046
mov ecx, ntohl
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002fff3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140030046
cmp word [rsp + 0x70], r13w
jne 0x140030023
cmp rbx, r14
je 0x14002ffe0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002eb24
cmp word [rsp + 0x70], r13w
je 0x140030049
mov ecx, ntohl
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140053670]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140030043
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140030049