joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4116e0
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 0x4116ff
cmp edi, 0xffffffff
jne 0x411723
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 5
test edi, edi
je 0x41171d
cmp edi, 0xffffffff
je 0x41171d
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 0x41173f
cmp esi, 0xffffffff
jne 0x41176a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x41175d
cmp esi, 0xffffffff
je 0x41175d
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.00411280
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x411794
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 0x411c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4a3110]
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.00401f10
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004013e0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
jae 0x411cdf
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 0x411d46
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 0x411d46
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x411d30
cmp eax, 0xffffffff
je 0x411d30
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x411d42
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042a9e1
add esp, 4
xor eax, eax
jmp 0x411d70
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
cmp eax, edi
je 0x411d5c
cmp eax, 0xffffffff
je 0x411d5c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x411d6e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
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.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x411e40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477d70
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4a3110]
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.00411a80
add esp, 8
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], edi
jne 0x411ead
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
cmp dword [ebp - 0x18], 8
jb 0x411f7f
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x411f77
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edi
jae 0x411ebc
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 0x411f60
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 0x411ef0
sub eax, dword [ebp - 0x4c]
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401f10
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.00401710
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jb 0x411f45
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042a9e1
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 0x411f7f
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x411f77
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
cmp dword [ebp - 0x18], 8
jb 0x411f7f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
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.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x411fa0
Capabilities:
Check if file exists
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a3110]
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 0x412018
cmp edi, 0xffffffff
je 0x412018
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 0x412015
cmp esi, 0xffffffff
jne 0x412022
push edi
call ebx
mov eax, 0xa
jmp 0x41210d
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 0x41205e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xa
jmp 0x41210d
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x68]
cmp ecx, dword [edx + 0x20]
jne 0x412048
push str.wpscloudsvr
lea ecx, [ebp - 0x48]
call fcn.004023c0
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.00411c70
add esp, 4
cmp eax, 4
lea ecx, [ebp - 0x48]
sete bl
mov byte [ebp - 4], 1
call fcn.0041e180
test bl, bl
je 0x4120af
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xb
jmp 0x41210d
push str.wpscloudsvr
lea ecx, [ebp - 0x48]
call fcn.004023c0
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 3
call fcn.00411e40
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4120d8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x64]
sete bl
call fcn.0041e180
lea ecx, [ebp - 0x48]
call fcn.0041e180
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
test bl, bl
je 0x41210b
mov eax, 0xd
jmp 0x41210d
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.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x412530
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477ec1
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4a3110]
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.0042b970
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 0x4125b6
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00401f10
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.00404080
mov esi, 8
cmp eax, 0xffffffff
je 0x4126fe
lea eax, [ebp - 0x26c]
push eax
mov ecx, ebx
call fcn.00412130
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00401710
cmp dword [ebp - 0x258], esi
jb 0x41264a
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.0042a9e1
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x41265e
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4126e7
mov ecx, dword [ebp - 0x234]
cmp dword [ebp - 0x220], esi
jae 0x41267d
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x250]
cmp dword [ebp - 0x23c], esi
jae 0x412691
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 0x4126b3
mov edx, dword [ebp - 0x234]
push edx
call fcn.0042a9e1
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 0x4126e3
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0042a9e1
add esp, 4
mov eax, ebx
jmp 0x412733
cmp dword [ebp - 0x220], esi
jb 0x4126fe
mov edx, dword [ebp - 0x234]
push edx
call fcn.0042a9e1
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 0x41272e
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0042a9e1
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.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x412800
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477f40
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4a3110]
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 0x412851
cmp edi, 0xffffffff
jne 0x412876
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 4
test edi, edi
je 0x41286f
cmp edi, 0xffffffff
je 0x41286f
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x41295a
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00412470
cmp dword [eax + 0x14], 8
jb 0x412889
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 0x47ea98
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 0x4128cd
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042a9e1
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 0x4128ea
cmp esi, 0xffffffff
jne 0x41291a
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 0x41290f
cmp esi, 0xffffffff
je 0x41290f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x41295a
mov ecx, ebx
call fcn.00412530
push esi
mov ecx, ebx
call fcn.00411220
cmp dword [ebx + 0x14], 8
jb 0x412936
mov ecx, dword [ebx]
mov dword [ebp - 0x30], ecx
jmp 0x412939
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.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x412d40
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x412d59
cmp ebx, 0x20
jne 0x412f4a
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x412d6b
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x412f49
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x412dc9
add eax, 5
jmp 0x412da0
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x412da0
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x412ebd
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x412e4c
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x47eb40]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x47eb20]
xor ebx, eax
movzx eax, byte [edx + 0x47eb40]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x47eb40]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x47eb40]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x412ea2
cmp ebx, 6
jle 0x412ea2
cmp edx, 4
jne 0x412ea2
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x47eb40]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x47eb40]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x47eb40]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x47eb40]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x412de2
xor edx, edx
dec esi
js 0x412f48
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x412f37
cmp esi, 4
jl 0x412f37
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x47eb40]
mov eax, dword [eax*4 + 0x480140]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x47eb40]
xor eax, dword [ebx*4 + 0x480540]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x47eb40]
xor eax, dword [ebx*4 + 0x47fd40]
and ecx, 0xff
movzx ecx, byte [ecx + 0x47eb40]
xor eax, dword [ecx*4 + 0x480940]
jmp 0x412f39
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x412ed0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4136f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x413859
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x413859
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ecx, [edx + edx*2]
mov eax, ebx
sub eax, ecx
mov ecx, 0
setne cl
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
add ecx, edx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x413743
pop esi
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edx, edx
je 0x4137be
add edi, 2
mov dword [ebp - 4], edx
nop
movzx edx, byte [edi - 2]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edi - 2]
movzx eax, byte [edi - 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
add eax, eax
add eax, eax
shr edx, 6
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 2], al
movzx edx, byte [edi]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x413750
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
dec eax
je 0x413820
dec eax
jne 0x41384f
movzx eax, byte [edi + ebx - 2]
lea edx, [edi + ebx - 2]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx edx, byte [edx]
movzx eax, byte [edi + ebx - 1]
lea ebx, [edi + ebx - 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
movzx eax, byte [ebx]
and eax, 0xf
movzx edx, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov eax, dword [ebp - 0xc]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], 0x3d
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + ebx - 1]
shr eax, 2
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], dl
movzx eax, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
movzx edx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4138f0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push str.SOFTWAREkingsoftOffice6.0Common
push 0x80000002
mov dword [ebp - 0x214], 0
call edi
mov esi, eax
test esi, esi
je 0x413951
lea ecx, [ebp - 0x214]
push ecx
push 0x20019
push 0
push str.SOFTWAREWOW6432NodekingsoftOffice6.0Common
push 0x80000002
call edi
mov esi, eax
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.0042b970
add esp, 0xc
pop edi
test esi, esi
pop esi
jne 0x4139cf
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0
push 0
push str.InstallRoot
push eax
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4139cf
push str.office6cfgs_setup.cfg
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
jmp 0x413a09
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x480db0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
push ecx
push 0x409
push str.UILanguage
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret

Function at 0x413e10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
push edi
mov ebx, ecx
jb 0x413e28
mov eax, dword [esi]
jmp 0x413e2a
mov eax, esi
lea ecx, [ebp + 8]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x413e45
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.00429911
add esp, 4
mov dword [ebx + 4], eax
cmp dword [esi + 0x14], 8
jb 0x413e59
mov esi, dword [esi]
mov edx, dword [ebp + 8]
push eax
push edi
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413e3a
mov edx, dword [ebx + 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
pop edi
pop esi
mov dword [ebx + 8], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416e60
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 0x416e7d
dec edi
cmp byte [esi + edi - 1], al
je 0x416e76
xor eax, eax
mov dword [ebp + 0xc], eax
cmp edi, eax
jbe 0x416f34
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 + 0x481138]
mov cl, byte [ecx + 0x481138]
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 0x416f1f
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x481138]
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 0x416f1f
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
movsx ecx, byte [ecx + ebx + 3]
mov cl, byte [ecx + 0x481138]
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 0x416ea0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret