joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b375
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x435fe8
cmp edx, dword [eax]
je 0x41b397
add eax, 8
inc ecx
cmp eax, 0x436078
jl 0x41b388
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x435fe8]
jne 0x41b4c5
mov eax, dword [0x4391a0]
cmp eax, 1
je 0x41b49f
test eax, eax
jne 0x41b3c8
cmp dword [0x435558], 1
je 0x41b49f
cmp edx, 0xfc
je 0x41b4c5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b3ff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418420
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004172e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b442
lea eax, [ebp - 0x1a4]
push eax
call fcn.004172e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d348
push edi
call fcn.00412520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418420
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418430
lea eax, [ebp - 0xa0]
push 0x42d328
push eax
call fcn.00418430
push dword [esi + 0x435fec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418430
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041d23c
add esp, 0x2c
pop edi
jmp 0x41b4c5
lea eax, [ebp + 8]
lea esi, [esi + 0x435fec]
push 0
push eax
push dword [esi]
call fcn.004172e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x424331
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x424373
call fcn.00427f19
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x424373
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42436a
xor eax, eax
jmp 0x42437b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00424381
pop edi
pop esi
pop ebx
ret 4

Function at 0x4289fd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x428a2b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x428a49
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428963
jmp 0x428a49
mov eax, dword [esi + 0x14]
test eax, eax
je 0x428a49
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00428963
test edi, edi
mov eax, edi
jne 0x428a33
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401a90
Capabilities:
Hide graphical window

Disassembly:
push ebp
xor ecx, ecx
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0x254
mov dword [ebp + edx - 0x220], ecx
mov dword [ebp + edx - 0x21c], ecx
add edx, 8
cmp edx, 0x18
jb 0x401a9e
mov edx, dword [0x41603c]
mov dword [esp + 0x20], eax
lea ebx, [ebp - 0x208]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0x7d2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], str.SysTabControl32
mov dword [esp], 0
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x214], 0x100
call sym._CreateWindowExW_48
sub esp, 0x30
mov dword [0x416004], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x41603c]
sub esp, 8
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0xfa
mov dword [esp], eax
call sym._LoadStringW_16
lea eax, [ebp - 0x224]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x416004]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x133e
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [0x41603c]
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x416004]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000002
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40f020
mov dword [esp], 0x200
call sym._CreateWindowExW_48
mov ebx, dword [ebp - 4]
mov dword [0x416008], eax
sub esp, 0x30
leave
ret
Function at 0x401c20
Capabilities:
Hide graphical window

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x4c
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
cmp eax, 5
je 0x401d98
cmp eax, 0x4e
je 0x401cf8
cmp eax, 1
jne 0x401d70
xor eax, eax
mov dword [ebp - 0x28], 0x740053
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x24], 0x740061
mov dword [ebp - 0x20], 0x630069
mov dword [esp + 0x2c], 0
mov eax, dword [0x41603c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExW_48
mov dword [section..bss], eax
sub esp, 0x30
mov eax, esi
call dbg.CreateTabCtrl
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp edx, 0x7d2
jne 0x401ce3
cmp dword [ebx + 8], 0xfffffdd9
jne 0x401ce3
mov dword [esp + 4], 0
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x130b
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
jne 0x401ce3
mov dword [esp + 4], 5
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._ShowWindow_8
sub esp, 8
jmp 0x401ce3
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._DefWindowProcW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
movzx esi, bx
mov dword [esp + 0x14], 1
shr ebx, 0x10
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [section..bss]
mov dword [esp], eax
call sym._MoveWindow_24
lea eax, [ebx - 0x2b]
sub ebx, 0x57
sub esp, 0x18
mov dword [esp + 0x10], eax
lea eax, [esi - 6]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x28
mov dword [esp + 4], 3
mov eax, dword [0x416004]
mov dword [esp], eax
call sym._MoveWindow_24
lea eax, [esi - 0x1a]
sub esp, 0x18
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x22
mov dword [esp + 4], 0xa
mov eax, dword [0x416008]
mov dword [esp], eax
call sym._MoveWindow_24
sub esp, 0x18
jmp 0x401ce3
Function at 0x4033f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ecx, 0x32
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x4e0]
mov esi, 0x40e0c0
push ebx
mov ebx, eax
sub esp, 0x52c
mov dword [ebp - 0x4ec], edx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x418]
mov dword [esp], eax
lea edi, [ebp - 0x218]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 1
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], ebx
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0
call sym._CreateWindowExW_48
sub esp, 0x30
test eax, eax
je 0x403620
mov dword [esp + 4], edi
mov esi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp], 0x50000000
call sym._CreateStatusWindowW_16
lea ecx, [ebp - 0x4e0]
sub esp, 0x10
mov dword [0x416028], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
mov dword [esp], esi
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x50000000
call sym._CreateToolbarEx_52
sub esp, 0x34
mov dword [0x41602c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6f
mov dword [esp + 4], 0x401
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x71
mov dword [esp + 4], 0x401
mov eax, dword [0x41602c]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x74
mov dword [esp + 4], 0x401
mov eax, dword [0x41602c]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword [ebp - 0x4ec]
mov dword [0x416020], esi
sub esp, 0x10
mov dword [0x41603c], ebx
mov dword [0x416040], 1
mov dword [0x416044], 5
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._ShowWindow_8
sub esp, 8
mov dword [esp], esi
call sym._UpdateWindow_4
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403630
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x18
cmp dword [ecx + 4], 0x111
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
je 0x403668
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
movzx ecx, dx
cmp dx, 1
je 0x4036a0
cmp ecx, 2
jne 0x403654
mov dword [esp + 4], 2
mov dword [esp], ebx
call sym._EndDialog_8
sub esp, 8
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edx, 0x416048
mov ecx, pe_nt_image_headers32
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x3e9
mov dword [esp], ebx
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp], eax
call sym._GetWindowTextLengthW_4
sub esp, 4
test eax, eax
jle 0x4036ed
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0x416048
mov dword [esp], esi
call sym._GetWindowTextW_12
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._EndDialog_8
sub esp, 8
jmp 0x403689
Function at 0x404dc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x40
mov word [ebp - 0xc], ax
mov dword [ebp - 0x14], 0x410050
mov dword [ebp - 0x10], 0x45004e
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExW_48
mov edx, dword [ebp + 0xc]
sub esp, 0x30
mov dword [edx], eax
test eax, eax
je 0x404ea0
mov dword [ebx], 0
mov eax, 1
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0x12c
mov dword [ebx + 0xc], 5
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
jmp 0x404e90

Function at 0x404f10
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
mov ebx, edx
mov eax, dword fs:[0x18]
sub esp, 0x1c
mov dword [esp + 8], 0x60c
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp + 8]
mov ecx, eax
mov eax, edi
sub esp, 0xc
mov byte [ecx], al
xor eax, eax
lea esi, [esi]
movzx edi, word [ebx + eax]
mov word [ecx + eax + 2], di
add eax, 2
test di, di
jne 0x404f58
test esi, esi
je 0x404f84
xor eax, eax
nop
movzx ebx, word [esi + eax]
mov word [ecx + eax + 0x202], bx
add eax, 2
test bx, bx
jne 0x404f70
test edx, edx
je 0x404fa4
xor eax, eax
lea esi, [esi]
movzx ebx, word [edx + eax]
mov word [ecx + eax + 0x402], bx
add eax, 2
test bx, bx
jne 0x404f90
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404fb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0xffff0000
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x68c
mov eax, dword [0x416664]
mov dword [ebp - 0x654], 0x45
mov dword [ebp - 0x640], 0x100
mov dword [ebp - 0x658], 0xffff0001
test eax, eax
mov dword [ebp - 0x634], 1
cmove eax, edx
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x670]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Component_Categories_
mov dword [esp], 0x80000000
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x4051ea
mov ebx, 0xffffffff
lea esi, [ebp - 0x618]
lea esi, [esi]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call sym._RegEnumKeyW_16
sub esp, 0x10
test eax, eax
jne 0x4051b0
lea eax, [ebp - 0x66c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x405030
lea eax, [ebp - 0x668]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x668], 0x200
mov dword [ebp - 0x664], 0x200
mov dword [ebp - 0x660], 0x200
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x66c]
mov dword [esp], eax
call sym._RegQueryValueW_16
sub esp, 0x10
test eax, eax
jne 0x405140
cmp word [ebp - 0x218], 0
je 0x405140
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x644], edi
mov dword [esp], eax
call sym._RegCloseKey_4
mov ecx, esi
mov edx, esi
mov eax, 1
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x65c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x416030]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x405030
lea eax, [ebp - 0x664]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x660]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x418]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x66c]
mov dword [esp], eax
call sym._RegEnumValueW_32
sub esp, 0x20
test eax, eax
jne 0x405030
cmp word [ebp - 0x218], 0
jne 0x4050d8
jmp 0x405030
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [0x416664]
sub esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov eax, dword [0x416030]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405200
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov eax, dword [0x416674]
mov dword [ebp - 0x454], 5
mov dword [ebp - 0x440], 0x100
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x458], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp + 4], str.AppID_
mov dword [esp], 0x80000000
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x4053aa
mov esi, 0xffffffff
lea ebx, [ebp - 0x418]
lea edi, [ebp - 0x464]
nop
add esi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sym._RegEnumKeyW_16
sub esp, 0x10
test eax, eax
jne 0x405370
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x405270
lea eax, [ebp - 0x460]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x460], 0x200
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call sym._RegQueryValueW_16
mov ecx, eax
sub esp, 0x10
mov eax, ebx
test ecx, ecx
jne 0x40530b
lea edx, [ebp - 0x218]
cmp word [ebp - 0x218], 0
mov eax, edx
cmove eax, ebx
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call sym._RegCloseKey_4
mov ecx, ebx
mov edx, ebx
mov eax, 2
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x416030]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x405270
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [0x416674]
sub esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov eax, dword [0x416030]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405780
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov eax, dword [0x41667c]
mov dword [ebp - 0x454], 5
mov dword [ebp - 0x440], 0x100
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x458], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp + 4], str.Interface_
mov dword [esp], 0x80000000
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x40592a
mov esi, 0xffffffff
lea ebx, [ebp - 0x418]
lea edi, [ebp - 0x464]
nop
add esi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sym._RegEnumKeyW_16
sub esp, 0x10
test eax, eax
jne 0x4058f0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x4057f0
lea eax, [ebp - 0x460]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x460], 0x200
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call sym._RegQueryValueW_16
mov ecx, eax
sub esp, 0x10
mov eax, ebx
test ecx, ecx
jne 0x40588b
lea edx, [ebp - 0x218]
cmp word [ebp - 0x218], 0
mov eax, edx
cmove eax, ebx
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call sym._RegCloseKey_4
mov ecx, ebx
mov edx, ebx
mov eax, 0xa
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov eax, dword [0x416030]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4057f0
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [0x41667c]
sub esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov eax, dword [0x416030]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406b40
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x3c
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
cmp eax, 5
je 0x406ca0
cmp eax, 0x4e
je 0x406c10
cmp eax, 1
jne 0x406c78
mov dword [esp + 0x2c], 0
mov eax, dword [0x41603c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x7d1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000007
mov dword [esp + 8], 0
mov dword [esp + 4], str.SysTreeView32
mov dword [esp], 0
call sym._CreateWindowExW_48
sub esp, 0x30
mov dword [0x416030], eax
call dbg.AddBaseEntries
call dbg.AddComponentCategories
call dbg.AddCOMandAll
call dbg.AddApplicationID
call dbg.AddTypeLib
call dbg.AddInterfaces
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp esi, 0x7d1
jne 0x406c00
mov eax, dword [ebx + 8]
cmp eax, 0xfffffe3a
je 0x406d00
cmp eax, 0xfffffe3d
je 0x406ce0
cmp eax, 0xfffffe36
jne 0x406c00
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x406c00
mov eax, dword [esi + 0x604]
test eax, eax
jne 0x406d18
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x406c00
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._DefWindowProcW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, ebx
movzx ebx, bx
mov dword [esp + 0x14], 1
shr eax, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x416030]
mov dword [esp], eax
call sym._MoveWindow_24
sub esp, 0x18
jmp 0x406c00
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call dbg.RefreshMenu
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call dbg.RefreshDetails
jmp 0x406c00
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call dbg.CreateInst
jmp 0x406c00
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dbg.ReleaseInst
jmp 0x406c4d

Function at 0x406ee0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dbg.AddBaseEntries
call dbg.AddComponentCategories
call dbg.AddCOMandAll
call dbg.AddApplicationID
call dbg.AddTypeLib
leave
jmp dbg.AddInterfaces

Function at 0x406f10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
xor eax, eax
mov ebp, esp
sub esp, 8
mov dword [eax + 0x416660], edx
add eax, 8
mov dword [eax + 0x41665c], 0
cmp eax, 0x20
jb 0x406f1a
call dbg.AddComponentCategories
leave
jmp dbg.AddCOMandAll
Function at 0x4070b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x1c
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 8], 0x210
mov dword [esp + 4], 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
xor edx, edx
mov dword [ebx], eax
sub esp, 0xc
mov word [eax], dx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret