joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437690
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578adb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 6
lea edi, [esi + 4]
mov dword [esi], 0
mov dword [edi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
push 0
mov dword [esi + 0x10], 0x80004005
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [esi + 0x10], eax
push esi
push 0x593dc4
push 1
push 0
push 0x593db4
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esi]
test eax, eax
je 0x437716
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push edi
push eax
call edx
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

Function at 0x437770
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
jbe 0x437873
mov ecx, dword [ebp + 8]
push esi
mov edx, 1
sub edx, ecx
mov esi, 2
sub esi, ecx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], edx
jmp 0x4377ab
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add edi, ecx
movzx ecx, byte [edi]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
mov cl, byte [edi]
and cl, 3
add edx, edi
shl cl, 4
cmp edx, ebx
jae 0x437846
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov bl, byte [edx + ebx + 1]
shr bl, 4
add bl, cl
movzx ecx, bl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 0xc]
mov byte [eax + esi + 1], cl
mov ecx, dword [ebp + 8]
mov cl, byte [edx + ecx + 1]
and cl, 0xf
add cl, cl
add ebx, edi
add cl, cl
cmp ebx, dword [ebp + 0xc]
jae 0x437832
mov edi, dword [ebp + 8]
mov dl, byte [edx + edi + 2]
mov bl, dl
shr dl, 6
and bl, 0x3f
add dl, cl
movzx edx, dl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, bl
mov byte [eax + esi + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 3], cl
jmp 0x43785a
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x43785d
movzx edx, cl
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
add edx, 3
add eax, 4
mov dword [ebp - 4], edx
cmp edx, ebx
jb 0x4377a5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x437880
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 0x43789d
dec edi
cmp byte [esi + edi - 1], al
je 0x437896
xor eax, eax
mov dword [ebp + 0xc], eax
cmp edi, eax
jbe 0x437954
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 + 0x593df8]
mov cl, byte [ecx + 0x593df8]
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 0x43793f
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x593df8]
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 0x43793f
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
movsx ecx, byte [ecx + ebx + 3]
mov cl, byte [ecx + 0x593df8]
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 0x4378c0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4380b0
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 0x438122
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4380f1
cmp eax, 2
jne 0x43810c
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x43811c
test eax, eax
je 0x438117
test al, 1
jne 0x43810c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x43811c
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 0x4381b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
cmp dword [ebp + 0x10], eax
push esi
setne dl
lea esi, [edx + 1]
mov edx, dword [ecx]
test edx, edx
je 0x438206
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4381d1
mov ecx, dword [ebp + 8]
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
test eax, eax
jne 0x438204
mov eax, 1
pop esi
pop ebp
ret 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x438290
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00438000
mov ebx, eax
cmp ebx, esi
je 0x43830a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x4382f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x43838c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00438290
mov ebx, eax
cmp ebx, esi
jne 0x4382e4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x438340
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x4383a5
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00437f80
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x4383c8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005332ca
mov esp, ebp
pop ebp
ret 4
Function at 0x439630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
xor edx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
cmp eax, edx
je 0x439705
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push edx
lea ecx, [ebp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x439672
cmp eax, 2
jne 0x439704
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00421cb0
mov ecx, dword [ebp - 4]
shr ecx, 1
inc ecx
jns 0x43968f
push 0x80070057
call fcn.00421960
mov eax, dword [esi]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ecx
or edx, eax
jge 0x4396aa
push ecx
mov ecx, esi
call fcn.00421da0
mov eax, dword [ebp - 0xc]
push edi
mov edi, dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [ebp + 8]
push edx
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439702
mov edx, dword [ebp - 4]
shr edx, 1
mov word [edi + edx*2], ax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4396e9
push ecx
push eax
call fcn.00534a48
add esp, 8
test eax, eax
js 0x439685
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x439685
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [ebp - 8], 1
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x439910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578d70
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5ff1c0]
mov ecx, str.ja_JP
xor ebx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43996a
cmp dx, bx
je 0x439966
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43996a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x439944
xor eax, eax
jmp 0x43996f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
setne al
cmp al, bl
jne 0x439a06
mov ecx, dword [str.SoftwareKingsoftOffice6.0Commonwpshomeoptions]
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
push str.StartWithType
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00439630
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x439a1a
cmp dword [esi - 0xc], ebx
je 0x439a1a
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4399f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x439a06
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
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 eax, dword [ebp - 0x10]
xor edi, edi
cmp eax, ebx
je 0x439a42
push 4
push 0x592368
push 1
push ebx
push str.StartWithType
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
jne 0x439a42
mov edi, 1
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x439a61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x439a6f
push eax
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
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439b00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578d38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edi, dword [str..DEFAULTSoftwareKingsoftOffice6.0Common]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x439b6c
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
push edi
push 0x80000003
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x14]
push ecx
push str.infoGUID
lea ecx, [ebp - 0x10]
call fcn.00439630
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x439b9a
push eax
call ebx
mov edx, dword [str..DEFAULTSoftwareKingsoftOffice]
push 0x2001f
push edx
push 0x80000003
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esi
call fcn.00438000
test eax, eax
jne 0x439bd7
push 0x5955c0
lea ecx, [ebp - 0x20]
call fcn.00438290
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x439bd4
push eax
call ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], esi
je 0x439c5b
mov eax, dword [ebp - 0x10]
mov ebx, dword [str..DEFAULTSoftwareKingsoftOffice6.0Common]
cmp eax, esi
je 0x439bf3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push ebx
push 0x80000003
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [ebp - 0x10]
cmp ebx, esi
je 0x439c52
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x439c20
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push esi
push str.infoGUID
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x439c52
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x439c7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x439c85
push eax
call ebx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], esi
cmp eax, esi
je 0x439c92
push eax
call ebx
mov eax, 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
Function at 0x439e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578d98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov ecx, dword [str.SoftwareKingsoftOffice6.0Common]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push ecx
push 0x80000001
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call esi
push ebx
push str.infoGUID
lea ecx, [ebp - 0x10]
call fcn.00439630
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x439ed9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [str.SoftwareKingsoftOffice6.0wps]
lea edx, [ebp - 0x10]
push edx
push eax
push 0x80000001
mov dword [ebp - 0x10], edi
call esi
mov eax, dword [ebp - 0x10]
mov ebx, 4
mov dword [ebp - 0x18], ebx
cmp eax, edi
je 0x439f35
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push str.wps_t
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439f27
cmp dword [ebp - 0x1c], ebx
jne 0x439f27
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x439f35
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.SoftwareKingsoftOffice6.0et]
lea ecx, [ebp - 0x10]
push ecx
push edx
push 0x80000001
mov dword [ebp - 0x10], edi
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
cmp eax, edi
je 0x439f8d
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push str.et_t
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439f7f
cmp dword [ebp - 0x1c], ebx
jne 0x439f7f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x439f8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.SoftwareKingsoftOffice6.0wpp]
lea ecx, [ebp - 0x10]
push ecx
push edx
push 0x80000001
mov dword [ebp - 0x10], edi
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
cmp eax, edi
je 0x439fe5
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push str.wpp_t
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439fd7
cmp dword [ebp - 0x1c], ebx
jne 0x439fd7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x439fe5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 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
Function at 0x43c2d0
Capabilities:
Persist via run registry key

Disassembly:
push edi
call fcn.00439000
call fcn.00438560
mov eax, dword [str.SoftwareKingsoftOffice6.0]
push str.wpslive
push eax
push 0x80000001
call fcn.0045c500
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionRun]
push str.wpslive
push ecx
push 0x80000001
call fcn.0045c5d0
add esp, 0x18
mov ecx, 0x80000001
call fcn.004384c0
mov edi, 0x80000001
call fcn.00438710
mov eax, 1
pop edi
ret
push esi
mov esi, 0x80000001
call fcn.0043b790
mov eax, dword [str.SoftwareKingsoftOffice6.0wpsApplication_Settings]
push 0x595524
push str.DblClk_ToggleHeaderFooterView
push eax
push esi
call fcn.0045c320
add esp, 0x10
call fcn.00439910
call fcn.00438f80
mov eax, 1
pop esi
ret
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
add ecx, 0xffffff9b
xor eax, eax
cmp ecx, 3
ja case.default.0x43c2e0
jmp dword [ecx*4 + 0x43c32c]
cmp dword [0x5f1a84], eax
jne 0x43c303
mov edx, 0x80000001
call fcn.0043b500
mov edx, 0x80000001
call fcn.00438ba0
mov eax, 1
pop ebp
ret
pop ebp
jmp 0x43c0f0
cmp dword [0x5f1a88], eax
jne 0x43c31d
call fcn.0043a570
pop ebp
jmp 0x439350
pop ebp
jmp fcn.0043c130
Function at 0x43c650
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x43c665
mov eax, 1
pop edi
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x43c69d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43c696
mov dword [edi], esi
pop esi
mov eax, 1
pop edi
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x43d860
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579308
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5fb61c]
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]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
lea edi, [eax + 0x1c]
lea edx, [ebp - 0x2c]
push edx
add eax, 0x54
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.0043d360
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x43d8cb
mov eax, dword [ebp - 0x2c]
push eax
call int.0042bfd0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp esi, ebx
je 0x43d90f
cmp esi, 0xffffffff
je 0x43d90f
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [edi + 0x14], 8
jb 0x43d903
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x30]
jmp 0x43d926
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl edi, 0x10
or edi, 5
cmp esi, ebx
je 0x43d92d
cmp esi, 0xffffffff
je 0x43d92d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.005332ca
mov esp, ebp
pop ebp
ret
Function at 0x43d950
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c138
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5fb61c]
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 esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
cmp esi, dword [ebp + 0x10]
je 0x43da79
lea ecx, [ecx]
mov eax, dword [ebp + 0x14]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
xor edi, edi
push edi
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push eax
mov word [ecx], dx
call fcn.0042e5c0
lea eax, [ebp - 0x48]
push eax
call fcn.0043d1d0
add esp, 0x20
mov ebx, 8
mov dword [ebp - 4], edi
cmp dword [eax + 0x14], ebx
jb 0x43d9d0
mov eax, dword [eax]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push edi
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push esi
mov word [ecx], dx
call fcn.0042e5c0
lea eax, [ebp - 0x2c]
push eax
call fcn.0043d1d0
add esp, 0x20
cmp dword [eax + 0x14], ebx
jb 0x43da04
mov eax, dword [eax]
push eax
call fcn.005347c1
add esp, 8
cmp eax, edi
sete bl
cmp dword [ebp - 0x18], 8
jb 0x43da24
mov ecx, dword [ebp - 0x2c]
push ecx
call int.0042bfd0
add esp, 4
xor edx, edx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], 0xffffffff
jb 0x43da4d
mov eax, dword [ebp - 0x48]
push eax
call int.0042bfd0
add esp, 4
test bl, bl
je 0x43da6a
cmp dword [esi + 0x14], 8
jb 0x43da5b
mov eax, dword [esi]
jmp 0x43da5d
mov eax, esi
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add esi, 0x1c
cmp esi, dword [ebp + 0x10]
jne 0x43d990
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
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.005332ca
mov esp, ebp
pop ebp
ret