joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006ae0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x10006c4d
cmp dword [ebp + 0xc], 0
je 0x10006c4d
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push 2
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x10006b20
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, eax
push esi
push eax
call fcn.10016c03
mov esi, eax
add esp, 4
test esi, esi
je 0x10006c45
lea eax, [ebp - 8]
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x10006c45
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x10006c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10006c3c
push edi
push dword [ebp - 0x10]
call fcn.10016c03
mov edi, eax
add esp, 4
test edi, edi
jne 0x10006ba1
push esi
call fcn.10016557
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.10016c03
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10006bce
push esi
call fcn.10016557
push edi
call fcn.10016557
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x10006c1c
lea eax, [ebp - 4]
push eax
push edi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x10006c1c
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006cf0
push dword [ebp - 4]
xor ebx, ebx
test eax, eax
setns bl
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
push esi
call fcn.10016557
push edi
call fcn.10016557
push dword [ebp - 0x18]
call fcn.10016557
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.10016557
add esp, 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10008d90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027608
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100351e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x48], 0
mov dword [esi], vtable.ATL::CComObject_class_CShellContextMenu_.0
mov dword [esi + 4], vtable.ATL::CComObject_class_CShellContextMenu_.1.0
mov dword [esi + 8], vtable.ATL::CComObject_class_CShellContextMenu_.2.0
mov dword [esi + 0xc], vtable.ATL::CComObject_class_CShellContextMenu_.3.0
mov ecx, dword [0x10036494]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000c020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.10015970
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test esi, esi
je 0x1000c080
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.10001cd0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10012e1a
mov esp, ebp
pop ebp
ret 8

Function at 0x1000c700
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
xor ebx, ebx
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.10015970
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000c81d
cmp dword [ebp - 0x114], 5
jbe 0x1000c81d
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x124], 4
mov dword [ebp - 0x120], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000c81d
push edi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x128], ebx
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], ebx
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push str.ConsentPromptBehaviorAdmin
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push str.PromptOnSecureDesktop
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test edi, edi
pop edi
jne 0x1000c811
test eax, eax
jne 0x1000c811
cmp dword [ebp - 0x128], ebx
jne 0x1000c80c
cmp dword [ebp - 0x12c], ebx
je 0x1000c811
mov ebx, 1
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10012e1a
mov esp, ebp
pop ebp
ret
Function at 0x1000c9c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, word [ebp + 8]
push esi
push 0x1002bf2c
push eax
push dword [0x10036428]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000c9f1
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push dword [0x10036428]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x1000ca16
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x10036428]
mov edi, eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.100153f0
mov esi, dword [ebp - 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [ebp - 0x3c]
call fcn.10008ee0
lea eax, [ebp + 8]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
pop edi
test eax, eax
jne 0x1000ca8e
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.1000c930
lea ecx, [ebp - 0x3c]
call fcn.1000ba60
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x3c]
call fcn.10009050
mov eax, dword [ebp - 4]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000d4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027d76
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000d55c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000d55c
call fcn.10009b10
mov esi, eax
jmp 0x1000d64c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000d57f
call fcn.10009b10
jmp 0x1000d63f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1000d59d
call fcn.10009b10
jmp 0x1000d63f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000d5be
mov esi, 0x8007000e
jmp 0x1000d641
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10009970
jmp 0x1000d5e8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1000d5ff
mov esi, 0x8007000e
jmp 0x1000d641
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000d61f
call fcn.10009b10
jmp 0x1000d63f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1000d350
mov esi, eax
test edi, edi
je 0x1000d64c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000d670
lea ecx, [ebp - 0x418]
call fcn.1000c010
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10012e1a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000df20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x1000df39
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000df45
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1000df40
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000df80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x1000df95
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000dfa0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1000e7a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1000ea00
test eax, eax
je 0x1000e80b
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10015970
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x800
push 0x800
push eax
call fcn.10005da0
push dword [eax + 4]
push dword [eax]
call fcn.1001aa4e
add esp, 0x20
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e1a
mov esp, ebp
pop ebp
ret

Function at 0x1000e820
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.10012e60
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1000ea00
test eax, eax
je 0x1000e88f
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.10015970
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push 0x800
push eax
call fcn.10005da0
push dword [eax + 4]
push dword [eax]
call fcn.1001aa75
add esp, 0x20
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e1a
mov esp, ebp
pop ebp
ret
Function at 0x1000e8a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.10015970
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test esi, esi
je 0x1000e900
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.10001cd0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10012e1a
mov esp, ebp
pop ebp
ret

Function at 0x1000e920
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027e48
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100351e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100365b0]
test al, 1
jne 0x1000e983
or eax, 1
mov dword [0x100365b0], eax
call fcn.10001640
mov ecx, eax
test ecx, ecx
jne 0x1000e969
push 0x80004005
call fcn.10002390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x100280d0
mov dword [0x100365ac], eax
call fcn.10012e05
add esp, 4
mov eax, dword [0x100365ac]
cmp dword [eax - 0xc], 0
jne 0x1000e9d3
lea eax, [ebp - 0x10]
push str.ComputerZ_PDFDataUserDatampConfig.ini
push eax
call fcn.1000e8a0
add esp, 8
push eax
mov ecx, 0x100365ac
mov dword [ebp - 4], 0
call fcn.10001fc0
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000e9d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x100365ac]
push 1
push str.AutoDetectPdfAssoc
push str.ldspdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000ea00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100365a8]
test al, 1
jne 0x1000ea4d
or eax, 1
mov dword [0x100365a8], eax
call fcn.10001640
mov ecx, eax
test ecx, ecx
je 0x1000eaed
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x100280f0
mov dword [0x100365a4], eax
call fcn.10012e05
add esp, 4
mov eax, dword [0x100365a4]
cmp dword [eax - 0xc], 0
jne 0x1000ead8
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.10015970
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push dword [0x10036428]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.full.data
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000eab2
sub ecx, edx
lea eax, [ebp - 0x404]
sar ecx, 1
push ecx
push eax
mov ecx, 0x100365a4
call fcn.100044c0
mov eax, dword [0x100365a4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e1a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002390
int3

Function at 0x1000eb00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027e48
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100351e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100365b8]
test al, 1
jne 0x1000eb63
or eax, 1
mov dword [0x100365b8], eax
call fcn.10001640
mov ecx, eax
test ecx, ecx
jne 0x1000eb49
push 0x80004005
call fcn.10002390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x10028110
mov dword [0x100365b4], eax
call fcn.10012e05
add esp, 4
mov eax, dword [0x100365b4]
cmp dword [eax - 0xc], 0
jne 0x1000ebb3
lea eax, [ebp - 0x10]
push str.ComputerZ_PDFDataUserDatampConfig.ini
push eax
call fcn.1000e8a0
add esp, 8
push eax
mov ecx, 0x100365b4
mov dword [ebp - 4], 0
call fcn.10001fc0
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000ebb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x100365b4]
push 1
push str.ServerShellPdfAssoc
push str.ldspdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000ebe0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027e7b
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.10012e60
mov eax, dword [0x100351e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100365c0]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1018], 0
test al, 1
jne 0x1000ec5d
or eax, 1
mov dword [0x100365c0], eax
call fcn.10001640
mov ecx, eax
test ecx, ecx
jne 0x1000ec43
push 0x80004005
call fcn.10002390
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x10028130
mov dword [0x100365bc], eax
call fcn.10012e05
add esp, 4
mov eax, dword [0x100365bc]
cmp dword [eax - 0xc], 0
jne 0x1000ecb3
lea eax, [ebp - 0x1014]
push str.ComputerZ_PDFDataUserDatampConfig.ini
push eax
call fcn.1000e8a0
add esp, 8
push eax
mov ecx, 0x100365bc
mov dword [ebp - 4], 0
call fcn.10001fc0
mov edx, dword [ebp - 0x1014]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000ecb3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.10015970
add esp, 0xc
lea eax, [ebp - 0x1010]
push dword [0x100365bc]
push 0x800
push eax
push 0x1002a600
push str.ServerShellPdfApps
push str.ldspdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1010]
mov ecx, esi
push eax
call fcn.10001cd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012e1a
mov esp, ebp
pop ebp
ret

Function at 0x1000fec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10010090
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000ff9d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100351d4]
jb 0x1000ff0a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100351d8]
ja 0x1000ff0a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000feda
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10015970
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000ff2f
jmp 0x1000ff9d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000ff83
cmp dword [ebp - 0x18], 0x10000
jb 0x1000ff83
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000ff66
mov eax, dword [ebp - 8]
jmp 0x1000ff9f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000ff76
xor eax, eax
jmp 0x1000ff9f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ff98
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10010090
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000feda
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000ffb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100100c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10010085
mov edx, dword [ebp - 4]
cmp edx, dword [0x100351d4]
jb 0x1000fff5
mov eax, dword [ebp - 4]
cmp eax, dword [0x100351d8]
ja 0x1000fff5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000ffc5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10015970
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1001001a
jmp 0x10010085
cmp dword [ebp - 0x14], 0x10000
jne 0x1001006e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001006e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10010051
mov eax, dword [ebp - 8]
jmp 0x10010087
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10010061
xor eax, eax
jmp 0x10010087
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010080
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100100c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000ffc5
xor eax, eax
mov esp, ebp
pop ebp
ret