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

Disassembly:
mov eax, 0x40f924
call fcn.0040a1b0
sub esp, 0x74
push ebx
push esi
push edi
mov eax, 0xbadc0de3
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [0x414078]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x3c], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x38]
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov byte [ebp - 0x2c], al
call fcn.00402a6e
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004049bc
call fcn.00401ace
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
mov eax, dword [eax + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x401e2b
push 0x44
lea eax, [ebp - 0x80]
pop edi
push edi
push ebx
push eax
call fcn.0040a6f0
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.0040a6f0
add esp, 0x18
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x80], edi
push eax
call fcn.00404a20
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x14]
push eax
push dword [eax - 8]
call fcn.00404bdc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.00404a20
mov eax, dword [ebp - 0x28]
mov edi, dword [eax]
cmp edi, eax
je 0x401dc2
mov eax, dword [esi + 8]
mov ecx, dword [edi + 8]
push eax
push ecx
call fcn.0040a57b
pop ecx
test eax, eax
pop ecx
je 0x401d92
mov edi, dword [edi]
cmp edi, dword [ebp - 0x28]
jne 0x401d76
jmp 0x401dc2
mov ecx, 0x414170
mov eax, ecx
test eax, eax
je 0x401da9
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x414170
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00404bdc
mov edi, dword [edi + 0xc]
lea ecx, [ebp - 0x10]
push edi
push dword [edi - 8]
call fcn.00404bdc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401e05
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp esi, dword [eax]
jne 0x401df3
mov dword [ebp - 0x20], 1
jmp 0x401dfa
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp esi, dword [eax]
jne 0x401e1a
mov dword [ebp - 0x20], ebx
jmp 0x401e1d
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [esi]
cmp esi, dword [eax + 4]
jne 0x401d26
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040280a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040125f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040125f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040125f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40261f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov ebx, 0x418228
mov dword [0x418298], 0x4140d8
mov dword [0x4182f0], ebx
push 0x4182b8
push ebx
mov dword [0x418228], 0x84
mov dword [0x41828c], 0x300
call fcn.0040435f
mov eax, 0x410200
mov ecx, eax
test ecx, ecx
je 0x402689
push 0x10
push eax
push 0x4182e0
call fcn.0040a1d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and dword [ebp + 8], 0
mov dword [0x4182ac], eax
mov esi, 0x4142e4
lea edi, [ebp - 4]
lea eax, [ebp - 4]
movsw word es:[edi], word [esi]
push eax
push dword [ebp + 0x10]
movsb byte es:[edi], byte [esi]
call fcn.0040153d
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4026e7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x402702
push str.RegServer
push esi
call edi
test eax, eax
je 0x40271c
lea eax, [ebp - 4]
push eax
push esi
call fcn.0040153d
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4026bd
call fcn.00401e6f
push ebx
call fcn.004043e2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
xor esi, esi
push esi
push esi
push 0x64
push ebx
call fcn.00402d04
push esi
push 1
push ebx
call fcn.0040460b
mov dword [ebp + 8], eax
jmp 0x4026ec
push 0
push 1
push 0x64
push ebx
call fcn.00402d04
push 0
push 1
push ebx
call fcn.00404492
jmp 0x402717
Function at 0x403079
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x403093
xor esi, esi
jmp 0x4030c1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040a750
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x4030fe
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4030e9
call esi
mov esi, eax
jmp 0x403193
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x403193
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40312f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x403142
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40318a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x403146
jmp 0x403111
call esi
jmp 0x403188
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x40317c
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.0040a750
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.0040a1d0
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.004031fa
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403bed
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x40faa8
call fcn.0040a1b0
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00403baf
mov edi, eax
cmp edi, esi
je 0x403c37
cmp dword [ebp - 0x10], esi
je 0x403c30
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x403cd4
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x403ca8
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.00403bed
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x403c95
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x403c5a
cmp dword [ebp - 0x10], esi
je 0x403ca3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x403cd4
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403cbb
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x403cd2
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x403ce5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0040a750
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.00403353
xor edi, edi
cmp eax, edi
jl 0x403e9d
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00403eaa
pop ecx
test eax, eax
pop ecx
jne 0x403d30
mov eax, 0x80020009
jmp 0x403e9d
mov ecx, esi
call fcn.0040332b
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00403353
cmp eax, edi
jl 0x403e9d
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x403e65
sub eax, 9
je 0x403dca
dec eax
dec eax
jne 0x403e8c
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x403d75
xor ebx, ebx
jmp 0x403daa
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040a750
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x403e7d
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x403e06
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040a750
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.0040a6f0
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x403e10
mov eax, 0x80004005
jmp 0x403e9d
cmp dword [ebp - 8], 0
jle 0x403e4a
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.00403f31
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x403e16
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x403e8c
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00403353
cmp eax, edi
jl 0x403e9d
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x405c44
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x405c6e
test ecx, ecx
jne 0x405c78
test edx, edx
jne 0x405c78
mov eax, edi
jmp 0x405ce4
cmp eax, 0xffffffff
jne 0x405c78
push 0xfffffffffffffffe
pop eax
jmp 0x405ce4
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x405ce4
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0040a1d0
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x405ca9
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x405cc8
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x405d3f
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.00405d44
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x405d2b
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x405d3f
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x405c50
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40ecc5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418010
cmp edx, dword [eax]
je 0x40ece7
add eax, 8
inc ecx
cmp eax, 0x4180a0
jl 0x40ecd8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418010]
jne 0x40ee15
mov eax, dword [0x418364]
cmp eax, 1
je 0x40edef
test eax, eax
jne 0x40ed18
cmp dword [0x415984], 1
je 0x40edef
cmp edx, 0xfc
je 0x40ee15
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ed4f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409c30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409bb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ed92
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409bb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x411978
push edi
call fcn.0040b1e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409c30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409c40
lea eax, [ebp - 0xa0]
push 0x411958
push eax
call fcn.00409c40
push dword [esi + 0x418014]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409c40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f53e
add esp, 0x2c
pop edi
jmp 0x40ee15
lea eax, [ebp + 8]
lea esi, [esi + 0x418014]
push 0
push eax
push dword [esi]
call fcn.00409bb0
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 0x401350
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, 0x460
mov eax, dword [0x40e614]
mov dword [ebp - 0x448], 5
mov dword [esp + 4], str.AppID_
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x434], 0x100
mov dword [ebp - 0x44c], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x40153c
mov ebx, 0xffffffff
lea edi, [ebp - 0x40c]
lea esi, [esi]
mov eax, dword [ebp - 0x45c]
inc ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x401500
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x4013c0
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x454], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x40145e
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], 0
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 2
mov edx, eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x401498
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x4014b0
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4013c0
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40e614]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402010
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, 0x67c
mov eax, dword [0x40e604]
mov dword [ebp - 0x648], 0x45
mov dword [ebp - 0x634], 0x100
test eax, eax
mov dword [esp + 4], str.Component_Categories_
cmove eax, edx
mov dword [esp], 0x80000000
mov dword [ebp - 0x64c], 0xffff0001
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x664]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x628], 1
mov dword [ebp - 0x668], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x40228c
mov esi, 0xffffffff
lea ebx, [ebp - 0x60c]
lea esi, [esi]
mov eax, dword [ebp - 0x664]
inc esi
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x402250
lea eax, [ebp - 0x660]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
mov eax, dword [ebp - 0x668]
call eax
sub esp, 0xc
test eax, eax
jne 0x402098
lea eax, [ebp - 0x65c]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x65c], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x658], 0x200
mov dword [ebp - 0x654], 0x200
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x4021e8
cmp word [ebp - 0x20c], 0
je 0x4021e8
mov eax, dword [ebp - 0x660]
mov dword [ebp - 0x638], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 1
mov ecx, eax
xor eax, eax
nop
movzx edx, word [ebx + eax]
mov word [ecx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x402180
xor eax, eax
lea esi, cs:[esi]
movzx edx, word [ebx + eax]
mov word [ecx + eax + 0x202], dx
add eax, 2
test dx, dx
jne 0x402198
lea eax, [ebp - 0x650]
mov dword [ebp - 0x624], ecx
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x402098
lea eax, [ebp - 0x658]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x654]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x40c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x660]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x402098
cmp word [ebp - 0x20c], 0
jne 0x40214b
jmp 0x402098
mov eax, dword [ebp - 0x664]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40e604]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4022a0
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, 0x460
mov eax, dword [0x40e61c]
mov dword [ebp - 0x448], 5
mov dword [esp + 4], str.Interface_
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x434], 0x100
mov dword [ebp - 0x44c], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x40248c
mov ebx, 0xffffffff
lea edi, [ebp - 0x40c]
lea esi, [esi]
mov eax, dword [ebp - 0x45c]
inc ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x402450
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x402310
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x454], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x4023ae
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], 0
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 0xa
mov edx, eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x4023e8
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x402400
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x402310
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40e61c]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov edx, 0x40e600
xor eax, eax
mov ecx, 8
mov ebp, esp
push edi
mov edi, edx
rep stosd dword es:[edi], eax
call sym._AddComponentCategories
mov edi, dword [ebp - 4]
leave
jmp sym._AddCOMandAll

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

Disassembly:
push ebp
mov ebp, esp
call sym._AddBaseEntries
call sym._AddComponentCategories
call sym._AddCOMandAll
call sym._AddApplicationID
call sym._AddTypeLib
pop ebp
jmp sym._AddInterfaces
Function at 0x4034e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push ebx
sub esp, 0xc
cmp dword [ebp + 0xc], 0x111
je 0x403500
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10
cmp word [ebp + 0x10], 1
movzx edx, word [ebp + 0x10]
je 0x403538
cmp edx, 2
jne 0x4034f3
mov dword [esp + 4], 2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10
mov edx, 0x40e348
mov ecx, pe_nt_image_headers32
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x3e9
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
sub esp, 4
test eax, eax
jle 0x40358b
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0x40e348
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetWindowTextW]
sub esp, 0xc
mov dword [esp + 4], 1
jmp 0x403518