joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436b59
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
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
xor esi, esi
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x436bc7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
je 0x436bc6
cmp esi, dword [ebp + 0xc]
ja 0x436bc6
mov ecx, dword [ebp - 8]
push ecx
call ebx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
push edi
lea esi, [esi + edx + 0xa]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x436b9f
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 1
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8

Function at 0x436be4
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 0x51eb851f
mul ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
lea edx, [ebp - 0x20]
push edx
push esi
shr edi, 6
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x436c8d
test edi, edi
jle 0x436c8d
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 6
ja case.0x436c4c.3
movzx eax, byte [eax + 0x436cd0]
jmp dword [eax*4 + 0x436cc4]
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp case.0x436c4c.3
mov edx, dword [ebp + 0x10]
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x436cac
push 0xc8
dec edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x436c38
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
shl eax, 0x10
pop esi
or eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x436cd7
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 0x51eb851f
mul ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
lea edx, [ebp - 0x20]
push edx
push edi
shr esi, 6
call ebx
test eax, eax
je 0x436d4b
test esi, esi
jle 0x436d4b
cmp dword [ebp - 0x1c], 1
je 0x436d63
push 0xc8
dec esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
jne 0x436d2a
pop edi
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret 8

Function at 0x436eaa
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 fcn.00402e70
mov eax, dword [ebp + 8]
mov ecx, 8
add esp, 0xc
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], str.runas
cmp dword [eax + 0x14], ecx
jb 0x436ef1
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
jmp 0x436ef4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
jb 0x436efe
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x436f67
mov edx, dword [ebp - 4]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
push ecx
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x436f4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
mov dword [ebp + 8], eax
jmp 0x436f51
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, esi
je 0x436f73
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x436f78
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x436f97
cmp edi, 0xffffffff
jne 0x436fbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 5
test edi, edi
je 0x436fb5
cmp edi, 0xffffffff
je 0x436fb5
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
ret
push 0xf01ff
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x436fd7
cmp esi, 0xffffffff
jne 0x437002
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x436ff5
cmp esi, 0xffffffff
je 0x436ff5
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
push 0x1388
push esi
mov ecx, ebx
call fcn.00436b59
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x43702c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x430
sete cl
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0xfffafffb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ebx, [eax + 0x50005]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x437463
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49292b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x22
xor eax, eax
xor edi, edi
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.00403bac
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004050a9
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
jae 0x4374d2
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x437539
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push str.Start
push ecx
mov dword [ebp - 0x38], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x437539
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x437523
cmp eax, 0xffffffff
je 0x437523
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x437535
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
jmp 0x437563
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
cmp eax, edi
je 0x43754f
cmp eax, 0xffffffff
je 0x43754f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x437561
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f07
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x437623
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492726
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [section..data]
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 esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 0x4c], edi
call fcn.00437280
add esp, 8
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], edi
jne 0x437690
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
cmp dword [ebp - 0x18], 8
jb 0x437762
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x43775a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edi
jae 0x43769f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edx, edx
mov ebx, eax
cmp dword [ebp - 0x50], edi
jle 0x437743
mov ecx, dword [ebx]
mov eax, ecx
mov word [ebp - 0x48], dx
lea edx, [eax + 2]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x4c], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x4376d3
sub eax, dword [ebp - 0x4c]
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00403bac
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x48]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.00403c9c
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jb 0x437728
mov edx, dword [ebp - 0x48]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x437762
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x43775a
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
cmp dword [ebp - 0x18], 8
jb 0x437762
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f07
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x437780
Capabilities:
Check if file exists
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49276b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [section..data]
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 dword [ebp - 0x68], ecx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4377f8
cmp edi, 0xffffffff
je 0x4377f8
push 0x14
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x6c], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 1
test esi, esi
je 0x4377f5
cmp esi, 0xffffffff
jne 0x437802
push edi
call ebx
mov eax, 0xa
jmp 0x4378ed
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x43783e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xa
jmp 0x4378ed
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x68]
cmp ecx, dword [edx + 0x20]
jne 0x437828
push str.wpscloudsvr
lea ecx, [ebp - 0x48]
call fcn.00409037
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.00437463
add esp, 4
cmp eax, 4
lea ecx, [ebp - 0x48]
sete bl
mov byte [ebp - 4], 1
call fcn.0040a4bf
test bl, bl
je 0x43788f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xb
jmp 0x4378ed
push str.wpscloudsvr
lea ecx, [ebp - 0x48]
call fcn.00409037
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 3
call fcn.00437623
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4378b8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x64]
sete bl
call fcn.0040a4bf
lea ecx, [ebp - 0x48]
call fcn.0040a4bf
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
test bl, bl
je 0x4378eb
mov eax, 0xd
jmp 0x4378ed
xor eax, eax
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x437cfb
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49284b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [section..data]
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
push 0x206
mov ebx, ecx
xor edi, edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call fcn.00402e70
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [ebp - 0x250], ax
mov esi, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x437d81
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00403bac
xor edx, edx
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
push 0xb
push edi
push str.wpscloudsvr
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.0040bb0e
mov esi, 8
cmp eax, 0xffffffff
je 0x437ec9
lea eax, [ebp - 0x26c]
push eax
mov ecx, ebx
call fcn.00437909
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00403c9c
cmp dword [ebp - 0x258], esi
jb 0x437e15
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.00404f07
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x437e29
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x437eb2
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x437e48
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], esi
jae 0x437e5c
lea eax, [ebp - 0x250]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
cmp dword [ebp - 0x220], esi
jb 0x437e7e
mov edx, dword [ebp - 0x234]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
cmp dword [ebp - 0x23c], esi
jb 0x437eae
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00404f07
add esp, 4
mov eax, ebx
jmp 0x437efe
cmp dword [ebp - 0x220], esi
jb 0x437ec9
mov edx, dword [ebp - 0x234]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
cmp dword [ebp - 0x23c], esi
jb 0x437ef9
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00404f07
add esp, 4
mov eax, 1
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x437f1a
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4928b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
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
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x437f6b
cmp edi, 0xffffffff
jne 0x437f90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 4
test edi, edi
je 0x437f89
cmp edi, 0xffffffff
je 0x437f89
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x438074
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00437c42
cmp dword [eax + 0x14], 8
jb 0x437fa3
mov eax, dword [eax]
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 3
push ecx
push 0xf01ff
push str.WPS_Office_Cloud_Service
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x437fe7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test esi, esi
je 0x438004
cmp esi, 0xffffffff
jne 0x438034
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 4
test esi, esi
je 0x438029
cmp esi, 0xffffffff
je 0x438029
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x438074
mov ecx, ebx
call fcn.00437cfb
push esi
mov ecx, ebx
call fcn.00436b06
cmp dword [ebx + 0x14], 8
jb 0x438050
mov ecx, dword [ebx]
mov dword [ebp - 0x30], ecx
jmp 0x438053
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x30]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
push esi
call ebx
push edi
call ebx
xor eax, eax
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x4394da
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov al, 0x3d
cmp byte [esi + edi - 1], al
jne 0x4394f7
dec edi
cmp byte [esi + edi - 1], al
je 0x4394f0
xor eax, eax
mov dword [ebp + 0xc], eax
cmp edi, eax
jbe 0x4395ae
mov ecx, 2
sub ecx, esi
mov dword [ebp - 4], ecx
mov ecx, 3
sub ecx, esi
mov dword [ebp - 8], ecx
push ebx
nop
movsx ecx, byte [esi + 1]
movsx edx, byte [esi]
mov dl, byte [edx + 0x4a52a0]
mov cl, byte [ecx + 0x4a52a0]
add dl, dl
mov bl, cl
sar bl, 4
add dl, dl
and bl, 3
or dl, bl
mov ebx, dword [ebp + 0x10]
mov byte [eax + ebx], dl
mov edx, dword [ebp - 4]
add edx, esi
inc eax
cmp edx, edi
jae 0x439599
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x4a52a0]
mov bl, dl
sar bl, 2
shl cl, 4
and bl, 0xf
or bl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], bl
mov ecx, dword [ebp - 8]
add ecx, esi
inc eax
cmp ecx, edi
jae 0x439599
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
movsx ecx, byte [ecx + ebx + 3]
mov cl, byte [ecx + 0x4a52a0]
shl dl, 6
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
add esi, 4
mov dword [ebp + 0xc], ecx
cmp ecx, edi
jb 0x43951a
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x439a5c
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 esi
mov esi, dword [ebp + 8]
call fcn.00438449
test eax, eax
je 0x439bc4
push ebx
mov ebx, 1
push edi
test byte [0x4d23f0], bl
jne 0x439aa4
or dword [0x4d23f0], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [0x4d23ec], eax
mov eax, dword [0x4d23ec]
push 0xa
push 0x10
push 0x4d23cc
push eax
call fcn.0044b201
push 0xa
push 0x10
push 0x4d23ac
push esi
call fcn.0044b201
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x4d238c
push eax
call fcn.0044b201
mov ecx, 8
mov esi, str.kcrashdumper.exe
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x28]
add esp, 0x10
push ecx
mov dword [0x4d2388], ebx
mov dword [0x4d2384], 0
mov dword [0x4d2380], 0xc
movsw word es:[edi], word [esi]
call fcn.00438449
push eax
push 0x4a539c
push 0x4d1b80
call fcn.00439a20
call fcn.0043844f
push eax
push 0x4d23ac
push 0x4d238c
push 0x4d23cc
push 0x4d1b80
push str._s__pid_s__tid_s__exp_s__callfrom1__module_s
push 0x4d0a80
call fcn.00439a3e
add esp, 0x2c
push 0x4d0a6c
push 0x4d0a28
push 0
push 0
push 0
push ebx
push 0
push 0
push 0x4d0a80
mov edx, 0xa
push 0x4d1b80
mov dword [0x4d0a28], 0x44
mov dword [0x4d0a54], ebx
mov word [0x4d0a58], dx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
mov dword [0x4d0a20], eax
pop ebx
test eax, eax
je 0x439bc4
mov eax, dword [0x4d0a6c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x4d0a70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [0x4d0a6c]
push edx
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x43a6c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
push 0x206
mov dword [ebp - 0x214], eax
push edx
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x210], 0
push eax
mov dword [ebp - 0x218], ecx
mov word [ebp - 0x20c], dx
call fcn.00402e70
mov ecx, 8
add esp, 0xc
mov dword [ebp - 0x210], 0x208
cmp dword [edi + 0x14], ecx
jb 0x43a734
mov eax, dword [edi]
jmp 0x43a736
mov eax, edi
cmp dword [ebx + 0x14], ecx
jb 0x43a73d
mov ebx, dword [ebx]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
xor edi, edi
push edi
push eax
mov eax, dword [ebp - 0x214]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
test eax, eax
je 0x43a794
mov edx, dword [ebp - 0x218]
push 0xffffffffffffffff
push edi
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00404e0e
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
shr eax, 1
dec eax
push eax
lea edx, [ebp - 0x20c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00403bac
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040330b
mov esp, ebp
pop ebp
ret