joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bdd50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400bdd95
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400bdd95
lea rcx, [rsp + 0x20]
call qword [case.0x1400a86d7.0]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x1400bf9e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x1400bfa3c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400bfa4c
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400c3430
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400c34b0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400c3674
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400c3654
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400c350d
lea ebp, [rax + 0xe]
jmp 0x1400c3519
cmp eax, 0x17
jne 0x1400c35c1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400c35c1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400c35c1
cmp rax, rbp
jb 0x1400c35c1
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400c35fc
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400c35eb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400c35ae
call qword [case.0x1400a86d7.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400c35d0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400c35be
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400c3500
jmp 0x1400c3602
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x1400c3602
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x1400c3602
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400c3617
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400c364f
test rbx, rbx
je 0x1400c364a
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400c3621
mov rbx, r13
jmp 0x1400c3663
test rbx, rbx
jne 0x1400c3663
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400c5640
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x1400c568a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400c567a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400c56d4
cmp qword [rbx + 0x10], 0
jne 0x1400c56bf
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1400e2784]
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400c56bf
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400c56f8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c56ef
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400c7900
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400c793a
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400c7938
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c9c80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c9cc2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c9d05
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c9d61
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x1400c9d20
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c9da3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ef6d2]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ef6d3]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c9d70
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140001310
Capabilities:
Accept command line arguments
Get session user name

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14003f198]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x160], rbp
mov ecx, 0x90
mov ebp, r9d
mov dword [rsp + 0x20], 0x104
mov rbx, 0xffffffffffffffff
call fcn.140009d70
test rax, rax
je 0x14000135c
mov rcx, rax
call fcn.140001ab0
mov qword [0x140040310], rax
call fcn.140008a00
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140001490
mov r8, qword [section..data]
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x140001390
mov eax, dword [rsp + 0x20]
add eax, ecx
mov dword [rsp + 0x20], eax
cmp eax, 0x104
ja 0x140001490
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x168], rsi
dec rcx
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400013c0
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400013d0
xor r8d, r8d
lea r9, [rsp + 0x30]
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000140f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001488
test rsi, rsi
je 0x140001488
cmp byte [0x140040300], 0
mov qword [rsp + 0x170], rdi
mov rdi, qword [0x140040310]
jne 0x140001477
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
test eax, eax
jns 0x140001455
cmp eax, 0x80010106
jne 0x140001477
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140001459
jmp 0x140001477
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, ebp
mov rcx, rdi
call fcn.140002e00
cmp byte [rdi + 0x62], 0
mov ebx, eax
je 0x140001477
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x168]
mov rcx, qword [0x140040310]
mov rbp, qword [rsp + 0x160]
test rcx, rcx
je 0x1400014af
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000a0a0
add rsp, 0x150
pop rbx
ret
Function at 0x140004600
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x30], 0
lea rax, [rcx + 0x30]
mov rbx, rcx
jne 0x1400046df
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9, rcx
lea rcx, [0x140003e00]
lea r8d, [rdx + 1]
call fcn.140007a60
test eax, eax
je 0x14000468c
mov r8d, eax
lea rdx, str.AMDeviceNotificationSubscribe_failed__0x_08X_
lea rcx, str.CMobileDeviceListener::SubscribeToMobileDeviceNotification__
call fcn.140005ff0
movzx eax, byte [rbx + 1]
inc al
mov byte [rbx], 0
mov byte [rbx + 1], al
cmp al, 5
jae 0x140004669
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1400044d0
mov r8d, 5
lea rdx, str.failed_to_subscribe_after__d_attempts
lea rcx, str.CMobileDeviceListener::SubscribeToMobileDeviceNotification__
call fcn.140005ff0
mov byte [rbx + 1], 0
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x28], rbx
lea r9, [0x140003ef0]
lea r8, [0x140003de0]
mov qword [rsp + 0x20], 0
lea rdx, [0x140003ec0]
mov word [rbx], 1
lea rcx, [0x140003db0]
call fcn.140007ce0
test eax, eax
je 0x1400046df
mov r8d, eax
lea rdx, str.AMRestoreRegisterForDeviceNotifications_failed__0x_08X_
lea rcx, str.CMobileDeviceListener::SubscribeToMobileDeviceNotification__
add rsp, 0x30
pop rbx
jmp fcn.140005ff0
add rsp, 0x30
pop rbx
ret

Function at 0x1400046f0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14000472b
mov qword [rcx + 0x30], 0
mov rcx, rax
call fcn.140007ae0
test eax, eax
je 0x14000472b
mov r8d, eax
lea rdx, str.AMDeviceNotificationUnsubscribe_failed__0x_08X_
lea rcx, str.CMobileDeviceListener::UnsubscribeToMobileDeviceNotification__
add rsp, 0x28
jmp fcn.140005ff0
add rsp, 0x28
ret
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:BWA52C09D6F_33CD_0iTunesWin_1200.12.13.0.9_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:BWA52C09D6F_33CD_0iTunesWin_1200.12.13.0.9_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:BWA52C09D6F_33CD_0iTunesWin_1200.12.13.0.9_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:BWA52C09D6F_33CD_0iTunesWin_1200.12.13.0.9_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 0x140007d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14003f198]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rax, qword [0x1400403f8]
mov rsi, rcx
test rax, rax
jne 0x140007f60
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x20a
call fcn.14000c160
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareApple_Inc.Apple_Mobile_Device_SupportShared
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140007f54
mov qword [rsp + 0x4b8], rbx
lea r8, [rsp + 0x58]
lea rdx, str.SoftwareApple_Inc.Apple_Mobile_Device_Support
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140007ed3
xor edx, edx
mov qword [rsp + 0x4c0], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14000c160
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x40], 0x206
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Version
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov qword [rsp + 0x58], rbx
mov rdi, qword [rsp + 0x4c0]
jne 0x140007ed3
mov edx, dword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r8, str._u._u._u._u
lea rax, [rsp + 0x44]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.140007fa0
cmp eax, 4
jne 0x140007ed3
mov eax, dword [rsp + 0x48]
movzx ebx, byte [rsp + 0x44]
shl eax, 8
or ebx, eax
movzx eax, byte [rsp + 0x4c]
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
lea rax, str.MobileDeviceDLL
cmp ebx, 0xe00000c
mov dword [rsp + 0x54], 0x104
lea rdx, str.iTunesMobileDeviceDLL
cmovae rdx, rax
lea r9, [rsp + 0x6c]
lea rax, [rsp + 0x54]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov qword [rsp + 0x60], 0
mov rbx, qword [rsp + 0x4b8]
jne 0x140007f54
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400403f8], rax
jmp 0x140007f5b
mov rax, qword [0x1400403f8]
test rax, rax
je 0x140007f6c
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14000a0a0
mov rsi, qword [rsp + 0x4c8]
add rsp, 0x4a0
pop rbp
ret
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:BWA52C09D6F_33CD_0iTunesWin_1200.12.13.0.9_srcrootiTunesiPodSupport_Win32_CommonWindowsWinUtils.cpp
mov r8d, 0x1fc
lea rcx, str.heapSetInfoResult
call fcn.140005f60
add rsp, 0x38
ret
Function at 0x140008ed0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, qword [str.iTunesInstall_CA4AAC34_815A_444C_9A6D_84BF8437AE6A]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140008f04
cmp eax, 5
je 0x140008f04
xor ebx, ebx
jmp 0x140008f09
mov ebx, 1
test rdi, rdi
je 0x140008f17
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400090d0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x2b0
mov rax, qword [0x14003f198]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rsi, rcx
lea rax, [rsp + 0x68]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SOFTWAREClassesLocal_SettingsSoftwareMicrosoftWindowsCurrentVersionAppModelPackageRepositoryPackages
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000928b
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rbx
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov qword [rsp + 0x48], rbx
xor edx, edx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x140009280
cmp dword [rsp + 0x60], ebx
jbe 0x140009280
mov qword [rsp + 0x2c8], rbp
mov edx, 0x104
mov rcx, rsi
mov qword [rsp + 0x2d0], rdi
call fcn.14001dd10
mov rbp, rax
mov edi, ebx
cmp dword [rsp + 0x60], ebx
jbe 0x140009270
nop word [rax + rax]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], rbx
mov edx, edi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x70], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000925d
mov r8, rbp
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.14001e04c
test eax, eax
jne 0x14000925d
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea r8, str.Path
lea rax, [rsp + 0x190]
mov dword [rsp + 0x74], 0x104
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x80]
lea rax, [rsp + 0x7c]
mov r9d, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000926b
inc edi
cmp edi, dword [rsp + 0x60]
jb 0x1400091b0
jmp 0x140009270
mov ebx, 1
mov rbp, qword [rsp + 0x2c8]
mov rdi, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14000a0a0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2b0
pop rsi
ret
Function at 0x14000ae38
Capabilities:
Parse pe header

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

Function at 0x140015ac8
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 0x140015aff
call fcn.14001dcf0
mov dword [rax], 0x16
call fcn.14001db84
xor eax, eax
jmp 0x140015b8d
mov rdx, r9
mov rcx, r8
call fcn.140015a64
mov rbx, rax
test rax, rax
je 0x140015b8a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140015990]
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 0x140015b77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001dc64
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140015b5e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140015b6d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001f990
jmp 0x140015b8a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140015b87
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