joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007060
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x110
lea eax, [ebp - 0x158]
push ebx
push eax
mov dword [ebp - 0x170], ebx
xor edi, edi
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x15c], 0x114
call fcn.1000c100
add esp, 0xc
lea ecx, [ebp - 0x164]
push ecx
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000719e
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000719e
cmp dword [ebp - 0x158], 6
jb 0x1000713e
mov edx, dword [ebp - 0x164]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x16c]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x1000719e
cmp dword [ebp - 0x16c], 3
jne 0x1000713e
mov edx, dword [ebp - 0x164]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x160]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x1000719e
cmp dword [ebp - 0x160], ebx
jne 0x10007160
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x160]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x1000719e
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x16
mov dword [ebp - 0x168], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1000719e
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x100071a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x164]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x100071bf
push eax
call esi
mov dword [ebp - 0x164], ebx
mov eax, dword [ebp - 0x160]
cmp eax, ebx
je 0x100071d2
push eax
call esi
mov dword [ebp - 0x160], ebx
cmp edi, ebx
je 0x100071ed
push 0x10014168
lea ecx, [ebp - 0x16c]
push ecx
mov dword [ebp - 0x16c], edi
call fcn.1000d0b1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x170]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007a8d
mov esp, ebp
pop ebp
ret
Function at 0x10007210
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x110
lea eax, [ebp - 0x158]
push edi
push eax
mov dword [ebp - 0x16c], edi
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x168], edi
call fcn.1000c100
add esp, 0xc
lea ecx, [ebp - 0x164]
push ecx
push 0xa
mov dword [ebp - 0x15c], 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10007347
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10007347
cmp dword [ebp - 0x158], 6
jb 0x100072eb
mov edx, dword [ebp - 0x164]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x170]
push ecx
push 0x12
push edx
call esi
test eax, eax
je 0x10007347
cmp dword [ebp - 0x170], 3
jne 0x100072eb
mov edx, dword [ebp - 0x164]
lea eax, [ebp - 0x168]
push eax
push 4
lea ecx, [ebp - 0x160]
push ecx
push 0x13
push edx
call esi
test eax, eax
je 0x10007347
cmp dword [ebp - 0x160], edi
jne 0x1000730d
mov ecx, dword [ebp - 0x164]
lea eax, [ebp - 0x160]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x10007347
lea edx, [ebp - 0x168]
push edx
lea eax, [ebp - 0x48]
push eax
push edi
push 0x1a
mov dword [ebp - 0x168], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x10007347
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [ebp - 0x164]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x1000735a
push eax
call esi
mov eax, dword [ebp - 0x160]
cmp eax, edi
je 0x10007367
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x16c]
pop edi
xor ecx, ebp
pop esi
call fcn.10007a8d
mov esp, ebp
pop ebp
ret

Function at 0x10007380
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100073d6
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x100073dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
pop ebx
je 0x100073eb
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10007a8d
mov esp, ebp
pop ebp
ret
Function at 0x10007400
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10007422
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push 0
push 0x100131dc
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x10007465
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x1c]
mov eax, 1
push ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
push 2
lea eax, [ebp - 8]
push esi
mov dword [ebp - 4], 0x1388
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100074c0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100074ea
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esi], eax
test eax, eax
je 0x1000755e
mov eax, dword [esi]
push ebx
push 0x14
push edi
push eax
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x10007545
lea ecx, [ebp - 0x2c]
push ecx
push 0x24
lea edx, [ebp - 0x28]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x10007543
cmp eax, 2
je 0x10007543
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007a8d
mov esp, ebp
pop ebp
ret
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007a8d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.10007a8d
mov esp, ebp
pop ebp
ret
Function at 0x10007570
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010339
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1001629c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
push ebx
mov dword [ebp - 0x18], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000764a
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000764a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x10007643
push edi
mov dword [ebp - 0x14], 0
call fcn.10007a9c
add esp, 4
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x14], edi
jne 0x10007633
mov edx, dword [ebp - 0x10]
push edx
mov eax, esi
call fcn.10001170
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10007643
push eax
call fcn.10007bfc
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [esi], 0x10016f24
mov word [ebp - 0x20c], ax
call fcn.1000c100
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0x8026
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100076bf
push esi
lea eax, [ebp - 0x20c]
call fcn.10001830
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.10007a8d
mov esp, ebp
pop ebp
ret

Function at 0x100076d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [esi], 0x10016f24
mov word [ebp - 0x20c], ax
call fcn.1000c100
add esp, 0xc
push 1
push 0x23
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1000772a
push esi
lea eax, [ebp - 0x20c]
call fcn.10001830
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.10007a8d
mov esp, ebp
pop ebp
ret
Function at 0x100078b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1000c100
add esp, 0xc
push 0x103
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
mov dword [edi], 0x10016f24
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007902
sub eax, edx
sar eax, 1
push esi
mov esi, eax
je 0x10007953
lea eax, [esi + esi + 0xe]
push eax
call fcn.10007ae1
add esp, 4
test eax, eax
je 0x10007953
mov dword [eax], 1
mov dword [eax + 4], esi
mov dword [eax + 8], esi
xor ecx, ecx
mov word [eax + esi*2 + 0xc], cx
lea edx, [esi + esi]
push edx
lea ecx, [ebp - 0x20c]
add eax, 0xc
push ecx
push eax
mov dword [edi], eax
call fcn.1000c270
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.10007a8d
mov esp, ebp
pop ebp
ret

Function at 0x10007a8d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001629c]
jne 0x10007a97
repz ret
jmp fcn.10008a1e
Function at 0x1000d51c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001629c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10009bd8
and dword [ebp - 0x14], 0
cmp dword [0x10017c2c], 0
mov dword [ebp - 0x18], eax
jne 0x1000d5cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000d677
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000d677
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10017c2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10017c30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10017c34], eax
call edi
push eax
call esi
mov dword [0x10017c3c], eax
test eax, eax
je 0x1000d5cf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10017c38], eax
mov eax, dword [0x10017c38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000d628
cmp dword [0x10017c3c], ecx
je 0x1000d628
push eax
call esi
push dword [0x10017c3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000d628
test ebx, ebx
je 0x1000d628
call edi
test eax, eax
je 0x1000d61f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000d61f
test byte [ebp - 8], 1
jne 0x1000d628
or dword [ebp + 0x10], 0x200000
jmp 0x1000d65b
mov eax, dword [0x10017c30]
cmp eax, dword [ebp - 0x18]
je 0x1000d65b
push eax
call esi
test eax, eax
je 0x1000d65b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000d65b
mov eax, dword [0x10017c34]
cmp eax, dword [ebp - 0x18]
je 0x1000d65b
push eax
call esi
test eax, eax
je 0x1000d65b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10017c2c]
call esi
test eax, eax
je 0x1000d677
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000d679
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007a8d
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x10001113
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1009db83
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, esi
cmp esi, 0x60
jg 0x1009dbef
mov edx, dword [esp + 0x14]
mov ebx, esi
and ebx, 0xfffffffc
add ebx, edx
lea ebp, [edx + esi]
jmp 0x1009dbd4
movzx eax, byte [edx]
imul ecx, eax, 0x101
movzx eax, byte [edx + 1]
imul edi, edi, 0x4060401
add ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x101
add ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x101
add ecx, eax
add edi, ecx
add edx, 4
cmp edx, ebx
jb 0x1009dba2
jmp 0x1009dbe6
movzx eax, byte [edx]
imul edi, edi, 0x101
add edi, eax
inc edx
cmp edx, ebp
jb 0x1009dbda
jmp 0x1009dcbf
mov ebx, dword [esp + 0x14]
lea edx, [ebx + 0x20]
cmp ebx, edx
jae 0x1009dc3c
sub edx, ebx
lea ebp, [ebx + 2]
dec edx
shr edx, 2
inc edx
invalid
mov dh, 0x45

Function at 0x1000119f
Capabilities:
Read file via mapping

Disassembly:
jmp 0x10032795
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [edi + 0x408], ebx
jne 0x1003284a
mov esi, dword [esp + 0x18]
test esi, esi
js 0x1003284a
push 2
push ebx
push esi
call sym.CoreFoundation.dll__NS_lseek
mov ebp, eax
mov eax, dword [esp + 0x28]
push esi
push ebp
push edi
mov dword [edi + 0x414], eax
call fcn.100305bc
push esi
mov dword [edi + 0x40c], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0x1c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 2
push ebx
push ebx
push eax
call esi
push eax
push dword [esp + 0x28]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
je 0x10032851
push dword [edi + 0x40c]
push ebp
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10032851
mov dword [edi + 0x408], eax
mov bl, 1
mov eax, dword [esp + 0x14]
mov dword [edi + 0x424], esi
mov dword [edi + 0x428], eax
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret
xor al, al
jmp 0x1003284c
Function at 0x10001537
Capabilities:
Read file via mapping

Disassembly:
jmp 0x100320bd
sub esp, 0x138
mov eax, dword [0x10184508]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x30]
push ebx
push ebp
push esi
push edi
push 0x8000100
push 0x104
push ecx
push eax
call sym.CoreFoundation.dll_CFStringGetCString
add esp, 0x10
test al, al
je 0x10032211
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call sym.CoreFoundation.dll__NS_stat
pop ecx
pop ecx
test eax, eax
jne 0x10032211
xor esi, esi
lea eax, [esp + 0x40]
push esi
push 0x8080
push eax
call sym.CoreFoundation.dll__NS_open
add esp, 0xc
test eax, eax
js 0x10032211
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10032211
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
je 0x10032211
push dword [esp + 0x24]
push esi
push esi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x10032211
cmp dword [edi], 0xbabeface
jne 0x100321b4
push 0x42c
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x40c], ecx
mov ecx, dword [edi + 4]
mov dword [esi + 0x410], ecx
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x414], ecx
mov ecx, dword [edi + 8]
mov dword [esi + 0x418], ecx
jmp 0x100321f1
cmp dword [edi], 0xcafebabe
je 0x100321c4
cmp dword [edi], 0xddba11
jne 0x1003220d
push 0x42c
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
mov dword [esi + 0x40c], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x414], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x418], eax
mov dword [esi + 0x424], ebp
mov dword [esi + 0x428], ebx
mov dword [esi + 0x420], 1
mov dword [esi + 0x408], edi
mov eax, esi
jmp 0x10032213
xor eax, eax
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000234c
add esp, 0x138
ret
Function at 0x10001780
Capabilities:
Get common file path

Disassembly:
jmp 0x10068700
sub esp, 0x20c
mov eax, dword [0x10184508]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x214]
lea eax, [esp + 4]
push esi
push eax
xor esi, esi
push esi
push esi
push dword [esp + 0x228]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x100687db
mov ecx, esi
lea eax, [esp + 8]
cmp word [esp + 8], cx
je 0x10068752
lea eax, [eax + 2]
inc ecx
cmp word [eax], si
jne 0x10068749
push ebx
push ecx
lea eax, [esp + 0x10]
push eax
push ebp
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100687da
call sym.CoreFoundation.dll_CFBundleGetMainBundle
test eax, eax
je 0x10068781
push dword [sym.CoreFoundation.dll_kCFBundleNameKey]
push eax
call sym.CoreFoundation.dll_CFBundleGetValueForInfoDictionaryKey
pop ecx
pop ecx
jmp 0x10068783
mov eax, esi
push edi
test eax, eax
je 0x100687a2
push eax
push ebx
push str.__Apple_Computer___
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push esi
push ebp
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x14
jmp 0x100687b9
push ebx
push str.__Apple_Computer_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push esi
push ebp
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x10
push ebx
mov edi, eax
call sym.CoreFoundation.dll_CFRelease
pop ecx
test edi, edi
je 0x100687d9
push edi
push esi
push ebp
call sym.CoreFoundation.dll_CFStringCreateMutableCopy
push edi
mov esi, eax
call sym.CoreFoundation.dll_CFRelease
add esp, 0x10
pop edi
pop ebx
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.1000234c
add esp, 0x20c
ret
Function at 0x100017d0
Capabilities:
Read file on windows

Disassembly:
jmp 0x10051c89
sub esp, 0x3c
mov eax, dword [0x10184508]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x14], eax
xor edi, edi
mov eax, dword [esp + 0x64]
push 0x1b6
or eax, 0x8080
mov dword [esp + 0x14], esi
push eax
push ecx
mov dword [ebp], edi
call sym.CoreFoundation.dll__NS_open
add esp, 0xc
mov dword [ebx], eax
test eax, eax
jns 0x10051ce1
xor al, al
jmp 0x10051dda
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
pop ecx
pop ecx
test eax, eax
jns 0x10051d0f
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
push dword [ebx]
mov esi, dword [eax]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
or dword [ebx], 0xffffffff
pop ecx
call edi
mov dword [eax], esi
jmp 0x10051cda
mov eax, dword [esp + 0x1e]
mov ecx, 0x8000
and eax, 0xf000
cmp ax, cx
je 0x10051d3c
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
or dword [ebx], 0xffffffff
pop ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xd
jmp 0x10051cda
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10051d6b
push edi
push 4
push esi
call sym.CoreFoundation.dll_CFAllocatorAllocate
add esp, 0xc
mov dword [ebp], eax
cmp byte [sym.CoreFoundation.dll___CFOASafe], 0
je 0x10051dd2
push str.CFUtilities__file_bytes_
push eax
call sym.CoreFoundation.dll___CFSetLastAllocationEventName
pop ecx
pop ecx
jmp 0x10051dd2
mov esi, dword [esp + 0x60]
cmp esi, eax
jge 0x10051d77
test esi, esi
jne 0x10051d79
mov esi, eax
push edi
mov edi, dword [esp + 0x14]
push esi
push edi
call sym.CoreFoundation.dll_CFAllocatorAllocate
add esp, 0xc
mov dword [ebp], eax
cmp byte [sym.CoreFoundation.dll___CFOASafe], 0
je 0x10051da1
push str.CFUtilities__file_bytes_
push eax
call sym.CoreFoundation.dll___CFSetLastAllocationEventName
pop ecx
pop ecx
push esi
push dword [ebp]
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
test eax, eax
jns 0x10051dd0
push dword [ebp]
push edi
call sym.CoreFoundation.dll_CFAllocatorDeallocate
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 0xc
or dword [ebx], 0xffffffff
jmp 0x10051cda
mov edi, esi
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov al, 1
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000234c
add esp, 0x3c
ret