joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c52a
Capabilities:
Terminate process

Disassembly:
push 0x3c
mov eax, 0x412be2
call fcn.004019d2
mov eax, ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [eax + 4]
call fcn.004077a7
mov eax, dword [ebp - 0x44]
xor ecx, ecx
push 4
pop edx
xor ebx, ebx
mov dword [ebp - 0x38], eax
mul edx
seto cl
mov dword [ebp - 4], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004116bd
mov edi, eax
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
pop ecx
mov dword [ebp - 0x3c], edi
cmp esi, eax
je 0x40c62a
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
lea ecx, [esi + 8]
mov dword [eax], ebx
call fcn.00406d18
test eax, eax
jne 0x40c618
lea ecx, [esi + 8]
call fcn.00408e4c
push eax
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40c618
lea ecx, [esi + 8]
call fcn.00406d29
test eax, eax
jne 0x40c606
lea ecx, [esi + 8]
call fcn.0040e103
test eax, eax
je 0x40c606
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 8]
call fcn.00409271
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x40c5da
mov eax, dword [eax]
push ebx
push ebx
push ebx
push str._NOTIFY_EXIT_
push eax
call fcn.0040632f
mov ecx, eax
call fcn.00406339
mov ecx, eax
call fcn.0040d5dc
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00402368
jmp 0x40c610
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov esi, dword [esi]
add dword [ebp - 0x34], 4
cmp esi, dword [ebp - 0x48]
jne 0x40c579
mov edi, dword [ebp - 0x3c]
push 0x2710
push 1
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
cmp dword [ebp - 0x38], ebx
jle 0x40c67d
mov eax, dword [edi + esi*4]
cmp eax, ebx
je 0x40c677
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40c66e
cmp dword [ebp - 0x30], 0x103
jne 0x40c66e
push ebx
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x38]
jl 0x40c642
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.004076ac
push dword [ebp - 0x48]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00401d81
ret

Function at 0x40dbcd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov dword [ebp - 0x98], 0x94
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00401d90
leave
ret
Function at 0x40df0a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
jne 0x40df2d
xor eax, eax
jmp 0x40dfcb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 1
push eax
mov dword [ebp - 0x10], ebx
call esi
push dword [ebp - 0x10]
call fcn.004116bd
pop ecx
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push eax
push 1
push dword [edi]
call esi
test eax, eax
jne 0x40df65
push dword [ebp - 0x18]
jmp 0x40dfc2
mov edi, dword [ebp - 0x18]
mov esi, dword [edi]
cmp esi, ebx
je 0x40dfc1
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x40dfc1
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40dfc1
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, esi
jmp 0x40dfc9
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
xor eax, eax
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00401d90
leave
ret

Function at 0x40e0ce
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, ecx
call fcn.0040dbcd
test eax, eax
jne 0x40e0e7
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
pop esi
ret
mov ecx, esi
call fcn.0040de81
cmp eax, 2
je 0x40e0fe
cmp eax, 3
je 0x40e0fe
pop esi
jmp fcn.0040dc23
xor eax, eax
inc eax
pop esi
ret
Function at 0x40e612
Capabilities:
Enumerate processes

Disassembly:
push 0x848
mov eax, 0x413116
call fcn.004019d2
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 0x854], esi
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x848], ebx
mov dword [ebp - 0x844], ebx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp eax, ebx
je 0x40e737
cmp word [eax], bx
je 0x40e737
push 0x820
lea eax, [ebp - 0x830]
push ebx
push eax
mov dword [ebp - 0x834], 0x824
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x838], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
jne 0x40e6b5
lea eax, [ebp - 0x84c]
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0040e5d6
jmp 0x40e74d
lea ecx, [ebp - 0x834]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40e6f8
lea eax, [ebp - 0x84c]
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0040e5d6
mov dword [ebp - 0x83c], edi
cmp dword [ebp - 0x838], ebx
je 0x40e753
push dword [ebp - 0x838]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e753
push dword [ebp - 0x850]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x40e723
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x84c]
call fcn.00406661
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x838]
call sub.KERNEL32.dll_Process32NextW
jmp 0x40e6c2
lea eax, [ebp - 0x84c]
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0040e5d6
mov dword [ebp - 0x83c], edi
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], bl
call fcn.00409047
mov eax, esi
call fcn.00401d81
ret

Function at 0x40ee0e
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 6
pop ecx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x40ee68
cmp dword [ebp - 0x1c], 1
je 0x40ee6c
cmp esi, dword [ebp + 0xc]
ja 0x40ee6c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
lea esi, [esi + eax + 0xa]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40ee42
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 1
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d90
leave
ret 8
Function at 0x40ee86
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
and dword [ebp - 0x20], 0
push esi
push edi
mov dword [ebp - 0x28], eax
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
xor edx, edx
mov ecx, 0xc8
div ecx
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x24], eax
jmp 0x40ef17
cmp dword [ebp - 0x24], 0
jle 0x40ef22
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x40eef8
cmp eax, 2
je 0x40eee9
cmp eax, 3
jbe 0x40ef09
cmp eax, 7
ja 0x40ef09
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x40ef09
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40ef3e
dec dword [ebp - 0x24]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x40eecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401d90
leave
ret 0x10
xor eax, eax
jmp 0x40ef2e

Function at 0x40ef42
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x20], 0
push ebx
push esi
push edi
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x3e8
mov edi, 0xc8
xor edx, edx
mov ecx, edi
div ecx
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov dword [ebp - 0x28], 0x16
mov dword [ebp - 0x24], eax
jmp 0x40efa2
cmp dword [ebp - 0x24], 0
jle 0x40efb5
cmp dword [ebp - 0x1c], 1
je 0x40efaf
dec dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push ebx
call esi
test eax, eax
jne 0x40ef8c
jmp 0x40efb5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d90
leave
ret 8
Function at 0x40f089
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], 0x3c
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], str.runas
jb 0x40f0c7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40f0d5
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40f134
push 0x1388
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40f121
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
mov dword [ebp + 8], eax
cmp dword [ebp - 4], esi
je 0x40f12f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
jmp 0x40f140
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
pop esi
leave
ret

Function at 0x40f143
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.00406d6d
test al, al
je 0x40f191
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 5
test ebx, ebx
je 0x40f18a
cmp ebx, 0xffffffff
je 0x40f18a
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x40f244
push edi
push 0xf01ff
push str.wpscloudsvr
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.00406d6d
test al, al
je 0x40f1e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
shl esi, 0x10
or esi, 5
test edi, edi
je 0x40f1d4
cmp edi, 0xffffffff
je 0x40f1d4
push edi
call ebx
cmp dword [ebp - 4], 0
je 0x40f1e5
cmp dword [ebp - 4], 0xffffffff
je 0x40f1e5
push dword [ebp - 4]
call ebx
mov eax, esi
jmp 0x40f243
push 0x1388
push edi
mov ecx, esi
call fcn.0040ee0e
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40f211
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x430
neg eax
sbb eax, eax
inc eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg eax
sbb eax, eax
and eax, 0xfffafffb
add eax, 0x50005
mov dword [ebp - 8], eax
test edi, edi
je 0x40f234
cmp edi, 0xffffffff
je 0x40f234
push edi
call esi
test ebx, ebx
je 0x40f240
cmp ebx, 0xffffffff
je 0x40f240
push ebx
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f41b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x828
mov eax, 0x413221
call fcn.004019d2
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x830], esi
call fcn.004021b5
push 0xffffffffffffffff
push esi
push edi
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], esi
call fcn.00403a93
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push esi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x82c]
add esp, 0xc
cmp dword [ebp - 0x818], 8
mov dword [ebp - 0x830], esi
jae 0x40f493
lea eax, [ebp - 0x82c]
lea ecx, [ebp - 0x830]
push ecx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f4e7
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push str.ImagePath
push dword [ebp - 0x830]
mov dword [ebp - 0x834], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x810]
push eax
mov ecx, ebx
call fcn.004021b5
push esi
push 1
lea ecx, [ebp - 0x82c]
call fcn.00402368
mov eax, ebx
call fcn.00401d81
ret

Function at 0x40f50b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x413445
call fcn.004019d2
mov edi, dword [ebp + 8]
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
call fcn.004021b5
push 0xffffffffffffffff
xor esi, esi
push esi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00403a93
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
jae 0x40f54a
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f58c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push str.Start
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x34]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402368
mov eax, edi
call fcn.00401d81
ret
Function at 0x40f691
Capabilities:
Check if file exists
Query service status

Disassembly:
push 0x68
mov eax, 0x41329e
call fcn.004019d2
mov dword [ebp - 0x70], ecx
push 5
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x68], edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], esi
call fcn.00406d6d
test al, al
je 0x40f6d8
cmp edi, esi
je 0x40f6d0
cmp edi, 0xffffffff
je 0x40f6d0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xa
pop eax
jmp 0x40f868
push 0x14
mov ebx, str.wpscloudsvr
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x74], esi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00406d6d
test al, al
je 0x40f71c
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f70e
cmp esi, 0xffffffff
je 0x40f70e
push esi
call ebx
test edi, edi
je 0x40f6d0
cmp edi, 0xffffffff
je 0x40f6d0
push edi
call ebx
jmp 0x40f6d0
and dword [ebp - 0x48], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40f769
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f74b
cmp esi, 0xffffffff
je 0x40f74b
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f6d0
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f6d0
push dword [ebp - 0x68]
call edi
jmp 0x40f6d0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
cmp eax, dword [ecx + 0x20]
jne 0x40f739
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004021b5
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040f50b
pop ecx
push 0
cmp eax, 4
push 1
lea ecx, [ebp - 0x2c]
sete byte [ebp - 0x69]
mov byte [ebp - 4], 1
call fcn.00402368
cmp byte [ebp - 0x69], 0
je 0x40f7d2
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f7ba
cmp esi, 0xffffffff
je 0x40f7ba
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f7cb
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f7cb
push dword [ebp - 0x68]
call edi
push 0xb
jmp 0x40f6d2
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004021b5
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.0040f5f6
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40f7f6
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
push 0
neg ebx
push 1
lea ecx, [ebp - 0x64]
sbb bl, bl
call fcn.00402368
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402368
inc bl
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x40f849
test esi, esi
je 0x40f831
cmp esi, 0xffffffff
je 0x40f831
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f842
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f842
push dword [ebp - 0x68]
call edi
push 0xd
jmp 0x40f6d2
test esi, esi
je 0x40f855
cmp esi, 0xffffffff
je 0x40f855
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f866
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f866
push dword [ebp - 0x68]
call edi
xor eax, eax
call fcn.00401d81
ret
Function at 0x40fae2
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x858
mov eax, 0x4133ab
call fcn.004019d2
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor edi, edi
lea eax, [ebp - 0x80e]
push edi
push eax
mov ebx, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x848]
call fcn.004021b5
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], edi
mov word [ebp - 0x82c], ax
mov esi, str.wpscloudsvr
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x848]
call fcn.00402ee3
cmp eax, 0xffffffff
je 0x40fc21
lea eax, [ebp - 0x864]
push eax
mov ecx, ebx
call fcn.0040f86e
push eax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 2
call fcn.0040230b
push edi
push 1
lea ecx, [ebp - 0x864]
call fcn.00402368
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x40fbbd
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fc21
cmp dword [ebp - 0x818], 8
mov ecx, dword [ebp - 0x82c]
jae 0x40fbdd
lea ecx, [ebp - 0x82c]
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x40fbf2
lea eax, [ebp - 0x848]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
push 1
lea ecx, [ebp - 0x82c]
call fcn.00402368
push edi
push 1
lea ecx, [ebp - 0x848]
call fcn.00402368
mov eax, esi
call fcn.00401d81
ret
xor esi, esi
inc esi
jmp 0x40fbfd

Function at 0x410aa2
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp byte [ecx + eax - 1], 0x3d
jne 0x410ac0
dec eax
cmp byte [ecx + eax - 1], 0x3d
je 0x410ab5
mov dword [ebp + 0xc], eax
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x410b72
push ebx
mov dword [ebp - 8], 2
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 3
sub dword [ebp - 0xc], ecx
push edi
mov edi, dword [ebp + 0x10]
movsx eax, byte [ecx + 1]
movsx edx, byte [ecx]
mov al, byte [eax + 0x4185e8]
mov dl, byte [edx + 0x4185e8]
shl dl, 2
mov bl, al
sar bl, 4
and bl, 3
or dl, bl
mov byte [esi + edi], dl
mov edx, dword [ebp - 8]
add edx, ecx
inc esi
cmp edx, dword [ebp + 0xc]
jae 0x410b5d
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x4185e8]
mov bl, dl
sar bl, 2
shl al, 4
and bl, 0xf
or bl, al
mov eax, dword [ebp - 0xc]
mov byte [esi + edi], bl
add eax, ecx
inc esi
cmp eax, dword [ebp + 0xc]
jae 0x410b5d
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
movsx eax, byte [eax + ebx + 3]
mov al, byte [eax + 0x4185e8]
and al, 0x3f
shl dl, 6
or al, dl
mov byte [esi + edi], al
inc esi
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
add ecx, 4
cmp eax, dword [ebp + 0xc]
jb 0x410ae7
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x410da3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
call fcn.004100aa
test eax, eax
je 0x410efe
test byte [0x41dee0], 1
jne 0x410de6
or dword [0x41dee0], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x41dedc], eax
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll__itow_s]
push 0xa
push 0x10
push 0x41debc
push dword [0x41dedc]
call esi
push 0xa
push 0x10
push 0x41de9c
push edi
call esi
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
mov ebx, 0x41de7c
push ebx
push eax
call esi
and dword [0x41de74], 0
add esp, 0x10
push 8
pop ecx
mov esi, str.kcrashdumper.exe
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
push eax
mov dword [0x41de78], 1
mov dword [0x41de70], 0xc
movsw word es:[edi], word [esi]
call fcn.004100aa
push eax
push str._s_s
mov esi, 0x41d670
push esi
call fcn.00410d69
add esp, 0x10
call fcn.004100b6
xor edi, edi
cmp eax, edi
jne 0x410e7b
mov eax, 0x417468
push eax
push 0x41de9c
push ebx
push 0x41debc
push esi
push str._s__pid_s__tid_s__exp_s__dumpfilename_s__callfrom1
mov ebx, 0x41c570
push ebx
call fcn.00410d86
add esp, 0x1c
push 0xa
pop ecx
push 0x41c55c
push 0x41c518
push edi
push edi
push edi
xor eax, eax
inc eax
push eax
push edi
push edi
push ebx
push esi
mov dword [0x41c518], 0x44
mov dword [0x41c544], eax
mov word [0x41c548], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [0x41c510], eax
cmp eax, edi
je 0x410efc
push 0xffffffffffffffff
push dword [0x41c55c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x41c560]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x41c55c]
call esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401d90
leave
ret
Function at 0x100141b
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.01001650
push ebx
push esi
xor ebx, ebx
xor esi, esi
call fcn.01001706
test al, al
je 0x1001447
push 0xc2000000
call fcn.010013e0
inc esi
jmp 0x10014cf
lea eax, [ebp - 1]
push eax
call fcn.01001844
cmp byte [ebp - 1], bl
je 0x10014be
push 0x10010e0
lea eax, [ebp - 0x1054]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x1001190
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10014b0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1054]
push eax
push ebx
push ebx
push 0x1001188
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x1048
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1054]
push eax
call fcn.01001871
jmp 0x10014cf
push 1
push ebx
push ebx
push 0x1001138
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, esi
pop esi
pop ebx
leave
ret