joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b73c8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14009a100
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b7452
cmp byte [rbp - 0x21], r15b
je 0x1400b744d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b7488
call fcn.1400a9ebc
test eax, eax
jne 0x1400b7474
cmp byte [rbp - 0x21], r15b
je 0x1400b746c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b7488
cmp byte [rbp - 0x21], r15b
je 0x1400b7485
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14009db20
test eax, eax
jne 0x1400b7528
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14009a100
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b74c7
cmp byte [rbp - 0x21], r15b
je 0x1400b74fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b74fc
call fcn.1400a9ebc
test eax, eax
jne 0x1400b74e8
cmp byte [rbp - 0x21], r15b
je 0x1400b74e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b74fc
cmp byte [rbp - 0x21], r15b
je 0x1400b74f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14009db20
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b7528
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b752b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b7539
mov rcx, rdi
call fcn.1400a8d60
cmp byte [rbp + 0x3f], r15b
je 0x1400b7548
mov rcx, qword [rbp + 0x27]
call fcn.1400a8d60
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400b8880
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b88a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b88a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001d98
Capabilities:
Parse pe header

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

Function at 0x1405c5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405c51df
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 0x1405c5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c506f
add dl, dl
jne 0x1405c5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c50f6
xor eax, eax
add dl, dl
jne 0x1405c50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c51ad
add dl, dl
jne 0x1405c50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405c50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405c507e
mov eax, 1
add dl, dl
jne 0x1405c5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c50fb
sub eax, ebx
mov ebx, 1
jne 0x1405c514c
mov ecx, 1
add dl, dl
jne 0x1405c512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405c5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c515d
cmp eax, 0x7d00
jae 0x1405c519b
cmp eax, 0x500
jb 0x1405c5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c507e
cmp eax, 0x7f
ja 0x1405c519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405c51d2
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 0x1405c507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x65392850
Capabilities:
Get storage device properties

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
lea rbx, [rsp + 0x70]
mov rdi, rdx
mov ebp, ecx
xor edx, edx
mov rcx, rdi
mov rsi, r8
call fcn.65401458
mov rcx, rbx
mov r8d, ebp
lea rdx, str..PhysicalDrive_d
call qword [0x654235e8]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r8d, 3
mov dword [rsp + 0x20], 3
call qword [0x65423308]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x6539293c
lea r12, [0x6541a240]
xor edx, edx
mov r8d, 0x2710
mov dword [rsp + 0x60], 0
lea r13, [rsp + 0x64]
mov qword [rsp + 0x64], 0
mov rcx, r12
mov dword [rsp + 0x6c], 0
call fcn.65401458
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x2710
mov qword [rsp + 0x20], r12
mov r9d, 0xc
mov r8, r13
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
mov rcx, rbx
call qword [0x65423320]
test eax, eax
jne 0x65392964
mov rcx, rbx
call qword [0x65423300]
cmp rsi, 0x13
jbe 0x65392b10
mov rdx, rdi
mov ecx, ebp
call fcn.653924a0
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x6541a258]
test eax, eax
je 0x65392933
add rax, r12
mov r15, qword [0x65423538]
mov r13d, 0x64
mov qword [rsp + 0x58], rax
mov r12, rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov r14, rax
test r13d, r13d
movzx edx, byte [r12]
je 0x65392a40
test dl, dl
je 0x65392a40
movsx ecx, dl
mov byte [rsp + 0x4e], dl
call r15
test eax, eax
je 0x65392ae0
movzx edx, byte [rsp + 0x4e]
cmp dl, 0x39
jg 0x65392ac0
sub edx, 0x30
movsx ecx, byte [r12 + 1]
shl edx, 4
mov byte [rsp + 0x4e], dl
mov byte [rsp + 0x4f], cl
call r15
test eax, eax
je 0x65392ae0
movzx edx, byte [rsp + 0x4f]
cmp dl, 0x39
jg 0x65392ad0
sub edx, 0x30
or dl, byte [rsp + 0x4e]
add r12, 2
movzx ecx, dl
mov byte [rsp + 0x4e], dl
call qword [0x65423530]
test eax, eax
je 0x65392ae0
movzx edx, byte [rsp + 0x4e]
cmp dl, 0x20
je 0x65392996
sub r13d, 1
mov byte [r14], dl
add r14, 1
test r13d, r13d
movzx edx, byte [r12]
jne 0x653929a4
mov r8, qword [rsp + 0x50]
mov byte [r14], 0
mov edx, dword [r8]
add r8, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x65392a49
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [r8 + 2]
mov ecx, eax
cmove r8, rdx
add cl, al
sbb r8, 3
sub r8, qword [rsp + 0x50]
cmp r8d, esi
mov r12d, r8d
jae 0x65392933
mov rdx, qword [rsp + 0x50]
add r8, 1
mov rcx, rdi
call fcn.65401468
mov rcx, rbx
call qword [0x65423300]
test r12d, r12d
je 0x6539293c
xor eax, eax
jmp 0x65392950
and edx, 0xffffffdf
sub edx, 0x37
jmp 0x653929cf
and edx, 0xffffffdf
sub edx, 0x37
jmp 0x653929fc
mov rcx, qword [rsp + 0x58]
call fcn.65401410
cmp eax, esi
mov r12d, eax
jae 0x65392933
mov rdx, qword [rsp + 0x58]
lea r8, [rax + 1]
mov rcx, rdi
call fcn.65401468
jmp 0x65392aa0
mov eax, 0xffffffff
jmp 0x65392950
Function at 0x65392bf0
Capabilities:
Get storage device properties

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
movsx eax, byte [rcx]
mov rbx, rdx
mov rsi, r8
cmp al, 0x2a
je 0x65392c71
cmp al, 0x2f
jne 0x65392c13
movsx eax, byte [rcx + 1]
add rcx, 1
test al, al
je 0x65392d0e
sub eax, 0x30
cmp eax, 9
jbe 0x65392c3f
jmp 0x65392c61
lea r8d, [rdx - 0x30]
cmp r8d, 9
ja 0x65392c61
lea r8d, [rax + rax*4]
lea edx, [rdx + r8*2 - 0x30]
add eax, edx
cmp eax, 0x5a
jg 0x65392c61
add rcx, 1
movsx edx, byte [rcx]
test dl, dl
jne 0x65392c25
mov r8, rsi
mov rdx, rbx
mov ecx, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.65392850
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp r8, 5
jbe 0x65392d15
lea rdx, str.__d:
xor r8d, r8d
mov rcx, rbx
mov rbp, rbx
xor edi, edi
lea r12, str.__d:
call fcn.65401438
mov edx, 3
jmp 0x65392ce0
mov rcx, rbp
add edi, 1
call fcn.65401410
cdqe
lea rdx, [rbp + rax]
sub rsi, rax
cmp edi, 0x59
lea rbp, [rdx + 1]
mov byte [rdx], 0x2c
jg 0x65392cf8
cmp rsi, 5
jbe 0x65392cf8
mov rdx, r12
mov r8d, edi
mov rcx, rbp
call fcn.65401438
xor edx, edx
cmp edi, 9
setg dl
add edx, 3
movsxd rdx, edx
mov ecx, edi
sub rsi, rdx
add rdx, rbp
mov r8, rsi
call fcn.65392850
cmp eax, 0xffffffff
jne 0x65392ca0
cmp rbx, rbp
jae 0x65392d15
xor eax, eax
mov byte [rbp - 1], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
jmp 0x65392c4a
lea r8, str.No_any_serial_number_of_harddisk_got
lea rcx, str..._src_platforms_windows_hdinfo.c
mov edx, 0x23e
call fcn.65384200
mov eax, 0xffffffff
jmp 0x65392c66
Function at 0x65398730
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x6539876a
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0
mov qword [rcx], 0
add rsp, 0x28
ret
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6540d371]
mov r8d, 0xe9
call fcn.6539d6d0
nop
nop
nop word cs:[rax + rax]
Function at 0x65398790
Capabilities:
Hash data with md5

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
mov rsi, rdx
je 0x653989a0
test rdx, rdx
je 0x653989b9
mov edx, dword [rcx + 0x18]
mov eax, 0x10
cmp edx, 0x3f
jbe 0x653987c4
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea r8d, [rdx*8]
add r8, qword [rcx]
mov eax, edx
mov qword [rcx], r8
lea ecx, [rdx + 1]
cmp ecx, 0x38
mov dword [rbx + 0x18], ecx
mov byte [rbx + rax + 0x1c], pe_nt_image_headers64
ja 0x65398920
cmp ecx, 0x38
lea rdi, [rbx + 0x1c]
je 0x653988e9
mov edx, ecx
lea r9d, [rcx + 1]
mov eax, ecx
not edx
mov byte [rbx + rax + 0x1c], 0
and edx, 7
cmp r9d, 0x38
je 0x653988e2
test edx, edx
je 0x6539888d
cmp edx, 1
je 0x6539887b
cmp edx, 2
je 0x6539886f
cmp edx, 3
je 0x65398863
cmp edx, 4
je 0x65398856
cmp edx, 5
je 0x65398849
cmp edx, 6
je 0x6539883d
mov byte [rbx + r9 + 0x1c], 0
lea r9d, [rcx + 2]
mov ecx, r9d
add r9d, 1
mov byte [rbx + rcx + 0x1c], 0
mov r10d, r9d
add r9d, 1
mov byte [rbx + r10 + 0x1c], 0
mov r11d, r9d
add r9d, 1
mov byte [rbx + r11 + 0x1c], 0
mov edx, r9d
add r9d, 1
mov byte [rbx + rdx + 0x1c], 0
mov eax, r9d
add r9d, 1
mov byte [rbx + rax + 0x1c], 0
mov ecx, r9d
add r9d, 1
cmp r9d, 0x38
mov byte [rbx + rcx + 0x1c], 0
je 0x653988e2
lea r11d, [r9 + 1]
lea edx, [r9 + 2]
mov r10d, r9d
mov byte [rbx + r10 + 0x1c], 0
lea eax, [r9 + 3]
lea ecx, [r9 + 4]
mov byte [rbx + r11 + 0x1c], 0
lea r10d, [r9 + 5]
mov byte [rbx + rdx + 0x1c], 0
lea r11d, [r9 + 6]
lea edx, [r9 + 7]
add r9d, 8
cmp r9d, 0x38
mov byte [rbx + rax + 0x1c], 0
mov byte [rbx + rcx + 0x1c], 0
mov byte [rbx + r10 + 0x1c], 0
mov byte [rbx + r11 + 0x1c], 0
mov byte [rbx + rdx + 0x1c], 0
jne 0x6539888d
mov dword [rbx + 0x18], 0x38
mov qword [rbx + 0x54], r8
mov rdx, rdi
mov rcx, rbx
call fcn.65397ef0
mov r9d, dword [rbx + 8]
xor eax, eax
mov dword [rsi], r9d
mov edi, dword [rbx + 0xc]
mov dword [rsi + 4], edi
mov r8d, dword [rbx + 0x10]
mov dword [rsi + 8], r8d
mov ebx, dword [rbx + 0x14]
mov dword [rsi + 0xc], ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp ecx, 0x40
je 0x65398987
lea edi, [rdx + 2]
mov byte [rbx + rcx + 0x1c], 0
cmp edi, 0x40
je 0x65398980
lea r8d, [rdx + 3]
mov byte [rbx + rdi + 0x1c], 0
cmp r8d, 0x40
je 0x65398980
lea r9d, [rdx + 4]
mov byte [rbx + r8 + 0x1c], 0
cmp r9d, 0x40
je 0x65398980
lea r10d, [rdx + 5]
mov byte [rbx + r9 + 0x1c], 0
cmp r10d, 0x40
je 0x65398980
lea r11d, [rdx + 6]
mov byte [rbx + r10 + 0x1c], 0
cmp r11d, 0x40
je 0x65398980
cmp edx, 0x38
mov byte [rbx + r11 + 0x1c], 0
jne 0x65398980
mov byte [rbx + 0x5b], 0
mov dword [rbx + 0x18], 0x40
lea rdi, [rbx + 0x1c]
mov rcx, rbx
mov rdx, rdi
call fcn.65397ef0
mov r8, qword [rbx]
xor ecx, ecx
jmp 0x653987f5
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6540d371]
mov r8d, 0x106
call fcn.6539d6d0
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6540d37c]
mov r8d, 0x107
call fcn.6539d6d0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x653e0b10
Capabilities:
Check for software breakpoints

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test r8d, r8d
mov rbp, rcx
je 0x653e0b50
mov rcx, qword [rdx + 0x10]
cmp dword [rcx + 8], 0xcd
je 0x653e0b42
test byte [rcx + 0xd], 0x10
jne 0x653e0b42
cmp qword [rdx + 0x28], 0
jne 0x653e0b42
cmp qword [rcx + 0x28], rdx
je 0x653e0b53
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rdx
mov rsi, qword [rdx + 0x18]
mov rbx, qword [rcx]
mov rdi, qword [rdx + 0x20]
and esi, 0x7fff
test rbx, rbx
je 0x653e0b42
mov edx, dword [rbx + 8]
movsxd r12, esi
cmp edx, 0x5c
je 0x653e0bd3
ja 0x653e0bf0
lea eax, [rdx - 7]
cmp eax, 1
jbe 0x653e0b42
mov rcx, rbp
call fcn.653e0700
test al, 4
jne 0x653e0b42
mov edx, eax
and edx, 3
cmp edx, 3
je 0x653e0c70
mov edx, eax
and edx, 0x300
cmp edx, 0x300
je 0x653e0ca0
and eax, 0x30000
mov rcx, rbx
cmp eax, 0x30000
je 0x653e0cc6
mov rbx, qword [rcx]
test rbx, rbx
je 0x653e0b42
mov edx, dword [rbx + 8]
cmp edx, 0x5c
jne 0x653e0b74
mov rax, qword [rbx + 0x10]
and eax, 0x7fff
cmp r12, rax
je 0x653e0c03
mov rcx, rbx
jmp 0x653e0bbf
cmp edx, 0xcd
jne 0x653e0b7e
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp word [rbx + 0xc], 0
jne 0x653e0b42
cmp qword [rbx + 0x18], rdi
jne 0x653e0b42
cmp rcx, rbx
mov rax, qword [rbx]
je 0x653e0d00
mov qword [rcx], rax
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax + 0x100]
mov qword [rbx], rdx
mov qword [rax + 0x100], rbx
jmp 0x653e0bbf
test al, 8
je 0x653e0ce0
mov edx, dword [rbx + 0x10]
and edx, 0x7fff
cmp edx, esi
je 0x653e0b42
mov edx, dword [rbx + 0x14]
and edx, 0x7fff
cmp edx, esi
jne 0x653e0b98
jmp 0x653e0b42
mov rdx, qword [rbx + 0x18]
and edx, 0x7fff
cmp r12, rdx
je 0x653e0b42
and eax, 0x30000
mov rcx, rbx
cmp eax, 0x30000
jne 0x653e0bbf
mov rax, qword [rbx + 0x20]
and eax, 0x7fff
cmp r12, rax
jne 0x653e0bbf
jmp 0x653e0b42
mov rdx, qword [rbx + 0x10]
and edx, 0x7fff
cmp r12, rdx
jne 0x653e0b98
jmp 0x653e0b42
mov rdx, qword [rbp + 0x38]
mov qword [rdx], rax
jmp 0x653e0c27
Function at 0x653ff030
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
cmp dword [rcx + 0x244], 0x10
ja 0x653ff0b0
mov rbx, rcx
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov edi, r8d
call fcn.6539d710
test eax, eax
mov r14d, eax
jne 0x653ff0b6
mov eax, dword [rbx + 0x240]
test eax, eax
jne 0x653ff0a1
movsxd rcx, dword [rbx + 0x244]
test ecx, ecx
jne 0x653ff0d0
cmp qword [rbx + 0x248], 0
je 0x653ff2c0
lea r13, [rbx + 0x228]
lea r12, [rbx + 0x1f8]
jmp 0x653ff14a
cmp eax, 1
je 0x653ff2d0
nop word [rax + rax]
mov r14d, 0x10
lea rsp, [rbp - 0x38]
mov eax, r14d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rbx + 0x23c]
lea r13, [rbx + 0x228]
test eax, eax
jne 0x653ff110
cmp ecx, 0xc
jne 0x653ff110
mov rax, qword [rbx + 0x228]
mov qword [rbx + 0x208], rax
mov eax, dword [r13 + 8]
mov dword [rbx + 0x214], 0x1000000
mov dword [rbx + 0x210], eax
jmp 0x653ff1b5
lea eax, [rcx - 1]
lea r12, [rbx + 0x1f8]
lea r8, [rbx + rax + 0x1f9]
mov rdx, r12
movzx eax, byte [rdx + 0x30]
xor byte [rdx], al
add rdx, 1
cmp rdx, r8
jne 0x653ff125
shl rcx, 3
add qword [rbx + 0x248], rcx
mov rdx, r12
mov rcx, rbx
call fcn.65397830
mov edx, 8
mov rcx, r13
call fcn.6539e210
mov rax, qword [rbx + 0x248]
mov rdx, r12
bswap rax
mov qword [rbx + 0x230], rax
lea rax, [rbx + 0x208]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rax, rdx
jne 0x653ff172
mov rdx, r12
mov rcx, rbx
call fcn.65397830
mov rdx, qword [rbx + 0x200]
mov rax, qword [rbx + 0x1f8]
mov rcx, r12
mov qword [rbx + 0x210], rdx
mov qword [rbx + 0x208], rax
mov edx, 0x10
call fcn.6539e210
mov rdx, qword [rbx + 0x210]
mov rax, qword [rbx + 0x208]
mov rcx, r13
mov qword [rbx + 0x220], rdx
mov qword [rbx + 0x218], rax
mov edx, 0x10
call fcn.6539e210
mov qword [rbx + 0x240], 1
mov qword [rbx + 0x248], 0
mov r13d, edi
and r13d, 0xfffffff0
je 0x653ff2f0
lea r15, [rbx + 0x1f8]
xor r12d, r12d
nop dword [rax + rax]
mov eax, r12d
mov rdx, r15
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [r12 + 8]
add r12d, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.65397830
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12d, r13d
jb 0x653ff210
mov eax, r12d
add rsi, rax
cmp edi, r12d
jbe 0x653ff0b6
sub edi, 1
sub edi, r12d
lea r12, [rsi + rdi + 1]
lea rdi, [rbx + 0x1f8]
jmp 0x653ff279
cmp rsi, r12
je 0x653ff0b6
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
movzx ecx, byte [rsi - 1]
lea eax, [rdx + 1]
mov dword [rbx + 0x244], eax
xor byte [rbx + rdx + 0x1f8], cl
cmp eax, 0x10
jne 0x653ff270
mov rdx, rdi
mov rcx, rbx
call fcn.65397830
mov dword [rbx + 0x244], 0
sub qword [rbx + 0x248], 0xffffffffffffff80
jmp 0x653ff270
mov r14d, 1
jmp 0x653ff0b6
mov eax, dword [rbx + 0x244]
cmp eax, 0xf
jg 0x653ff0b0
xor r12d, r12d
test eax, eax
jne 0x653ff250
jmp 0x653ff1f4
xor r12d, r12d
jmp 0x653ff250
Function at 0x653ff720
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
mov ebp, 0x10
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x240]
test eax, eax
jne 0x653ff861
cmp dword [rcx + 0x244], 0xf
mov rbx, rcx
ja 0x653ff861
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov r12d, r8d
call fcn.6539d710
test eax, eax
mov ebp, eax
jne 0x653ff861
mov eax, dword [rbx + 0x244]
lea edx, [rax + r12]
cmp edx, 0xc
jbe 0x653ff782
or dword [rbx + 0x23c], 1
xor edi, edi
test eax, eax
jne 0x653ff7db
mov r13d, r12d
and r13d, 0xfffffff0
je 0x653ff872
lea r14, [rbx + 0x1f8]
nop dword [rax]
mov eax, edi
mov rdx, r14
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [rdi + 8]
add edi, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.65397830
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp edi, r13d
jb 0x653ff7a0
mov eax, edi
add rsi, rax
cmp r12d, edi
jbe 0x653ff861
sub r12d, 1
lea r13, [rbx + 0x1f8]
sub r12d, edi
lea rdi, [rbx + 0x208]
lea r12, [rsi + r12 + 1]
jmp 0x653ff805
cmp r12, rsi
je 0x653ff861
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
lea ecx, [rdx + 1]
mov dword [rbx + 0x244], ecx
movzx eax, byte [rsi - 1]
cmp ecx, 0x10
mov byte [rbx + rdx + 0x228], al
jne 0x653ff800
mov rdx, r13
nop dword [rax]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rdi, rdx
jne 0x653ff830
mov rdx, r13
mov rcx, rbx
call fcn.65397830
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12, rsi
mov dword [rbx + 0x244], 0
jne 0x653ff805
add rsp, 0x20
mov eax, ebp
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, eax
jmp 0x653ff7db
Function at 0x65b66058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.65b661df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x65b66089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x65b6606f
add dl, dl
jne 0x65b66096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x65b660f6
xor eax, eax
add dl, dl
jne 0x65b660a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x65b661ad
add dl, dl
jne 0x65b660b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x65b660c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x65b660d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x65b660dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x65b660ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x65b6607e
mov eax, 1
add dl, dl
jne 0x65b66106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x65b66113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x65b660fb
sub eax, ebx
mov ebx, 1
jne 0x65b6614c
mov ecx, 1
add dl, dl
jne 0x65b6612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x65b6613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x65b66123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x65b6607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x65b66168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x65b66175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x65b6615d
cmp eax, 0x7d00
jae 0x65b6619b
cmp eax, 0x500
jb 0x65b66196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x65b6607e
cmp eax, 0x7f
ja 0x65b6619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x65b6607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x65b661d2
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 0x65b6607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140009250
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140029568]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
cmp qword [rcx + 0x10], 0
je 0x14000930f
call fcn.14000e980
test al, al
jne 0x14000930f
mov rcx, rbx
call fcn.140009d90
test al, al
je 0x1400092ea
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000cf10
nop
mov rcx, rax
call fcn.140009250
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400092ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400092e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000935f
call fcn.140013f50
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400092f7
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000930f
mov rcx, rbx
call fcn.14000e980
test al, al
je 0x140009322
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140014070
add rsp, 0x60
pop rbx
ret
lea rcx, str.Failure_processing_application_bundle.
call fcn.14000c460
mov rcx, rbx
call fcn.140008e90
mov rdx, rax
lea rcx, str.Failed_to_create_directory___s__for_extracting_bundled_files
call fcn.14000c460
mov dword [rsp + 0x20], 0x800080a0
lea rdx, [0x140026fa0]
lea rcx, [rsp + 0x20]
call fcn.140014fac
int3
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3