joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d07b
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x44
mov eax, 0x476bc5
call fcn.00442c61
xor edi, edi
inc edi
push 0x498d34
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], edi
call fcn.00421c6c
push str.TEMP
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0040c9e4
mov esi, str.PPTAssist_
push esi
call fcn.0044252a
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.00404a2c
xor esi, esi
push esi
lea ecx, [ebp - 0x4c]
call fcn.00403f05
mov ebx, eax
push ebx
call fcn.0044252a
pop ecx
push eax
push esi
push ebx
lea ecx, [ebp + 8]
call fcn.0040b845
cmp eax, 0xffffffff
je 0x40d15b
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040cf2f
add esp, 0xc
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 3
jae 0x40d109
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x50], 0x5c
call fcn.0040b8e4
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0040cc04
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40d140
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040b970
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.0040b970
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.0040125c
push esi
push edi
lea ecx, [ebp + 8]
call fcn.0040b970
push esi
push edi
lea ecx, [ebp + 0x24]
call fcn.0040b970
call fcn.00442ce4
ret

Function at 0x40d4f5
Capabilities:
Hide graphical window

Disassembly:
push 8
mov eax, 0x476c0f
call fcn.00442bf8
cmp dword [0x49addc], 0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x40d565
push 0xd8
call fcn.0044443c
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
je 0x40d540
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x47d718
call fcn.00409bbf
mov ecx, dword [ebp - 0x10]
call fcn.004126b3
jmp 0x40d542
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x100
push 0
mov ecx, eax
mov dword [0x49addc], eax
call fcn.0040c56c
mov eax, dword [0x49addc]
push 0
push dword [eax + 4]
call esi
mov eax, dword [0x49addc]
push 1
push dword [eax + 4]
call esi
mov eax, dword [0x49addc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call fcn.00442cd0
ret
Function at 0x40d7a0
Capabilities:
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [0x49add4], 1
call fcn.0040d6e3
mov ecx, eax
call fcn.0040ef78
xor esi, esi
call fcn.0040d6e3
mov ecx, eax
call fcn.0040f009
test eax, eax
je 0x40d83a
push ebx
lea eax, [ebp - 0x154]
push esi
push eax
call fcn.0040d6e3
mov ecx, eax
call fcn.0040fa73
cmp dword [eax + 0x118], 1
lea ecx, [ebp - 0x154]
setne bl
call fcn.0040c16e
push esi
call fcn.0040d6e3
mov ecx, eax
test bl, bl
je 0x40d819
call fcn.00410222
jmp 0x40d829
call fcn.0040f3bd
mov dword [eax + 0x118], 2
inc esi
call fcn.0040d6e3
mov ecx, eax
call fcn.0040f009
cmp esi, eax
jb 0x40d7dd
pop ebx
call fcn.0040d6e3
mov ecx, eax
call fcn.0040ef82
mov eax, dword [0x49ade0]
mov esi, dword [eax]
cmp esi, eax
je 0x40d86d
lea eax, [esi + 8]
cmp dword [eax + 0x14], 8
jb 0x40d85c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esi]
cmp esi, dword [0x49ade0]
jne 0x40d851
mov eax, dword [0x49add0]
xor esi, esi
cmp eax, esi
je 0x40d8aa
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40d898
push esi
push dword [0x49add0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x49add0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x49add0], esi
push esi
push dword [0x49adcc]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [0x49add8]
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [0x49addc]
call fcn.00411425
mov ecx, dword [0x49addc]
cmp ecx, esi
je 0x40d8e1
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov dword [0x49addc], esi
xor ecx, ebp
pop esi
call fcn.0044249e
leave
ret
Function at 0x40ed75
Capabilities:
Check os version
Create thread

Disassembly:
push 0x158
mov eax, 0x476fa8
call fcn.00442c61
mov esi, ecx
push str.Beautifier_Resources
push str.resourcecontroller
call dword [sym.imp.USER32.dll_FindWindowW]
xor ebx, ebx
cmp eax, ebx
jne 0x40ef70
mov ecx, esi
call fcn.0040dd7b
cmp al, bl
je 0x40ef70
push ebx
push 0x493e0
push ebx
push dword [0x49adcc]
call dword [sym.imp.USER32.dll_SetTimer]
cmp eax, ebx
je 0x40ef70
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
push 0x40e8b0
push ebx
push ebx
mov dword [ebp - 0x128], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x49add0], eax
cmp eax, ebx
je 0x40ef70
mov esi, 0x3bc
push esi
call fcn.0044443c
push esi
push ebx
push eax
mov dword [0x49add8], eax
call fcn.004424b0
push 0x114
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.004424b0
add esp, 0x1c
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 5
jne 0x40ee56
cmp dword [ebp - 0x11c], 1
jne 0x40ee56
mov eax, dword [0x49add8]
mov dword [eax], 0x3b8
jmp 0x40ee5d
mov eax, dword [0x49add8]
mov dword [eax], esi
mov eax, dword [0x49add8]
mov ecx, dword [0x49adcc]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [eax + 4], ecx
mov eax, dword [0x49add8]
push 0xc
mov dword [eax + 0xc], 7
call esi
push eax
push 0xb
call esi
push eax
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x12c], esp
push 0x65
pop esi
mov dword [eax], esi
call fcn.00401a7e
mov ecx, dword [0x49add8]
mov dword [ecx + 0x14], eax
mov eax, dword [0x49add8]
mov dword [eax + 8], esi
mov eax, dword [0x49add8]
mov dword [eax + 0x10], 0x1a9d
mov eax, dword [0x49add8]
mov dword [eax + 0x320], 0x7d0
mov eax, dword [0x49add8]
add eax, 0x18
push 0x47d718
push eax
call fcn.00442df4
mov eax, dword [0x49add8]
add eax, 0x120
push 0x47d8d8
push eax
call fcn.00442df4
add esp, 0x20
push dword [0x49add8]
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
call fcn.0040d4f5
mov dword [ebp - 0x164], 0x47d678
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x164]
mov esi, 0x49b054
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040c12c
lea ecx, [ebp - 0x164]
call fcn.0040b7c1
mov ecx, esi
call fcn.0040c50a
lea ecx, [ebp - 0x154]
call fcn.0040b6f6
lea ecx, [ebp - 0x160]
call fcn.0040b6f6
call fcn.00442ce4
ret 4
Function at 0x41100e
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret 0x10
Function at 0x4147e8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x498d74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x41481c
xor eax, eax
jmp 0x414856
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x414850
lea eax, [ebp - 0x20c]
push str.POWERPNT.EXE
push eax
call fcn.00445121
pop ecx
pop ecx
test eax, eax
jne 0x414843
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41482b
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044249e
leave
ret

Function at 0x414de8
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x477e48
call fcn.00442bf8
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
push str.TEMP
mov ecx, esi
call fcn.0040c9e4
push str.PPTAssist_
mov ecx, esi
call fcn.00408be1
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call edi
push 0x498d34
lea ecx, [ebp + 0xc]
call fcn.00421c6c
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10], esp
mov ebx, esp
push eax
mov byte [ebp - 4], 1
call fcn.00402607
add eax, 0x10
pop ecx
mov dword [ebx], eax
call fcn.00414d67
push 0x47dfec
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408c2d
add esp, 0x14
mov eax, dword [eax]
push dword [eax - 0xc]
mov ecx, esi
push eax
mov byte [ebp - 4], 2
call fcn.00404a2c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040125c
push 0
push dword [esi]
call edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040125c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040125c
call fcn.00442cd0
ret
Function at 0x4169ab
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4169da
push esi
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x41a422
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4

Function at 0x41c556
Capabilities:
Read file on windows

Disassembly:
push 0x468
mov eax, 0x478df0
call fcn.00442c61
mov eax, dword [ebp + 8]
and dword [ebp - 0x474], 0
mov esi, ecx
mov dword [ebp - 0x470], eax
mov eax, dword [esi]
and dword [ebp - 4], 0
call dword [eax + 0xc]
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x41c58c
lea eax, [ebp + 0xc]
push 0x47e318
push eax
call fcn.00447e10
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x41c60b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x44c]
push str.Cannot_read_file__
push eax
call fcn.00418334
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x474], esp
push 0x47e6e8
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.0041839e
add esp, 0xc
push 1
lea ecx, [ebp - 0x46c]
call fcn.0041c38a
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x430], ecx
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 2
call fcn.0040ca36
push 0x491364
lea eax, [ebp - 0x430]
push eax
call fcn.00442285
mov edi, 0x400
jmp 0x41c621
mov edx, dword [esi]
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call dword [edx + 8]
push ebx
push edi
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.00446fd8
add esp, 0x10
test eax, eax
jne 0x41c612
push ebx
call fcn.00447ce0
mov eax, dword [esi]
pop ecx
push dword [ebp - 0x470]
mov ecx, esi
call dword [eax]
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.0040bd1a
mov eax, dword [ebp - 0x470]
call fcn.00442ce4
ret 0x20
Function at 0x41c99f
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
jne 0x41c9b0
xor eax, eax
inc eax
jmp 0x41c9e6
xor edx, edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov word [eax + 0x1c], dx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
pop ebp
ret 4

Function at 0x420cfd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x4793a0
call fcn.00442bf8
movzx eax, word [ebp + 8]
push 0x47f510
push eax
push dword [0x49b0c8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x420de7
push esi
push dword [0x49b0c8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x420dde
push esi
push dword [0x49b0c8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [ebp - 0x14]
call fcn.00444920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp + 8], 0
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0x34
call fcn.0044443c
pop ecx
test eax, eax
je 0x420db3
mov ecx, eax
call fcn.00420181
mov ebx, eax
jmp 0x420db5
xor ebx, ebx
push dword [ebp + 8]
mov ecx, ebx
call fcn.00420c96
push ebx
call fcn.0042031e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x420dde
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
call fcn.00442cd0
ret
Function at 0x421182
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x47945d
call fcn.00442bf8
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00409bbf
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00420f62
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004210e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20019
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x421200
jle 0x4211e4
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040125c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, esi
jmp 0x42125a
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x421242
jle 0x421240
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040125c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, edi
call fcn.00442cd0
ret

Function at 0x421260
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x47945d
call fcn.00442bf8
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00409bbf
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00420f62
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004210e0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
or eax, 0x20019
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x4212de
jle 0x4212c2
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040125c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, esi
jmp 0x421337
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x42131f
jle 0x42131d
and esi, 0xffff
or esi, 0x80070000
mov edi, esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040125c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, edi
call fcn.00442cd0
ret
Function at 0x42133d
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x479480
call fcn.00442bf8
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00409bbf
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00420f62
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004210e0
add esp, 0xc
push esi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
push esi
or eax, 0x20006
push eax
push esi
push esi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x4213a7
jle 0x4213a3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4213db
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x4213db
jle 0x4213d9
and edi, 0xffff
or edi, 0x80070000
mov esi, edi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040125c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, esi
call fcn.00442cd0
ret

Function at 0x421457
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x479480
call fcn.00442bf8
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00409bbf
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00420f62
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004210e0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x20019
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4214cb
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040125c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040125c
mov al, bl
call fcn.00442cd0
ret
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jmp 0x4214ad
Function at 0x4214e5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x240
mov eax, 0x4794c9
call fcn.00442c61
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x214]
call fcn.00409bbf
lea eax, [ebp - 0x214]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00420f62
pop ecx
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 0x18]
or ecx, 0x20019
push ecx
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x421554
jle 0x42154d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x42166c
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x22c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, esi
je 0x4215e8
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jle 0x4215d3
and edi, 0xffff
or edi, 0x80070000
mov ecx, dword [ebp - 0x214]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, edi
jmp 0x42167c
xor eax, eax
push 0x1fe
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.004424b0
mov eax, dword [ebp + 0x14]
add esp, 0xc
add eax, eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x220]
push eax
push esi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x224], 0x100
push dword [ebp - 0x218]
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
je 0x421660
jle 0x42165e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x214]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, esi
call fcn.00442ce4
ret
Function at 0x421682
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x30
mov eax, 0x4794f9
call fcn.00442bf8
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.00409bbf
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00420f62
pop ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0x18]
or ecx, 0x20019
push ecx
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x4216e8
jle 0x4216d4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, esi
jmp 0x42177c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, edi
je 0x421742
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x4216d6
and esi, 0xffff
or esi, 0x80070000
jmp 0x4216d6
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
je 0x421766
jle 0x421764
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040125c
mov eax, edi
call fcn.00442cd0
ret