joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007550
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8160
call fcn.10013090
mov eax, dword [0x10035a8c]
push esi
mov dword [esp + 0x8160], eax
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
push ecx
push edx
lea eax, [esp + 0x13c]
push str._02d__02d__02d:_02d:_02d
push eax
call fcn.10013033
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
mov esi, eax
lea eax, [esp + esi + 0x14c]
push 0x8000
push eax
call fcn.100133ba
add esi, eax
lea ecx, [esp + esi + 0x154]
push 0x1002c350
push ecx
call fcn.10013033
mov al, byte [0x10036ac8]
add esp, 0x34
test al, 1
je 0x100075f3
lea edx, [esp + 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x10036ac8], 2
je 0x100076ad
mov esi, dword [0x10036ad0]
push 0x10036be8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x1000761a
cmp esi, 0xffffffff
jne 0x10007637
mov ecx, 0x10036ad0
call fcn.100071d0
mov esi, eax
test esi, esi
je 0x100076dd
cmp esi, 0xffffffff
je 0x100076dd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 8], eax
fild dword [esp + 8]
fcomp qword [0x1002c348]
fnstsw ax
test ah, 5
jp 0x10007664
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10007678
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 0x128]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007682
push 0
lea ecx, [esp + 0x20]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x134]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x10036be8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test byte [0x10036ac8], 4
je 0x100076cb
lea eax, [esp + 0x128]
push eax
push 0x1002c344
call fcn.10013354
add esp, 8
mov ecx, dword [esp + 0x8164]
call fcn.1001291b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 9
mov esi, str.WriteTrace:_Open_Trace_file_Error:
lea edi, [esp + 0x20]
mov eax, 0x10036ae4
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10007704
lea edi, [esp + 0x20]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10007712
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0xd5
mov ecx, eax
and ecx, 3
push 0x5c
push str..JdDebug.cpp
rep movsb byte es:[edi], byte [esi]
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str.WriteTrace:_Open_Trace_file_Error
call fcn.10007550
add esp, 0x10
push 0x10036be8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x8164]
call fcn.1001291b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10007780
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push 0x104
lea eax, [esi + 0x14]
push eax
push str.XyLog.txt
call fcn.10007320
lea ecx, [esi + 0x118]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [esp + 4]
push edx
push 1
push 0
mov eax, 4
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x130], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 4]
test eax, eax
je 0x10007813
lea ecx, [esp + 8]
push ecx
push 0x10036ac8
lea edx, [esp + 0x14]
push edx
push 0
push str.DbgFlag
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
mov eax, esi
mov dword [0x10036ac8], 0
pop esi
add esp, 0xc
ret

Function at 0x10007c70
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10007c90
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x10007cc0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10007cd2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x10008310
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x10035a8c]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x1000837a
test ecx, ecx
je 0x1000836c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x10008388
test ecx, ecx
je 0x1000842b
push ecx
jmp 0x10008425
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x100083f2
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.10008310
mov edi, eax
test edi, edi
jne 0x10008444
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], pe_nt_image_headers32
call esi
test eax, eax
je 0x100083b4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x10008409
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x1000842b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.1001291b
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x10008453
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.1001291b
add esp, 0x11c
ret 4
Function at 0x10008950
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10029d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x10035a8c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov esi, ecx
je 0x10008aed
mov ebx, dword [esp + 0x54]
cmp ebx, ebp
je 0x10008aed
push edi
mov dword [ebx], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
shl eax, 1
cmp eax, 0x64
jge 0x100089a6
mov eax, 0x3e8
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x100089c0
mov byte [eax], 0
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x100089d9
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x8007000e
jmp 0x10008af2
mov dword [esi], edi
cmp byte [edi], 0
mov dword [esp + 0x50], ebp
je 0x10008a33
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [esi]
cmp byte [edi], 0x25
push edi
jne 0x10008a04
call ebp
mov edi, eax
mov dword [esi], edi
cmp byte [edi], 0x25
jne 0x10008a4b
push edi
call ebp
sub eax, edi
push eax
lea ecx, [esp + 0x14]
push edi
call fcn.10007d10
test eax, eax
je 0x10008ad4
mov eax, dword [esi]
push eax
call ebp
mov ecx, eax
mov dword [esi], eax
cmp byte [ecx], 0
jne 0x100089f0
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [ebx], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10008af2
push 0x25
push edi
call fcn.10007eb0
mov edi, eax
add esp, 8
test edi, edi
je 0x10008abb
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0x1f
jg 0x10008aa2
inc eax
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
call fcn.10008910
test eax, eax
je 0x10008abb
push eax
lea ecx, [esp + 0x14]
call fcn.100087a0
test eax, eax
je 0x10008ad4
cmp dword [esi], edi
je 0x10008a1b
mov edx, dword [esi]
push edx
call ebp
cmp eax, edi
mov dword [esi], eax
jne 0x10008a92
jmp 0x10008a1b
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80004005
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10008af2
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80020009
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10008af2
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x8007000e
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x10008af2
mov eax, 0x80004003
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.1001291b
add esp, 0x3c
ret 8
Function at 0x1000b250
Capabilities:
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x10029f46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x10035a8c]
push ebx
mov dword [esp + 0x130], eax
push ebp
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call fcn.10020327
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x148]
mov ecx, dword [eax]
mov edx, dword [esp + 0x150]
push ecx
movzx ecx, word [esp + 0x150]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x18]
push str._Root__r_n_Item__r_n_Level__d__Level__r_n_User__s__User__r_n_Action__s__Action__r_n_Param__s__Param__r_n__Item__r_n__Root_
xor ebx, ebx
push edx
mov dword [esp + 0x158], ebx
call fcn.100029a0
mov ebp, dword [esp + 0x20]
mov eax, ebp
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000b2e8
push esi
sub eax, edx
lea esi, [eax + 1]
push edi
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], 2
mov word [esp + 0x28], 0xc1e
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.10020235
mov edx, eax
mov ecx, esi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
add esp, 4
mov dword [esp + 0x34], edx
rep stosb byte es:[edi], al
mov eax, ebp
sub edx, ebp
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1000b340
call fcn.10020327
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push ebp
lea eax, [esp + 0x18]
push str.AlarmLog___s
push eax
mov byte [esp + 0x154], 1
call fcn.100029a0
add esp, 0xc
mov ecx, 0x10036f48
call fcn.10001000
mov ecx, dword [0x10036f54]
push ebx
push ecx
mov ecx, 0x10036f4c
call fcn.100012a0
lea edi, [eax + 8]
mov ecx, 7
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x10036f54]
cmp ecx, ebx
pop edi
pop esi
je 0x1000b3b2
mov dword [ecx], eax
jmp 0x1000b3b7
mov dword [0x10036f50], eax
mov ecx, 0x10036f48
mov dword [0x10036f54], eax
call fcn.10001010
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x140], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000b3eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x140], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebp
pop ebx
jg 0x1000b412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
call fcn.1001291b
add esp, 0x13c
ret 0xc
Function at 0x1000b440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x10035a8c]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 8]
dec edi
jmp 0x1000b480
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000b480
mov ecx, dword [str.SDNotifiedQueue.dat]
mov edx, dword [0x1002c994]
mov eax, dword [0x1002c998]
mov dword [edi], ecx
mov ecx, dword [0x1002c99c]
mov dword [edi + 4], edx
mov edx, dword [0x1002c9a0]
mov dword [edi + 8], eax
mov al, byte [0x1002c9a4]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 8]
mov dword [edi + 0x10], edx
push 0
push ecx
mov byte [edi + 0x14], al
call fcn.10012fed
mov ecx, dword [esp + 0x11c]
xor edx, edx
add esp, 8
cmp eax, 0xffffffff
setne dl
mov eax, edx
call fcn.1001291b
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000bbf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x10035a8c]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 8]
dec edi
jmp 0x1000bc30
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000bc30
mov ecx, dword [str.SDNotifyQueue.dat]
mov edx, dword [0x1002c9bc]
mov eax, dword [0x1002c9c0]
mov dword [edi], ecx
mov ecx, dword [0x1002c9c4]
mov dword [edi + 4], edx
mov dx, word [0x1002c9c8]
mov dword [edi + 8], eax
mov al, byte [0x1002c9ca]
mov dword [edi + 0xc], ecx
lea ecx, [esp + 8]
mov word [edi + 0x10], dx
push 0
push ecx
mov byte [edi + 0x12], al
call fcn.10012fed
mov ecx, dword [esp + 0x11c]
xor edx, edx
add esp, 8
cmp eax, 0xffffffff
setne dl
mov eax, edx
call fcn.1001291b
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1000f730
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
xor ebp, ebp
cmp eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x1000f759
push eax
call edi
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov dword [esi + 0x10], ebp
jmp 0x1000f75f
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x14]
cmp eax, ebp
je 0x1000f772
push eax
call edi
mov ecx, dword [esi + 0x14]
push ecx
call ebx
mov dword [esi + 0x14], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x1000f785
push eax
call edi
mov edx, dword [esi + 0x18]
push edx
call ebx
mov dword [esi + 0x18], ebp
mov eax, dword [esi]
cmp eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x1000f809
mov eax, dword [eax + 0x28]
push 0xc8
push eax
call ebx
cmp eax, 0x102
jne 0x1000f7da
mov ecx, dword [esi]
mov edx, dword [ecx + 0x28]
push 0xffffffffffffffff
push edx
call edi
push 0xb8
push 0x5c
push str..SoftwareDistributionCore.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__Stop_state:_wait_DataCenterProc_timeout_it_will_be_killed.
jmp 0x1000f7ff
push 0xbc
push 0x5c
push str..SoftwareDistributionCore.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__Stop_state:_DataCenterProc_exit_ok.
call fcn.10007550
add esp, 0x10
mov dword [esi], ebp
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x1000f884
mov eax, dword [eax + 0x28]
push 0xc8
push eax
call ebx
cmp eax, 0x102
jne 0x1000f854
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x28]
push 0xffffffffffffffff
push edx
call edi
push 0xc6
push 0x5c
push str..SoftwareDistributionCore.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__Stop_state:_wait_DownloadProc_timeout_it_will_be_killed.
jmp 0x1000f879
push 0xca
push 0x5c
push str..SoftwareDistributionCore.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__Stop_state:_DownloadProc_exit_ok.
call fcn.10007550
add esp, 0x10
mov dword [esi + 4], ebp
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x1000f8ff
mov eax, dword [eax + 0x28]
push 0xc8
push eax
call ebx
cmp eax, 0x102
jne 0x1000f8cf
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x28]
push 0xffffffffffffffff
push edx
call edi
push 0xd4
push 0x5c
push str..SoftwareDistributionCore.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__Stop_state:_wait_InstallProc_timeout_it_will_be_killed.
jmp 0x1000f8f4
push 0xd8
push 0x5c
push str..SoftwareDistributionCore.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push 0x1002d19c
call fcn.10007550
add esp, 0x10
mov dword [esi + 8], ebp
mov eax, dword [0x10036ac4]
cmp eax, ebp
je 0x1000f915
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10036ac4], ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x1000ff30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002a4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.100036e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.10001c20
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1000ffc2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000ffe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002a4fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa2c
mov eax, dword [0x10035a8c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0xa2c], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x124]
push str._sSoftwareInstall.log
push edx
call fcn.10013033
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x100100f9
push eax
lea ecx, [esp + 0xc]
call fcn.100206f4
xor eax, eax
mov ecx, 0x200
lea edi, [esp + 0x228]
rep stosd dword es:[edi], eax
push 0x800
lea ecx, [esp + 0x22c]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xa44], 0
call fcn.100203ea
lea eax, [esp + 0x228]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100100c0
sub eax, edx
push eax
lea edx, [esp + 0x22c]
push edx
mov ecx, 0x10037048
call fcn.100027a0
lea ecx, [esp + 8]
call fcn.10020675
lea ecx, [esp + 8]
mov dword [esp + 0xa3c], 0xffffffff
call fcn.10020716
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x1001013b
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x4f
push 0x5c
push str..SoftwareDistributionCore.cpp
mov dword [esi + 0x10], eax
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__Init_state:_create_DataCenterProc_Event_Object_ok.
call fcn.10007550
add esp, 0x10
cmp dword [esi], 0
jne 0x100101b1
push 0
push 0
push 0
push 0
push esi
push 0x1000ff00
call fcn.100215ec
test eax, eax
mov dword [esi], eax
jne 0x10010187
push 0x58
push 0x5c
push str..SoftwareDistributionCore.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__Init_state:_create_DataCenterProc_failed.
call fcn.10007550
add esp, 0x10
xor eax, eax
jmp 0x100101b6
push 0x5b
push 0x5c
push str..SoftwareDistributionCore.cpp
call fcn.10012fc0
add esp, 8
inc eax
push eax
push str._s:_d
call fcn.10007550
push str._SD__Init_state:_create_DataCenterProc_ok.
call fcn.10007550
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0xa34]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa2c]
call fcn.1001291b
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10012fed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001300d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001569f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x10013030
test byte [esp + 8], 2
je 0x10013030
call fcn.1001568d
mov dword [eax], 0xd
call fcn.10015696
mov dword [eax], 5
jmp 0x10013009
xor eax, eax
ret
Function at 0x100136ba
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10013090
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10013755
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10039018]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10013755
cmp eax, 1
je 0x10013776
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10013755
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10013722
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10013751
xor eax, eax
inc eax
jmp 0x10013795
cmp edi, eax
jae 0x10013759
xor eax, eax
jmp 0x10013795
cmp eax, esi
jae 0x10013760
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10039018]
jmp 0x10013779
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret