joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461465
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x4614e7
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
cmp eax, ecx
jle 0x4614cd
cmp dword [ebp - 0x14], edi
je 0x4614e7
mov ecx, dword [esi]
mov eax, ecx
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov edx, eax
sub edx, ecx
add dword [esi + 8], edx
mov dword [esi], eax
jmp 0x4614e7
cmp dword [ebp - 0x10], edi
je 0x4614e7
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov edx, eax
sub edx, ecx
add dword [esi + 0xc], edx
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004927bf
leave
ret 4

Function at 0x464d60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4f9b3c]
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.00464c3d
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 0x464eae
mov ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
push str..htm
mov edi, SysReAllocString
push edi
call fcn.0046130e
test eax, eax
jne 0x464eae
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.0046130e
test eax, eax
jne 0x464eae
lea eax, [ebp - 0x414]
push str.__1_
push eax
call fcn.0049759f
mov edi, eax
pop ecx
cmp edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
jne 0x464e54
lea eax, [ebp - 0x414]
push 0x4ccf58
push eax
call fcn.0049759f
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x464e54
lea eax, [ebp - 0x414]
push eax
call ebx
lea edi, [ebp + eax*2 - 0x416]
jmp 0x464e59
xor eax, eax
mov word [edi], ax
push 0x4cbd2c
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 0x464e7f
xor eax, eax
jmp 0x464e9b
lea esi, [eax + eax]
mov eax, esi
call fcn.00493700
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x414]
push ecx
push eax
call fcn.0040288a
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.004927bf
leave
ret 8
Function at 0x46daa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x4fd270]
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 0x46dc28
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46dc28
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46dc28
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x46dc26
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 0x46db9b
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.0046cc4f
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 0x46db7b
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x104]
cmp dword [ebp - 0x108], eax
je 0x46dc13
push dword [ebp - 0x108]
call fcn.00497565
pop ecx
jmp 0x46dc13
mov ecx, 0x1234
cmp cx, ax
jne 0x46dc13
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.0046cc4f
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x46dbed
push eax
call fcn.00497565
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 0x46dc13
and dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x46db12
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop esi
call fcn.004927bf
leave
ret 4
Function at 0x473af4
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x4b8470
call fcn.0049355c
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 0x473a8b
push esi
push esi
mov dword [ebp - 4], esi
mov dword [0x4f6284], 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 0x4785b6
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 0x473ba6
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sar ecx, 4
test ecx, ecx
je 0x473ba6
xor edi, edi
cmp eax, esi
jbe 0x473ba6
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.00472e34
test eax, eax
jne 0x473b94
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
inc edi
sar eax, 2
cmp edi, eax
jb 0x473b67
jmp 0x473ba6
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x473ba3
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.004820f8
lea ecx, [ebp - 0x2c]
call fcn.004820f8
mov eax, esi
call fcn.00493634
ret 0xc
Function at 0x473c1c
Capabilities:
Get http document via iwebbrowser2

Disassembly:
push 0x18
mov eax, 0x4b84ab
call fcn.0049355c
mov edi, ecx
push dword [ebp + 8]
call fcn.0046c3d1
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x473d21
push dword [edi + 0x74]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x14], eax
call fcn.0047391e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x473c69
mov esi, 0x80004005
jmp 0x473d21
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 0x4d6868
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0046ca7e
mov esi, eax
cmp esi, ebx
jl 0x473d06
mov esi, dword [ebp - 0x10]
cmp dword [ebp + 8], ebx
jne 0x473d2b
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 0x473d06
cmp dword [ebp + 0xc], ebx
je 0x473d06
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 0x473cf5
push dword [ebp + 8]
lea ecx, [edi + 0x80]
call fcn.0046c7b2
mov esi, eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x473d06
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 0x473d21
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00493634
ret 8
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x473ca3
push 0x8007000e
call fcn.00434c83
int3
Function at 0x4767fc
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
test edi, edi
je 0x476808
lea eax, [edi + 0x58]
jmp 0x47680a
xor eax, eax
push esi
push eax
push 0
push 0x23a
lea ecx, [edi + 4]
call fcn.00476708
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.00473c1c
pop esi
test eax, eax
jns 0x476861
push 8
mov ecx, edi
call fcn.0046c91d
xor eax, eax
pop edi
ret 0x10

Function at 0x476c09
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x4b88c3
call fcn.0049355c
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0045d930
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00474808
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0045b32f
mov ebx, dword [ebp + 0xc]
or eax, 0xffffffff
mov word [ebx], ax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push str.newNeedNavigate
lea ecx, [edi - 0x44]
mov byte [ebp - 4], 2
call fcn.00475661
cmp eax, esi
je 0x476c94
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push str.needNavigate
lea ecx, [edi - 0x44]
call fcn.00475661
cmp eax, esi
jne 0x476cdc
cmp word [ebp - 0x30], 0xb
jne 0x476cdc
cmp word [ebp - 0x28], 0xffff
jne 0x476cdc
push dword [ebp + 8]
push str.OnNavigate:_s
push str.CWebBalloonDlg::OnNavigate
push 0xe6
push str.s:_func_improvement_20150701_branchcoding_supportwpsupdateupdateclientupdateui_balloonwebballoon.h
push 4
call fcn.0042f683
add esp, 0x18
push 1
push esi
push esi
push dword [ebp + 8]
or eax, 0xffffffff
push str.open
push esi
mov word [ebx], ax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x20]
call fcn.00473be7
xor eax, eax
call fcn.00493634
ret 8
Function at 0x4772da
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x5c
mov eax, 0x4b89e3
call fcn.004935c5
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x58], ecx
cmp dword [ecx + 0xfc], eax
je 0x4773d8
mov ecx, dword [ebx + 4]
cmp ecx, 0x201
jne 0x4773e9
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
movzx edx, word [ebx + 0xc]
mov dword [ebp - 4], eax
movzx eax, word [ebx + 0xe]
push 7
mov dword [ebp - 0x54], eax
xor eax, eax
pop ecx
mov word [ebp - 0x50], ax
lea edi, [ebp - 0x4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
push edx
mov esi, 0x4c5eb0
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x50]
push 0xf
push eax
call fcn.0049372c
push dword [ebp - 0x54]
lea eax, [ebp - 0x30]
push esi
push 0xf
push eax
call fcn.0049372c
add esp, 0x20
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
call fcn.0045d930
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00474808
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0045b32f
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.0045d930
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00474808
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0045b32f
mov ecx, dword [ebp - 0x58]
push 0
lea eax, [ebp - 0x68]
push eax
push str.MouseDownNotify
add ecx, 0x28
call fcn.00475661
lea ecx, [ebp - 0x68]
call fcn.00473be7
mov ecx, dword [ebp - 0x58]
push ebx
call fcn.0046ca55
call fcn.00493648
ret 4
cmp ecx, 0x20a
jne 0x477408
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4773d8
xor eax, eax
inc eax
jmp 0x4773e1
cmp ecx, 0x100
jne 0x4773d8
mov eax, dword [ebx + 8]
cmp eax, 0x1b
je 0x477403
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, 0x8000
cmp eax, 0x6b
jne 0x477431
push 0x11
call esi
test di, ax
jne 0x477403
cmp dword [ebx + 8], 0xbb
jne 0x477443
push 0x11
call esi
test di, ax
jne 0x477403
cmp dword [ebx + 8], 0x6d
jne 0x477452
push 0x11
call esi
test di, ax
jne 0x477403
cmp dword [ebx + 8], 0xbd
jne 0x4773d8
push 0x11
call esi
test di, ax
jmp 0x477401
Function at 0x4789cd
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x4b8470
call fcn.0049355c
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 0x478964
push esi
push esi
mov dword [ebp - 4], esi
mov dword [0x4f6220], 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 0x4785b6
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 0x478a7f
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sar ecx, 4
test ecx, ecx
je 0x478a7f
xor edi, edi
cmp eax, esi
jbe 0x478a7f
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.00478708
test eax, eax
jne 0x478a6d
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
inc edi
sar eax, 2
cmp edi, eax
jb 0x478a40
jmp 0x478a7f
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x478a7c
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.004820f8
lea ecx, [ebp - 0x2c]
call fcn.004820f8
mov eax, esi
call fcn.00493634
ret 0xc

Function at 0x4795c1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4f867c], 8
mov ecx, dword [ebp + 8]
mov eax, dword [0x4f8668]
push esi
mov esi, dword [ebp + 0xc]
jae 0x4795ee
mov eax, 0x4f8668
push eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x4bf8f0
push ecx
push 0x4cfa74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x804]
push eax
call fcn.00493091
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call fcn.0042e40f
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004927bf
leave
ret 8
Function at 0x47b47b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
je 0x47b5b0
cmp word [edi], bx
je 0x47b5b0
cmp dword [ebp + 8], 0xffffffff
je 0x47b5b0
push esi
push edi
mov dword [ebp + 0xc], ebx
call fcn.00493091
mov esi, eax
add esi, esi
pop ecx
mov dword [ebp - 4], edi
je 0x47b5aa
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x14
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.00492b40
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push ebx
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47b4ef
call edi
cmp eax, 0x3e5
jne 0x47b529
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47b54b
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x47b57c
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
sub esi, eax
cmp esi, ebx
ja 0x47b4c1
jmp 0x47b5aa
call edi
cmp eax, ebx
jle 0x47b539
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x4be5f0
push str.kupdate::KIPCMessage::SendIPCMessage
mov dword [ebp + 0xc], eax
push 0x35
jmp 0x47b59c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.0047b420
mov eax, 0x800705b4
push eax
push str.WaitForSingleObject_timeout.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x3c
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKIpcMessage.cpp
push ebx
mov dword [ebp + 0xc], eax
call fcn.0042f683
add esp, 0x20
jmp 0x47b5aa
call edi
cmp eax, ebx
jle 0x47b58c
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_GetOverlappedResult:_0x_08x.
push str.kupdate::KIPCMessage::SendIPCMessage
mov dword [ebp + 0xc], eax
push 0x43
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKIpcMessage.cpp
push ebx
call fcn.0042f683
add esp, 0x18
mov eax, dword [ebp + 0xc]
pop esi
jmp 0x47b5cf
push str.Invalid_Args.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x26
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKIpcMessage.cpp
push ebx
call fcn.0042f683
add esp, 0x14
mov eax, 0x80070057
pop edi
pop ebx
leave
ret

Function at 0x47b6a8
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 0x47b6c2
test al, 0x10
jne 0x47b6c2
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x47b6c6
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 0x47b6e0
test al, 0x10
je 0x47b6e0
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x47b6e4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x47b6f8
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0xc], 0
jne 0x47b70e
cmp eax, 2
je 0x47b6f4
cmp eax, 3
je 0x47b6f4
test eax, eax
jle 0x47b71c
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret
Function at 0x47c7fe
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x4b9447
call fcn.004935c5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042e48d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0047c349
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0042e4be
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.0042e109
push 0x5c
push 0x2f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0047b863
add esp, 0x10
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0042e4be
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.0042e109
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47c882
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0047bb65
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0042e4be
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.0042e109
or dword [ebp - 0x4c], 0xffffffff
push 2
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042ff7b
mov ebx, eax
mov esi, 0x4d097c
push esi
mov byte [ebp - 4], 4
call fcn.00493091
pop ecx
push eax
push esi
push dword [ebx + 0x10]
mov ecx, ebx
push edi
call fcn.0042fb7e
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.0042e109
inc bl
je 0x47c933
xor ebx, ebx
cmp dword [ebp - 0x1c], edi
jbe 0x47c918
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0043e909
cmp word [eax], 0x5c
jne 0x47c915
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x47c8fe
jmp 0x47c918
mov dword [ebp - 0x4c], ebx
mov ebx, 0x4be56c
push ebx
call fcn.00493091
pop ecx
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.0042e06a
jmp 0x47c936
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.0042e06a
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47c9b7
mov dword [ebp - 0x4c], 0x5c
push ebx
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042ff7b
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x47c974
lea eax, [ebp - 0x48]
push eax
call fcn.0047b6c6
pop ecx
test al, al
jne 0x47c997
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x47c98b
lea eax, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x47c9bb
push edi
push esi
lea ecx, [ebp - 0x48]
call fcn.0042e109
push esi
inc ebx
push ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0042e06a
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47c95a
xor ebx, ebx
jmp 0x47c9db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x47c9cf
and eax, 0xffff
or eax, 0x80070000
push edi
push esi
lea ecx, [ebp - 0x48]
mov ebx, eax
call fcn.0042e109
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.0042e109
mov eax, ebx
call fcn.00493648
ret
Function at 0x47d0fa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4fcaf9], 0
jne 0x47d15c
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00492b40
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov byte [0x4fcaf9], 1
sbb al, al
inc al
mov byte [0x4fcaf8], al
jmp 0x47d161
mov al, byte [0x4fcaf8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004927bf
leave
ret

Function at 0x47d16d
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 0x47d25d
cmp word [ebx], 0
je 0x47d25d
push ebx
push str.RunProcess:__s.
mov edi, str.kupdate::KProcessUtils::RunProcess
push edi
push 0x171
mov esi, str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKProcessUtils.cpp
push esi
push 7
call fcn.0042f683
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call fcn.00492b40
xor eax, eax
add esp, 0x24
mov dword [ebp - 0x38], 0x500
cmp dword [ebp + 0x10], eax
je 0x47d1d5
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 0x47d233
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x47d213
and eax, 0xffff
or eax, 0x80070000
push ebx
push eax
push str.Failed_ShellExecuteEx:_0x_08x._File:__s
push edi
push 0x182
push esi
push 0
mov dword [ebp + 8], eax
call fcn.0042f683
mov eax, dword [ebp + 8]
add esp, 0x1c
jmp 0x47d280
cmp dword [ebp + 0x10], 0
je 0x47d259
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 0x47d280
push str.Invalid_Arg.
push str.kupdate::KProcessUtils::RunProcess
push 0x16d
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateutilKProcessUtils.cpp
push 0
call fcn.0042f683
add esp, 0x14
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret