joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101f0d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0101ecd9
push eax
push esi
push dword [ebp + 8]
call fcn.0101ec8e
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0101ecd9
push eax
push esi
push dword [ebp + 8]
jne 0x101f0e2
call fcn.0101ec8e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x101f164
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0101ecd9
push eax
push esi
push dword [ebp + 8]
call fcn.0101ec8e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0101ecc9
jl 0x101f10f
or ebx, esp
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0101ecc9
and dword [ecx], esp
push ebp
invalid
Function at 0x6cc820e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6cc8213b
cmp byte [esi + ebx - 1], 0xa
je 0x6cc8210f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6cc83118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x10001260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
push esi
push edi
lea edi, [eax + edx*8]
mov edx, 0x10011f4c
mov ecx, 0x10
mov eax, edi
sub edx, edi
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x1000138d
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10001282
mov eax, dword [edi + 0x10]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100012a0
sub ecx, esi
sar ecx, 1
push ecx
mov esi, ebx
call fcn.10002c10
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0x10]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100012c2
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebx + 0x1c]
call fcn.10002c10
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 0x10]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100012e5
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebx + 0x40]
call fcn.10002c10
mov eax, dword [edi]
mov dword [ebx + 0x78], eax
mov ecx, dword [edi + 4]
mov dword [ebx + 0x7c], ecx
mov edx, dword [edi + 8]
mov dword [ebx + 0x80], edx
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x84], eax
mov ecx, dword [edi + 0x24]
mov dword [ebx + 0x38], ecx
mov edx, dword [edi + 0x28]
lea eax, [ebp + 0xc]
push eax
push 0
push 0
mov dword [ebx + 0x3c], edx
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push edi
push ecx
mov dword [ebp + 0xc], 0
call dword [0x10012cb8]
mov edi, eax
test edi, edi
jne 0x10001382
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
mov eax, dword [eax + 0x10]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10001360
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebx + 0x5c]
call fcn.10002c10
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x10012cb4]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000392e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100112f8]
jne 0x10003938
repz ret
jmp fcn.1000460d
Function at 0x10009410
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100112f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000672f
and dword [ebp - 0x14], 0
cmp dword [0x10012c78], 0
mov dword [ebp - 0x18], eax
jne 0x100094c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000956b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000956b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10012c78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10012c7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10012c80], eax
call edi
push eax
call esi
mov dword [0x10012c88], eax
test eax, eax
je 0x100094c3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10012c84], eax
mov eax, dword [0x10012c84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000951c
cmp dword [0x10012c88], ecx
je 0x1000951c
push eax
call esi
push dword [0x10012c88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000951c
test ebx, ebx
je 0x1000951c
call edi
test eax, eax
je 0x10009513
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10009513
test byte [ebp - 8], 1
jne 0x1000951c
or dword [ebp + 0x10], 0x200000
jmp 0x1000954f
mov eax, dword [0x10012c7c]
cmp eax, dword [ebp - 0x18]
je 0x1000954f
push eax
call esi
test eax, eax
je 0x1000954f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000954f
mov eax, dword [0x10012c80]
cmp eax, dword [ebp - 0x18]
je 0x1000954f
push eax
call esi
test eax, eax
je 0x1000954f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10012c78]
call esi
test eax, eax
je 0x1000956b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000956d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000392e
leave
ret
Function at 0x401e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8658
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e44b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [esp + 0x40]
mov dword [esp + 0x38], 0
call fcn.00404160
mov ebp, eax
lea esi, [edi + 0xc]
lea ebx, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ebp
call fcn.00402390
mov edi, dword [esp + 0x18]
test edi, edi
mov ebx, dword [esi + 4]
je 0x401e9f
cmp edi, esi
je 0x401ea4
call fcn.00496100
cmp dword [esp + 0x1c], ebx
jne 0x401edd
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x18]
push ecx
push esi
lea ebx, [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
call fcn.004022b0
cmp dword [esp + 0x58], 0x10
jb 0x401ed9
mov edx, dword [esp + 0x44]
push edx
call fcn.00495fd1
add esp, 4
mov al, 1
jmp 0x401f15
test edi, edi
jne 0x401ee6
call fcn.00496100
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 4]
jne 0x401ef4
call fcn.00496100
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x10], ecx
cmp dword [esp + 0x58], 0x10
jb 0x401f13
mov eax, dword [esp + 0x44]
push eax
call fcn.00495fd1
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x20

Function at 0x404c20
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x4e44b4]
xor eax, esp
mov dword [esp + 0x228], eax
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00499a30
push 0
push esi
push str._s_c
push 0x208
lea ecx, [esp + 0x3c]
push 0x104
push ecx
call fcn.00496163
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
mov dword [esp + 0x24], eax
add esp, 0x24
lea eax, [esp]
lea edx, [esp + 0x20]
push eax
mov dword [esp + 8], 3
mov word [esp + 0x14], 0x14
mov dword [esp + 0xc], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x228]
neg eax
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.00495cb8
add esp, 0x22c
ret

Function at 0x404e80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404eaf
xor al, al
pop esi
pop ecx
ret
movzx ecx, word [esp + 0xc]
push ebx
push edi
push 0x4cb660
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov al, 1
pop esi
pop ecx
ret
Function at 0x405010
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x4e44b4]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp ebx, esi
jne 0x405047
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00495cb8
add esp, 0x210
ret
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405050
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 0x104
jb 0x405084
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00495cb8
add esp, 0x210
ret
push ebp
push 0x208
lea eax, [esp + 0x16]
push esi
push eax
mov word [esp + 0x1c], si
call fcn.00499a30
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
cmp edi, esi
jbe 0x4050ef
lea ecx, [esp + 0x10]
sub ebx, ecx
lea ecx, [ecx]
cmp esi, 0x104
jge 0x4050ef
lea edx, [ebx + esi*2]
movzx eax, word [esp + edx + 0x10]
cmp ax, 0x5c
mov word [esp + esi*2 + 0x10], ax
jne 0x4050e8
lea eax, [esp + 0x10]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x4050e8
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40511d
add esi, 1
cmp esi, edi
jb 0x4050b0
cmp word [esp + edi*2 + 0xe], 0x5c
lea eax, [esp + edi*2 + 0x10]
je 0x405121
lea edx, [esp + 0x10]
push edx
mov word [eax], 0x5c
call ebp
cmp eax, 0xffffffff
jne 0x405121
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405121
xor eax, eax
jmp 0x405126
mov eax, 1
mov ecx, dword [esp + 0x21c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00495cb8
add esp, 0x210
ret

Function at 0x4057b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c06d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4e44b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push 0x4057a0
push eax
call fcn.004058c0
add esp, 8
mov esi, eax
mov dword [esp + 0x30], 0
call fcn.0047a2f0
push eax
push 0x10
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3HummerSetup_task_exit.cpp
push str.TaskExit::Run
lea ecx, [esp + 0x24]
call fcn.0047a2b0
xor edx, edx
push edx
xor ecx, ecx
push ecx
push 1
push esi
push eax
call fcn.004363a0
add esp, 0x14
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0047a6a0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bf6d8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4e44b4]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
cmp dword [esp + 0x28], 0
je 0x408aad
lea eax, [esp + 0x14]
push eax
call fcn.00473b00
add esp, 4
test al, al
je 0x408aad
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 8]
call fcn.00475e00
lea edx, [esi + 0x40]
push edx
lea eax, [esi + 0x30]
push eax
lea ecx, [esi + 0x24]
push ecx
lea ecx, [esi + 8]
call fcn.0043bd90
push esi
call fcn.0043d330
push esi
call fcn.0043daf0
push esi
call fcn.0043dea0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00475620
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x1c
Function at 0x412a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bbf3d
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
mov eax, dword [0x4e44b4]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xd
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x4ca87c
mov dword [esp + 0x34], ebx
mov byte [ecx + 4], bl
call fcn.00402d90
call fcn.00401db0
add esp, 0x20
cmp al, bl
je 0x412b22
lea ecx, [esp + 0x10]
call fcn.0047b890
push 0x20006
push str.SoftwareTencentQQ2009
push closesocket
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc4], ebx
call fcn.0047c0d0
mov ecx, dword [esp + 0xc]
push ecx
push str.nUpdateType
lea ecx, [esp + 0x18]
call fcn.0047c0f0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb8], 0xffffffff
call fcn.0047bb30
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x4e8f68], 1
jne 0x412b6c
call fcn.004722e0
cmp eax, 3
jg 0x412b6c
push 3
push 0x17
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3HummerSetup_register_set_update_type.cpp
lea ecx, [esp + 0x24]
call fcn.00473160
add eax, 4
push str.Check_failed:_false.
mov dword [esp + 0xbc], 1
mov ebx, 1
push eax
mov dword [esp + 0x14], ebx
call fcn.004041d0
add esp, 8
test bl, 1
mov dword [esp + 0xb8], 0xffffffff
je 0x412b85
lea ecx, [esp + 0x18]
call fcn.00472c30
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x4e44b4]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push 0x4cca7c
push 0x208
lea eax, [esp + 0x1c]
push 0x104
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x18], 0
call fcn.00496163
add esp, 0x18
lea ecx, [esp]
push ecx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41622b
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 4]
lea ecx, [esp + 0x218]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push str.ProfileImagePath
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x416242
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00495cb8
add esp, 0x420
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
shr eax, 1
lea ecx, [esp + 0x214]
call fcn.00416140
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00495cb8
add esp, 0x420
ret
Function at 0x416280
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x448
mov eax, dword [0x4e44b4]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 9
xor edi, edi
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4162d3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00495cb8
add esp, 0x448
ret
push 0x206
lea ecx, [esp + 0x246]
push edi
push ecx
mov word [esp + 0x24c], di
call fcn.00499a30
add esp, 0xc
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push edi
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
push eax
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x4163e4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, 0x4ee2c8
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x54]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0xff
call ebx
test eax, eax
jne 0x4163d1
lea edx, [esp + 0x40]
push edx
call fcn.00416180
add esp, 4
lea eax, [esp + 0x40]
push eax
push 0x4cc9fc
push 0x200
lea ecx, [esi - 0x200]
push 0x100
push ecx
call fcn.00496163
add esp, 0x14
push 0x4ead08
push 0x4cc9fc
push 0x400
push 0x200
push esi
call fcn.00496163
add esp, 0x14
mov dword [esi + 0x400], edi
add edi, 1
add esi, 0x608
cmp edi, dword [esp + 0x14]
jb 0x416355
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00495cb8
add esp, 0x448
ret
Function at 0x416410
Capabilities:
Delete registry key
Get installed programs

Disassembly:
sub esp, 0x4b4
mov eax, dword [0x4e44b4]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
cmp dword [0x4ee6c8], 0xffffffff
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
je 0x416528
xor eax, eax
push esi
lea esi, [eax + 0x4ee0c8]
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserData_sProducts97BFC25026D93E24A851ED662C9CC7E3
push 0x208
lea eax, [esp + 0xbc]
push 0x104
push eax
call fcn.00496163
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
lea edx, [esp + 0xbc]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4164f4
mov eax, dword [esp + 0x10]
push eax
call ebp
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserData_sProducts
push 0x208
lea ecx, [esp + 0x2c4]
push 0x104
push ecx
mov dword [esp + 0x24], ebx
call fcn.00496163
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
lea eax, [esp + 0x2c4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x416509
mov ecx, dword [esp + 0x10]
push str.97BFC25026D93E24A851ED662C9CC7E3
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [esp + 0x10]
push edx
call ebp
jmp 0x416509
test byte [esp + 0x14], 2
je 0x416509
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0x1c]
call fcn.00472c30
mov eax, dword [esp + 0x18]
add eax, 1
mov dword [esp + 0x18], eax
imul eax, eax, 0x608
cmp dword [eax + 0x4ee6c8], 0xffffffff
jne 0x416451
pop esi
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call edi
test eax, eax
jne 0x41655e
mov ecx, dword [esp + 0xc]
push str.052CFB79_9D62_42E3_8A15_DE66C2C97C3E
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [esp + 0xc]
push edx
call ebp
mov ecx, dword [esp + 0x4bc]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00495cb8
add esp, 0x4b4
ret
Function at 0x4168d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b942c
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4e44b4]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x4e44b4]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x86]
push ebx
push eax
mov word [esp + 0x8c], bx
call fcn.00499a30
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 1
push 0xb
lea ecx, [esp + 0x88]
push ecx
push ebx
call edi
test eax, eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x4169ef
push 0x4cccf0
lea edx, [esp + 0x84]
push edx
call esi
lea eax, [esp + 0x80]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416977
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x18]
call fcn.00405680
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x298], ebx
call fcn.00475a60
push 1
push eax
mov byte [esp + 0x29c], 1
call fcn.00474930
add esp, 8
lea ecx, [esp + 0x48]
mov byte [esp + 0x294], bl
call fcn.00475620
mov dword [esp + 0x294], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4169ef
mov edx, dword [esp + 0x14]
push edx
call fcn.00495fd1
add esp, 4
push 1
push 0x16
lea eax, [esp + 0x88]
push eax
push ebx
call edi
test eax, eax
je 0x416aa2
push 0x4cccf0
lea ecx, [esp + 0x84]
push ecx
call esi
lea eax, [esp + 0x80]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416a30
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x34]
call fcn.00405680
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x298], 2
call fcn.00475a60
push 1
push eax
mov byte [esp + 0x29c], 3
call fcn.00474930
add esp, 8
lea ecx, [esp + 0x64]
mov byte [esp + 0x294], 2
call fcn.00475620
cmp dword [esp + 0x44], 8
jb 0x416aa2
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00495fd1
add esp, 4
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00495cb8
add esp, 0x288
ret