joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433e65
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x424], edi
call fcn.00433d42
push edi
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x418], eax
cmp eax, 0x20
ja 0x433fb3
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
push str..htm
mov edi, SysReAllocString
push edi
call fcn.00430437
test eax, eax
jne 0x433fb3
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push str._shellopencommand
lea eax, [ebp - 0x414]
push eax
call esi
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
push eax
push edi
call fcn.00430437
test eax, eax
jne 0x433fb3
lea eax, [ebp - 0x414]
push str.__1_
push eax
call fcn.00497c22
mov edi, eax
pop ecx
cmp edi, ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenW]
pop ecx
jne 0x433f59
lea eax, [ebp - 0x414]
push 0x4d1fd8
push eax
call fcn.00497c22
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x433f59
lea eax, [ebp - 0x414]
push eax
call ebx
lea edi, [ebp + eax*2 - 0x416]
jmp 0x433f5e
xor eax, eax
mov word [edi], ax
push 0x4c5a80
push edi
call esi
push dword [ebp - 0x420]
push edi
call esi
lea eax, [ebp - 0x414]
push eax
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x433f84
xor eax, eax
jmp 0x433fa0
lea esi, [eax + eax]
mov eax, esi
call fcn.00495fa0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x414]
push ecx
push eax
call fcn.00402138
push dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x418]
lea esp, [ebp - 0x430]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004959f8
leave
ret 8
Function at 0x43d3a2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x50383c]
push 0xf0
push eax
push esi
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x10c], 1
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x43d524
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x43d524
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x43d524
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x43d522
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x114], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x43d497
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.0043bcce
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x43d477
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x43d50f
push dword [ebp - 0x108]
call fcn.00497be8
pop ecx
jmp 0x43d50f
mov ecx, 0x1234
cmp cx, ax
jne 0x43d50f
or dword [ebp - 0x134], 0xffffffff
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x108], eax
call fcn.0043bcce
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x43d4e9
push eax
call fcn.00497be8
pop ecx
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x110]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x43d50f
and dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x43d40e
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop esi
call fcn.004959f8
leave
ret 4
Function at 0x442857
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0x10]
push ebx
push esi
push dword [ebp + 0xc]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x442877
xor al, al
jmp 0x4428f3
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push ebx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
cmp edi, ebx
jne 0x442895
xor al, al
jmp 0x4428f2
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push dword [ebp + 0x10]
push edi
push eax
call fcn.00495100
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4428d9
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004427f0
test eax, eax
js 0x4428d9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x444d0d
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x4bbdda
call fcn.00495a07
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x2c]
push eax
push 0x444ca4
push esi
push esi
mov dword [ebp - 4], esi
mov dword [0x4fc274], 1
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
push eax
push 0x442df8
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp eax, esi
jbe 0x444dbf
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sar ecx, 4
test ecx, ecx
je 0x444dbf
xor edi, edi
cmp eax, esi
jbe 0x444dbf
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [eax + edi*4]
push dword [eax]
mov ecx, ebx
call fcn.00443d66
test eax, eax
jne 0x444dad
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
inc edi
sar eax, 2
cmp edi, eax
jb 0x444d80
jmp 0x444dbf
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x444dbc
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + edi*4]
mov dword [eax], ecx
xor esi, esi
inc esi
lea ecx, [ebp - 0x1c]
call fcn.00411c50
lea ecx, [ebp - 0x2c]
call fcn.00411c50
mov eax, esi
call fcn.00495adf
ret 0xc
Function at 0x444e1f
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x4bbdda
call fcn.00495a07
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x2c]
push eax
push 0x444dd9
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
push eax
push 0x442df8
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp eax, esi
jbe 0x444ec4
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sar ecx, 4
test ecx, ecx
je 0x444ec4
xor edi, edi
cmp eax, esi
jbe 0x444ec4
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x10]
lea eax, [eax + edi*4]
push dword [ebp + 0xc]
mov edx, dword [eax]
lea ecx, [ebp - 0x2c]
call fcn.00443fec
pop ecx
pop ecx
test eax, eax
jne 0x444eb5
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
inc edi
sar eax, 2
cmp edi, eax
jb 0x444e89
jmp 0x444ec4
cmp ebx, esi
je 0x444ec1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + edi*4]
mov dword [ebx], eax
xor esi, esi
inc esi
lea ecx, [ebp - 0x1c]
call fcn.00411c50
lea ecx, [ebp - 0x2c]
call fcn.00411c50
mov eax, esi
call fcn.00495adf
ret
Function at 0x4455fb
Capabilities:
Get http document via iwebbrowser2

Disassembly:
push 0x18
mov eax, 0x4bbe48
call fcn.00495a07
mov edi, ecx
push dword [ebp + 8]
call fcn.0043c97e
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x445700
push dword [edi + 0x74]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x14], eax
call fcn.00444b37
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x445648
mov esi, 0x80004005
jmp 0x445700
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x10]
push eax
push 0x4d9688
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043baa5
mov esi, eax
cmp esi, ebx
jl 0x4456e5
mov esi, dword [ebp - 0x10]
cmp dword [ebp + 8], ebx
jne 0x44570a
mov dword [ebp + 8], ebx
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
mov byte [ebp - 4], 2
push esi
call dword [eax + 0x2c]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
jl 0x4456e5
cmp dword [ebp + 0xc], ebx
je 0x4456e5
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
mov byte [ebp - 4], 3
call dword [ecx + 0x48]
mov esi, eax
cmp esi, ebx
jl 0x4456d4
push dword [ebp + 8]
lea ecx, [edi + 0x80]
call fcn.0043b7d9
mov esi, eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4456e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x445700
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00495adf
ret 8
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x445682
push 0x8007000e
call fcn.004041a0
int3

Function at 0x446164
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
push 0
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0xf4]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esi + 4]
call fcn.0044867a
mov eax, dword [esi + 0x1c]
and dword [eax + 0x20], 0
and dword [esi + 0xc4], 0
pop edi
pop esi
ret

Function at 0x448783
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
test edi, edi
je 0x44878f
lea eax, [edi + 0x58]
jmp 0x448791
xor eax, eax
push esi
push eax
push 0
push 0x23a
lea ecx, [edi + 4]
call fcn.00448586
push str.AutotestBalloon
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 4]
and dword [edi + 0x80], 0
lea ecx, [edi + 4]
call dword [eax + 0x18]
push 0
push str.about:blank
lea ecx, [edi + 4]
call fcn.004455fb
pop esi
test eax, eax
jns 0x4487e8
push 8
mov ecx, edi
call fcn.0043b944
xor eax, eax
pop edi
ret 0x10
Function at 0x44b64f
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x4bbdda
call fcn.00495a07
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x2c]
push eax
push 0x44b5e6
push esi
push esi
mov dword [ebp - 4], esi
mov dword [0x4fc210], 1
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c]
push eax
push 0x442df8
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp eax, esi
jbe 0x44b701
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sar ecx, 4
test ecx, ecx
je 0x44b701
xor edi, edi
cmp eax, esi
jbe 0x44b701
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [eax + edi*4]
push dword [eax]
mov ecx, ebx
call fcn.0044b38a
test eax, eax
jne 0x44b6ef
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
inc edi
sar eax, 2
cmp edi, eax
jb 0x44b6c2
jmp 0x44b701
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x44b6fe
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + edi*4]
mov dword [eax], ecx
xor esi, esi
inc esi
lea ecx, [ebp - 0x1c]
call fcn.00411c50
lea ecx, [ebp - 0x2c]
call fcn.00411c50
mov eax, esi
call fcn.00495adf
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44d393
test al, 0x10
jne 0x44d393
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44d3b1
test al, 0x10
je 0x44d3b1
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x44d3b5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x44d3c9
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp + 0xc], 0
jne 0x44d3df
cmp eax, 2
je 0x44d3c5
cmp eax, 3
je 0x44d3c5
test eax, eax
jle 0x44d3ed
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret
Function at 0x44d780
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4bcc89
call fcn.00495a70
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
mov dword [ebp - 4], ebx
call fcn.0044d546
test eax, eax
je 0x44d83d
lea eax, [ebp - 0x250]
push 1
push eax
call fcn.0044e8e7
push str.das
push eax
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 1
call fcn.0040acab
add esp, 0x14
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.0040261f
push ebx
push 1
lea ecx, [ebp - 0x26c]
call fcn.00401129
push ebx
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.00401129
mov esi, str._allusers_appdata
cmp dword [ebp + 0xc], ebx
jne 0x44d824
mov esi, str.user_appdata
push esi
call fcn.00495461
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.0040136b
jmp 0x44d8c1
cmp dword [ebp + 0xc], ebx
je 0x44d893
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00495b20
add esp, 0xc
push ebx
push 0x23
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402570
jmp 0x44d8c1
lea eax, [ebp - 0x250]
push eax
call fcn.00493729
pop ecx
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.0040261f
push ebx
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], bl
call fcn.00401129
cmp dword [ebp - 0x224], ebx
jne 0x44d8e8
push str._GetAppDataDir_Failed_
push str.kupdate::KPathUtil::_GetAppDataDir
push 0x80
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKPathUtil.cpp
push ebx
call fcn.004030c6
add esp, 0x14
jmp 0x44d901
mov esi, str.kingsoftoffice6
push esi
call fcn.00495461
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.0040136b
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
call fcn.0040267b
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00401129
mov eax, edi
call fcn.00495af3
ret
Function at 0x44e508
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x4bce7b
call fcn.00495a70
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0044e109
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040261f
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401129
push 0x5c
push 0x2f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0044d4e7
add esp, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040261f
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401129
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x44e58c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0044d925
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040261f
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401129
or dword [ebp - 0x4c], 0xffffffff
push 2
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409723
mov ebx, eax
mov esi, 0x4d5fcc
push esi
mov byte [ebp - 4], 4
call fcn.00495461
pop ecx
push eax
push esi
push dword [ebx + 0x10]
mov ecx, ebx
push edi
call fcn.00408851
mov ebx, eax
neg ebx
sbb bl, bl
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00401129
inc bl
je 0x44e63d
xor ebx, ebx
cmp dword [ebp - 0x1c], edi
jbe 0x44e622
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00411549
cmp word [eax], 0x5c
jne 0x44e61f
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x44e608
jmp 0x44e622
mov dword [ebp - 0x4c], ebx
mov ebx, 0x4c1660
push ebx
call fcn.00495461
pop ecx
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00402357
jmp 0x44e640
mov eax, dword [ebp - 0x4c]
push esi
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x4c], 0x5c
call fcn.00402357
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44e6c1
mov dword [ebp - 0x4c], 0x5c
push ebx
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409723
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x44e67e
lea eax, [ebp - 0x48]
push eax
call fcn.0044d397
pop ecx
test al, al
jne 0x44e6a1
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x44e695
lea eax, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x44e6c5
push edi
push esi
lea ecx, [ebp - 0x48]
call fcn.00401129
push esi
inc ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402357
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44e664
xor ebx, ebx
jmp 0x44e6e5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, edi
jle 0x44e6d9
and eax, 0xffff
or eax, 0x80070000
push edi
push esi
lea ecx, [ebp - 0x48]
mov ebx, eax
call fcn.00401129
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, ebx
call fcn.00495af3
ret
Function at 0x44eafa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x502cd1], 0
jne 0x44eb5c
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00495b20
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov byte [0x502cd1], 1
sbb al, al
inc al
mov byte [0x502cd0], al
jmp 0x44eb61
mov al, byte [0x502cd0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004959f8
leave
ret

Function at 0x44eb6d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x44ec5a
cmp word [ebx], 0
je 0x44ec5a
push ebx
push str.RunProcess:__s.
mov edi, str.kupdate::KProcessUtils::RunProcess
push edi
push 0x16f
mov esi, str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push esi
push 7
call fcn.004030c6
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call fcn.00495b20
xor eax, eax
add esp, 0x24
mov dword [ebp - 0x38], 0x500
cmp dword [ebp + 0x10], eax
je 0x44ebd5
mov dword [ebp - 0x38], 0x540
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x44ec30
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x44ec13
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push 0x4d619c
push edi
push 0x180
push esi
push 0
call fcn.004030c6
add esp, 0x18
mov eax, ebx
jmp 0x44ec7d
cmp dword [ebp + 0x10], 0
je 0x44ec56
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x44ec7d
push str.Invalid_Arg.
push str.kupdate::KProcessUtils::RunProcess
push 0x16b
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.004030c6
add esp, 0x14
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ec82
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x44ecfe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x44ecdb
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_allocate_sid:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x1bb
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.004030c6
add esp, 0x18
xor al, al
jmp 0x44ed57
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x44ed46
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x44ed24
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_check_token_group:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x1c1
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.004030c6
add esp, 0x18
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 0x10], ebx
setne al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret