joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494e90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x494f3a
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x494f3d
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x494f33
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x494f28
push eax
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x494f28
push 0
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 0xffffffff
je 0x494f28
xor ecx, ecx
test al, 3
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi]
mov edx, dword [esi + 4]
sub ecx, edx
mov eax, dword [esi + 8]
sub eax, ebx
push 0x44
push ecx
push eax
push edx
push ebx
xor eax, eax
push eax
xor ebx, ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
add ecx, dword [esi + 8]
sub eax, ecx
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x494f33
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
int3
int3

Function at 0x495fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, edi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor eax, eax
test esi, esi
je 0x496060
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x49605e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x49605e
mov ebx, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setg cl
and edi, 0xf
je 0x49605a
test eax, eax
jle 0x49605a
mov edx, ebx
add edx, eax
dec edi
movzx eax, word [ebx]
lea ebx, [ebx + eax*2]
add ebx, 2
cmp ebx, edx
setb cl
add edi, 0xffffffff
jae 0x49605a
cmp ebx, edx
jb 0x496043
test cl, cl
jne 0x49606a
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
movzx esi, word [ebx]
test esi, esi
sete al
test ebx, ebx
sete cl
or cl, al
mov eax, 0
jne 0x496060
lea eax, [ebx + 2]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x14]
mov ecx, edi
push esi
call fcn.005ff830
movzx ecx, word [ebx]
push ecx
push dword [ebp - 0x10]
push esi
push eax
call fcn.004961c0
add esp, 0x10
mov eax, dword [edi]
cmp dword [eax - 8], esi
jl 0x4960b9
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov word [eax + esi*2], 0
xor eax, eax
inc eax
jmp 0x496060
push 0x80070057
call fcn.0063c600
int3
Function at 0x4960d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ecx, 0x80d5a8
push 0
call fcn.005c5cea
test eax, eax
je 0x496110
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 4
inc ecx
movzx ecx, cx
mov dword [ebp - 0x20], ecx
and edx, 0xf
mov dword [ebp - 0x18], edx
lea ecx, [edx - 1]
mov dword [ebp - 0x14], ecx
xor esi, esi
inc esi
movzx ecx, word [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
jmp 0x496143
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
test cl, cl
je 0x496133
mov eax, ebx
cmp word [edi], 0
sete dl
test edi, edi
sete cl
or cl, dl
cmp cl, 1
jne 0x496112
mov ecx, 0x80d5a8
push esi
inc esi
call fcn.005c5cea
test eax, eax
je 0x496110
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x496133
mov ebx, eax
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x496133
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x496133
mov edi, eax
push ebx
mov eax, dword [ebp - 0x10]
mov ebx, eax
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setg cl
cmp dword [ebp - 0x18], 0
je 0x49611a
test eax, eax
jle 0x49611a
mov edx, edi
add edx, eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [edi]
lea edi, [edi + ecx*2]
add edi, 2
cmp edi, edx
setb cl
add eax, 0xffffffff
jae 0x49611a
cmp edi, edx
jb 0x496199
jmp 0x49611a

Function at 0x499630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
call fcn.0048d120
push 5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4996e3
mov esi, eax
push 0xf0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4996df
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4996e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4996e7
mov esi, dword [ebp + 0x18]
push ebx
push eax
mov dword [ebp - 0x10], eax
call fcn.00499710
add esp, 8
mov ebx, eax
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov esi, eax
xor edi, edi
test eax, eax
jne 0x4996c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp ebx, dword [ebp - 0x10]
sete al
test ebx, ebx
sete cl
or cl, al
jne 0x4996f1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4996f1
xor ebx, ebx
jmp 0x499678
xor esi, esi
jmp 0x4996fc
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x4996fc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49a3e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0xa8
mov esi, ecx
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 8], eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49a412
add esi, 4
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x49a425
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005c6b46
add esp, 0xa8
pop esi
pop ebp
ret
mov ecx, esi
push 0
call fcn.00602c60
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x49a412
push 1
call fcn.0055f440
add esp, 4
test al, al
je 0x49a412
call fcn.00642ea0
lea esi, [ebp - 0xac]
mov ecx, esi
push eax
push 1
push 0xb6
push str.....chromeupdaterwinuiui.cc
call fcn.00642eb0
lea eax, [ebp - 0xa4]
push 4
push str.Show
push eax
call fcn.00533f70
add esp, 0xc
push 0x1e
push str.:_::SetForegroundWindow_failed
push eax
call fcn.00533f70
add esp, 0xc
mov ecx, esi
call fcn.00642f10
jmp 0x49a412

Function at 0x49a880
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [0x808040]
xor edx, ebp
mov dword [ebp - 0x10], edx
cmp byte [esi + 0xb], 0
js 0x49a8db
mov word [esi], 0
mov byte [esi + 0xb], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x49a8c5
mov edi, eax
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x49a8eb
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esi]
mov word [edx], 0
mov dword [esi + 4], 0
jmp 0x49a8ac
xor ecx, ecx
dec ecx
lea ebx, [ebp - 0x1c]
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
inc eax
mov ecx, ebx
push eax
call fcn.00602ee0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
je 0x49a942
sub ecx, eax
sar ecx, 1
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
setne bl
jne 0x49a944
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49a8c7
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
je 0x49a934
add ecx, 0xfffffffe
jne 0x49a929
jmp 0x49a942
mov dword [ebp - 0x18], eax
push eax
call fcn.005c57c0
add esp, 4
jmp 0x49a8c7
ud2
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov edi, edx
sub edi, eax
sar edi, 1
mov ecx, esi
push edi
push edx
push eax
call fcn.00602f40
jmp 0x49a91f
Function at 0x4a5930
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, edx
mov esi, ecx
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ecx], eax
push ecx
push 0x78ae34
push 1
push eax
push 0x767188
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4a5a97
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0
movsx edx, byte [eax + 0xb]
test edx, edx
jns 0x4a5981
mov edx, dword [eax + 4]
mov eax, dword [eax]
test edx, edx
js 0x4a5a7d
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
sete cl
test eax, eax
setne ch
or ch, cl
je 0x4a5a7d
mov esi, dword [ebp - 0x14]
lea edi, [ebp - 0x1c]
mov ecx, edi
push edx
push eax
call fcn.004a6da0
mov ebx, dword [edi]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
call dword [0x8010bc]
sub esp, 0x24
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], esi
call ecx
mov esi, eax
mov ecx, edi
call fcn.004a6de0
test esi, esi
js 0x4a5a7f
cmp byte [ebp - 0x24], 0
je 0x4a5a28
mov eax, dword [ebp - 0x18]
sub esp, 0x20
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
movaps xmm0, xmmword [0x78add0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 3
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x4a5a8a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
mov dword [eax], ecx
test esi, esi
jne 0x4a5aa3
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0
xor eax, eax
mov byte [ecx + 4], al
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x4a5ab3
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4a5a6b
mov dword [ebp - 0x14], 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [0x8010bc]
push esi
call ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
mov ecx, dword [ebp - 0x20]
mov dword [ecx], 1
jmp 0x4a5a93
mov ecx, dword [ebp - 0x20]
mov dword [ecx], 2
mov al, 1
jmp 0x4a5a45
mov dword [esi], 0
mov byte [esi + 4], 1
jmp 0x4a5a4f
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [0x8010bc]
push esi
call ecx
jmp 0x4a5a3d
mov dword [ebp - 0x18], 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [0x8010bc]
push esi
call ecx
jmp 0x4a5a4f
Function at 0x4a5ad0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x80f2cc]
mov ecx, dword [0x80d580]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a5b01
movzx eax, word [0x80f2a8]
cmp eax, 9
jne 0x4a5b4c
xor eax, eax
inc eax
pop ebp
ret
push 0x80f2cc
call fcn.005c580d
add esp, 4
cmp dword [0x80f2cc], 0xffffffff
jne 0x4a5af0
xorps xmm0, xmm0
movups xmmword [0x80f2b8], xmm0
movups xmmword [0x80f2a8], xmm0
mov dword [0x80f2c8], 0
push 0x80f2a8
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x80f2cc
call fcn.005c5887
add esp, 4
jmp 0x4a5af0
test eax, eax
je 0x4a5aff
cmp eax, 6
jne 0x4a5b5c
mov eax, 2
jmp 0x4a5aff
cmp eax, 0xc
jne 0x4a5b68
mov eax, 3
jmp 0x4a5aff
mov eax, 4
jmp 0x4a5aff

Function at 0x4a7030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x18
pop ebp
ret 4

Function at 0x4a7060
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
test eax, eax
je 0x4a70ec
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 4]
lea edx, [ebp - 0x24]
mov dword [edx], ecx
mov ecx, ebx
or ecx, 0x10001
push edx
push ecx
push 8
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a70d4
lea eax, [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
and ebx, 0x300
mov dword [ebp - 0x18], ebx
cmp byte [eax], 1
jne 0x4a70f3
test ecx, ecx
je 0x4a70c4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi + 4]
push dword [ebp + 8]
push dword [esi]
call fcn.004a7150
add esp, 0xc
mov edi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov edi, 6
jmp 0x4a70d6
mov ebx, ecx
xor eax, eax
dec eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
call fcn.004a72c0
cmp byte [ebp - 0x20], 0
jne 0x4a7125
push 0
push dword [esi + 4]
push 0x77ac6c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
jmp 0x4a7128
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x4a70d6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a70d6
push 1
call fcn.004a7a50
jmp 0x4a70d6
Function at 0x4a7150
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [0x808040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, ebx
or ecx, 0x10009
lea edi, [ebp - 0x24]
mov dword [edi], esi
mov edx, dword [ebp + 0xc]
push edi
push ecx
push 8
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a71fb
mov edx, edi
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov dword [ecx], edi
mov eax, ebx
and eax, 0x300
mov dword [ecx + 4], eax
xor eax, eax
dec eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
push edx
call fcn.004a72c0
cmp byte [ebp - 0x20], 0
jne 0x4a72a6
push 0
push ebx
push 0x77ac6c
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor esi, esi
test eax, eax
jne 0x4a7203
test edi, edi
je 0x4a71dc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x4a72ae
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 2
cmovne esi, eax
jmp 0x4a71dc
mov esi, 0x200
push esi
call fcn.005c57f3
add esp, 4
push esi
push 0
mov ebx, eax
push eax
call fcn.005c9b00
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x24], 0x100
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], 0
call esi
test eax, eax
jne 0x4a727a
mov eax, dword [ebp - 0x24]
cmp eax, 0x100
jae 0x4a72ba
cmp word [ebx + eax*2], 0
jne 0x4a72bd
mov edi, dword [ebp - 0x1c]
push dword [ebp + 0x10]
push ebx
push edi
call fcn.004a7150
add esp, 0xc
test eax, eax
je 0x4a7225
jmp 0x4a727d
mov edi, dword [ebp - 0x1c]
push 0
push dword [ebp + 0x10]
push 0x77ac6c
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
test ebx, ebx
je 0x4a71d1
push ebx
call fcn.005c57fc
add esp, 4
jmp 0x4a71d1
mov esi, dword [ebp - 0x24]
jmp 0x4a71d1
push 1
call fcn.004a7a50
jmp 0x4a71e7
int3
int3
Function at 0x4a72c0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
lea ecx, [ebp - 0x10]
mov dword [ecx], eax
push eax
push eax
push ecx
push eax
push str.SymbolicLinkValue
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x4a7311
mov byte [esi], 0
xor eax, eax
mov byte [esi + 4], al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005c6b46
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebp
ret 4
test eax, eax
jne 0x4a7358
cmp dword [ebp - 0x10], 6
jne 0x4a72f4
push dword [edi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x4a735e
mov edi, eax
mov eax, dword [0x80f310]
mov ecx, dword [0x80d580]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a736d
mov ecx, dword [0x80f30c]
test ecx, ecx
je 0x4a7366
call dword [0x8010bc]
push edi
call ecx
mov dword [esi], eax
mov al, 1
jmp 0x4a72f9
mov dword [esi], 0
jmp 0x4a735a
mov eax, 5
jmp 0x4a7358
push 0x80f310
call fcn.005c580d
add esp, 4
cmp dword [0x80f310], 0xffffffff
jne 0x4a7345
push 0x780bb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlNtStatusToDosError
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x80f30c], eax
push 0x80f310
call fcn.005c5887
add esp, 4
jmp 0x4a7345

Function at 0x4a73d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a7443
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x4a742d
cmp dword [ebp - 0x18], 4
jne 0x4a742d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x4a742d
Function at 0x4a7450
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.005c6f70
mov esi, ecx
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.005c9b00
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a74df
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x4a74e3
mov ecx, esi
push edi
call fcn.004a50b0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x4a74c6
cmp eax, 2
jne 0x4a7525
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.005c9b00
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x4a752c
mov ecx, esi
push ebx
jmp 0x4a74bf
mov esi, 0x3f4
jmp 0x4a74c6
mov esi, 0xea
jmp 0x4a74c6

Function at 0x4a7540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 8]
mov edx, dword [0x808040]
xor edx, ebp
mov dword [ebp - 8], edx
mov edx, 4
lea esi, [ebp + 0xc]
push edx
push esi
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005c6b46
mov eax, esi
add esp, 4
pop esi
pop ebp
ret 8

Function at 0x4a7580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.005e20d4
add esp, 4
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4a75c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx], 0
je 0x4a7680
cmp dword [esi + 4], 0xffffffff
je 0x4a7680
lea ecx, [esi + 8]
cmp byte [esi + 0x13], 0
jns 0x4a76aa
mov edx, SysReAllocString
and edx, dword [esi + 0x10]
dec edx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x14]
mov dword [eax], edx
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
sub eax, ebx
add eax, 0xfffffffe
lea edi, [esi + 0x20]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x1c], eax
push edx
push ecx
mov dword [ebp - 0x24], ecx
call fcn.004a9070
add esp, 8
mov dword [ebp - 0x28], edi
push edi
push ebx
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x4a76b4
test eax, eax
jne 0x4a7680
mov eax, dword [esi + 0x20]
inc eax
shr eax, 1
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub edx, ecx
sar edx, 1
cmp edx, eax
jbe 0x4a76a8
mov word [ecx + eax*2], 0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 8]
cmp byte [esi + 0x13], 0
jns 0x4a768b
mov eax, dword [eax]
mov word [eax], 0
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x18], eax
je 0x4a76a8
mov word [eax], 0
mov dword [esi + 0x20], 0
xor ebx, ebx
jmp 0x4a766c
ud2
mov edx, 4
jmp 0x4a75fe
mov eax, dword [esi + 0x20]
inc eax
shr eax, 1
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edx, ecx
mov ebx, edi
sub edx, edi
sar edx, 1
cmp eax, edx
jb 0x4a76e5
lea ecx, [esi + 0x14]
inc eax
lea edx, [ebp - 0x16]
mov word [edx], 0
push edx
push eax
call fcn.004a7770
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edi, ebx
sub ecx, ebx
add ecx, 0xfffffffe
mov dword [esi + 0x20], ecx
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x14], ebx
mov eax, 0x4000
cmovne eax, ebx
mov dword [ebp - 0x14], eax
push eax
push dword [ebp - 0x24]
call fcn.004a9070
add esp, 8
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x4a764c

Function at 0x4a7750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4a775f
dec eax
mov dword [ecx + 4], eax
pop ebp
jmp fcn.004a75c0