joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005db7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push edx
add esp, 4
jmp 0x1005d9da
or edi, 0x16d79
pop edi
push ecx
jmp 0x1005d9e9
pop ecx
push edx
push edx
add esp, 4
call fcn.1005d9fd
add byte [edx + esi], dh
cmp eax, dword [edx + 0x37]
aaa
dec esi
add esp, 4
pop edx
lea eax, [ebp - 0x178c]
mov dword [ebp - 0xccc], eax
mov ecx, dword [ebp - 0x518]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcc8], edx
xor eax, eax
mov word [ebp - 0x21c], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
push ecx
push ecx
add esp, 4
call 0x1005da3f
add byte [ebx + 0x3c], al
dec edi
inc edx
cmp byte [eax + 0x33], dl
xor eax, dword [eax - 0x7d]
les eax, [ecx + eax*4]
loope 0x1005da40
fiadd dword [eax]
add byte [ecx + 0x53], bl
push edx
add esp, 4
sub ebx, 0xe9f
pop ebx
push ebx
sub ebx, 0x139f6
pop ebx
mov edx, dword [ebp - 0xcc8]
mov ax, word [edx]
mov word [ebp - 0x1042], ax
mov ecx, dword [ebp - 0xcc8]
add ecx, 2
mov dword [ebp - 0xcc8], ecx
mov dx, word [ebp - 0x1042]
mov word [ebp - 0x21c], dx
mov eax, dword [ebp - 0xccc]
mov cx, word [eax]
mov word [ebp - 0x1044], cx
mov edx, dword [ebp - 0xccc]
add edx, 2
mov dword [ebp - 0xccc], edx
mov ax, word [ebp - 0x1044]
mov word [ebp - 0x3c], ax
push eax
push edx
add esp, 4
sub eax, 0x5758
pop eax
push ebx
push eax
add esp, 4
add ebx, 0x1960
or ebx, 0xbb58
and ebx, 0x160db
pop ebx
push edi
or edi, 0xbd04
add edi, 0x101ab
pop edi
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x1005db03
movzx edx, word [ebp - 0x21c]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1620], edx
jmp 0x1005db5d
movzx ecx, word [ebp - 0x21c]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x1005da2b
movzx eax, word [ebp - 0x21c]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x1005da2b
movzx edx, word [ebp - 0x21c]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x1005db47
mov dword [ebp - 0x161c], 0xffffffff
jmp 0x1005db51
mov dword [ebp - 0x161c], 1
mov ecx, dword [ebp - 0x161c]
mov dword [ebp - 0x1620], ecx
cmp dword [ebp - 0x1620], 0
jne 0x1005dba6
push edi
or edi, 0xc590
call 0x1005db7c
add byte [0x3d38453b], dh
dec ebx
xor eax, dword [ebx + 0x41]
add esp, 4
pop edi
push edx
push esi
add esp, 4
and edx, 0x7937
add edx, 0x1141f
xor edx, 0x185b2
pop edx
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x1005dc0e
push eax
and eax, 0x15bb1
pop eax
push ecx
push esi
add esp, 4
or ecx, 0x171c6
add ecx, 0xcf0f
pop ecx
push edi
push ecx
add esp, 4
or edi, 0x163b6
and edi, 0x14981
or edi, 0x134ae
pop edi
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax]
mov dword [ebp - 0x518], ecx
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0xcd0]
je 0x1005dc04
mov eax, dword [ebp - 0x518]
cmp dword [eax + 0x30], 0
jne 0x1005d9cf
mov dword [ebp - 0x774], 0
Function at 0x10079024
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], 0x10
lea esi, [ebp - 0x24]
xor edi, edi
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
push 0
push esi
mov dword [edi + 0x1016d108], eax
call fcn.10128336
add esp, 0xc
push 2
pop eax
push 0x7f000001
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 4], eax
test ebx, ebx
js 0x100790a4
push 0x10
push esi
push dword [edi + 0x1016d108]
call dword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
test ebx, ebx
js 0x100790a4
lea eax, [ebp - 0x28]
push eax
push esi
push dword [edi + 0x1016d108]
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
cmp dword [ebp - 0x28], 0x10
je 0x100790ad
or ebx, 0xffffffff
add edi, 4
add esi, 0x10
cmp edi, 8
jb 0x10079045
test ebx, ebx
js 0x100790ea
mov esi, dword [sym.imp.WS2_32.dll_connect]
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [0x1016d108]
call esi
mov ebx, eax
test ebx, ebx
js 0x100790ea
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [0x1016d10c]
call esi
mov ebx, eax
test ebx, ebx
jns 0x1007910e
push dword [0x1016d108]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [0x1016d10c]
call esi
or dword [0x1016d108], 0xffffffff
or dword [0x1016d10c], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10128342
leave
ret

Function at 0x100794d1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1017df80], 0
jne 0x1007953b
lea eax, [ebp - 0x194]
push eax
push 0x202
mov byte [0x1017df80], 1
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10079520
cmp byte [ebp - 0x194], 2
jne 0x10079520
mov eax, dword [ebp - 0x194]
shr eax, 8
cmp al, 2
je 0x1007953b
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str._Could_not_initialize_WinSock_subsystem___
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push 4
call sym.CoreFoundation.dll_CFLog
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128342
leave
ret
Function at 0x1007a07a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1007a07a
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 0x1007a0fa
cmp dword [esi + 0x20], ebx
jne 0x1007a0fa
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
je 0x1007a0fa
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 0x1007a0fa
lea eax, [ebp - 0x7c]
test eax, eax
je 0x1007a0fa
cmp dword [ebp - 0x80], ebx
jle 0x1007a0fa
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 0x1007a10a
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.10128342
add ebp, 0x88
leave
ret
Function at 0x100a14ae
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x10
mov dword [ebp - 0x38], eax
call dword [0x10181090]
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
je 0x100a1500
or dword [esi + 8], 0xffffffff
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
mov dword [esi], edi
mov dword [esi + 4], edi
call sym.CoreFoundation.dll__NS_stat
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100a150a
call fcn.100a146c
mov dword [ebx], 2
jmp 0x100a1506
mov dword [ebx], 1
xor eax, eax
jmp 0x100a1578
mov eax, dword [ebp - 0x20]
push edi
push 0x8080
push dword [ebp - 0x38]
mov dword [esi + 4], eax
call sym.CoreFoundation.dll__NS_open
add esp, 0xc
mov dword [esi + 8], eax
cmp eax, edi
jge 0x100a1535
call fcn.100a146c
mov dword [ebx], 3
jmp 0x100a1506
push eax
call dword [0x10180ef8]
pop ecx
cmp eax, edi
jne 0x100a154e
call fcn.100a146c
mov dword [ebx], 4
jmp 0x100a1506
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
je 0x100a1541
push edi
push edi
push edi
push 4
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
cmp eax, edi
je 0x100a1541
mov dword [ebx], edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10128342
leave
ret
Function at 0x100acb50
Capabilities:
Parse credit card information

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
mov eax, 0x30c
call fcn.10128360
cmp dword [ebp + 0x10], 0x104
mov edi, esp
mov dword [ebp - 8], edi
jle 0x100acb8a
mov eax, dword [ebp + 0x10]
imul eax, eax, 3
push eax
call dword [0x10181090]
pop ecx
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x100acc70
mov eax, edi
cmp dword [ebp + 0x10], esi
jle 0x100acbfa
mov ecx, dword [ebp + 0xc]
add ecx, esi
mov bl, byte [ecx]
test bl, bl
je 0x100acbfa
movzx edx, bl
cmp edx, 0x3f
jg 0x100acc2c
cmp edx, 0x3e
jge 0x100acbd0
cmp edx, 0x22
jl 0x100acc43
cmp edx, 0x23
jle 0x100acbd0
cmp edx, 0x25
je 0x100acbd0
cmp edx, 0x3a
jle 0x100acc43
cmp edx, 0x3c
jg 0x100acc43
mov byte [eax], 0x25
movzx edx, byte [ecx]
shr edx, 4
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [eax + 1], dl
movzx ecx, byte [ecx]
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [eax + 2], cl
add eax, 3
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x100acb9b
mov ecx, dword [ebp + 0x10]
cmp esi, ecx
je 0x100acc12
jge 0x100acc10
cmp byte [esi + edi], 0
jne 0x100acc0e
inc esi
cmp esi, ecx
jl 0x100acc03
cmp esi, ecx
jne 0x100acc61
push 0
push 0x8000100
sub eax, edi
push eax
push edi
push dword [ebp + 8]
call sym.CoreFoundation.dll_CFStringCreateWithBytes
add esp, 0x14
mov esi, eax
jmp 0x100acc63
cmp edx, 0x5b
jl 0x100acc43
cmp edx, 0x5e
jle 0x100acbd0
cmp edx, 0x60
je 0x100acbd0
add edx, 0xffffff85
cmp edx, 2
jbe 0x100acbd0
cmp bl, 0x20
jbe 0x100acbd0
cmp bl, 0x7f
jae 0x100acbd0
cmp byte [ebp + 0x14], 0
je 0x100acc5c
cmp bl, 0x2f
je 0x100acbd0
mov byte [eax], bl
inc eax
jmp 0x100acbf4
xor esi, esi
cmp edi, dword [ebp - 8]
je 0x100acc70
push edi
call dword [0x10181098]
pop ecx
mov eax, esi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10128342
leave
ret
Function at 0x100b7537
Capabilities:
Read file on windows

Disassembly:
jmp 0x100b7537
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 0x100b75a9
test esi, esi
je 0x100b75a2
push edi
push 0xffffffffffffffff
push dword [sym.CoreFoundation.dll_kCFErrorDomainCocoa]
call fcn.100b74c8
add esp, 0xc
mov dword [esi], eax
xor al, al
jmp 0x100b771c
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 0x100b75df
test esi, esi
je 0x100b76fe
call dword [0x10180f0c]
push edi
push dword [eax]
jmp 0x100b7678
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [0x10180f18]
pop ecx
pop ecx
test eax, eax
jns 0x100b760e
call dword [0x10180f0c]
mov edi, dword [eax]
push ebx
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b76fe
push dword [ebp - 0x74]
push edi
jmp 0x100b7678
mov eax, dword [ebp - 0x66]
and eax, 0xf000
mov ecx, 0x8000
cmp ax, cx
je 0x100b7635
push ebx
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b76fe
push edi
push 0xd
jmp 0x100b7678
mov ebx, dword [ebp - 0x58]
test ebx, ebx
jns 0x100b7653
push dword [ebp - 0x70]
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b76fe
push edi
push 0xc
jmp 0x100b7678
mov eax, ebx
cdq
test edx, edx
jl 0x100b768a
jg 0x100b7663
cmp eax, 0x80000000
jbe 0x100b768a
push dword [ebp - 0x70]
call dword [0x10180f1c]
pop ecx
test esi, esi
je 0x100b76fe
push edi
push 0x1b
push dword [sym.CoreFoundation.dll_kCFErrorDomainPOSIX]
call fcn.100b74c8
add esp, 0xc
mov dword [esi], eax
jmp 0x100b76fe
test ebx, ebx
jne 0x100b769d
push 8
call dword [0x10181090]
pop ecx
mov edi, eax
xor esi, esi
jmp 0x100b7705
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 0x100b7702
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x100b76e4
push dword [ebp - 0x74]
push ebx
push dword [sym.CoreFoundation.dll_kCFErrorDomainPOSIX]
call fcn.100b74c8
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 0x100b771b
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.10128342
add ebp, 0xd0
leave
ret
Function at 0x100b8b6d
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
xor ebx, ebx
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.10128336
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
test edi, edi
je 0x100b8ca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100b8ca2
cmp edi, esi
je 0x100b8ca2
push edi
lea eax, [ebp - 0x74]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100b8c19
push 0
push 2
push ebx
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateWithFileSystemPath
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100b8c19
push ebx
call sym.CoreFoundation.dll_CFRelease
push esi
call sym.CoreFoundation.dll_CFURLCopyLastPathComponent
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x100b8ca2
push esi
call dword [0x10181090]
mov edi, eax
pop ecx
test edi, edi
je 0x100b8ca2
push edi
push esi
push 0
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100b8c9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100b8c9a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x10140068
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100b8c9a
mov eax, dword [ebp - 0x78]
mov cx, word [eax + 0xa]
mov word [0x1017ebc4], cx
mov cx, word [eax + 8]
mov word [0x1017ebc8], cx
mov cx, word [eax + 0xe]
mov ax, word [eax + 0xc]
mov word [0x1017ebcc], cx
mov word [0x1017ebd0], ax
push edi
call dword [0x10181098]
pop ecx
cmp dword [0x1017ebc0], 0
jne 0x100b8cc7
test ebx, ebx
je 0x100b8cb7
mov dword [0x1017ebc0], ebx
jmp 0x100b8cc7
push 0x1012c876
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
mov dword [0x1017ebc0], eax
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10128342
add ebp, 0x198
leave
ret
Function at 0x100bbd89
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x1017ebf8
push esi
call sym.CoreFoundation.dll___CFSpinLock
xor edi, edi
pop ecx
cmp dword [0x1017ebf4], edi
jne 0x100bbe1d
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.10128336
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str.Apple_Computer
push edi
push edi
push 0x801a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
push edi
lea eax, [ebp - 0x210]
push 0x100
push eax
call dword [0x10180ee4]
pop ecx
add eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithBytes
add esp, 0x14
mov dword [0x1017ebf4], eax
push esi
call sym.CoreFoundation.dll___CFSpinUnlock
mov eax, dword [0x1017ebf4]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10128342
leave
ret
Function at 0x100bbe62
Capabilities:
Create process on windows

Disassembly:
jmp 0x100bbe62
push ebp
lea ebp, [esp - 0x220]
sub esp, 0x2a0
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push ebx
push esi
xor ebx, ebx
push str.com.apple.CoreFoundation
mov byte [ebp - 0x21], bl
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
call sym.CoreFoundation.dll_CFBundleGetBundleWithIdentifier
push eax
call sym.CoreFoundation.dll_CFBundleCopyBundleURL
mov esi, eax
push esi
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateCopyDeletingLastPathComponent
add esp, 0x14
push ebx
push str.distnoted.exe
mov dword [ebp - 0x28], eax
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push dword [ebp - 0x28]
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateCopyAppendingPathComponent
push 0x104
lea ecx, [ebp + 0x10]
push ecx
push 1
push eax
mov dword [ebp - 0x2c], eax
call sym.CoreFoundation.dll__CFURLGetWideFileSystemRepresentation
add esp, 0x20
test al, al
je 0x100bbf3a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x10]
push eax
call dword [0x10180f88]
pop ecx
pop ecx
test eax, eax
jne 0x100bbf3a
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.10128336
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
call fcn.10128336
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov byte [ebp - 0x21], al
cmp esi, ebx
je 0x100bbf45
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
cmp dword [ebp - 0x28], ebx
je 0x100bbf53
push dword [ebp - 0x28]
call sym.CoreFoundation.dll_CFRelease
pop ecx
cmp dword [ebp - 0x2c], ebx
je 0x100bbf61
push dword [ebp - 0x2c]
call sym.CoreFoundation.dll_CFRelease
pop ecx
cmp byte [ebp - 0x21], bl
pop esi
pop ebx
jne 0x100bbf85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_launching_distnoted.exe___d__n
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 3
call sym.CoreFoundation.dll_CFLog
add esp, 0xc
mov ecx, dword [ebp + 0x21c]
mov al, byte [ebp - 0x21]
xor ecx, ebp
call fcn.10128342
add ebp, 0x220
leave
ret

Function at 0x100bbfeb
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.10128336
add esp, 0xc
mov edx, esi
lea eax, [ebp - 0x804]
mov cl, byte [edx]
movsx si, cl
mov word [eax], si
inc edx
add eax, 2
test cl, cl
jne 0x100bc028
lea eax, [ebp - 0x804]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x100bc061
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100bc061
mov eax, esi
jmp 0x100bc063
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10128342
leave
ret
Function at 0x100bc091
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x1017ec00
push esi
call sym.CoreFoundation.dll___CFSpinLock
xor edi, edi
pop ecx
cmp dword [0x1017ebfc], edi
jne 0x100bc148
push sym.CoreFoundation.dll_kCFTypeArrayCallBacks
push 2
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFArrayCreateMutable
mov dword [0x1017ebfc], eax
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.10128336
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
push str.AppleMobile_Device_Support_bin
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
js 0x100bc148
push edi
lea eax, [ebp - 0x210]
push 0x100
push eax
call dword [0x10180ee4]
pop ecx
add eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithBytes
push eax
push dword [0x1017ebfc]
call sym.CoreFoundation.dll_CFArrayAppendValue
add esp, 0x1c
push esi
call sym.CoreFoundation.dll___CFSpinUnlock
mov eax, dword [0x1017ebfc]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10128342
leave
ret

Function at 0x100bc196
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x1017ec08
push esi
call sym.CoreFoundation.dll___CFSpinLock
xor edi, edi
pop ecx
cmp dword [0x1017ec04], edi
jne 0x100bc227
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.10128336
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str.AppleMobile_Device_Support
push edi
push edi
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
push edi
lea eax, [ebp - 0x210]
push 0x100
push eax
call dword [0x10180ee4]
pop ecx
add eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithBytes
add esp, 0x14
mov dword [0x1017ec04], eax
push esi
call sym.CoreFoundation.dll___CFSpinUnlock
mov eax, dword [0x1017ec04]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10128342
leave
ret
Function at 0x1012071a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [0x10181724]
push esi
push edi
push 0xf0000000
push 1
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [0x10176c24]
mov edi, dword [ebp + 0x10]
add eax, edi
push eax
push 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp dword [ebp - 0xc], esi
je 0x10120775
mov eax, dword [0x10176c14]
fld qword [eax + edi]
mov esi, edi
fadd qword [0x1014b000]
fstp qword [eax + edi]
call fcn.101205ef
push dword [ebp + 0xc]
mov eax, dword [0x10176c18]
push dword [eax + edi]
mov esi, dword [0x10181720]
push str.initWithNumberOfVertices:numberOfEdges:
call esi
pop ecx
push eax
push str.alloc
call esi
pop ecx
push eax
push str.__NSSKGraph
call dword [0x1018171c]
pop ecx
push eax
call ebx
pop ecx
pop ecx
push eax
call ebx
and dword [ebp - 8], 0
add esp, 0x10
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], eax
jbe 0x10120805
jmp 0x101207c1
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
push dword [eax + ecx*4]
mov eax, dword [0x10176c1c]
push dword [eax + edi]
mov eax, dword [0x10176c24]
add eax, edi
lea edi, [ebp - 0x18]
call fcn.101204d6
pop ecx
pop ecx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str.addEdgeWithH1:withH2:
call esi
pop ecx
push eax
push dword [ebp - 4]
call ebx
add esp, 0x10
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x101207be
push str.isAcyclic
call esi
push eax
push dword [ebp - 4]
call ebx
push str.isEmpty
mov edi, eax
call esi
push eax
push dword [ebp - 4]
call ebx
add esp, 0x18
test al, al
jne 0x10120856
push edi
call dword [0x10181098]
mov dword [esp], str.release
call esi
push eax
push dword [ebp - 4]
call ebx
xor edi, edi
add esp, 0xc
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x3e8
mov dword [ebp - 4], edi
jl 0x1012072d
test edi, edi
je 0x1012086b
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov al, 1
jmp 0x1012086d
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10128342
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10178af8]
jne 0x1012834c
repz ret
jmp fcn.1012901e