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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
call fcn.0042e930
cmp eax, 3
jne 0x42e6a4
push dword [ebp + 8]
mov ecx, esi
call fcn.0042e620
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0042ec60
test al, al
jne 0x42e6bd
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x42e777
cmp dword [esi], 0
je 0x42e702
call fcn.0042ec60
test al, al
je 0x42e702
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42e702
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x42e77f
cmp eax, 3
je 0x42e77f
call fcn.0042ec60
test al, al
jne 0x42e718
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x42e777
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e76f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
test eax, eax
je 0x42e7ff
mov ecx, esi
call fcn.0042e930
cmp eax, 2
jne 0x42e7ff
mov eax, dword [esi]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x42e7ff
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 1
push 2
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x42e7ff
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push 0x2000
mov dword [ebp - 0x18], eax
call fcn.0042f600
test eax, eax
je 0x42e7f1
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x42e7e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42e7ff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42e930
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x42e95a
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
jne 0x42ea8b
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push ecx
call esi
push dword [ebp - 0x10]
call fcn.0049904d
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 1
push dword [edi]
call esi
test eax, eax
je 0x42ea2c
mov esi, dword [ebx]
test esi, esi
je 0x42ea2c
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ea2c
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42ea2c
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.00499056
add esp, 4
test esi, esi
je 0x42ea35
pop esi
pop ebx
mov dword [edi + 4], 1
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00499056
add esp, 4
push 0x220
mov ecx, edi
call fcn.0042eaa0
test eax, eax
je 0x42ea7d
mov ecx, edi
call fcn.0042e810
cmp eax, 3
je 0x42ea64
mov ecx, edi
call fcn.0042e860
cmp eax, 0x2000
mov eax, 2
jne 0x42ea69
mov eax, 3
pop esi
pop ebx
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
pop esi
mov dword [edi + 4], 4
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0049901c
mov esp, ebp
pop ebp
ret
Function at 0x42eaa0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x42ec4d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push 0x20
push 2
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42ec4d
push esi
mov ecx, edi
xor esi, esi
call fcn.0042e810
cmp eax, 3
jne 0x42ebd4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.0042e580
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x42ec25
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42eb60
test esi, esi
je 0x42eb60
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42eb60
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x10]
jne 0x42ec25
jmp 0x42eb62
xor esi, esi
test edi, edi
je 0x42ec30
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42ec25
mov esi, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42ebc4
test esi, esi
je 0x42ebc4
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ebc4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
push ebx
sbb esi, esi
and esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ec25
xor esi, esi
test ebx, ebx
je 0x42ebd1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x42ec25
mov eax, dword [edi]
test eax, eax
je 0x42ec30
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x42ec30
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x42ec23
test esi, esi
je 0x42ec23
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ec23
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x10]
jmp 0x42ec29
xor esi, esi
test edi, edi
je 0x42ec30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0049901c
mov esp, ebp
pop ebp
ret 4
Function at 0x42f520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0042ec60
test al, al
jne 0x42f542
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
pop esi
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
je 0x42f58d
call fcn.0042ec60
test al, al
je 0x42f58d
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42f58d
mov eax, dword [ebp - 4]
cmp eax, 2
je 0x42f583
cmp eax, 3
jne 0x42f58d
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0042ec60
test al, al
je 0x42f532
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f5ed
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x42fbc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f391
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00430770
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jne 0x42fc03
xor esi, esi
jmp 0x42fc6c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6dc4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d38a4]
cmp eax, dword [ecx + 4]
jg 0x42fcc4
push 0x4d388c
lea ecx, [ebp - 0x40]
call fcn.00401f70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42fc5f
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00413bd0
add esp, 0xc
mov esi, eax
jmp 0x42fc64
mov esi, 1
lea ecx, [ebp - 0x40]
call fcn.00401af0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42fca8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fc9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42fc9e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
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.0049901c
mov esp, ebp
pop ebp
ret
push 0x4d38a4
call fcn.004993df
add esp, 4
cmp dword [0x4d38a4], 0xffffffff
jne 0x42fc23
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 1
push eax
call fcn.004900f0
push str.office6_
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00401590
push str.wpscloudsvr.exe
push eax
push 0x4d388c
mov byte [ebp - 4], 3
call fcn.00401590
add esp, 0x20
lea ecx, [ebp - 0x58]
call fcn.00401af0
lea ecx, [ebp - 0x70]
call fcn.00401af0
push 0x4a77c0
call fcn.00499297
push 0x4d38a4
mov byte [ebp - 4], 0
call fcn.00499395
add esp, 8
jmp 0x42fc23
Function at 0x430770
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f4c6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6dc4]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x264], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d38a8]
cmp eax, dword [ecx + 4]
jg 0x4309e3
cmp dword [0x4ce098], 0
jne 0x4309b9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4309b9
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x430830
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430830
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00404580
push 0x12
xor eax, eax
mov dword [ebp - 0x230], 0
push str.Kingsoftoffice6_
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00404580
push str.wpscloudsvr.exe
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00401590
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 2
jb 0x4308c0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00401cd0
cmp eax, 0x4ce088
je 0x4308eb
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4308df
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x4ce088
call fcn.00404580
lea ecx, [ebp - 0x260]
call fcn.00401af0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x430936
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43092c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43098c
push edx
push ecx
call fcn.0049900e
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x43099c
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430992
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x430992
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x4ce088
mov ecx, esi
call fcn.00401f70
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.0049901c
mov esp, ebp
pop ebp
ret 4
push 0x4d38a8
call fcn.004993df
add esp, 4
cmp dword [0x4d38a8], 0xffffffff
jne 0x4307c5
push 0x4a7820
call fcn.00499297
push 0x4d38a8
call fcn.00499395
add esp, 8
jmp 0x4307c5
Function at 0x431000
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43106f
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x431072
cmp esi, edi
ja 0x431072
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 0xa
add esi, eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x431043
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0049901c
mov esp, ebp
pop ebp
ret 8
Function at 0x431570
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 0x431624
cmp edi, 0xffffffff
je 0x431624
push 0xf01ff
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4315fb
cmp esi, 0xffffffff
je 0x4315fb
push 0x1388
push esi
mov ecx, ebx
call fcn.00431000
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, eax
test ecx, ecx
jne 0x4315dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x430
sete cl
xor eax, eax
mov ebx, 0x50005
test ecx, ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmovne ebx, eax
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x43163b
cmp esi, 0xffffffff
je 0x43163b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test edi, edi
je 0x431644
cmp edi, 0xffffffff
je 0x431644
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x431970
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d38ac]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
mov edi, dword [ebp + 8]
test eax, eax
je 0x4319a7
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x4d38ac]
inc eax
mov dword [0x4d38ac], eax
call fcn.004110c0
test eax, eax
je 0x431afb
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d6dc4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d3934]
cmp eax, dword [ecx + 4]
jg 0x431b1e
push esi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
push 0xa
push 0x10
push 0x4d38b0
push dword [0x4d3930]
call esi
push 0xa
push 0x20
mov eax, edi
cdq
push 0x4d38f0
push edx
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__i64tow_s]
add esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xa
push 0x10
push 0x4d38d0
push eax
call esi
mov ecx, 8
mov dword [0x4d3940], 1
mov esi, str.kcrashdumper.exe
mov dword [0x4d393c], 0
lea edi, [ebp - 0x28]
mov dword [0x4d3938], 0xc
rep movsd dword es:[edi], dword [esi]
add esp, 0x10
lea eax, [ebp - 0x28]
movsw word es:[edi], word [esi]
push eax
call fcn.004110c0
push eax
push str._s_s
push 0x4d3948
call fcn.00431650
call fcn.00411460
push eax
push 0x4d38f0
push 0x4d38d0
push 0x4d38b0
push str._pid_s__tid_s__exp_s__callfrom1__module_s
push 0x4d4148
call fcn.00431690
push 0x4d528c
push 0x4d5248
push 0
push 0
push 1
push 0
mov eax, 0xa
mov dword [0x4d5248], 0x44
push 0x4d4148
push 0x4d3948
mov dword [0x4d5274], 1
mov word [0x4d5278], ax
call fcn.00492a60
add esp, 0x48
mov dword [0x4d529c], eax
test eax, eax
je 0x431afa
push 0xffffffffffffffff
push dword [0x4d528c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x4d5290]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x4d528c]
call esi
pop esi
call fcn.00431b60
push 0x3e9
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0049901c
mov esp, ebp
pop ebp
ret
push 0x4d3934
call fcn.004993df
add esp, 4
cmp dword [0x4d3934], 0xffffffff
jne 0x4319da
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0x4d3934
mov dword [0x4d3930], eax
call fcn.00499395
add esp, 4
jmp 0x4319da
Function at 0x431b60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f66d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4ce4bc]
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
call fcn.004110c0
test eax, eax
je 0x431cb4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401960
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], ecx
cmp eax, 8
jb 0x431cac
add eax, 0xfffffff9
lea edx, [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x5c], edx
sub edx, eax
mov esi, 0
sar edx, 1
je 0x431bf5
cmp word [eax], 0x2f
je 0x431bf3
cmp edx, 1
je 0x431bf5
add eax, 2
dec edx
cmp word [eax], 0x2f
jne 0x431be4
mov esi, eax
mov eax, esi
test eax, eax
je 0x431cac
movzx edx, word [eax]
mov edi, 0x2f
mov esi, 8
mov ecx, str._nativex
cmp edx, edi
jb 0x431c34
mov ebx, eax
sub ebx, ecx
cmp dx, di
ja 0x431c34
cmp esi, 1
je 0x431c3c
movzx edx, word [ebx + ecx + 2]
add ecx, 2
dec esi
movzx edi, word [ecx]
cmp dx, di
jae 0x431c1c
mov edx, dword [ebp - 0x5c]
add eax, 2
jmp 0x431bd3
sub eax, dword [ebp - 0x60]
sar eax, 1
cmp eax, 0xffffffff
je 0x431cac
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.0048f660
push str._addonsjsapi_nativex.dll
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00401590
add esp, 0x14
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401af0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x431ca4
push str.ProcNativeXCrash
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x431c9d
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x40]
call fcn.00401af0
lea ecx, [ebp - 0x28]
call fcn.00401af0
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.0049901c
mov esp, ebp
pop ebp
ret
Function at 0x432290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f705
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ce4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 0xc]
push esi
call fcn.004324b0
xor eax, eax
mov dword [edi], vtable.KClientHostSplashShow.0
mov dword [edi + 0x98], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
cmp byte [0x4d5908], al
je 0x432313
mov eax, 1
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1a]
push eax
push 0x4ac4ac
push str.KClientHostSplashShow
push 1
call fcn.0045bc40
add esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [edi + 0x20], 0
mov byte [ebp - 4], 1
mov al, byte [ebx + 0x80]
mov byte [edi + 0x9c], al
cmp byte [ebx], 0
je 0x432474
cmp byte [ebx + 0x83], 0
jne 0x432474
push 0
mov dword [edi + 0x20], 1
call fcn.0048e8e0
add esp, 4
test al, al
je 0x432371
test esi, esi
je 0x43236b
cmp esi, 1
je 0x43236b
cmp esi, 2
je 0x43236b
cmp esi, 3
jne 0x432371
test byte [ebx + 8], 0x1f
jmp 0x432375
cmp dword [ebx + 8], 0
je 0x43237e
mov dword [edi + 0x20], 0
cmp dword [ebx + 0xc8], 0
je 0x43238e
mov dword [edi + 0x20], 0
cmp dword [ebx + 4], 0
jne 0x4323a6
cmp dword [ebx + 0x28], 1
je 0x4323a6
cmp dword [ebx + 0x10], 1
je 0x4323a6
cmp byte [ebx + 0x7e], 0
je 0x4323ad
mov dword [edi + 0x20], 0
cmp dword [ebx + 0x30], 0
je 0x43240a
call fcn.00436fc0
test al, al
je 0x432403
cmp dword [edi + 0x24], 1
jne 0x43240a
cmp dword [ebx + 0x30], 1
jne 0x43240a
mov eax, dword [ebx + 0x2c]
mov esi, dword [eax]
cmp esi, eax
je 0x43240a
push 0xffffffffffffffff
lea ecx, [esi + 8]
push str..pps
call fcn.00438590
cmp eax, 0xffffffff
jne 0x432403
push eax
push str..ppsx
lea ecx, [esi + 8]
call fcn.00438590
cmp eax, 0xffffffff
jne 0x432403
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebx + 0x2c]
jne 0x4323d1
jmp 0x43240a
mov dword [edi + 0x20], 0
cmp dword [ebx + 0x10], 1
jne 0x432474
test byte [ebx + 8], 0x1f
je 0x432474
lea eax, [ebp + 0xc]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwarekingsoftOffice6.0CommonApplication_Settings
push 0x80000001
mov dword [ebp + 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43246b
lea eax, [ebp - 0x10]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10], 4
push eax
push ebx
push ebx
push str.oleForceShowSplash
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x432462
cmp dword [ebp + 8], ebx
setne bl
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi + 0x98], ebx
mov dword [edi + 0x20], ebx
cmp byte [0x4d5908], 0
mov byte [ebp - 4], 2
je 0x432492
push dword [ebp - 0x18]
push dword [ebp - 0x1a]
push dword [ebp - 0x1c]
call fcn.0045bca0
add esp, 0xc
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 8