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

Disassembly:
push 0x3c
mov eax, 0x4127f7
call fcn.004019d4
mov eax, ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [eax + 4]
call fcn.004073d7
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.00411359
mov edi, eax
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
pop ecx
mov dword [ebp - 0x3c], edi
cmp esi, eax
je 0x40c255
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
lea ecx, [esi + 8]
mov dword [eax], ebx
call fcn.00406901
test eax, eax
jne 0x40c243
lea ecx, [esi + 8]
call fcn.004068c5
push eax
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40c243
lea ecx, [esi + 8]
call fcn.00406912
test eax, eax
jne 0x40c231
lea ecx, [esi + 8]
call fcn.004068e3
test eax, eax
je 0x40c231
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 8]
call fcn.00406cef
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x40c205
mov eax, dword [eax]
push ebx
push ebx
push ebx
push str._NOTIFY_EXIT_
push eax
call fcn.00405ed6
mov ecx, eax
call fcn.00405ee0
mov ecx, eax
call fcn.0040d207
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040236a
jmp 0x40c23b
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 0x40c1a4
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 0x40c2a8
mov eax, dword [edi + esi*4]
cmp eax, ebx
je 0x40c2a2
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40c299
cmp dword [ebp - 0x30], 0x103
jne 0x40c299
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 0x40c26d
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.004072dc
push dword [ebp - 0x48]
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.00401d83
ret

Function at 0x40d7f8
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.00401d92
leave
ret
Function at 0x40db35
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 0x40db58
xor eax, eax
jmp 0x40dbf6
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.00411359
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 0x40db90
push dword [ebp - 0x18]
jmp 0x40dbed
mov edi, dword [ebp - 0x18]
mov esi, dword [edi]
cmp esi, ebx
je 0x40dbec
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x40dbec
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 0x40dbec
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 0x40dbf4
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.00401d92
leave
ret

Function at 0x40dcf9
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, ecx
call fcn.0040d7f8
test eax, eax
jne 0x40dd12
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
pop esi
ret
mov ecx, esi
call fcn.0040daac
cmp eax, 2
je 0x40dd29
cmp eax, 3
je 0x40dd29
pop esi
jmp fcn.0040d84e
xor eax, eax
inc eax
pop esi
ret
Function at 0x40e239
Capabilities:
Enumerate processes

Disassembly:
push 0x848
mov eax, 0x412d06
call fcn.004019d4
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 0x40e35e
cmp word [eax], bx
je 0x40e35e
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 0x40e2dc
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.0040e1fd
jmp 0x40e374
lea ecx, [ebp - 0x834]
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40e31f
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.0040e1fd
mov dword [ebp - 0x83c], edi
cmp dword [ebp - 0x838], ebx
je 0x40e37a
push dword [ebp - 0x838]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e37a
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 0x40e34a
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x84c]
call fcn.00406242
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x838]
call sub.KERNEL32.dll_Process32NextW
jmp 0x40e2e9
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.0040e1fd
mov dword [ebp - 0x83c], edi
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], bl
call fcn.004060e1
mov eax, esi
call fcn.00401d83
ret

Function at 0x40ea35
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 0x40ea8f
cmp dword [ebp - 0x1c], 1
je 0x40ea93
cmp esi, dword [ebp + 0xc]
ja 0x40ea93
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 0x40ea69
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.00401d92
leave
ret 8
Function at 0x40eaad
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 0x40eb3e
cmp dword [ebp - 0x24], 0
jle 0x40eb49
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x40eb1f
cmp eax, 2
je 0x40eb10
cmp eax, 3
jbe 0x40eb30
cmp eax, 7
ja 0x40eb30
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x40eb30
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40eb65
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 0x40eaf3
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.00401d92
leave
ret 0x10
xor eax, eax
jmp 0x40eb55

Function at 0x40eb69
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 0x40ebc9
cmp dword [ebp - 0x24], 0
jle 0x40ebdc
cmp dword [ebp - 0x1c], 1
je 0x40ebd6
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 0x40ebb3
jmp 0x40ebdc
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.00401d92
leave
ret 8
Function at 0x40ecb0
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 0x40ecee
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40ecfc
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 0x40ed5b
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 0x40ed48
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
mov dword [ebp + 8], eax
cmp dword [ebp - 4], esi
je 0x40ed56
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
jmp 0x40ed67
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
pop esi
leave
ret

Function at 0x40ed6a
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.00406956
test al, al
je 0x40edb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 5
test ebx, ebx
je 0x40edb1
cmp ebx, 0xffffffff
je 0x40edb1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x40ee6b
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.00406956
test al, al
je 0x40ee10
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 0x40edfb
cmp edi, 0xffffffff
je 0x40edfb
push edi
call ebx
cmp dword [ebp - 4], 0
je 0x40ee0c
cmp dword [ebp - 4], 0xffffffff
je 0x40ee0c
push dword [ebp - 4]
call ebx
mov eax, esi
jmp 0x40ee6a
push 0x1388
push edi
mov ecx, esi
call fcn.0040ea35
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40ee38
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 0x40ee5b
cmp edi, 0xffffffff
je 0x40ee5b
push edi
call esi
test ebx, ebx
je 0x40ee67
cmp ebx, 0xffffffff
je 0x40ee67
push ebx
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f042
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x828
mov eax, 0x412e34
call fcn.004019d4
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.004021b7
push 0xffffffffffffffff
push esi
push edi
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], esi
call fcn.004039b1
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 0x40f0ba
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 0x40f10e
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.004021b7
push esi
push 1
lea ecx, [ebp - 0x82c]
call fcn.0040236a
mov eax, ebx
call fcn.00401d83
ret

Function at 0x40f132
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x41307b
call fcn.004019d4
mov edi, dword [ebp + 8]
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
call fcn.004021b7
push 0xffffffffffffffff
xor esi, esi
push esi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.004039b1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
jae 0x40f171
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 0x40f1b3
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.0040236a
mov eax, edi
call fcn.00401d83
ret
Function at 0x40f2b8
Capabilities:
Check if file exists
Query service status

Disassembly:
push 0x68
mov eax, 0x412ede
call fcn.004019d4
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.00406956
test al, al
je 0x40f2ff
cmp edi, esi
je 0x40f2f7
cmp edi, 0xffffffff
je 0x40f2f7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xa
pop eax
jmp 0x40f48f
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.00406956
test al, al
je 0x40f343
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f335
cmp esi, 0xffffffff
je 0x40f335
push esi
call ebx
test edi, edi
je 0x40f2f7
cmp edi, 0xffffffff
je 0x40f2f7
push edi
call ebx
jmp 0x40f2f7
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 0x40f390
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f372
cmp esi, 0xffffffff
je 0x40f372
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f2f7
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f2f7
push dword [ebp - 0x68]
call edi
jmp 0x40f2f7
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x70]
cmp eax, dword [ecx + 0x20]
jne 0x40f360
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004021b7
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040f132
pop ecx
push 0
cmp eax, 4
push 1
lea ecx, [ebp - 0x2c]
sete byte [ebp - 0x69]
mov byte [ebp - 4], 1
call fcn.0040236a
cmp byte [ebp - 0x69], 0
je 0x40f3f9
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x40f3e1
cmp esi, 0xffffffff
je 0x40f3e1
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f3f2
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f3f2
push dword [ebp - 0x68]
call edi
push 0xb
jmp 0x40f2f9
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004021b7
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
call fcn.0040f21d
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40f41d
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.0040236a
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040236a
inc bl
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x40f470
test esi, esi
je 0x40f458
cmp esi, 0xffffffff
je 0x40f458
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f469
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f469
push dword [ebp - 0x68]
call edi
push 0xd
jmp 0x40f2f9
test esi, esi
je 0x40f47c
cmp esi, 0xffffffff
je 0x40f47c
push esi
call edi
cmp dword [ebp - 0x68], 0
je 0x40f48d
cmp dword [ebp - 0x68], 0xffffffff
je 0x40f48d
push dword [ebp - 0x68]
call edi
xor eax, eax
call fcn.00401d83
ret
Function at 0x40f709
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x858
mov eax, 0x412fbe
call fcn.004019d4
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.004021b7
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.00402ee5
cmp eax, 0xffffffff
je 0x40f848
lea eax, [ebp - 0x864]
push eax
mov ecx, ebx
call fcn.0040f495
push eax
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 2
call fcn.0040230d
push edi
push 1
lea ecx, [ebp - 0x864]
call fcn.0040236a
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x40f7e4
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f848
cmp dword [ebp - 0x818], 8
mov ecx, dword [ebp - 0x82c]
jae 0x40f804
lea ecx, [ebp - 0x82c]
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x40f819
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.0040236a
push edi
push 1
lea ecx, [ebp - 0x848]
call fcn.0040236a
mov eax, esi
call fcn.00401d83
ret
xor esi, esi
inc esi
jmp 0x40f824

Function at 0x41073e
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 0x41075c
dec eax
cmp byte [ecx + eax - 1], 0x3d
je 0x410751
mov dword [ebp + 0xc], eax
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x41080e
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 + 0x417310]
mov dl, byte [edx + 0x417310]
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 0x4107f9
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x417310]
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 0x4107f9
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
movsx eax, byte [eax + ebx + 3]
mov al, byte [eax + 0x417310]
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 0x410783
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x410a3f
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.0040fcd1
test eax, eax
je 0x410b9a
test byte [0x41df28], 1
jne 0x410a82
or dword [0x41df28], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x41df24], eax
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll__itow_s]
push 0xa
push 0x10
push 0x41df04
push dword [0x41df24]
call esi
push 0xa
push 0x10
push 0x41dee4
push edi
call esi
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
mov ebx, 0x41dec4
push ebx
push eax
call esi
and dword [0x41debc], 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 [0x41dec0], 1
mov dword [0x41deb8], 0xc
movsw word es:[edi], word [esi]
call fcn.0040fcd1
push eax
push str._s_s
mov esi, 0x41d6b8
push esi
call fcn.00410a05
add esp, 0x10
call fcn.0040fcdd
xor edi, edi
cmp eax, edi
jne 0x410b17
mov eax, 0x4161a8
push eax
push 0x41dee4
push ebx
push 0x41df04
push esi
push str._s__pid_s__tid_s__exp_s__dumpfilename_s__callfrom1
mov ebx, 0x41c5b8
push ebx
call fcn.00410a22
add esp, 0x1c
push 0xa
pop ecx
push 0x41c5a4
push 0x41c560
push edi
push edi
push edi
xor eax, eax
inc eax
push eax
push edi
push edi
push ebx
push esi
mov dword [0x41c560], 0x44
mov dword [0x41c58c], eax
mov word [0x41c590], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [0x41c550], eax
cmp eax, edi
je 0x410b98
push 0xffffffffffffffff
push dword [0x41c5a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x41c5a8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x41c5a4]
call esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401d92
leave
ret