joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e650
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rcx
xor ecx, ecx
test r9, r9
je 0x14000e774
cmp r9, 0x40
jb 0x14000e747
lea r11, [r9 - 1]
lea rax, [r8 - 1]
add r11, r10
add rax, r9
cmp r10, rax
ja 0x14000e688
cmp r11, r8
jae 0x14000e747
lea rax, [rdx - 1]
add rax, r9
cmp r10, rax
ja 0x14000e69d
cmp r11, rdx
jae 0x14000e747
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp], rdi
mov rdi, r9
and rdi, 0xffffffffffffffc0
mov r11, rdx
lea rax, [r8 + 0x10]
sub r11, r8
mov rbx, r10
sub rbx, r8
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rcx, 0x40
movdqu xmm1, xmmword [r11 + rax - 0x10]
movdqu xmm2, xmmword [r11 + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [r11 + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [r11 + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp rcx, rdi
jb 0x14000e6d0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
cmp rcx, r9
jae 0x14000e774
sub rdx, r8
lea rax, [rcx + r8]
sub r10, r8
sub r9, rcx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rax + rdx]
xor cl, byte [rax]
mov byte [rax + r10], cl
lea rax, [rax + 1]
sub r9, 1
jne 0x14000e760
add rsp, 8
ret
Function at 0x14000e780
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x38]
mov rdi, rcx
movups xmmword [rsp + 0x38], xmm0
call fcn.14000f740
test eax, eax
jne 0x14000e938
mov r8d, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x40]
bswap ecx
mov ecx, ecx
bswap r8d
bswap r9d
mov r8d, r8d
shl r8, 0x20
or r8, rcx
mov r9d, r9d
mov ecx, dword [rsp + 0x44]
shl r9, 0x20
bswap ecx
mov ecx, ecx
or r9, rcx
mov qword [rsp + 0x68], rbx
cmp dword [0x14005ccd4], esi
mov qword [rdi + 0xa0], r9
mov qword [rdi + 0x120], r8
jne 0x14000e84e
mov eax, 1
mov dword [0x14005ccd4], 1
xor ecx, ecx
cpuid
mov dword [0x14005cee0], eax
mov dword [0x14005cee4], ebx
mov dword [0x14005cee8], ecx
mov dword [0x14005ceec], edx
mov dword [0x14005ccd8], ecx
jmp 0x14000e854
mov ecx, dword [0x14005ccd8]
test cl, 2
jne 0x14000e931
mov qword [rdi + 0xe0], rsi
mov qword [rdi + 0x60], rsi
mov ebx, 4
nop dword [rax]
mov eax, r9d
mov rcx, r8
and eax, 1
shl rcx, 0x3f
imul edx, eax, 0xe1000000
mov rax, r9
shr rax, 1
mov r9, rcx
or r9, rax
mov rax, r8
shr rax, 1
mov qword [rdi + rbx*8 + 0x60], r9
mov ecx, edx
shl rcx, 0x20
mov r8, rcx
xor r8, rax
mov qword [rdi + rbx*8 + 0xe0], r8
shr ebx, 1
jne 0x14000e870
mov esi, 2
mov ebx, esi
nop dword [rax]
lea rcx, [rdi + 0x60]
mov r9, qword [rcx + rbx*8]
lea rdx, [rdi + 0xe0]
mov r8, qword [rdx + rbx*8]
lea rcx, [rcx + rbx*8]
lea rdx, [rdx + rbx*8]
cmp rbx, 1
jle 0x14000e924
sub rdx, rdi
lea rax, [rdi + 0x68]
sub rcx, rdi
lea r10, [rdx - 0x60]
lea r11, [rcx - 0x60]
lea rdx, [rbx - 1]
nop word [rax + rax]
mov rcx, r8
xor rcx, qword [rax + 0x80]
mov qword [r10 + rax], rcx
lea rax, [rax + 8]
mov rcx, r9
xor rcx, qword [rax - 8]
mov qword [r11 + rax - 8], rcx
sub rdx, 1
jne 0x14000e900
lea eax, [rsi + rsi]
add rbx, rbx
mov esi, eax
cmp eax, 8
jle 0x14000e8c0
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001a680
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000fe80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm1, xmmword [rdx]
aeskeygenassist xmm0, xmm1, 1
pshufd xmm3, xmm0, 0xff
pxor xmm3, xmm1
movups xmmword [rcx], xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm3, 2
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm3
movdqu xmmword [rcx + 0x10], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
pxor xmm0, xmm1
movdqa xmm2, xmm3
pxor xmm2, xmm0
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 4
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm2
movdqu xmmword [rcx + 0x20], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm1
movdqa xmm3, xmm2
pxor xmm3, xmm0
pslldq xmm2, 4
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 8
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm3
movdqu xmmword [rcx + 0x30], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
pxor xmm0, xmm1
movdqa xmm2, xmm3
pxor xmm2, xmm0
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x10
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm2
movdqu xmmword [rcx + 0x40], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm1
movdqa xmm3, xmm2
pxor xmm3, xmm0
pslldq xmm2, 4
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x20
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm3
movdqu xmmword [rcx + 0x50], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
pxor xmm0, xmm1
movdqa xmm2, xmm3
pxor xmm2, xmm0
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x40
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm2
movdqu xmmword [rcx + 0x60], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
movdqa xmm3, xmm2
pxor xmm0, xmm1
pxor xmm3, xmm0
pslldq xmm2, 4
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x80
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm3
movdqu xmmword [rcx + 0x70], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
pxor xmm0, xmm1
movdqa xmm2, xmm3
pxor xmm2, xmm0
pslldq xmm3, 4
pxor xmm2, xmm3
aeskeygenassist xmm0, xmm2, 0x1b
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm2
movdqu xmmword [rcx + 0x80], xmm2
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm1
movdqa xmm3, xmm2
pxor xmm3, xmm0
pslldq xmm2, 4
pxor xmm3, xmm2
aeskeygenassist xmm0, xmm3, 0x36
pshufd xmm1, xmm0, 0xff
pxor xmm1, xmm3
movdqu xmmword [rcx + 0x90], xmm3
pslldq xmm3, 4
movdqa xmm0, xmm3
pslldq xmm3, 4
pxor xmm0, xmm1
movdqa xmm1, xmm3
pxor xmm1, xmm0
pslldq xmm3, 4
pxor xmm1, xmm3
movdqu xmmword [rcx + 0xa0], xmm1
ret
Function at 0x140017520
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movzx eax, r9b
mov rdi, r8
movzx r11d, al
mov rbx, rdx
and r11b, 0x1f
shr eax, 5
mov r10, rcx
and eax, 0x80000003
jge 0x14001755a
dec eax
or eax, 0xfffffffc
inc eax
movzx ecx, al
movzx ebp, r11b
mov r9d, dword [r8 + rcx*4]
mov ecx, 0x20
sub cl, r11b
movzx edx, cl
xor ecx, ecx
test r11b, r11b
bswap r9d
cmove edx, ecx
sub rbx, r10
movzx esi, dl
lea r11d, [rcx + 4]
nop word [rax + rax]
inc al
lea r10, [r10 + 4]
and al, 3
movzx ecx, al
mov r8d, dword [rdi + rcx*4]
mov ecx, esi
bswap r8d
mov edx, r8d
shr edx, cl
mov ecx, ebp
shl r9d, cl
or edx, r9d
mov r9d, r8d
bswap edx
xor edx, dword [rbx + r10 - 4]
mov dword [r10 - 4], edx
sub r11, 1
jne 0x140017590
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x14001a5c0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x140059010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, dword [rcx + 8]
mov rdi, rcx
test eax, eax
jne 0x14001a64e
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rbx, qword [rsp + 0x30]
mov ecx, 0x100000
test eax, eax
cmove rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov rax, rbx
div qword [rdi]
mov rbx, qword [rsp + 0x88]
mov r8, rax
mov eax, 3
test r8d, r8d
cmove r8d, eax
mov eax, 0xa
cmp r8d, dword [rsp + 0x40]
cmovae r8d, dword [rsp + 0x40]
cmp r8d, eax
cmovb eax, r8d
mov dword [rdi + 8], eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001a680
add rsp, 0x70
pop rdi
ret

Function at 0x140024520
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002434c
Function at 0x14002ddcc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14002dda9
call fcn.140026e7c
mov dword [rax], 0x16
call fcn.140023d88
or eax, 0xffffffff
jmp 0x14002ddc6
sub dword [rcx + 0x10], 1
jns 0x14002ddb8
add rsp, 0x28
jmp 0x140037b10
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14002dd88
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x140037b42
call fcn.140026e7c
mov dword [rax], 0x16
call fcn.140023d88
jmp 0x140037c5f
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140037c5f
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140037c5f
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140037b71
lock or dword [rcx + 0x14], 0x10
jmp 0x140037c5f
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140037b85
call fcn.14003a40c
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.14002c740
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.1400393bc
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140037c4d
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x140037c18
mov rcx, rdi
call fcn.14002c740
cmp eax, esi
je 0x140037c03
mov rcx, rdi
call fcn.14002c740
cmp eax, 0xfffffffe
je 0x140037c03
mov rcx, rdi
call fcn.14002c740
movsxd rbx, eax
lea r14, [0x14005b520]
mov rcx, rdi
sar rbx, 6
call fcn.14002c740
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140037c0a
lea rdx, [0x140059270]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140037c18
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x140037c3c
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x140037c3c
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x140037c3c
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x140037c62
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140037c7c
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400379a2
call fcn.140026e7c
mov dword [rax], 0x16
call fcn.140023d88
jmp 0x140037aed
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140037aed
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140037aed
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400379d1
lock or dword [rcx + 0x14], 0x10
jmp 0x140037aed
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400379e5
call fcn.14003a40c
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1400379f5
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1400379f8
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14002c740
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1400393bc
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140037adb
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140037a89
mov rcx, rbx
call fcn.14002c740
cmp eax, 0xffffffff
je 0x140037a74
mov rcx, rbx
call fcn.14002c740
cmp eax, 0xfffffffe
je 0x140037a74
mov rcx, rbx
call fcn.14002c740
movsxd rdi, eax
lea r14, [0x14005b520]
mov rcx, rbx
sar rdi, 6
call fcn.14002c740
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140037a7b
lea rdx, [0x140059270]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140037a89
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140037aad
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140037aad
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140037aad
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140037acb
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140037ad6
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140037af2
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14003796c
Function at 0x1400051d0
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14003f198]
xor rax, rsp
mov qword [rsp + 0x270], rax
movsd xmm0, qword [str.._]
mov rsi, rdx
movzx eax, word [0x14002ff98]
mov rbx, rcx
xor edi, edi
movsd qword [rsp + 0x60], xmm0
xor edx, edx
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x6a]
mov word [rsp + 0x68], ax
mov r8d, 0x1fe
call fcn.14000c160
test rbx, rbx
jne 0x140005254
xor r9d, r9d
lea rdx, str.D:BWA6B22E293_2BF5_0iTunesWin_1200.12.12.9.4_srcrootUtilitiesDeviceUtilitiesW32.cpp
mov r8d, 0x19c
lea rcx, str.drivePath___NULL
call fcn.140005f60
xor eax, eax
jmp 0x14000539c
test rsi, rsi
jne 0x14000527c
xor r9d, r9d
lea rdx, str.D:BWA6B22E293_2BF5_0iTunesWin_1200.12.12.9.4_srcrootUtilitiesDeviceUtilitiesW32.cpp
mov r8d, 0x19d
lea rcx, str.deviceNumber___NULL
call fcn.140005f60
xor eax, eax
jmp 0x14000539c
movzx ecx, word [rbx]
call fcn.140015bb0
mov r9, 0xffffffffffffffff
test eax, eax
je 0x1400052d2
lea rax, [rsp + 0x60]
inc r9
cmp word [rax + r9*2], di
jne 0x140005294
movzx eax, word [rbx]
mov ecx, r9d
inc r9d
mov word [rsp + rcx*2 + 0x60], ax
mov ecx, 0x3a
mov word [rsp + r9*2 + 0x60], cx
lea ecx, [r9 + 1]
add rcx, rcx
cmp rcx, 0x208
jae 0x1400053c1
mov word [rsp + rcx + 0x60], di
jmp 0x1400052e4
mov r8, rbx
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140010f90
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005332
xor r9d, r9d
lea rdx, str.D:BWA6B22E293_2BF5_0iTunesWin_1200.12.12.9.4_srcrootUtilitiesDeviceUtilitiesW32.cpp
mov r8d, 0x1af
lea rcx, str.hVolume___INVALID_HANDLE_VALUE
call fcn.140005f60
xor eax, eax
jmp 0x14000539c
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 0xc
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x2d1080
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
test eax, eax
jne 0x14000538b
xor r9d, r9d
lea rdx, str.D:BWA6B22E293_2BF5_0iTunesWin_1200.12.12.9.4_srcrootUtilitiesDeviceUtilitiesW32.cpp
mov r8d, 0x1b2
lea rcx, str.success
call fcn.140005f60
jmp 0x140005391
mov eax, dword [rsp + 0x4c]
mov dword [rsi], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000a0a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14000a3f8
int3
Function at 0x140008a00
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREApple_Computer__Inc.iTunes_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008aa3
mov rcx, qword [rsp + 0x40]
lea rdx, str.DisableTerminationOnHeapCorruption
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor ebx, ebx
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
setne bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
je 0x140008aa3
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
jne 0x140008aa3
xor r9d, r9d
lea rdx, str.D:BWA6B22E293_2BF5_0iTunesWin_1200.12.12.9.4_srcrootiTunesiPodSupport_Win32_CommonWindowsWinUtils.cpp
mov r8d, 0x1fc
lea rcx, str.heapSetInfoResult
call fcn.140005f60
add rsp, 0x38
ret
Function at 0x140001070
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push rdi
sub rsp, 0x1e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rdi, rdx
cmp ecx, 3
je 0x1400010aa
lea rcx, str.conn.exe__ip___port__n
call fcn.140001010
mov ecx, 1
call fcn.140003514
int3
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400010d5
lea rcx, str.WSAStartup___failed_n
call fcn.140001010
mov ecx, 1
call fcn.140003514
int3
xor r8d, r8d
mov qword [rsp + 0x1f0], rbx
mov qword [rsp + 0x200], rsi
mov esi, 2
mov ecx, esi
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001117
lea rcx, str.socket___failed_n
call fcn.140001010
lea ecx, [rsi - 1]
call fcn.140003514
int3
mov rcx, qword [rdi + 8]
mov word [rsp + 0x20], si
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x24], eax
call fcn.140003ae0
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, 0x10
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001170
lea rcx, str.connect_failed_n
call fcn.140001010
mov ecx, 1
call fcn.140003514
int3
lea rcx, [0x14001b588]
call fcn.140001010
xor ecx, ecx
call fcn.140003514
int3

Function at 0x140001b94
Capabilities:
Parse pe header

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

Function at 0x140003514
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400033a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400033a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400033a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400033a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400033a7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400033a7
cmp dword [rcx + 0xf8], 0
je 0x1400033a7
mov ecx, ebx
call fcn.140003448
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140003238
cmp dword [rbp + 0x20], 0
je 0x1400033f4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400033fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140003340
Function at 0x1400121a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400121c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400121c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140089708
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r12d, r12d
lea r9, [rax + 0x10]
mov qword [rdx], r12
mov r15, rdx
xor edx, edx
mov dword [rax + 0x18], r12d
xor r8d, r8d
mov r14, rcx
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140089765
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140089765
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14008981e
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbp, rax
test rax, rax
jne 0x140089784
mov ebx, 0x8007000e
jmp 0x140089822
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1400897b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140089815
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbp + rsi*2], r12w
jne 0x1400897b8
test esi, esi
je 0x140089815
lea eax, [rsi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x1400897e5
mov ebx, 0x8007000e
jmp 0x140089815
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.14003b8c0
mov ebx, eax
test eax, eax
js 0x140089807
lea ecx, [rsi - 1]
mov word [rdi + rcx*2], r12w
mov qword [r15], rdi
mov rdi, r12
test rdi, rdi
je 0x140089815
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x14008985d
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x14008985d
test byte [rcx + 0x1c], 1
je 0x14008985d
cmp byte [rcx + 0x19], 3
jb 0x14008985d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401558c0]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005ce8
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14008987c
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
and qword [rdx], 0
mov rsi, rdx
and qword [rax + 0x18], 0
lea rdx, [rax + 0x18]
mov r14, rcx
call fcn.140086ee4
lea r13, [0x1401782b0]
mov ebx, eax
test eax, eax
js 0x1400899ec
and qword [rsp + 0x30], 0
mov r8d, 3
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140089941
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x14008992e
test byte [rcx + 0x1c], 1
je 0x14008992e
cmp byte [rcx + 0x19], 2
jb 0x14008992e
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401558c0]
mov dword [rsp + 0x20], eax
call fcn.140005ce8
mov rcx, qword [0x1401782b0]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1400899f3
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x88], rax
mov edx, 0x7405c
lea rax, [rsp + 0x78]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400899d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1401782b0]
cmp rcx, r13
je 0x1400899c8
test byte [rcx + 0x1c], 1
je 0x1400899c8
cmp byte [rcx + 0x19], 2
jb 0x1400899c8
mov r9, qword [rsp + 0x80]
lea r8, [0x1401558c0]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.140005ce8
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1400899e3
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
cmp qword [rsp + 0x80], 0
je 0x140089a13
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
test ebx, ebx
jns 0x140089a47
cmp rcx, r13
je 0x140089a47
test dword [rcx + 0x1c], 0x200
je 0x140089a47
cmp byte [rcx + 0x19], 2
jb 0x140089a47
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401558c0]
mov edx, 0xd
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005ce8
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret