joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x420fe2
cmp ebx, 0xffffffff
je 0x420fe2
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x420f75
xor eax, eax
jmp 0x420fa1
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x420f88
xor eax, eax
jmp 0x420fa1
lea esi, [eax + eax]
mov eax, esi
call fcn.004bb0f0
mov eax, esp
push 0xfde9
push esi
push edi
push eax
call fcn.00409630
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x420fa6
sub ecx, esi
push 0
mov esi, ecx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x420fdb
cmp dword [ebp - 8], esi
jne 0x420fdb
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x420fe4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 8
Function at 0x421550
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526067
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x34], ebx
cmp dword [esi + 4], ebx
je 0x4216b0
cmp byte [esi + 8], bl
jne 0x4216b0
lea ecx, [esi + 0x14]
mov byte [esi + 8], 1
call fcn.0044f860
lea ecx, [esi + 0x2c]
call fcn.0041ef90
test byte [0x593b48], 1
jne 0x4215d8
or dword [0x593b48], 1
mov ecx, 0x593b1c
mov dword [ebp - 4], ebx
call fcn.00408fd0
push 0x534990
call fcn.004b9fdc
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.runon
mov ecx, 0x593b1c
call fcn.00408780
test al, al
je 0x421626
lea eax, [ebp - 0x2c]
push str.runon
push eax
call fcn.004014d0
mov ecx, eax
call fcn.00408870
mov ecx, dword [eax + 0x10]
push 5
push str.onkso
push ecx
mov ebx, 1
push 0
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
call fcn.004010d0
mov byte [ebp - 0x2d], bl
test eax, eax
je 0x42162a
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x42165c
cmp dword [ebp - 0x18], 8
jb 0x421648
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, dword [esi + 4]
test eax, eax
je 0x4216a3
movzx ecx, byte [ebp - 0x2d]
neg ecx
sbb ecx, ecx
and ecx, 0xffff8acf
add ecx, 0x7530
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x421692
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 4], 0
push 0xbb8
lea ecx, [esi + 0x24]
call fcn.0045eaf0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x4223f0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526271
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x828
lea eax, [ebp - 0x854]
push 0
push eax
mov esi, ecx
call fcn.004ba010
add esp, 0xc
mov dword [ebp - 0x854], 0xffffffff
cmp dword [esi + 0xc], edi
je 0x422466
test edi, edi
je 0x422454
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x422463
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xc], edi
mov ebx, 1
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0041d2b0
add esp, 8
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], edi
je 0x42249a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42248e
lea eax, [ebp - 0x2c]
push eax
push str.WPS_OFFICE_ROOT_DIR
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov dword [ebp - 0x858], edi
lea ecx, [ebp - 0x858]
push ecx
mov byte [ebp - 4], bl
call fcn.00466300
add esp, 4
cmp eax, edi
jl 0x422563
mov eax, dword [ebp - 0x858]
mov edx, dword [eax]
lea edi, [esi + 0x34]
push edi
push eax
mov eax, dword [edx + 0xc]
call eax
test eax, eax
js 0x422563
test byte [0x594518], bl
jne 0x422500
or dword [0x594518], ebx
mov ecx, 0x593b50
mov byte [ebp - 4], 2
call fcn.004112c0
push 0x5349a0
call fcn.004b9fdc
add esp, 4
mov byte [ebp - 4], bl
mov edx, dword [0x593b50]
mov eax, dword [edx + 0x78]
lea ecx, [ebp - 0x854]
push ecx
push 0x593b50
call eax
test eax, eax
jns 0x42253a
push eax
push str.Failed_GetProxyInfo:_0x_08x.
push str.kupdate::KWpsUpdateImpl::Init
push 0x826
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.0041a9b0
add esp, 0x18
lea ecx, [ebp - 0x854]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044f7e0
lea ecx, [esi + 0x2c]
call fcn.0041ee70
mov edi, dword [edi]
push edi
call fcn.004209a0
mov ecx, eax
call fcn.0045e670
mov byte [esi + 9], bl
mov eax, dword [ebp - 0x858]
movzx esi, byte [esi + 9]
mov byte [ebp - 4], 0
test eax, eax
je 0x42257d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp dword [ebp - 0x18], 8
jb 0x42258f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b9008
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4
Function at 0x4225b0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525d38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.0041d2b0
add esp, 8
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], esi
jae 0x422600
lea eax, [ebp - 0x2c]
push eax
call fcn.0041b230
add esp, 4
test al, al
jne 0x42261c
cmp dword [ebp - 0x18], esi
jb 0x42269e
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x422696
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x422672
push 0x10
push str.Kingsoft_WPS_UpdateService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x42266a
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4226ba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x420
je 0x4226ba
push esi
call ebx
push esi
call ebx
mov esi, 8
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x42267d
lea eax, [ebp - 0x2c]
push 0
push str._Service
push eax
call fcn.00448d80
add esp, 0xc
cmp dword [ebp - 0x18], esi
jb 0x42269e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [ebp - 0x18], 8
jb 0x42269e
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x422696
Function at 0x424390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bad8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov esi, ecx
lea ecx, [ebp + 0x10]
push ecx
mov ecx, esi
mov dword [ebp - 0x34], eax
call fcn.004207e0
push edi
push str._autotest__InfoName:_s__Result:BallonStart_
push str.kupdate::KWpsUpdateImpl::ShowBubbleBallon
push 0x898
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 6
mov byte [ebp - 0x30], al
call fcn.0041a9b0
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
add esp, 0x18
push ebx
push ecx
mov ecx, dword [ebp - 0x34]
push ecx
push eax
call edx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
push eax
push ebx
push edi
mov ecx, esi
call fcn.00423fe0
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x424440
lea eax, [ebp - 0x2c]
push eax
push edi
push str._autotest__InfoName:_s__Result:_s_
push str.kupdate::KWpsUpdateImpl::ShowBubbleBallon
push 0x89d
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 6
call fcn.0041a9b0
add esp, 0x1c
cmp dword [ebp - 0x18], esi
jb 0x424471
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527b52
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov byte [esi + 0x44], bl
mov dword [esi + 4], vtable.IInstallDlg.0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], vtable.kupdate::KUpdateShell.2.0
mov dword [esi + 4], vtable.kupdate::KUpdateShell.1.0
mov dword [esi + 8], vtable.kupdate::KUpdateShell.0
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 3
call fcn.00488a00
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebx
push ebx
lea ecx, [esi + 8]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x4fc], ebx
mov dword [esi + 0x4f8], ebx
call fcn.004301a0
mov eax, dword [esi + 0xc]
push str.updMainWindow
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x60
call fcn.004b9d21
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4313d5
mov ecx, eax
call fcn.0047d220
jmp 0x4313d7
xor eax, eax
mov dword [esi + 0x4f4], eax
mov dword [esi + 0x500], ebx
call fcn.0051d060
mov dword [esi + 0x504], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4319d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527be8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [esi + 0xf4], 0
jne 0x431af8
mov ebx, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f89
push 0
call ebx
mov dword [esi + 0xf4], eax
test eax, eax
jne 0x431af8
mov eax, dword [0x5921b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5921b0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x431a67
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00420d60
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004bc9dc
add esp, 8
test eax, eax
js 0x431b0a
cmp eax, dword [esi - 8]
jg 0x431b0a
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0xd
mov word [esi + eax*2], cx
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call fcn.00422840
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x431ace
push 0x6a
push esi
call ebx
test eax, eax
je 0x431ace
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xf4], eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431af8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004044f0
int3

Function at 0x436850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4368ca
mov edx, dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4390f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52808e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.0042edc0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
sub eax, 0x10
push eax
mov dword [ebp - 4], 0
call fcn.0042edc0
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x24], ecx
mov edx, dword [edi + 0x28]
mov dword [esi + 0x28], edx
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x34], edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov eax, dword [edi + 0x40]
sub eax, 0x10
push eax
mov byte [ebp - 4], 1
call fcn.0042edc0
add eax, 0x10
mov dword [esi + 0x40], eax
mov edx, dword [edi + 0x44]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov ecx, dword [edi + 0x64]
mov dword [esi + 0x64], ecx
mov edx, dword [edi + 0x68]
mov dword [esi + 0x68], edx
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov ecx, dword [edi + 0x70]
mov dword [esi + 0x70], ecx
mov edx, dword [edi + 0x74]
mov dword [esi + 0x74], edx
mov edi, dword [edi + 0x78]
mov byte [ebp - 4], 2
sub edi, 0x10
push edi
call fcn.0042edc0
add esp, 0x10
add eax, 0x10
mov dword [esi + 0x78], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43b940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 0xf4]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], ebx
test eax, eax
je 0x43b985
push eax
call dword [sym.imp.USER32.dll_DestroyCursor]
mov dword [esi + 0xf4], 0
mov ecx, esi
call fcn.004319d0
push ebx
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x20
ja 0x43bab5
lea eax, [ebp - 0x414]
push eax
push 0x54882c
push 0x80000000
mov ecx, esi
call fcn.00436850
test eax, eax
jne 0x43bab5
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push str._shellopencommand
lea ecx, [ebp - 0x414]
push ecx
call ebx
lea edx, [ebp - 0x414]
push edx
mov eax, edx
push eax
push 0x80000000
mov ecx, esi
call fcn.00436850
test eax, eax
jne 0x43bab5
lea ecx, [ebp - 0x414]
push str.__1_
push ecx
call fcn.004ba8ed
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
add esp, 8
test esi, esi
jne 0x43ba4f
lea edx, [ebp - 0x414]
push 0x5487f0
push edx
call fcn.004ba8ed
mov esi, eax
add esp, 8
test esi, esi
jne 0x43ba48
lea eax, [ebp - 0x414]
push eax
call edi
lea esi, [ebp + eax*2 - 0x416]
jmp 0x43ba54
xor ecx, ecx
mov word [esi], cx
jmp 0x43ba54
xor edx, edx
mov word [esi], dx
push 0x53e978
push esi
call ebx
mov eax, dword [ebp - 0x41c]
push eax
push esi
call ebx
lea ecx, [ebp - 0x414]
push ecx
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x43ba89
mov ecx, dword [ebp - 0x418]
xor eax, eax
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
jmp 0x43bab7
lea esi, [eax + eax]
mov eax, esi
call fcn.004bb0f0
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x414]
push edx
push eax
call fcn.00409630
mov ecx, dword [ebp - 0x418]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
jmp 0x43bab7
mov eax, edi
lea esp, [ebp - 0x428]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 8
Function at 0x447670
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [esi*4 + 2]
mov eax, 0xaaaaaaab
mul ecx
push edi
mov edi, dword [ebp + 0x10]
shr edx, 1
push edx
mov ecx, edi
call fcn.0041f160
mov eax, dword [ebp + 8]
mov edx, dword [edi]
mov bl, byte [eax]
lea ecx, [eax + esi]
mov dword [ebp - 4], edx
mov edi, eax
mov dword [ebp + 8], ecx
mov esi, 8
cmp eax, ecx
jae 0x447725
mov al, bl
cmp esi, 6
jbe 0x4476c1
and al, 0x3f
shr bl, 6
sub esi, 6
jmp 0x4476f7
inc edi
cmp edi, ecx
jae 0x4476ca
mov bl, byte [edi]
jmp 0x4476cc
xor bl, bl
mov edx, 6
sub edx, esi
mov byte [ebp + 0xf], bl
je 0x4476f4
mov cl, byte [edx*4 + 0x549504]
and cl, bl
movzx ebx, cl
mov ecx, esi
shl bl, cl
mov cl, dl
or al, bl
mov bl, byte [ebp + 0xf]
shr bl, cl
mov ecx, dword [ebp + 8]
add esi, 2
cmp al, 0xa
jae 0x4476ff
add al, 0x30
jmp 0x447718
cmp al, 0x24
jae 0x447707
add al, 0x37
jmp 0x447718
cmp al, 0x3e
jae 0x44770f
add al, 0x3d
jmp 0x447718
setne al
dec al
and al, 0xce
add al, 0x5f
mov edx, dword [ebp - 4]
mov byte [edx], al
inc edx
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x4476b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448d00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x594e21], 0
jne 0x448d6d
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004ba010
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov byte [0x594e21], 1
setae al
mov byte [0x594e20], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [0x594e20]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret

Function at 0x448d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x448e7b
cmp word [esi], bx
je 0x448e7b
push edi
push esi
push str.RunProcess:__s.
push str.kupdate::KProcessUtils::RunProcess
push 0x172
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 7
call fcn.0041a9b0
push 0x38
lea eax, [ebp - 0x38]
push ebx
push eax
mov dword [ebp - 0x3c], 0x3c
call fcn.004ba010
mov edi, dword [ebp + 0x10]
add esp, 0x24
mov dword [ebp - 0x38], 0x500
cmp edi, ebx
je 0x448de6
mov dword [ebp - 0x38], 0x540
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x448e4d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x448e24
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_ShellExecuteEx:_0x_08x.
push str.kupdate::KProcessUtils::RunProcess
push 0x183
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push ebx
call fcn.0041a9b0
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, ebx
je 0x448e72
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [ebp - 4]
push edi
push ecx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x54996c
push str.kupdate::KProcessUtils::RunProcess
push 0x16e
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push ebx
call fcn.0041a9b0
add esp, 0x14
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret