joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405740
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405779
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x406370
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b0e38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d87a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
xor esi, esi
mov dword [esp + 0x24], edi
lea eax, [esp + 0x14]
push eax
push 0x2001f
push edi
push 0x4b58a0
push reloc.WS2_32.dll_accept
mov dword [esp + 0x44], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4063ce
mov esi, dword [esp + 0x14]
jmp 0x4063fd
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push 0x4b58a0
push reloc.WS2_32.dll_accept
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x406471
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push 0x4b588c
mov ebp, 4
push esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x406438
cmp dword [esp + 0x1c], ebp
je 0x406459
cmp esi, edi
je 0x406443
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.004282c0
add esp, 4
mov ebp, eax
call fcn.004284e0
cmp eax, ebp
jne 0x406438
cmp dword [ebx + 0x18], 0x10
jb 0x40647c
mov eax, dword [ebx + 4]
jmp 0x40647f
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp esi, edi
je 0x406491
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x408880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4d87a0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x14], 0
call fcn.0044a4d0
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Kuaizip
lea edx, [esp + 0xc]
push edx
call esi
push str.report_config.txt
lea eax, [esp + 0xc]
push eax
call esi
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088e7
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.00402fc0
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0044ab5c
add esp, 0x108
ret

Function at 0x409200
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ae773
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d87a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.004680cf
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x409251
mov eax, dword [esi + 0x1c]
push eax
call fcn.0042df46
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x40b6d0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4aed55
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push esi
push edi
mov eax, dword [0x4d87a0]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 3
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
call fcn.0040b3f0
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x12c], 1
lea edi, [esi + 4]
jb 0x40b72a
mov eax, dword [edi]
jmp 0x40b72c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b7a4
push 1
lea ecx, [esp + 0x9c]
call fcn.0040b490
cmp dword [esi + 0x18], 0x10
mov byte [esp + 0x12c], 2
jb 0x40b755
mov edi, dword [edi]
push 0x20
push edi
lea ecx, [esp + 0xa0]
call fcn.0040a560
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040a8c0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x12c], 1
call fcn.00409600
lea ecx, [esp + 0xf0]
push ecx
mov dword [esp + 0xf4], vtable.std::ios_base.0
call fcn.00468332
add esp, 4
mov esi, dword [esp + 0x134]
push esi
lea ecx, [esp + 0x14]
call fcn.00408920
lea ecx, [esp + 0x64]
mov dword [esp + 0xc], 1
mov byte [esp + 0x12c], 0
call fcn.00406d70
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x68], vtable.std::ios_base.0
call fcn.00468332
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x124
ret 4
Function at 0x40b800
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
call fcn.0040b030
test al, al
je 0x40b879
push 0x2001f
push 0x4b58a0
push reloc.WS2_32.dll_accept
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00426130
mov esi, dword [esp + 4]
test al, al
je 0x40b867
push 0
call fcn.0044a17c
add esp, 4
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push 0x4b588c
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x40b872
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
add esp, 8
ret
xor al, al
pop esi
add esp, 8
ret
Function at 0x40b880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4aedca
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d87a0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d87a0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0xa4]
xor edi, edi
mov ebx, ecx
mov ecx, ebp
mov dword [esp + 0x98], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
call fcn.00403470
push 0xffffffffffffffff
push edi
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0xa4], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], edi
mov byte [esp + 0x48], 0
call fcn.004029e0
mov eax, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x98], 1
test eax, eax
jbe 0x40b9ca
cmp esi, eax
jbe 0x40b92c
call fcn.0044a32a
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x40b93b
lea eax, [esp + 0x3c]
movsx eax, byte [eax + esi]
cmp eax, dword [esp + 0xa8]
jne 0x40b9bd
mov eax, esi
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x44]
call fcn.00401230
push 0xd
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov byte [esp + 0xa4], 2
lea edi, [esi + 1]
call fcn.00408300
push eax
mov ecx, ebp
mov byte [esp + 0x9c], 3
call fcn.00403560
cmp dword [esp + 0x34], 0x10
jb 0x40b99e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042df46
add esp, 4
cmp dword [esp + 0x88], 0x10
mov byte [esp + 0x98], 1
jb 0x40b9bd
mov edx, dword [esp + 0x74]
push edx
call fcn.0042df46
add esp, 4
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
jb 0x40b92c
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
call fcn.00401230
push 0xd
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
mov byte [esp + 0xa4], 4
call fcn.00408300
push eax
mov ecx, ebp
mov byte [esp + 0x9c], 5
call fcn.00403560
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x40ba1e
mov eax, dword [esp + 0x20]
push eax
call fcn.0042df46
add esp, 4
cmp dword [esp + 0x6c], esi
jb 0x40ba31
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0042df46
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
cmp dword [esp + 0x50], esi
jb 0x40ba59
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042df46
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0044ab5c
add esp, 0x88
ret 0xc
Function at 0x40d520
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
mov eax, dword [0x4d87a0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x12]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18], ax
call fcn.0044a4d0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x40d57d
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0044ab5c
add esp, 0x214
ret
push esi
push str.kernel32.dll
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea ecx, [esp + 0x14]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x40d5ee
push edi
push esi
call fcn.0042df3b
add esp, 4
mov edi, eax
push edi
push esi
push ebx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d5e4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4b5c88
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d5e4
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 8]
push edi
call fcn.0042df46
add esp, 4
pop edi
mov ecx, dword [esp + 0x218]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044ab5c
add esp, 0x214
ret

Function at 0x40d610
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4af038
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4d87a0]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
lea ecx, [esp + 4]
call fcn.004adb50
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0
call fcn.004adb20
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40d683
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 4]
call fcn.004adb30
xor al, al
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
push eax
push 0
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.004adb10
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 4]
test eax, eax
jne 0x40d66c
call fcn.004adb30
mov al, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x40d780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d799
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d7d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40d7d0
lea ebx, [ebx]
cmp esi, eax
jae 0x40d7d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d7c0
cmp esi, eax
jb 0x40d7da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x411180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x914
mov eax, dword [0x4d87a0]
xor eax, esp
mov dword [esp + 0x910], eax
push esi
mov esi, dword [esp + 0x91c]
push edi
push 0xff
lea eax, [esp + 0x1d]
push 0
push eax
or edi, 0xffffffff
mov dword [esp + 0x14], 0
mov byte [esp + 0x24], 0
call fcn.0044a4d0
push esi
lea ecx, [esp + 0x28]
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push ecx
call fcn.0044b996
add esp, 0x18
lea edx, [esp + 8]
push edx
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4112b2
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x122]
push edx
mov word [esp + 0x124], cx
call fcn.0044a4d0
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0
push str.PnpInstanceID
push edx
mov dword [esp + 0x28], 0x800
call esi
test eax, eax
jne 0x4112a7
push 3
push 0x4b5e60
lea eax, [esp + 0x120]
push eax
push 0
call dword [sym.imp.SHLWAPI.dll_StrIsIntlEqualW]
test eax, eax
je 0x4112a7
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.MediaSubType
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call esi
cmp eax, 2
je 0x4112a5
test eax, eax
jne 0x4112a7
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4112a5
cmp eax, 2
jne 0x4112a7
lea edi, [eax - 1]
jmp 0x4112a7
xor edi, edi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x918]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0044ab5c
add esp, 0x914
ret
Function at 0x411f90
Capabilities:
Reference http user-agent string

Disassembly:
push esi
push edi
push 2
mov edi, ecx
call fcn.004798f0
call fcn.00479980
push 1
mov esi, eax
push 0x29
push esi
call fcn.004799c0
push str.User_Agent:Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_42.0.2311.90_Safari_537.36
push 0
call fcn.00479c80
push 0x4b6120
push eax
call fcn.00479c80
push eax
push 0x2727
push esi
call fcn.004799c0
add esp, 0x2c
cmp dword [edi + 0x18], 0x10
jb 0x411fdd
mov eax, dword [edi + 4]
jmp 0x411fe0
lea eax, [edi + 4]
push eax
push 0x2712
push esi
call fcn.004799c0
push 0x411f50
push 0x4e2b
push esi
call fcn.004799c0
push edi
push 0x2711
push esi
call fcn.004799c0
push 0
push 0x2b
push esi
call fcn.004799c0
push edi
push 0x2749
push esi
call fcn.004799c0
push 0x411d60
push 0x4e58
push esi
call fcn.004799c0
mov eax, dword [edi + 0x20]
add esp, 0x48
test eax, eax
je 0x412050
push eax
push 0x13
push esi
call fcn.004799c0
mov eax, dword [edi + 0x24]
push eax
push 0x14
push esi
call fcn.004799c0
add esp, 0x18
push esi
call fcn.00479bc0
add esp, 4
test eax, eax
je 0x41209a
push eax
call fcn.00478e00
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
jmp 0x412070
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412070
sub ecx, esi
push ecx
push eax
lea ecx, [edi + 0x30]
call fcn.00402fc0
cmp dword [edi + 0x28], 0
je 0x412094
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
pop edi
or eax, 0xffffffff
pop esi
ret
lea ecx, [edi + 0x2c]
push ecx
push 0x200002
push esi
call fcn.00479c00
add esp, 0xc
test eax, eax
je 0x4120be
push eax
mov ecx, edi
call fcn.00411e00
pop edi
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00479be0
add esp, 4
cmp dword [edi + 0x28], 0
je 0x4120d7
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
push edi
call eax
pop edi
xor eax, eax
pop esi
ret
Function at 0x4126b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x630
mov eax, dword [0x4d87a0]
xor eax, esp
mov dword [esp + 0x62c], eax
push esi
push edi
xor esi, esi
push 0x206
lea ecx, [esp + 0x432]
xor eax, eax
push esi
xor edi, edi
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov word [esp + 0x438], ax
call fcn.0044a4d0
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push esi
push eax
mov word [esp + 0x34], dx
call fcn.0044a4d0
mov eax, dword [esp + 0x654]
lea edx, [esp + 0x34]
add esp, 0x18
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x412720
lea ecx, [esp + 0x1c]
push ecx
call fcn.0044bfa2
add esp, 4
lea edx, [esp + 8]
push edx
push 0x109
push esi
push str.SYSTEMCurrentControlSet_services_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412865
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x104
lea eax, [esp + 0x434]
push eax
push esi
push ecx
call ebp
test eax, eax
jne 0x412859
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea ebx, [eax + 1]
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x438]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x412835
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x236]
push eax
mov dword [esp + 0x28], 0x104
mov word [esp + 0x238], dx
call fcn.0044a4d0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x38], ebx
call edi
test eax, eax
jne 0x41282a
lea edx, [esp + 0x22c]
push edx
call fcn.0044bfa2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x234]
push ecx
call fcn.0044bcd5
add esp, 0xc
test eax, eax
je 0x41282a
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push 0x104
lea eax, [esp + 0x438]
push eax
add esi, ebx
push esi
push ecx
call ebp
test eax, eax
je 0x412790
mov edi, dword [esp + 0x18]
pop ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov ecx, dword [esp + 0x634]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0044ab5c
add esp, 0x630
ret 4
Function at 0x412880
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4d87a0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
xor esi, esi
push 0x206
lea ecx, [esp + 0x16]
xor eax, eax
push esi
push ecx
xor ebx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov word [esp + 0x1c], ax
call fcn.0044a4d0
push 0x206
lea eax, [esp + 0x22a]
xor edx, edx
push esi
push eax
mov word [esp + 0x230], dx
call fcn.0044a4d0
mov eax, dword [esp + 0x440]
lea edx, [esp + 0x230]
add esp, 0x18
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x4128f0
lea ecx, [esp + 0x218]
push ecx
call fcn.0044bfa2
add esp, 4
lea edx, [esp + 8]
push edx
push 0x109
push esi
push str.SYSTEMCurrentControlSet_services_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4129be
mov ecx, dword [esp + 8]
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4129b5
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41299e
lea edx, [esp + 0x18]
push edx
call fcn.0044bfa2
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0044bcd5
add esp, 0xc
test eax, eax
je 0x412997
mov ebx, 1
mov edx, dword [esp + 0x14]
push edx
call ebp
mov ecx, dword [esp + 0x10]
push 0x104
lea eax, [esp + 0x1c]
push eax
inc esi
push esi
push ecx
call edi
test eax, eax
je 0x412956
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop ebp
mov ecx, dword [esp + 0x420]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0044ab5c
add esp, 0x41c
ret 4
Function at 0x4129e0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4d87a0]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [esp + 0x430]
push esi
lea ecx, [esp + 4]
push ecx
xor esi, esi
push 9
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412a44
xor eax, eax
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0044ab5c
add esp, 0x42c
ret 4
push ebp
push 0x206
lea eax, [esp + 0x26]
xor edx, edx
push esi
push eax
mov word [esp + 0x2c], dx
call fcn.0044a4d0
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x24]
push ecx
push esi
push edx
call ebp
test eax, eax
jne 0x412b3d
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ebx, [eax + 1]
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x412b1f
push 0x206
push eax
lea ecx, [esp + 0x23a]
push ecx
mov dword [esp + 0x28], 0x104
mov word [esp + 0x23c], ax
call fcn.0044a4d0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push str.DisplayName
push edx
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x412b14
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x234]
push ecx
call fcn.0044bcd5
add esp, 8
test eax, eax
je 0x412b14
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push 0x104
lea eax, [esp + 0x2c]
push eax
add esi, ebx
push esi
push ecx
call ebp
test eax, eax
je 0x412a90
pop edi
pop ebx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x430]
mov eax, dword [esp + 0x10]
pop ebp
pop esi
xor ecx, esp
call fcn.0044ab5c
add esp, 0x42c
ret 4

Function at 0x416650
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4166c6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x416695
cmp eax, 2
jne 0x4166b1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4166c0
test eax, eax
je 0x4166bb
test al, 1
jne 0x4166b1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4166c0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc