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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c806
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x230], edi
cmp dword [ecx + 0xdc], 0
je 0x485d6b
mov ecx, dword [ecx + 0xc0]
sub ecx, 0x10
push ecx
call fcn.00425f70
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x485eb9
xor esi, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x21c]
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x485de5
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallKingsoft_Office
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x485e4e
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 0
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x228], esi
push eax
push 0
push str.StartMenuDir
push esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x485e4e
mov eax, dword [ebp - 0x22c]
cmp eax, 1
je 0x485e3c
cmp eax, 2
jne 0x485e4e
cmp dword [ebp - 0x21c], 0
jne 0x485e4e
xor eax, eax
mov word [ebp - 0x218], ax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x485ed8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x485e81
movzx eax, ax
mov ecx, edi
push eax
call fcn.00426130
jmp 0x485eae
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485e90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004263f0
test esi, esi
je 0x485eb9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
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.0053d079
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00425f50
int3
Function at 0x4865b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c95b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x61ce74]
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, ecx
cmp byte [edi + 0x58], 0
je 0x4865f0
cmp byte [edi + 0x59], 0
je 0x4866f3
lea eax, [ebp - 0x234]
mov dword [ebp - 0x234], 0
push eax
push 0x2001f
push 0
push dword [0x61b7f0]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48674c
mov esi, dword [ebp - 0x234]
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00540d70
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x238]
add esp, 0xc
mov dword [ebp - 0x238], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x240]
push eax
push 0
push str.disableGlobalInfoCollect
push esi
call ebx
test eax, eax
jne 0x48669a
mov eax, dword [ebp - 0x240]
cmp eax, 1
je 0x48667f
cmp eax, 2
jne 0x48669a
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x4866fa
test al, 1
jne 0x48669a
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x486703
lea eax, [ebp - 0x244]
mov dword [ebp - 0x23c], 0
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x244], 4
push eax
lea eax, [ebp - 0x248]
push eax
push 0
push str.disableGlobalInfoCollect
push esi
call ebx
test eax, eax
jne 0x486741
cmp dword [ebp - 0x248], 4
jne 0x486741
cmp dword [ebp - 0x23c], 1
sete bl
test esi, esi
je 0x4866ef
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x48674c
mov al, 1
jmp 0x486791
xor eax, eax
mov word [ebp - 0x218], ax
mov ecx, 0x5b3ec4
lea eax, [ebp - 0x218]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x486738
test dx, dx
je 0x486732
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x486738
add eax, 4
add ecx, 4
test dx, dx
jne 0x486710
xor eax, eax
test eax, eax
jmp 0x4866e1
sbb eax, eax
or eax, 1
test eax, eax
jmp 0x4866e1
test esi, esi
je 0x48674c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x104], 0
je 0x48678f
push str.Support_DisableGlobalInfoCollect
lea ecx, [ebp - 0x230]
call fcn.004396f0
mov ecx, dword [edi + 0x104]
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 4], 0
call fcn.0048f8d0
lea ecx, [ebp - 0x230]
mov bl, al
call fcn.00430d50
mov al, bl
jmp 0x486791
xor al, al
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.0053d079
mov esp, ebp
pop ebp
ret
Function at 0x487220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
test eax, eax
je 0x4872ec
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x487260
cmp eax, 2
jne 0x4872ec
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00426010
mov edx, dword [ebp - 4]
shr edx, 1
add edx, 1
js 0x4872f5
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x487293
push edx
mov ecx, esi
call fcn.00426250
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4872ea
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4872d3
push dword [eax - 8]
push eax
call fcn.0054b2c2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4872f5
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4872f5
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
mov word [eax + ecx*2], dx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00425f50
int3
Function at 0x487300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ca42
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x48744e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwarekingsoftOffice6.0Commonupdateinfo
push 0x80000001
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x487430
cmp dword [ebp - 0x21c], eax
je 0x487430
push 0x208
push eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x224], 0x208
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push str.waitclearversions
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x487424
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487406
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004263f0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00425f50
int3
Function at 0x487460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ca80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4875d6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edx, edx
je 0x4874e1
test edx, 0xffff0000
jne 0x4874c6
movzx eax, dx
lea ecx, [ebp - 0x10]
push eax
call fcn.00426130
jmp 0x4874ed
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x4874d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4874d0
sub ecx, esi
sar ecx, 1
jmp 0x4874e3
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.004263f0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
call fcn.0048e630
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0048e870
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x14], 0
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20019
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x487543
jle 0x487589
movzx edi, di
or edi, 0x80070000
jmp 0x487589
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x487587
jle 0x487589
movzx edi, di
or edi, 0x80070000
jmp 0x487589
xor edi, edi
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4875a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4875c2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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
push 0x80004005
call fcn.00425f50
int3
Function at 0x4875f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cab0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x487788
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edx, edx
je 0x487671
test edx, 0xffff0000
jne 0x487656
movzx eax, dx
lea ecx, [ebp - 0x14]
push eax
call fcn.00426130
jmp 0x48767d
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x487660
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487660
sub ecx, esi
sar ecx, 1
jmp 0x487673
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.004263f0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0048e630
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
add esp, 4
xor edi, edi
mov dword [ebp - 0x10], edi
push ecx
mov ecx, dword [ebp + 0x18]
or ecx, 0x20019
push ecx
push edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4876ca
jg 0x4876bc
mov edi, eax
jmp 0x487755
movzx edi, ax
or edi, 0x80070000
jmp 0x487755
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], edi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test ebx, ebx
je 0x487727
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jg 0x48771c
mov edi, ebx
jmp 0x487755
movzx edi, bx
or edi, 0x80070000
jmp 0x487755
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x48774c
jg 0x487743
mov edi, eax
jmp 0x48774c
movzx edi, ax
or edi, 0x80070000
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487774
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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
push 0x80004005
call fcn.00425f50
int3
Function at 0x48cc10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x62a1c4], 0
push esi
push edi
mov esi, ecx
je 0x48cc50
push 0
push 0
push 0x5bed51
push str.StartUninstall
push 1
call fcn.004c7f00
add esp, 0x14
cmp byte [0x62a1c4], 0
je 0x48cc50
push 0
push str.StartUninstall
call fcn.004c7f80
add esp, 8
mov eax, dword [esi + 0x10]
xor edi, edi
mov ecx, dword [ebp + 8]
mov dword [esi + 4], ecx
cmp dword [eax - 0xc], edi
je 0x48cca8
mov dword [esi + 8], edi
test ecx, ecx
je 0x48cc73
or dword [0x6299a8], 4
cmp dword [esi + 4], edi
jne 0x48cc87
push str.7E3EDCB6_AA19_4598_A948_C59B6B02BF64
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x48], eax
push 0
push 0
push esi
push 0x48da60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xc], eax
mov ecx, 1
cmovne edi, ecx
cmp byte [0x62a1c4], 0
je 0x48cce1
push 0
push 0
push 0x5bed51
push str.StartUninstall
push 1
call fcn.004c7f40
add esp, 0x14
cmp byte [0x62a1c4], 0
je 0x48cce1
push 0
push str.StartUninstall
call fcn.004c7fa0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x48dea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d40b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x61ce74]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor edi, edi
push edi
push eax
call fcn.00540d70
add esp, 0xc
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x48dff3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x48dfad
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x48df40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48df40
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004263f0
push 4
push str.wps_
mov ecx, ebx
call fcn.00425dc0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x21c]
push str._x_
push eax
call fcn.004289d0
mov esi, dword [ebp - 0x21c]
add esp, 0xc
mov ecx, ebx
push dword [esi - 0xc]
push esi
call fcn.00425dc0
push dword [ebx]
call fcn.004703a0
add esp, 4
test eax, eax
je 0x48dfad
mov edi, 1
jmp 0x48dfb4
mov ecx, ebx
call fcn.00426010
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48dfd3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 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.0053d079
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00425f50
int3
Function at 0x4926b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dac6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x49275c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x49275c
call fcn.004603d0
mov esi, eax
jmp 0x49284c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x49277f
call fcn.004603d0
jmp 0x49283f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x49279d
call fcn.004603d0
jmp 0x49283f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4927be
mov esi, 0x8007000e
jmp 0x492841
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004909d0
jmp 0x4927e8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4927ff
mov esi, 0x8007000e
jmp 0x492841
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x49281f
call fcn.004603d0
jmp 0x49283f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00492510
mov esi, eax
test edi, edi
je 0x49284c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x492870
lea ecx, [ebp - 0x418]
call fcn.00491a10
jmp 0x492870
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 - 0x14]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49f910
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
xor edi, edi
push eax
push 0x2001f
push edi
push dword [0x61b908]
mov dword [ebp - 0x210], edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x49f972
push dword [0x61b90c]
mov edi, dword [ebp - 0x210]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
je 0x49f972
push edi
call ebx
xor edi, edi
mov esi, dword [ebp + 8]
cmp dword [esi - 0xc], 0
je 0x49fa80
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00540d70
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00554202
add esp, 0x18
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push eax
push 0x2001f
push 0
push dword [0x61b908]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49f9fd
test edi, edi
je 0x49f9db
push edi
call ebx
mov edi, dword [ebp - 0x214]
test eax, eax
jne 0x49f9fd
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49f9f0
jmp 0x49fa5c
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x218], 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [0x61b908]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x49fa80
test edi, edi
je 0x49fa3e
push edi
call ebx
mov edi, dword [ebp - 0x218]
test eax, eax
jne 0x49fa80
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49fa51
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push dword [0x61b90c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x49fa87
push edi
call ebx
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
pop esi
pop ebx
test eax, eax
jg 0x49faa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret

Function at 0x49fb00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x49fb31
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x49fb20
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x49ff00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e571
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
push str.SOFTWAREKingsoftOffice6.0CommonBackup
push 0x80000001
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4a005d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 0
test eax, eax
je 0x4a0040
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.AutoRecoverFilePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x49ffae
cmp eax, 2
jne 0x4a0032
mov ecx, esi
call fcn.00426010
mov edx, dword [ebp - 0x10]
shr edx, 1
add edx, 1
js 0x4a0053
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x49ffde
push edx
mov ecx, esi
call fcn.00426250
mov edi, dword [esi]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.AutoRecoverFilePath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a0032
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov word [edi + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4a0020
push dword [eax - 8]
push eax
call fcn.0054b2c2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4a0053
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4a0053
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a0040
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00425f50
push 0x80004005
call fcn.00425f50
int3