joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454960
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esi + 0x54]
sub esp, 0xc
mov ecx, eax
push ebx
and ecx, 0xc
push edi
mov bl, 1
cmp cl, 0xc
jne 0x4549b9
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [esp + 0xc], eax
call edi
mov edx, dword [esi + 4]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 8]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov al, bl
pop ebx
add esp, 0xc
ret
shr eax, 2
test al, 1
je 0x4549f2
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
push ecx
movzx edx, di
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov al, bl
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x28]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x454a25
mov ecx, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x456100
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp byte [0x53044d], 0
jne 0x4561af
lea eax, [esp]
push eax
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
mov ecx, 1
cmp eax, 5
jne 0x45616e
mov eax, dword [esp + 8]
sub eax, 0
je 0x456166
sub eax, ecx
je 0x45615a
mov dword [0x530450], 3
jmp 0x4561a9
mov dword [0x530450], 2
jmp 0x4561a9
mov dword [0x530450], ecx
jmp 0x4561a9
cmp eax, 6
jne 0x45619d
cmp byte [esp + 0x11a], cl
je 0x456188
mov dword [0x530450], 5
jmp 0x4561a9
xor edx, edx
cmp dword [esp + 8], edx
setne dl
lea edx, [edx + edx + 4]
mov dword [0x530450], edx
jmp 0x4561a9
jbe 0x4561a9
mov dword [0x530450], 6
mov byte [0x53044d], cl
mov ecx, dword [esp + 0x11c]
mov eax, dword [0x530450]
xor ecx, esp
call fcn.004c9392
add esp, 0x120
ret
Function at 0x4563d0
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ebx, eax
mov dword [esp + 0x10], 0
test ebp, ebp
jne 0x4563f0
mov eax, 0x800000a0
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4563f5
sub eax, edx
sar eax, 1
push eax
lea esi, [edi + 0xc]
mov eax, ebp
call fcn.00404e70
test ebx, ebx
je 0x45643a
mov eax, ebx
lea edx, [eax + 2]
jmp 0x456420
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456420
sub eax, edx
sar eax, 1
push eax
lea esi, [edi + 0x28]
mov eax, ebx
call fcn.00404e70
mov eax, dword [esp + 0x14]
push ebp
mov dword [edi + 0x44], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x456481
cmp dword [esp + 0x18], eax
jne 0x45645d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
pop esi
pop ebp
pop ebx
ret 0x10
mov ebx, dword [esp + 0x1c]
push ebx
mov eax, ebp
call fcn.00456550
test eax, eax
jns 0x456478
mov eax, VariantClear
pop esi
pop ebp
pop ebx
ret 0x10
mov byte [edi + 0x50], 1
mov dword [edi + 0x4c], ebx
jmp 0x456485
mov ebx, dword [esp + 0x1c]
mov esi, edi
call fcn.004565b0
test eax, eax
jne 0x45649b
mov eax, reloc.OLEAUT32.dll_SysStringLen
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, edi
call fcn.004567b0
mov ebx, eax
test ebx, ebx
jns 0x4564b5
call fcn.00456680
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 0x10
cmp byte [edi + 0x50], 0
je 0x4564c0
mov ebx, 2
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x10

Function at 0x4565b0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4f0870
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x44]
neg eax
sbb eax, eax
and eax, 0xc0000000
lea edi, [esi + 0xc]
add eax, 0xc0000000
cmp dword [edi + 0x14], 8
jb 0x4565f9
mov ecx, dword [edi]
jmp 0x4565fb
mov ecx, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x10000080
push 3
push 0
push 3
push eax
push ecx
call ebx
cmp dword [esi + 0x44], 0
mov dword [esi + 8], eax
jne 0x456644
test eax, eax
je 0x456624
cmp eax, 0xffffffff
jne 0x456644
cmp dword [edi + 0x14], 8
jb 0x45662c
mov edi, dword [edi]
push 0
push 0x10000080
push 3
push 0
push 3
push SysReAllocString
push edi
call ebx
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
jne 0x456651
mov dword [esi + 8], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x456664
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x4c], eax
xor eax, eax
cmp dword [esi + 8], eax
setne al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x4566b0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
mov ebx, eax
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 4]
push edi
cmp eax, ebp
je 0x4566cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esi + 4], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esi + 0x4c], edi
cmp ebx, edi
jbe 0x4566f0
mov edi, ebx
mov dword [esi + 0x4c], ebx
xor ebx, ebx
cmp dword [esi + 0x38], ebp
je 0x456702
cmp dword [esi + 0x3c], 8
lea ebx, [esi + 0x28]
jb 0x456702
mov ebx, dword [ebx]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 8]
push ebx
push edi
push edx
push 4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call ebp
mov dword [esi + 4], eax
test eax, eax
jne 0x456739
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ebx
push edi
push ecx
push 2
push eax
push edx
mov dword [esi + 0x48], 1
call ebp
mov dword [esi + 4], eax
cmp dword [esi + 4], 0
jne 0x45675b
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 8]
push 0
push edi
push eax
push 2
push 0
push ecx
mov dword [esi + 0x48], 2
call ebp
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esi + 4], eax
pop edi
pop ebp
setne al
pop ebx
add esp, 8
ret

Function at 0x4567b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [esp + 0xc], edi
cmp byte [esi + 0x50], 0
jne 0x4567ea
cmp dword [esi + 0x38], edi
je 0x4567ea
cmp dword [esi + 0x3c], 8
lea eax, [esi + 0x28]
jb 0x4567d9
mov eax, dword [eax]
push eax
push 1
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x4567ff
mov eax, ebx
call fcn.004566b0
test eax, eax
je 0x456832
mov edi, 1
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x4c], eax
cmp eax, ebx
jae 0x45683d
cmp dword [esi], 0
jne 0x456832
mov eax, dword [esi + 4]
test eax, eax
je 0x456825
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, reloc.OLEAUT32.dll_SysStringLen
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push ecx
call fcn.00419900
add esp, 4
call fcn.00456880
test eax, eax
jne 0x456862
call fcn.00456770
mov eax, reloc.OLEAUT32.dll_SysStringLen
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xffffff49
pop edi
add eax, 0xb7
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4569e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e9c69
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], 0
mov edi, ecx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x30], 0
movzx ecx, byte [esp + 0x23]
movzx edx, byte [esp + 0x22]
movzx eax, byte [esp + 0x21]
push ecx
movzx ecx, byte [esp + 0x24]
push edx
movzx edx, byte [esp + 0x27]
push eax
movzx eax, byte [esp + 0x2a]
push ecx
movzx ecx, byte [esp + 0x2d]
push edx
movzx edx, byte [esp + 0x30]
push eax
movzx eax, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push str._08X_04X_04X_02X_02X_02X_02X_02X_02X_02X_02X
mov dword [esp + 0x3c], 1
call fcn.00404770
add esp, 0x30
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c9392
add esp, 0x2c
ret
Function at 0x456c90
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ee431
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x74]
xor eax, eax
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
cmp dword [edi + 4], eax
jne 0x456ce7
push ebp
mov ecx, 0x506c24
call fcn.00405cc0
jmp 0x456e59
mov ecx, 7
xor edx, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov word [esp + 0x28], dx
mov ebx, 1
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x54], eax
xor eax, eax
mov word [esp + 0x44], ax
push 4
mov eax, str.GUID
lea esi, [esp + 0x48]
mov dword [esp + 0x5c], ecx
call fcn.00404e70
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 2
mov edx, dword [edi + 4]
push ecx
mov ecx, esi
call fcn.004173d0
test eax, eax
mov esi, 8
sete byte [esp + 0x1b]
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x58], esi
jb 0x456d5a
mov edx, dword [esp + 0x44]
push edx
call fcn.004c9387
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x456d99
cmp dword [esp + 0x38], 0x20
jne 0x456d99
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x3c], esi
jae 0x456d76
lea ecx, [esp + 0x28]
push ebp
call fcn.00405cc0
mov byte [esp + 0x6c], 0
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x3c], esi
jb 0x456e59
mov eax, dword [esp + 0x28]
push eax
jmp 0x456e51
lea ecx, [esp + 0x1c]
call fcn.004569e0
mov byte [esp + 0x6c], 3
mov eax, dword [esp + 0x1c]
mov edi, dword [edi + 4]
xor ecx, ecx
test eax, eax
setne cl
mov esi, eax
test ecx, ecx
je 0x456e0d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [edi]
lea ecx, [eax + eax + 2]
push ecx
push esi
push ebx
push 0
push str.GUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x456e0d
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.00406260
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x456e34
push ebp
mov ecx, 0x506c24
call fcn.00405cc0
mov byte [esp + 0x6c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x456e40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x3c], 8
jb 0x456e59
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004c9387
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004c9392
add esp, 0x5c
ret 4
Function at 0x4573a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [eax + 4]
sub esp, 0xc
test eax, eax
jne 0x4573b1
or eax, 0xffffffff
add esp, 0xc
ret
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
mov dword [esp + 0x10], 0
mov edx, dword [eax]
push str.InstallTime
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4573aa
cmp dword [esp + 8], 4
jne 0x4573aa
mov ecx, dword [esp]
add ecx, 0xc1c2bf80
js 0x4573aa
mov eax, 0x6ef5de4d
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0xc
ret
Function at 0x457bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ee320
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x18], edi
xor ebx, ebx
mov dword [esp + 0x10], edi
cmp dword [esi + 8], edi
jle 0x457c5d
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ecx]
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov eax, dword [ecx]
push eax
mov dword [esp + 0x2c], 4
call ebp
test eax, eax
jne 0x457c54
cmp dword [esp + 0x18], 4
jne 0x457c54
mov ecx, dword [esi + 4]
lea eax, [edi + ecx]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax + 0xc]
ja 0x457c4b
cmp ecx, dword [eax + 8]
jb 0x457c4b
mov eax, ecx
jmp 0x457c4e
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x10]
mov dword [edx + ebx*4], eax
inc ebx
add edi, 0x14
cmp ebx, dword [esi + 8]
jl 0x457c00
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x457c70
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ee2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov ebp, 7
xor eax, eax
mov edi, ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
mov dword [esp + 0x70], 8
xor ecx, ecx
push 8
mov eax, str.Modified
lea esi, [esp + 0x30]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
call fcn.00404e70
lea edx, [esp + 0x48]
mov byte [esp + 0x70], 9
push edx
mov edx, dword [edi + 0xc]
mov ecx, esi
call fcn.004173d0
test eax, eax
mov esi, 8
setne byte [esp + 0x17]
mov byte [esp + 0x70], 8
cmp dword [esp + 0x40], esi
jb 0x457d1d
mov eax, dword [esp + 0x2c]
push eax
call fcn.004c9387
add esp, 4
cmp byte [esp + 0x17], bl
je 0x457d3f
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x5c], esi
jb 0x457e5c
mov ecx, dword [esp + 0x48]
push ecx
jmp 0x457e54
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x70], 0xa
xor edx, edx
push 1
mov eax, 0x502f5c
lea esi, [esp + 0x30]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
call fcn.00404e70
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov byte [esp + 0x78], 0xb
call fcn.0044f5b0
add esp, 8
mov byte [esp + 0x70], 0xa
cmp dword [esp + 0x40], 8
jb 0x457da1
mov edx, dword [esp + 0x2c]
push edx
call fcn.004c9387
add esp, 4
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x1c]
mov word [esp + 0x2c], ax
mov ecx, ebp
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x3c], ebx
je 0x457dfb
mov ebp, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push esi
mov ecx, edi
call eax
cmp eax, dword [edi + 8]
je 0x457ded
mov ecx, dword [edi + 0x10]
mov byte [ecx + eax + 0x13c], 1
add esi, 0x1c
dec ebp
jne 0x457dd3
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov byte [esp + 0x70], 8
cmp esi, ebx
je 0x457e40
mov edi, dword [esp + 0x18]
cmp edi, ebp
je 0x457e37
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x457e21
mov eax, dword [esi]
push eax
call fcn.004c9387
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
add esi, 0x1c
cmp esi, ebp
jne 0x457e10
push edi
call fcn.004c9387
add esp, 4
mov dword [esp + 0x70], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x457e5c
mov eax, dword [esp + 0x48]
push eax
call fcn.004c9387
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.004c9392
add esp, 0x60
ret
Function at 0x4582e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ee268
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x20]
push ecx
push ebx
mov dword [esp + 0x20], ebx
mov edx, dword [eax]
push str.MigratedV1
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x458350
cmp dword [esp + 0x18], 4
jne 0x458350
cmp dword [esp + 0x10], ebx
jne 0x4583f0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x14]
push eax
push 0x20219
push ebx
push str.SoftwareGoogleGoogle_Pinyin
mov dword [esp + 0x40], 8
push SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4583f0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x200
call fcn.004584f0
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.004585f0
lea eax, [esp + 0x1c]
push eax
call fcn.00458410
mov edx, dword [esi + 0xc]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push ebx
mov dword [esp + 0x28], 1
mov eax, dword [edx]
push str.MigratedV1
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp edi, ebx
je 0x4583f0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x458410
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ee240
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], edi
xor ebx, ebx
mov dword [esp + 0x10], edi
cmp dword [esi + 8], edi
jle 0x4584db
mov ebp, 4
mov eax, dword [esi + 4]
mov eax, dword [edi + eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
mov eax, dword [edx]
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4584ce
cmp dword [esp + 0x18], ebp
jne 0x4584ce
mov ecx, dword [esi + 4]
lea eax, [edi + ecx]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax + 0xc]
ja 0x45849b
cmp ecx, dword [eax + 8]
jb 0x45849b
mov eax, ecx
jmp 0x45849e
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x10]
mov dword [edx + ebx*4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4584ce
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + ebx*4]
push ebp
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esi + 4]
mov ecx, dword [edi + edx]
mov edx, dword [eax]
push ebp
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc ebx
add edi, 0x14
cmp ebx, dword [esi + 8]
jl 0x458450
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x4584f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ee220
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push ebp
push str.CommonSettings
mov edi, 4
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x4585cd
cmp dword [esp + 0x28], edi
jne 0x4585cd
lea ebx, [ebp + 1]
jmp 0x458560
mov ecx, dword [ebp + 0x52c1b8]
cmp ecx, dword [esi + 8]
je 0x4585c3
mov edi, dword [esi + 4]
mov eax, ebx
and eax, dword [esp + 0x10]
lea edx, [ecx + ecx*4]
neg eax
sbb eax, eax
add edx, edx
neg eax
add edx, edx
cmp eax, dword [edi + edx + 0xc]
ja 0x45858d
cmp eax, dword [edi + edx + 8]
jae 0x458591
mov eax, dword [edi + edx + 4]
mov edi, dword [esi + 0x10]
mov dword [edi + ecx*4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4585c3
mov edi, dword [esi + 0x10]
mov ecx, dword [edi + ecx*4]
mov dword [esp + 0x28], ecx
mov eax, dword [eax]
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 4]
mov edx, dword [edx + ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add ebp, 4
rol ebx, 1
cmp ebp, 0x74
jb 0x458560
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x4585f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ee320
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
push ecx
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push ebx
push str.ModeModified
mov esi, 4
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x45869d
cmp dword [esp + 0x18], esi
jne 0x45869d
lea edi, [ebx + 1]
xor esi, esi
nop
mov eax, dword [esi + 0x52c1b8]
cmp eax, dword [ebp + 8]
je 0x45868b
mov edx, dword [ebp + 4]
cmp byte [edx + ebx + 0x10], 0
je 0x45868b
test dword [esp + 0x2c], edi
mov edx, dword [ebp]
mov edx, dword [edx + 0x20]
setne cl
movzx ecx, cl
push ecx
push eax
mov ecx, ebp
call edx
add esi, 4
add ebx, 0x14
rol edi, 1
cmp esi, 0x74
jb 0x458660
mov esi, 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 0
push str.Param1Modified
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45870d
cmp dword [esp + 0x30], esi
jne 0x45870d
xor ebx, ebx
lea edi, [eax + 1]
xor esi, esi
mov eax, dword [esi + 0x52c17c]
cmp eax, dword [ebp + 8]
je 0x458700
mov edx, dword [ebp + 4]
cmp byte [edx + ebx + 0x10], 0
je 0x458700
test dword [esp + 0x2c], edi
mov edx, dword [ebp]
mov edx, dword [edx + 0x20]
setne cl
movzx ecx, cl
push ecx
push eax
mov ecx, ebp
call edx
add esi, 4
add ebx, 0x14
rol edi, 1
cmp esi, 0x3c
jb 0x4586d5
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8

Function at 0x458790
Capabilities:
Encode data using xor

Disassembly:
test esi, esi
jne 0x458797
xor al, al
ret
mov byte [esi], 0
test eax, eax
je 0x458794
xor cl, cl
inc eax
mov edx, 4
push edi
movzx edi, byte [eax - 1]
movzx ecx, cl
xor edi, ecx
movzx ecx, byte [edi + 0x502e58]
movzx edi, byte [eax]
xor ecx, edi
movzx ecx, byte [ecx + 0x502e58]
movzx edi, byte [eax + 1]
xor ecx, edi
movzx ecx, byte [ecx + 0x502e58]
movzx edi, byte [eax + 2]
xor ecx, edi
movzx ecx, byte [ecx + 0x502e58]
movzx edi, byte [eax + 3]
xor ecx, edi
movzx ecx, byte [ecx + 0x502e58]
movzx edi, byte [eax + 4]
xor ecx, edi
mov cl, byte [ecx + 0x502e58]
add eax, 6
dec edx
jne 0x4587a7
xor cl, 0x55
mov byte [esi], cl
mov al, 1
pop edi
ret