joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1007a0bb
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
mov esi, dword [ebp + 0x90]
push edi
lea edi, [esi + 0xc]
push edi
xor ebx, ebx
call sym.CoreFoundation.dll___CFSpinLock
test byte [esi + 4], 0x10
pop ecx
mov dword [ebp - 0x80], 0x100
je 0x1007a13b
cmp dword [esi + 0x20], ebx
jne 0x1007a13b
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x1007a13b
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1007a13b
lea eax, [ebp - 0x7c]
test eax, eax
je 0x1007a13b
cmp dword [ebp - 0x80], ebx
jle 0x1007a13b
push dword [ebp - 0x80]
push eax
push esi
call sym.CoreFoundation.dll_CFGetAllocator
pop ecx
push eax
call sym.CoreFoundation.dll_CFDataCreate
add esp, 0xc
mov dword [esi + 0x20], eax
mov esi, dword [esi + 0x20]
test esi, esi
je 0x1007a14b
push esi
call sym.CoreFoundation.dll_CFRetain
pop ecx
mov ebx, eax
push edi
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10128382
add ebp, 0x88
leave
ret

Function at 0x10002720
Capabilities:
Get common file path

Disassembly:
jmp 0x1006542d
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
push edi
mov edi, dword [ebp + 0x19c]
xor esi, esi
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push dword [ebp + 0x1a0]
mov dword [ebp - 0x80], edi
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10065510
xor ecx, ecx
lea eax, [ebp - 0x78]
cmp word [ebp - 0x78], si
je 0x10065487
add eax, 2
inc ecx
cmp word [eax], si
jne 0x1006547e
push ebx
push ecx
lea eax, [ebp - 0x78]
push eax
push edi
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x1006550f
call sym.CoreFoundation.dll_CFBundleGetMainBundle
cmp eax, esi
je 0x100654b5
push dword [sym.CoreFoundation.dll_kCFBundleNameKey]
push eax
call sym.CoreFoundation.dll_CFBundleGetValueForInfoDictionaryKey
pop ecx
pop ecx
jmp 0x100654b7
xor eax, eax
cmp eax, esi
je 0x100654d5
push eax
push ebx
push str.__Apple_Computer___
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push esi
push edi
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x14
jmp 0x100654ec
push ebx
push str.__Apple_Computer_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push esi
push edi
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x10
push ebx
mov edi, eax
call sym.CoreFoundation.dll_CFRelease
pop ecx
cmp edi, esi
je 0x1006550f
push edi
push esi
push dword [ebp - 0x80]
call sym.CoreFoundation.dll_CFStringCreateMutableCopy
push edi
mov dword [ebp - 0x7c], eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x10
pop ebx
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop esi
call fcn.10128382
add ebp, 0x194
leave
ret
Function at 0x10002e37
Capabilities:
Read file on windows

Disassembly:
jmp 0x100b7578
push ebp
lea ebp, [esp - 0xd0]
sub esp, 0x150
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0xcc], eax
mov eax, dword [ebp + 0xe4]
push esi
mov esi, dword [ebp + 0xec]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xe8]
push edi
mov edi, dword [ebp + 0xd8]
mov dword [ebp - 0x80], eax
push 0x106
lea eax, [ebp - 0x3c]
push eax
push edi
mov dword [ebp - 0x74], edi
call sym.CoreFoundation.dll_CFStringGetFileSystemRepresentation
add esp, 0xc
test al, al
jne 0x100b75ea
test esi, esi
je 0x100b75e3
push edi
push 0xffffffffffffffff
push dword [sym.CoreFoundation.dll_kCFErrorDomainCocoa]
call fcn.100b7509
add esp, 0xc
mov dword [esi], eax
xor al, al
jmp 0x100b775d
push ebx
push 0x1b6
lea eax, [ebp - 0x3c]
push 0x8080
push eax
call sym.CoreFoundation.dll__NS_open
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x70], ebx
test ebx, ebx
jns 0x100b7620
test esi, esi
je 0x100b773f
call dword [0x10180f0c]
push edi
push dword [eax]
jmp 0x100b76b9
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [0x10180f18]
pop ecx
pop ecx
test eax, eax
jns 0x100b764f
call dword [0x10180f0c]
mov edi, dword [eax]
push ebx
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b773f
push dword [ebp - 0x74]
push edi
jmp 0x100b76b9
mov eax, dword [ebp - 0x66]
and eax, 0xf000
mov ecx, 0x8000
cmp ax, cx
je 0x100b7676
push ebx
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b773f
push edi
push 0xd
jmp 0x100b76b9
mov ebx, dword [ebp - 0x58]
test ebx, ebx
jns 0x100b7694
push dword [ebp - 0x70]
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b773f
push edi
push 0xc
jmp 0x100b76b9
mov eax, ebx
cdq
test edx, edx
jl 0x100b76cb
jg 0x100b76a4
cmp eax, 0x80000000
jbe 0x100b76cb
push dword [ebp - 0x70]
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b773f
push edi
push 0x1b
push dword [sym.CoreFoundation.dll_kCFErrorDomainPOSIX]
call fcn.100b7509
add esp, 0xc
mov dword [esi], eax
jmp 0x100b773f
test ebx, ebx
jne 0x100b76de
push 8
call dword [0x10181090]
pop ecx
mov edi, eax
xor esi, esi
jmp 0x100b7746
push ebx
call dword [0x10181090]
pop ecx
mov edi, eax
push 0
lea eax, [ebp - 0x7c]
push eax
push ebx
push edi
push dword [ebp - 0x70]
call dword [0x10180ef8]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b7743
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x100b7725
push dword [ebp - 0x74]
push ebx
push dword [sym.CoreFoundation.dll_kCFErrorDomainPOSIX]
call fcn.100b7509
add esp, 0xc
mov dword [esi], eax
push edi
call dword [0x10181098]
push dword [ebp - 0x70]
call dword [0x10180f1c]
pop ecx
pop ecx
call dword [0x10180f0c]
mov dword [eax], ebx
xor al, al
jmp 0x100b775c
mov esi, dword [ebp - 0x7c]
push dword [ebp - 0x70]
call dword [0x10180f1c]
mov eax, dword [ebp - 0x78]
mov dword [eax], edi
mov eax, dword [ebp - 0x80]
mov dword [eax], esi
pop ecx
mov al, 1
pop ebx
mov ecx, dword [ebp + 0xcc]
pop edi
xor ecx, ebp
pop esi
call fcn.10128382
add ebp, 0xd0
leave
ret
Function at 0x10002eb4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x100889d4
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xcc
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
mov esi, dword [0x10181720]
push edi
push str.length
mov dword [ebp - 0x58], ebx
call esi
mov edi, dword [0x10181724]
push eax
push ebx
call edi
add esp, 0xc
mov dword [ebp - 0x54], eax
cmp eax, 0x60
jg 0x10088a30
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0x50]
push eax
push str.getCharacters:range:
call esi
pop ecx
push eax
push ebx
call edi
mov ecx, dword [ebp - 0x54]
add esp, 0x14
jmp 0x10088a8a
push 0x20
pop ecx
push ecx
xor eax, eax
push eax
lea eax, [ebp - 0x50]
push eax
mov ebx, str.getCharacters:range:
push ebx
call esi
pop ecx
push eax
push dword [ebp - 0x58]
call edi
mov eax, dword [ebp - 0x54]
add esp, 0x14
push 0x20
pop ecx
sar eax, 1
push ecx
sub eax, 0x10
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call esi
pop ecx
push eax
push dword [ebp - 0x58]
call edi
mov eax, dword [ebp - 0x54]
add esp, 0x14
push 0x20
pop ecx
push ecx
add eax, 0xffffffe0
push eax
lea eax, [ebp + 0x30]
push eax
push ebx
call esi
pop ecx
push eax
push dword [ebp - 0x58]
call edi
add esp, 0x14
push 0x60
pop ecx
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
cmp ecx, 0x60
jg 0x10088af7
mov esi, ecx
and esi, 0xfffffffc
lea esi, [ebp + esi*2 - 0x50]
mov edi, eax
lea ecx, [ebp + ecx*2 - 0x50]
cmp edi, esi
jae 0x10088aee
movzx edi, word [eax]
imul edx, edx, 0x4060401
movzx ebx, word [eax + 2]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax + 4]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax + 6]
imul edi, edi, 0x101
add edi, ebx
add eax, 8
add edx, edi
cmp eax, esi
jb 0x10088aa8
jmp 0x10088aee
movzx esi, word [eax]
imul edx, edx, 0x101
add edx, esi
add eax, 2
cmp eax, ecx
jb 0x10088ae0
jmp 0x10088bb4
push 8
lea eax, [ebp - 0x4c]
pop esi
movzx edi, word [eax - 4]
imul edx, edx, 0x4060401
movzx ebx, word [eax - 2]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax + 2]
imul edi, edi, 0x101
add edi, ebx
add edx, edi
add eax, 8
dec esi
jne 0x10088afd
mov eax, ecx
sar eax, 1
lea eax, [ebp + eax*2 - 0x70]
lea esi, [eax + 0x40]
jmp 0x10088b71
movzx ebx, word [eax]
imul edx, edx, 0x4060401
movzx edi, word [eax + 2]
imul ebx, ebx, 0x101
add edi, ebx
movzx ebx, word [eax + 4]
imul edi, edi, 0x101
add edi, ebx
movzx ebx, word [eax + 6]
imul edi, edi, 0x101
add edi, ebx
add edx, edi
add eax, 8
cmp eax, esi
jb 0x10088b3f
lea ecx, [ebp + ecx*2 - 0x50]
lea eax, [ecx - 0x40]
jmp 0x10088bb0
movzx edi, word [eax]
imul edx, edx, 0x4060401
movzx esi, word [eax + 2]
imul edi, edi, 0x101
add esi, edi
movzx edi, word [eax + 4]
imul esi, esi, 0x101
add esi, edi
movzx edi, word [eax + 6]
imul esi, esi, 0x101
add esi, edi
add edx, esi
add eax, 8
cmp eax, ecx
jb 0x10088b7e
mov ecx, dword [ebp - 0x54]
and ecx, 0x1f
mov eax, edx
shl eax, cl
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
add eax, edx
pop ebx
call fcn.10128382
add ebp, 0x74
leave
ret
Function at 0x10002f4f
Capabilities:
Get session user name

Disassembly:
jmp 0x1006657c
jmp sym.CoreFoundation.dll_CFCopyUserName

Function at 0x10003035
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
jmp 0x100bdf28
into
sal byte [ebx], cl
add byte [esi + 0x53], bl
push edi
add esp, 4
and ebx, 0x11516
or ebx, 0x159d5
add ebx, 0x416c
sub ebx, 0x12c4c
pop ebx
mov dword [ebp - 0x2084], 0xe
push esi
jmp 0x100bdf5e
xor esi, 0x723e
pop esi
push edx
push ebx
add esp, 4
and edx, 0xe6e8
pop edx
push ecx
jmp 0x100bdf7b
sub ecx, 0x72a7
xor ecx, 0xab1f
pop ecx
mov ecx, 1
imul edx, ecx, 0
lea eax, [ebp + edx - 0xbec]
mov dword [ebp - 0x15bc], eax
push ecx
and ecx, 0x142d
and ecx, 0x17ba6
pop ecx
push ebx
push esi
add esp, 4
and ebx, 0x113e1
and ebx, 0xf3a9
or ebx, 0x17792
pop ebx
push edi
push esi
add esp, 4
sub edi, 0x13ce0
pop edi
mov dword [ebp - 0x2088], 0xffffffff
push ecx
and ecx, 0xfef3
call 0x100bdfee
add byte [0x323d4235], dh
dec ebp
inc edx
xor eax, dword [ebx - 0x3e7efb3c]
xor eax, 0x590000e2
push eax
jmp 0x100bdffe
pop eax
push ecx
push edi
add esp, 4
add ecx, 0xe8c1
pop ecx
mov ecx, dword [ebp - 0x74c]
mov dword [ebp - 0x4fc], ecx
jmp 0x100be028

Function at 0x10003049
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
jmp 0x100bf2bb
dec dword [edi]
mov esi, 0xf76c0d94
invalid
Function at 0x1002e775
Capabilities:
Read file via mapping

Disassembly:
jmp 0x1002e775
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0xb8], eax
mov eax, dword [ebp + 0xc4]
push 0x8000100
push 0x104
lea ecx, [ebp - 0x4c]
push ecx
push eax
call sym.CoreFoundation.dll_CFStringGetCString
add esp, 0x10
test al, al
jne 0x1002e7b8
xor eax, eax
jmp 0x1002e8b9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x4c]
push eax
call sym.CoreFoundation.dll__NS_stat
pop ecx
pop ecx
test eax, eax
jne 0x1002e7b1
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x4c]
push 0x8080
push eax
call sym.CoreFoundation.dll__NS_open
add esp, 0xc
cmp eax, edi
jl 0x1002e7f3
push eax
call dword [0x10180ef8]
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, edi
jne 0x1002e7fa
xor eax, eax
jmp 0x1002e8b8
push ebx
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
jne 0x1002e815
xor eax, eax
jmp 0x1002e8b7
push esi
push dword [ebp - 0x68]
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
xor eax, eax
cmp esi, edi
je 0x1002e8b6
mov ecx, dword [esi]
cmp ecx, 0xbabeface
jne 0x1002e85f
xor edi, edi
inc edi
push 0x42c
push edi
call dword [0x10180ec4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x40c], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 0x410], ecx
jmp 0x1002e889
cmp ecx, 0xcafebabe
je 0x1002e86f
cmp ecx, 0xddba11
jne 0x1002e8b6
xor edi, edi
inc edi
push 0x42c
push edi
call dword [0x10180ec4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x40c], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x414], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x418], ecx
mov ecx, dword [ebp - 0x80]
mov dword [eax + 0x424], ebx
mov dword [eax + 0x428], ecx
mov dword [eax + 0x420], edi
mov dword [eax + 0x408], esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.10128382
add ebp, 0xbc
leave
ret
Function at 0x10044ced
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx ebx, ax
push 0x59
push ebx
call esi
mov edi, eax
test edi, edi
je 0x10044d4a
lea eax, [edi + edi]
call fcn.101283a0
mov dword [ebp - 8], esp
push edi
push dword [ebp - 8]
push 0x59
push ebx
call esi
dec eax
push eax
push dword [ebp - 8]
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128382
leave
ret

Function at 0x10044d7b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
push ebx
push 0x5a
push eax
mov dword [ebp - 8], eax
call esi
mov edi, eax
cmp edi, ebx
je 0x10044dd1
lea eax, [edi + edi]
call fcn.101283a0
mov ebx, esp
push edi
push ebx
push 0x5a
push dword [ebp - 8]
call esi
dec eax
push eax
push ebx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
add esp, 0xc
mov ebx, eax
mov eax, ebx
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128382
leave
ret
Function at 0x100652e7
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x101
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x10065317
mov byte [ebp - 0x108], 0
push 0x8000100
lea eax, [ebp - 0x108]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCString
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.10128382
leave
ret

Function at 0x10065352
Capabilities:
Get session user name

Disassembly:
jmp 0x10065352
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
xor eax, eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x80], 0x410
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100653a2
mov eax, dword [ebp - 0x80]
dec eax
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
jmp 0x100653c2
push str.USERNAME
call fcn.10001023
pop ecx
test eax, eax
je 0x100653c9
push 0x8000100
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCString
add esp, 0xc
test eax, eax
jne 0x100653db
push 0x1012c876
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
call sym.CoreFoundation.dll_CFRetain
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7a4]
xor ecx, ebp
call fcn.10128382
add ebp, 0x7a8
leave
ret
Function at 0x1006542d
Capabilities:
Get common file path

Disassembly:
jmp 0x1006542d
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
push edi
mov edi, dword [ebp + 0x19c]
xor esi, esi
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push dword [ebp + 0x1a0]
mov dword [ebp - 0x80], edi
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x10065510
xor ecx, ecx
lea eax, [ebp - 0x78]
cmp word [ebp - 0x78], si
je 0x10065487
add eax, 2
inc ecx
cmp word [eax], si
jne 0x1006547e
push ebx
push ecx
lea eax, [ebp - 0x78]
push eax
push edi
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x1006550f
call sym.CoreFoundation.dll_CFBundleGetMainBundle
cmp eax, esi
je 0x100654b5
push dword [sym.CoreFoundation.dll_kCFBundleNameKey]
push eax
call sym.CoreFoundation.dll_CFBundleGetValueForInfoDictionaryKey
pop ecx
pop ecx
jmp 0x100654b7
xor eax, eax
cmp eax, esi
je 0x100654d5
push eax
push ebx
push str.__Apple_Computer___
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push esi
push edi
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x14
jmp 0x100654ec
push ebx
push str.__Apple_Computer_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push esi
push edi
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x10
push ebx
mov edi, eax
call sym.CoreFoundation.dll_CFRelease
pop ecx
cmp edi, esi
je 0x1006550f
push edi
push esi
push dword [ebp - 0x80]
call sym.CoreFoundation.dll_CFStringCreateMutableCopy
push edi
mov dword [ebp - 0x7c], eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x10
pop ebx
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop esi
call fcn.10128382
add ebp, 0x194
leave
ret
Function at 0x10066581
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x314]
push eax
xor esi, esi
push esi
push esi
push 0x28
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [0x10180ee4]
test eax, eax
jne 0x100665f6
lea eax, [ebp - 0x314]
push eax
call edi
push eax
lea eax, [ebp - 0x314]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
push 1
mov ebx, eax
push 2
push ebx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPath
push ebx
mov esi, eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x24
test esi, esi
jne 0x100666bb
push str.HOMEPATH
call fcn.10001023
mov ebx, eax
mov dword [esp], str.HOMEDRIVE
call fcn.10001023
pop ecx
test eax, eax
je 0x10066670
test ebx, ebx
je 0x10066670
mov esi, 0x106
push esi
push eax
lea eax, [ebp - 0x10c]
push eax
call sym.CoreFoundation.dll__NS_strlcpy
push esi
lea eax, [ebp - 0x10c]
push ebx
push eax
call sym.CoreFoundation.dll__NS_strlcat
push 0x8000100
lea eax, [ebp - 0x10c]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCString
push 1
mov ebx, eax
push 2
push ebx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPath
push ebx
mov esi, eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x38
test esi, esi
jne 0x100666bb
lea eax, [ebp - 0x51c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x100666bb
lea eax, [ebp - 0x51c]
push eax
call edi
push eax
lea eax, [ebp - 0x51c]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
push 1
mov edi, eax
push 2
push edi
push 0
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPath
push edi
mov esi, eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x24
push 2
push esi
call sym.CoreFoundation.dll_CFURLCopyFileSystemPath
mov edi, eax
push edi
call sym.CoreFoundation.dll_CFStringGetLength
add esp, 0xc
test eax, eax
jne 0x100666db
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
xor esi, esi
test edi, edi
je 0x100666e6
push edi
call sym.CoreFoundation.dll_CFRelease
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10128382
leave
ret
Function at 0x1006685e
Capabilities:
Get disk information

Disassembly:
jmp 0x1006685e
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
mov eax, dword [ebp + 0x1b0]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100669f3
push ebx
push eax
call sym.CoreFoundation.dll_CFStringGetLength
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100669f2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call esi
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x100669f1
push edi
mov edi, dword [0x10181090]
lea eax, [eax + eax + 2]
push eax
call edi
pop ecx
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
call esi
test eax, eax
je 0x100669e4
cmp eax, dword [ebp - 0x6c]
jg 0x100669e4
lea esi, [ebx + ebx]
lea eax, [esi + 2]
push eax
call edi
mov edi, eax
push edi
xor eax, eax
push ebx
push eax
push dword [ebp - 0x74]
call sym.CoreFoundation.dll_CFStringGetCharacters
mov ebx, dword [0x10180f80]
xor eax, eax
push edi
mov word [esi + edi], ax
call ebx
mov esi, dword [ebp - 0x70]
add esp, 0x18
and dword [ebp - 0x6c], 0
jmp 0x100669aa
push esi
call ebx
movzx eax, byte [esi]
push eax
call fcn.1000131b
pop ecx
pop ecx
test al, al
jne 0x1006699e
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x78], eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x208
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp - 0x78]
test eax, eax
setne byte [ebp - 0x65]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp byte [ebp - 0x65], 0
je 0x1006699e
lea eax, [ebp - 0x64]
push eax
call ebx
lea eax, [ebp - 0x64]
push edi
push eax
call dword [0x10180fe8]
add esp, 0xc
test eax, eax
je 0x100669b6
cmp word [ebp - 0x64], 0
jne 0x1006699e
push 0
push str.NONAME
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push dword [ebp - 0x74]
call sym.CoreFoundation.dll_CFStringCompare
add esp, 0xc
test eax, eax
je 0x100669b6
push esi
call dword [0x10180ee4]
pop ecx
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x10066913
jmp 0x100669d0
push esi
call dword [0x10180ee4]
push eax
push esi
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
add esp, 0x10
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x70]
mov esi, dword [0x10181098]
call esi
push edi
call esi
mov eax, dword [ebp - 0x6c]
pop ecx
jmp 0x100669ef
push dword [ebp - 0x70]
call dword [0x10181098]
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a4]
xor ecx, ebp
call fcn.10128382
add ebp, 0x1a8
leave
ret