joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001802
Capabilities:
Move file

Disassembly:
jmp 0x1006909e
push ecx
push ebx
push ebp
push esi
push edi
push 0
push dword [esp + 0x1c]
call fcn.100683aa
push 0
push dword [esp + 0x28]
mov ebx, eax
call fcn.100683aa
add esp, 0x10
mov ebp, eax
push 1
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test esi, esi
setne byte [esp + 0x13]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x10069126
test edi, edi
je 0x1006911d
cmp edi, 1
jbe 0x100690f7
cmp edi, 3
jbe 0x1006910f
cmp edi, 5
je 0x10069101
cmp edi, 0x6e
je 0x1006910f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x10069126
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xd
jmp 0x10069126
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 2
jmp 0x10069126
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
and dword [eax], 0
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call esi
push ebp
call esi
movzx eax, byte [esp + 0x1b]
pop ecx
pop ecx
pop edi
pop esi
pop ebp
dec eax
pop ebx
pop ecx
ret

Function at 0x100019e2
Capabilities:
Delete directory

Disassembly:
jmp 0x10069168
push esi
push edi
push 0
push dword [esp + 0x10]
call fcn.100683aa
mov edi, eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret
Function at 0x10001a91
Capabilities:
Create process on windows

Disassembly:
jmp 0x100c3187
sub esp, 0x294
mov eax, dword [0x10184508]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
push edi
push str.com.apple.CoreFoundation
xor ebx, ebx
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
call sym.CoreFoundation.dll_CFBundleGetBundleWithIdentifier
push eax
call sym.CoreFoundation.dll_CFBundleCopyBundleURL
mov ebp, eax
push ebp
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateCopyDeletingLastPathComponent
add esp, 0x14
mov edi, eax
push ebx
push str.distnoted.exe
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push edi
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFURLCreateCopyAppendingPathComponent
mov esi, eax
lea eax, [esp + 0xa4]
push 0x104
push eax
push 1
push esi
call sym.CoreFoundation.dll__CFURLGetWideFileSystemRepresentation
add esp, 0x20
test al, al
je 0x100c3264
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
pop ecx
pop ecx
test eax, eax
jne 0x100c3264
push 0x44
lea eax, [esp + 0x24]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x44
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov bl, al
test ebp, ebp
je 0x100c326f
push ebp
call sym.CoreFoundation.dll_CFRelease
pop ecx
test edi, edi
je 0x100c327a
push edi
call sym.CoreFoundation.dll_CFRelease
pop ecx
test esi, esi
je 0x100c3285
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
test bl, bl
jne 0x100c32a6
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 [esp + 0x2a0]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000234c
add esp, 0x294
ret
Function at 0x10001ccb
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
jmp 0x10080db0
sub esp, 0x18
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x2c]
mov ebp, esi
mov dword [esp + 0xc], esi
test edi, edi
je 0x10080dda
push edi
call sym.CoreFoundation.dll_CFDataGetBytePtr
push edi
mov dword [esp + 0x14], eax
call sym.CoreFoundation.dll_CFDataGetLength
pop ecx
pop ecx
mov ebp, eax
push dword [esp + 0x30]
call sym.CoreFoundation.dll_CFDataGetBytePtr
push dword [esp + 0x34]
mov dword [esp + 0x18], eax
call sym.CoreFoundation.dll_CFDataGetLength
mov edi, dword [esp + 0x30]
pop ecx
pop ecx
mov dword [esp + 0x2c], eax
test byte [edi + 4], 0x10
je 0x10080f07
push ebx
mov ebx, dword [edi + 0x14]
cmp ebx, 0xffffffff
je 0x10080f06
push edi
call sym.CoreFoundation.dll_CFRetain
mov dword [esp], 0x10189b24
call sym.CoreFoundation.dll___CFSpinLock
movsd xmm1, qword [esp + 0x3c]
xorps xmm0, xmm0
comisd xmm0, xmm1
pop ecx
jae 0x10080e62
comisd xmm1, xmmword [0x10145390]
jae 0x10080e62
push ecx
push ecx
movsd qword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_floor]
movsd xmm1, qword [esp + 0x40]
fstp qword [esp + 0x28]
cvttsd2si eax, qword [esp + 0x28]
pop ecx
pop ecx
mov dword [esp + 0x18], eax
jmp 0x10080e6a
mov dword [esp + 0x18], getpeername
push ecx
push ecx
movsd qword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_floor]
movsd xmm0, qword [esp + 0x40]
fstp qword [esp + 0x28]
subsd xmm0, qword [esp + 0x28]
mulsd xmm0, qword [0x10149990]
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_floor]
fstp qword [esp + 0x28]
cvttsd2si eax, qword [esp + 0x28]
pop ecx
pop ecx
push 8
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0x1005
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10080ee2
test ebp, ebp
jle 0x10080ee2
push ebp
push eax
push esi
push dword [esp + 0x3c]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
jmp 0x10080ef2
push esi
push dword [esp + 0x34]
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.WS2_32.dll_send]
push 0x10189b24
mov esi, eax
call sym.CoreFoundation.dll___CFSpinUnlock
push edi
call sym.CoreFoundation.dll_CFRelease
pop ecx
pop ecx
pop ebx
xor eax, eax
test esi, esi
pop edi
setg al
pop esi
dec eax
pop ebp
add esp, 0x18
ret

Function at 0x10001e0b
Capabilities:
Get hostname

Disassembly:
jmp 0x10068b4b
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x10184508]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x101
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
movzx ecx, byte [ebp - 0x80]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x80]
push 0x8000100
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
cmovne ecx, edx
mov byte [ebp - 0x80], cl
call sym.CoreFoundation.dll_CFStringCreateWithCString
mov ecx, dword [ebp + 0x84]
add esp, 0xc
xor ecx, ebp
call fcn.1000234c
add ebp, 0x88
leave
ret
Function at 0x10002126
Capabilities:
Get session user name

Disassembly:
jmp 0x100684a7
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x10184508]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
xor eax, eax
mov dword [ebp - 0x80], 0x410
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100684f7
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 0x10068517
push str.USERNAME
call fcn.10002a13
pop ecx
test eax, eax
je 0x1006851e
push 0x8000100
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCString
add esp, 0xc
test eax, eax
jne 0x10068530
push 0x10138aa2
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.1000234c
add ebp, 0x7a8
leave
ret

Function at 0x100021cb
Capabilities:
Create directory

Disassembly:
jmp 0x10068ef0
push esi
push edi
push 0
push dword [esp + 0x10]
call fcn.100683aa
mov edi, eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov eax, esi
pop edi
pop esi
ret
Function at 0x10002617
Capabilities:
Get session user name

Disassembly:
jmp 0x1006856c
jmp sym.CoreFoundation.dll_CFCopyUserName
Function at 0x100028d8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1007fe2e
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x10184508]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
mov esi, dword [ebp + 0x90]
push edi
xor edi, edi
lea ebx, [esi + 0xc]
push ebx
call sym.CoreFoundation.dll___CFSpinLock
test byte [esi + 4], 0x10
pop ecx
mov dword [ebp - 0x80], 0x100
je 0x1007feaa
cmp dword [esi + 0x20], edi
jne 0x1007feaf
cmp dword [esi + 0x14], 0xffffffff
je 0x1007feaa
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1007feaa
cmp dword [ebp - 0x80], edi
jle 0x1007feaa
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
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
cmp dword [esi + 0x20], edi
je 0x1007feba
push dword [esi + 0x20]
call sym.CoreFoundation.dll_CFRetain
pop ecx
mov edi, eax
push ebx
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
mov ecx, dword [ebp + 0x84]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000234c
add ebp, 0x88
leave
ret

Function at 0x10002a13
Capabilities:
Query environment variable

Disassembly:
jmp 0x1007a784
push esi
xor esi, esi
mov eax, dword [esi*8 + 0x10178f70]
test eax, eax
je 0x1007a7a2
push eax
push dword [esp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x1007a7af
inc esi
cmp esi, 0x1a
jb 0x1007a787
pop esi
jmp dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov eax, dword [esi*8 + 0x10178f74]
pop esi
ret
Function at 0x10002ac2
Capabilities:
Get disk information

Disassembly:
jmp 0x10067e5e
sub esp, 0x220
mov eax, dword [0x10184508]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
mov dword [esp + 0x10], ebp
push esi
push edi
test ebp, ebp
je 0x10067ffe
push ebp
call sym.CoreFoundation.dll_CFStringGetLength
mov dword [esp + 0x14], eax
pop ecx
test eax, eax
je 0x10067ffe
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test esi, esi
je 0x10067ffe
lea ecx, [esi*2 + 2]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov edi, eax
push edi
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10067ff6
cmp eax, esi
jg 0x10067ff6
mov esi, dword [esp + 0x10]
lea eax, [esi*2 + 2]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push eax
push esi
push ebx
push ebp
mov dword [esp + 0x24], eax
call sym.CoreFoundation.dll_CFStringGetCharacters
mov eax, dword [esp + 0x24]
xor ecx, ecx
push eax
mov word [eax + esi*2], cx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcslwr
add esp, 0x18
mov ebp, edi
cmp word [edi], bx
je 0x10067fe1
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll__wcslwr
movzx eax, byte [ebp]
push eax
call fcn.100022de
pop ecx
pop ecx
test al, al
jne 0x10067fa9
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push ebx
mov edi, eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x208
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test esi, esi
je 0x10067fa9
lea eax, [esp + 0x24]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll__wcslwr
push dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
add esp, 0xc
test eax, eax
je 0x10067fc4
cmp word [esp + 0x24], bx
jne 0x10067fa9
push ebx
push str.NONAME
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push dword [esp + 0x20]
call sym.CoreFoundation.dll_CFStringCompare
add esp, 0xc
test eax, eax
je 0x10067fc4
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
lea ebp, [ebp + eax*2]
add ebp, 2
cmp word [ebp], bx
jne 0x10067f1a
jmp 0x10067fdd
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push eax
push ebp
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
add esp, 0x10
mov ebx, eax
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call esi
push dword [esp + 0x14]
call esi
pop ecx
pop ecx
mov eax, ebx
jmp 0x10068000
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000234c
add esp, 0x220
ret
Function at 0x10002be4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10093315
push ecx
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
mov eax, dword [esi]
test eax, eax
je 0x1009336e
cmp eax, dword [sym.CoreFoundation.dll___CFConstantStringClassReferencePtr]
je 0x1009336e
mov ecx, dword [0x10189b7c]
cmp ecx, 0x400
jae 0x10093344
mov ecx, dword [ecx*4 + 0x10187388]
jmp 0x10093346
mov ecx, edi
cmp eax, ecx
je 0x1009336e
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push str.appendCharacters:length:
call dword [sym.imp.objc.dll_sel_registerName]
pop ecx
push eax
push esi
call dword [sym.imp.objc.dll_objc_msgSend]
add esp, 0x10
jmp 0x100934c4
mov dl, byte [esi + 4]
mov al, dl
mov cl, dl
and al, 5
and cl, 0x60
push ebx
cmp al, 4
je 0x1009338d
test cl, cl
jne 0x10093388
mov ebx, dword [esi + 8]
jmp 0x10093399
mov ebx, dword [esi + 0xc]
jmp 0x10093399
lea eax, [esi + 8]
test cl, cl
je 0x10093396
mov eax, dword [eax]
movzx ebx, byte [eax]
test dl, 0x10
je 0x100933f1
push 1
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x24]
push edi
push 1
push eax
push esi
mov dword [esp + 0x20], ebx
call fcn.1008fb48
mov al, byte [esi + 4]
add esp, 0x14
test al, 0x60
jne 0x100933d5
push 8
pop ecx
and al, 5
push 0xc
cmp al, 4
pop edx
cmovne ecx, edx
add ecx, esi
jmp 0x100933d8
mov ecx, dword [esi + 8]
lea eax, [edi + edi]
push eax
push dword [esp + 0x20]
lea eax, [ecx + ebx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x100934c3
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebp
mov ebp, dword [esp + 0x24]
mov byte [esp + 0x1c], 1
mov dword [esp + 0x10], 0x80
cmp ecx, ebp
jge 0x10093423
movzx eax, word [edx + ecx*2]
cmp ax, word [esp + 0x10]
inc ecx
setb byte [esp + 0x1c]
cmp ax, word [esp + 0x10]
jb 0x10093409
mov al, byte [esp + 0x1c]
xor al, 1
mov dword [esp + 0x10], ebx
movzx eax, al
push eax
push ebp
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], edi
push eax
push esi
call fcn.1008fb48
mov ah, byte [esi + 4]
add esp, 0x14
mov al, ah
and al, 0x60
cmp byte [esp + 0x1c], 0
jne 0x10093488
test al, al
jne 0x1009346b
push 8
pop ecx
and ah, 5
push 0xc
cmp ah, 4
pop edx
cmovne ecx, edx
add ecx, esi
jmp 0x1009346e
mov ecx, dword [esi + 8]
lea eax, [ebp*2]
push eax
push dword [esp + 0x24]
lea eax, [ecx + ebx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x100934c2
test al, al
jne 0x1009349f
push 8
pop edx
mov al, ah
and al, 5
push 0xc
cmp al, 4
pop ecx
cmovne edx, ecx
add edx, esi
jmp 0x100934a2
mov edx, dword [esi + 8]
movzx ecx, ah
shr ecx, 2
and ecx, 1
add ecx, edx
add ecx, ebx
test ebp, ebp
jle 0x100934c2
mov eax, dword [esp + 0x20]
mov al, byte [eax + edi*2]
mov byte [ecx + edi], al
inc edi
cmp edi, ebp
jl 0x100934b3
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x10002e41
Capabilities:
Read file on windows

Disassembly:
jmp 0x100bdd6e
sub esp, 0x148
mov eax, dword [0x10184508]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x158]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x15c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x4c]
push 0x106
push eax
push edi
call sym.CoreFoundation.dll_CFStringGetFileSystemRepresentation
add esp, 0xc
test al, al
jne 0x100bddd7
test esi, esi
je 0x100bde7c
push edi
push 0xffffffffffffffff
push dword [sym.CoreFoundation.dll_kCFErrorDomainCocoa]
jmp 0x100bde72
push 0x1b6
lea eax, [esp + 0x50]
push 0x8080
push eax
call sym.CoreFoundation.dll__NS_open
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x100bde07
test esi, esi
je 0x100bde7c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push edi
push dword [eax]
jmp 0x100bde6c
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
pop ecx
pop ecx
test eax, eax
jns 0x100bde31
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push ebx
mov ebp, dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
pop ecx
test esi, esi
je 0x100bde7c
push edi
push ebp
jmp 0x100bde6c
mov eax, dword [esp + 0x22]
mov ecx, 0x8000
and eax, 0xf000
cmp ax, cx
je 0x100bde55
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
pop ecx
test esi, esi
je 0x100bde7c
push edi
push 0xd
jmp 0x100bde6c
mov eax, dword [esp + 0x30]
test eax, eax
jns 0x100bde83
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
pop ecx
test esi, esi
je 0x100bde7c
push edi
push 0xc
push dword [sym.CoreFoundation.dll_kCFErrorDomainPOSIX]
call fcn.100bdbdc
add esp, 0xc
mov dword [esi], eax
xor al, al
jmp 0x100bdf15
jne 0x100bde94
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebp, eax
xor esi, esi
jmp 0x100bdeff
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov ebp, eax
lea eax, [esp + 0x14]
push 0
push eax
push dword [esp + 0x38]
push ebp
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bdefb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test esi, esi
je 0x100bdedd
push edi
push eax
push dword [sym.CoreFoundation.dll_kCFErrorDomainPOSIX]
call fcn.100bdbdc
add esp, 0xc
mov dword [esi], eax
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
pop ecx
pop ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
jmp 0x100bde7c
mov esi, dword [esp + 0x14]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov eax, dword [esp + 0x14]
pop ecx
mov dword [eax], ebp
mov eax, dword [esp + 0x18]
mov dword [eax], esi
mov al, 1
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000234c
add esp, 0x148
ret
Function at 0x10003265
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x1008053d
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
lea ebp, [esi + 0xc]
push ebp
call sym.CoreFoundation.dll___CFSpinLock
mov bl, byte [esi + 4]
pop ecx
test bl, 0x10
je 0x10080701
cmp dword [esi + 0x28], 0
jle 0x10080701
mov ecx, dword [esp + 0x14]
movzx eax, bl
and bl, 3
and eax, 0xf
and ecx, eax
or byte [esi + 9], cl
push 0x10189afc
mov dword [esp + 0x18], ecx
call sym.CoreFoundation.dll___CFSpinLock
pop ecx
mov ecx, 0x10000
cmp bl, 2
je 0x1008059b
cmp dword [esi + 0x18], 1
je 0x1008059e
cmp dword [esi + 0x18], 5
je 0x1008059e
or dword [esi + 8], ecx
mov eax, dword [esp + 0x14]
push edi
test al, 8
jne 0x100805b8
test al, 4
je 0x10080655
test dword [esi + 8], ecx
jne 0x10080655
mov ebp, dword [esi + 0x14]
mov ecx, dword [0x10189b0c]
mov dword [esp + 0x14], ecx
cmp ebp, 0xffffffff
je 0x10080652
push ecx
call sym.CoreFoundation.dll_CFDataGetMutableBytePtr
push dword [esp + 0x18]
mov edi, eax
call sym.CoreFoundation.dll_CFDataGetLength
pop ecx
pop ecx
test eax, eax
jle 0x1008064e
push edi
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1008064e
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
je 0x1008062f
lea eax, [edi + 4]
cmp dword [eax], ebp
je 0x10080609
inc ecx
add eax, 4
cmp ecx, edx
jb 0x100805fb
jmp 0x1008062f
lea eax, [edx - 1]
cmp ecx, eax
jae 0x1008062a
lea ebp, [edi + 4]
lea ebp, [ebp + ecx*4]
mov eax, dword [ebp + 4]
inc ecx
mov dword [ebp], eax
lea ebp, [ebp + 4]
mov edx, dword [edi]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x10080617
lea eax, [edx - 1]
mov dword [edi], eax
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x1008064e
push 0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x78
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x18]
lea ebp, [esi + 0xc]
test bl, bl
je 0x100806f5
test al, bl
je 0x100806f5
mov edi, dword [esi + 0x14]
mov ebx, dword [0x10189b10]
mov byte [0x101790fc], 1
cmp edi, 0xffffffff
je 0x100806f5
push ebx
call sym.CoreFoundation.dll_CFDataGetMutableBytePtr
push ebx
mov esi, eax
call sym.CoreFoundation.dll_CFDataGetLength
pop ecx
pop ecx
test eax, eax
jle 0x100806f5
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100806f5
mov edx, dword [esi]
xor ecx, ecx
test edx, edx
je 0x100806d6
lea eax, [esi + 4]
cmp dword [eax], edi
je 0x100806b2
inc ecx
add eax, 4
cmp ecx, edx
jb 0x100806a4
jmp 0x100806d6
lea eax, [edx - 1]
cmp ecx, eax
jae 0x100806d1
lea edi, [ecx + 1]
lea edi, [esi + edi*4]
mov eax, dword [edi + 4]
inc ecx
mov dword [edi], eax
lea edi, [edi + 4]
mov edx, dword [esi]
lea eax, [edx - 1]
cmp ecx, eax
jb 0x100806bf
lea eax, [edx - 1]
mov dword [esi], eax
mov eax, dword [0x10179100]
cmp eax, 0xffffffff
je 0x100806f5
push 0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 0x73
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
push 0x10189afc
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
pop edi
push ebp
call sym.CoreFoundation.dll___CFSpinUnlock
pop ecx
pop esi
pop ebp
pop ebx
ret
Function at 0x1001f512
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ebp, 0x1013b514
push edi
xor edi, edi
test ebx, ebx
js 0x1001f568
push edi
push esi
push ebx
call sym.CoreFoundation.dll__NS_lseek
add esp, 0xc
cmp eax, esi
jne 0x1001f568
mov esi, 0x200
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1001f654
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, esi
jl 0x1001f648
mov esi, edi
jmp 0x1001f586
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1001f654
lea eax, [esi + 0x200]
cmp dword [esp + 0x20], eax
jl 0x1001f654
add esi, ecx
test esi, esi
je 0x1001f648
xor eax, eax
mov dword [esp + 0x10], eax
cmp eax, 4
jae 0x1001f648
movsx eax, byte [esi + 0x40]
cdq
sub eax, edx
mov byte [esp + 0x18], 1
mov ebx, eax
sar ebx, 1
cmp bl, 5
jne 0x1001f5e9
push 4
push esi
push str.Book
call fcn.1001bc1c
add esp, 0xc
test al, al
jne 0x1001f602
movsx eax, bl
cmp bl, 0xd
jne 0x1001f60c
dec eax
push eax
push esi
push str.WordDocument
call fcn.1001bc1c
add esp, 0xc
test al, al
je 0x1001f62c
mov ebp, 0x1013b540
jmp 0x1001f631
cmp bl, 9
jne 0x1001f5c6
push 8
push esi
push str.Workbook
call fcn.1001bc1c
add esp, 0xc
test al, al
je 0x1001f609
mov ebp, 0x1013b520
jmp 0x1001f631
push 9
pop eax
dec eax
cmp bl, 0x14
jne 0x1001f62c
push eax
push esi
push str.PowerPoint_Document
call fcn.1001bc1c
add esp, 0xc
test al, al
je 0x1001f62c
mov ebp, 0x1013b55c
jmp 0x1001f631
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x10]
sub esi, 0xffffff80
inc eax
cmp byte [esp + 0x18], 0
mov dword [esp + 0x10], eax
je 0x1001f594
test edi, edi
je 0x1001f654
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret