joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a622
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41a5f1
cmp eax, 2
jne 0x41a60c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x41a61c
test eax, eax
je 0x41a617
test al, 1
jne 0x41a60c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x41a61c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x41ac90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041ab70
push str.wps.exe
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.00401890
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41ace3
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
sete bl
cmp dword [ebp - 0x18], 8
jb 0x41ad01
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9d66
add esp, 4
xor eax, eax
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x41ad27
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9d66
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x41b140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508848
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x547770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
je 0x41b223
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x10], ebx
je 0x41b223
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x41b18e
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041b090
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], edi
jb 0x41b1a3
mov eax, dword [esi]
jmp 0x41b1a5
mov eax, esi
push eax
lea ecx, [ebp + 0xc]
call fcn.0041b090
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0041a500
cmp eax, ebx
je 0x41b238
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x41b1de
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b1fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b223
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
mov edi, 4
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x41b267
cmp dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x1c]
je 0x41b26a
mov edi, dword [ebp + 0x14]
cmp esi, ebx
je 0x41b275
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b294
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b2ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x425453
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0
push ecx
push edx
mov dword [ebp - 8], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
je 0x42548f
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push ecx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4254b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x425518
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push ecx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test esi, esi
pop esi
je 0x42551b
mov eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x425520
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x425561
xor al, al
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push esi
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x425850
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42596c
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42596b
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
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
jne 0x4258a5
mov ebx, 0x1000
mov dword [ebp - 0x28], ebx
mov edx, dword [ebp + 0x10]
lea ecx, [edi + esi - 1]
mov dword [ebp - 8], ecx
xor esi, esi
xor ecx, ecx
mov dword [ebp - 4], edi
test edx, edx
je 0x4258c7
mov eax, dword [edx]
mov ecx, dword [eax]
cmp ecx, eax
jne 0x4258c7
mov dword [ebp + 0x10], esi
mov edx, esi
cmp edi, dword [ebp - 8]
jae 0x42595d
mov edi, ebx
test edx, edx
je 0x42593f
mov eax, dword [ecx + 0xc]
cmp esi, eax
seta byte [ebp + 0xb]
cmp eax, esi
jae 0x4258f8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ecx]
cmp ecx, eax
sete dl
test dl, dl
jne 0x42595a
cmp dword [ecx + 0xc], esi
jb 0x4258e8
cmp byte [ebp + 0xb], 0
je 0x425923
mov eax, dword [ecx + 8]
lea edx, [esi + ebx]
cmp edx, eax
jae 0x425923
sub eax, esi
xor edx, edx
div ebx
test eax, eax
jne 0x425917
mov eax, 1
mov edx, dword [ebp + 0x10]
imul eax, ebx
mov edi, eax
add esi, edi
jmp 0x425947
lea eax, [esi + ebx]
cmp eax, dword [ecx + 8]
jb 0x425938
cmp esi, dword [ecx + 0xc]
ja 0x425938
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x10]
add esi, edi
jmp 0x425947
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, edi
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 8]
jb 0x4258d0
jmp 0x42595d
mov edx, dword [ebp + 0x10]
pop ebx
test edx, edx
je 0x425966
cmp ecx, dword [edx]
je 0x42596b
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4259e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509be0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x547770]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx + 0x40]
lea edi, [ecx + 0x40]
test eax, eax
jne 0x425a35
mov eax, dword [0x544364]
push eax
call fcn.00425320
mov esi, eax
mov eax, dword [edi]
add esp, 4
cmp esi, eax
je 0x425a35
push eax
mov ecx, edi
call fcn.00425340
mov dword [edi], esi
cmp dword [edi], 0
je 0x425b26
push 0x14
call fcn.004ba451
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor eax, eax
push eax
mov dword [esi], eax
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push eax
mov dword [esi + 0xc], eax
push eax
mov dword [ebp - 4], 0
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ecx
cmp dword [edi], 0
mov byte [ebp - 4], 1
jne 0x425aaa
mov edx, dword [0x544364]
push edx
call fcn.00425320
mov ecx, dword [edi]
add esp, 4
mov dword [ebp + 0xc], eax
cmp eax, ecx
je 0x425aaa
push ecx
mov ecx, edi
call fcn.00425340
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov ecx, dword [ebp + 0x10]
mov edi, dword [edi]
push esi
push 0
push ecx
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425aeb
push edi
push str._ld_not_overlapped
call fcn.00401c80
add esp, 8
test ebx, ebx
je 0x425ae0
cmp ebx, 0xffffffff
je 0x425ae0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004b9d66
add esp, 4
jmp 0x425b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x425b3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._ld_readfile_failed:__ld
call fcn.00401c80
add esp, 0xc
test ebx, ebx
je 0x425b1d
cmp ebx, 0xffffffff
je 0x425b1d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004b9d66
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp + 0xc], esi
mov esi, dword [ebp - 0x14]
lea edx, [ebp + 0xc]
xor edi, edi
push edx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x10], edi
call fcn.004e57b0
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 0x18], edi
mov dword [ebp + 0xc], ebx
call fcn.004e57b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509da0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x547770]
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 + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ax, word [0x544368]
cmp ax, 0xffff
je 0x426efd
xor ecx, ecx
cmp ax, 1
sete cl
mov eax, ecx
jmp 0x426f19
push 0
push 0
push 6
call fcn.00425360
xor edx, edx
add esp, 0xc
test eax, eax
setne dl
mov word [0x544368], dx
xor edi, edi
cmp eax, edi
je 0x427014
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x30], edi
call fcn.00426d00
mov dword [ebp - 4], edi
cmp ebx, edi
jne 0x426f94
mov edx, dword [ebp - 0x34]
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x426f50
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.004021e0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.00426c20
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
jb 0x426fbf
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9d66
add esp, 4
jmp 0x426fbf
mov ecx, dword [ebx]
mov ebx, dword [ecx]
sub esp, 0xc
mov eax, esp
lea edx, [ebp - 0x30]
mov dword [eax], edx
lea esi, [ebp - 0x78]
mov dword [eax + 4], esi
push ecx
lea edi, [ebp - 0x34]
mov dword [eax + 8], edi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00426dc0
add esp, 0x18
lea ecx, [ebp - 0x78]
call fcn.00425cf0
lea ecx, [ebp - 0x58]
push ecx
mov esi, eax
call fcn.004256c0
mov ecx, dword [ebp - 0x30]
xor edx, edx
test al, al
setne dl
push edx
push esi
push ecx
push str.count:__ld__real:__ld__wait:__ld
call fcn.00401c80
mov ecx, dword [ebp - 0x30]
add esp, 0x14
test ecx, ecx
je 0x426fff
cmp esi, ecx
jne 0x426fff
test al, al
je 0x426fff
mov bl, 1
jmp 0x427001
xor bl, bl
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.00426840
mov al, bl
jmp 0x42706f
mov edx, dword [ebp - 0x34]
push 9
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, edi
jne 0x42702b
xor al, al
jmp 0x42706f
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x427027
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x427027
mov edx, 0xe0
cmp word [eax + 0x14], dx
jne 0x427027
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x427027
mov edx, dword [eax + 0x50]
push ebx
push edx
push esi
call fcn.00425850
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x427a00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x427a36
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x427a45
mov edx, dword [eax]
jmp 0x427a47
mov edx, eax
push esi
cmp ecx, 8
jb 0x427a51
mov esi, dword [eax]
jmp 0x427a53
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x427b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov word [ebp - 0x20], ax
mov eax, edx
push esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427b90
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x20]
call fcn.004021e0
mov eax, dword [ebp - 0x20]
mov esi, 8
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0xc], esi
jae 0x427bc0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427bdf
cmp dword [ebp - 0xc], esi
jmp 0x427c4d
mov ecx, dword [ebp + 0x18]
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x28]
push edx
push 0
push ebx
push eax
mov dword [ebp - 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x427c49
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x427c25
cmp eax, 2
jne 0x427c49
cmp dword [ebp - 0xc], 8
jb 0x427c37
mov edx, dword [ebp - 0x20]
push edx
call fcn.004b9d66
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba901
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc], 8
jb 0x427c5b
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b9d66
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0x80004005
pop ebx
call fcn.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x427e80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509eab
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
xor ebx, ebx
push eax
mov dword [ebp - 0x254], ebx
call fcn.00427d50
push str.ksolite.dll
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x250]
push edx
mov dword [ebp - 4], ebx
call fcn.004017a0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x427eeb
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x427f0c
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
cmp esi, ebx
je 0x427f46
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
lea edx, [ebp - 0x234]
mov word [edi], cx
push edx
mov ecx, edi
call fcn.00401720
cmp dword [ebp - 0x220], 8
jb 0x4280c9
mov eax, dword [ebp - 0x234]
push eax
jmp 0x4280c1
push 0x206
lea edx, [ebp - 0x216]
push ebx
push edx
mov word [ebp - 0x218], cx
call fcn.004bad00
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
call fcn.004311f0
push eax
call fcn.00427b50
add esp, 0x14
cmp eax, ebx
je 0x427fb1
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.InstallRoot
push str.SoftwareKingsoftOffice6.0Common
push 0x80000002
call fcn.00427b50
add esp, 0x14
cmp eax, ebx
jne 0x427ff4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x427fc0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.004021e0
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.00401600
cmp dword [ebp - 0x224], ebx
jne 0x428094
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
call fcn.004311f0
push eax
call fcn.00427b50
add esp, 0x14
cmp eax, ebx
je 0x42804f
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.LocationRoot
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call fcn.00427b50
add esp, 0x14
cmp eax, ebx
jne 0x428094
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x428060
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x428060
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x234]
call fcn.004021e0
push 8
push str.office6
lea ecx, [ebp - 0x234]
call fcn.00401600
lea ecx, [ebp - 0x234]
xor eax, eax
push ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov ecx, edi
mov word [edi], ax
call fcn.00401720
cmp dword [ebp - 0x220], 8
jb 0x4280c9
mov edx, dword [ebp - 0x234]
push edx
call fcn.004b9d66
add esp, 4
mov eax, edi
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.004ba901
mov esp, ebp
pop ebp
ret
Function at 0x428190
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509f4c
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x547770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x26c]
xor esi, esi
push eax
mov dword [ebp - 0x270], esi
call fcn.00427e80
push str.cfgs_setup.cfg
push eax
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 4], esi
call fcn.00401890
add esp, 0x10
mov ebx, 8
cmp dword [ebp - 0x258], ebx
jb 0x428209
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004b9d66
add esp, 4
mov ecx, dword [0x5198c0]
mov eax, dword [str.0.0.0.0]
mov edx, dword [0x5198c4]
push 0x1f8
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x218], eax
mov eax, dword [0x5198c8]
lea ecx, [ebp - 0x208]
push esi
push ecx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], eax
call fcn.004bad00
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00401500
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x220], ebx
jae 0x428296
lea eax, [ebp - 0x234]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.MajorVersion
push str.Version
call esi
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x4282c4
lea eax, [ebp - 0x234]
push eax
push 0
push str.FirstVersion
push str.Version
call esi
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jae 0x4282ed
lea eax, [ebp - 0x234]
push eax
push 0
push str.SecondVersion
push str.Version
call esi
cmp dword [ebp - 0x220], 8
mov ebx, eax
mov eax, dword [ebp - 0x234]
jae 0x428313
lea eax, [ebp - 0x234]
push eax
push 0
push str.Version
push str.Version
call esi
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x270]
push eax
push ebx
push ecx
push edx
push str._u._u._u._u
push 0x103
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004bbb48
xor ebx, ebx
add esp, 0x20
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x428370
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, edi
call fcn.004021e0
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x4283aa
mov eax, dword [ebp - 0x234]
push eax
call fcn.004b9d66
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], esi
jb 0x4283da
mov edx, dword [ebp - 0x250]
push edx
call fcn.004b9d66
add esp, 4
mov eax, edi
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.004ba901
mov esp, ebp
pop ebp
ret