joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x444380]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x462938]
and eax, 4
jne 0x403804
xor eax, eax
jmp 0x403a44
mov dword [ebp - 4], 1
movzx ecx, byte [0x443008]
test ecx, ecx
je 0x4039fe
mov edx, dword [0x46f008]
push edx
push 0x400
push 0x445938
push 0x43b6c7
push str.value_init
push 0x43b79c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x445938
call fcn.00403eb0
add esp, 4
mov eax, dword [0x46f008]
push eax
push 0x64
push 0x4458d0
push 0x43b6d3
push str.value_end
push 0x43b7b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [0x46f008]
push ecx
push 0x1e
push 0x4458ac
push 0x43b6df
push str.value_cancel
push 0x43b7c8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [0x46f008]
push edx
push 0x64
push 0x445848
push 0x43b7d0
push 0x43b7d4
push 0x43b7dc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x445848
call fcn.00414e16
add esp, 4
mov dword [0x46f010], eax
cmp dword [0x46f010], 0
je 0x4039f7
xor ecx, ecx
mov eax, dword [0x46f010]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414604
add esp, 4
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
mov dword [0x46f00c], eax
mov dword [ebp - 8], 0
jmp 0x403915
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [0x46f010]
jge 0x403932
mov eax, dword [ebp - 8]
mov ecx, dword [0x46f00c]
mov dword [ecx + eax*4], 0
jmp 0x40390c
mov dword [ebp - 8], 0
jmp 0x403944
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [0x46f010]
jge 0x4039f7
mov ecx, dword [ebp - 8]
push ecx
push 0x43b7e4
push 0xa
lea edx, [ebp - 0x18]
push edx
call fcn.00414cec
add esp, 0x10
mov eax, dword [0x46f008]
push eax
push 0x400
lea ecx, [ebp - 0x418]
push ecx
push 0x43b72d
lea edx, [ebp - 0x18]
push edx
push str.TEXTS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x418]
push eax
call fcn.00414ad0
add esp, 4
add eax, 1
push eax
call fcn.00414604
add esp, 4
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x46f00c]
mov eax, dword [ebp - 0x420]
mov dword [edx + ecx*4], eax
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [0x46f00c]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00415030
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [0x46f00c]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00403eb0
add esp, 4
jmp 0x40393b
mov byte [0x443008], 0
xor edx, edx
jne 0x403804
cmp dword [ebp + 0xc], 0
je 0x403a13
mov eax, 0x4458ac
jmp 0x403a44
cmp dword [ebp + 8], 0x6f
jne 0x403a20
mov eax, 0x4458d0
jmp 0x403a44
cmp dword [ebp + 8], 0
jl 0x403a3f
mov eax, dword [ebp + 8]
cmp eax, dword [0x46f010]
jge 0x403a3f
mov ecx, dword [ebp + 8]
mov edx, dword [0x46f00c]
mov eax, dword [edx + ecx*4]
jmp 0x403a44
mov eax, 0x445938
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00414b5b
mov esp, ebp
pop ebp
ret
Function at 0x404d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x404db9
mov dword [ebp - 8], 6
jmp 0x404e52
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
movzx edx, cx
and edx, 0xff
movzx eax, dl
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
movzx edx, cx
shr edx, 8
movzx eax, dl
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x404e03
cmp dword [ebp - 0x18], 1
je 0x404e33
jmp 0x404e4a
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 3
jb 0x404e31
cmp dword [ebp - 0x1c], 4
jbe 0x404e1d
cmp dword [ebp - 0x1c], 5
je 0x404e28
jmp 0x404e31
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x43ba68
jmp 0x404e31
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x43ba74
jmp 0x404e4a
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 4
je 0x404e41
jmp 0x404e4a
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x43ba80
xor ecx, ecx
jne 0x404d9e
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x404e60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x444380]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xac], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
push 0x94
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00415670
add esp, 0xc
mov dword [ebp - 0xa8], 0x94
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404ee4
mov dword [ebp - 0xa8], 0x94
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x404ee4
mov dword [ebp - 4], 2
jmp 0x404fff
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
je 0x404fee
cmp dword [ebp - 0xb0], 1
je 0x404f97
cmp dword [ebp - 0xb0], 2
je 0x404f18
jmp 0x404ff7
cmp dword [ebp - 0xa4], 4
ja 0x404f2c
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x43ba90
jmp 0x404f95
cmp dword [ebp - 0xa4], 5
jne 0x404f49
cmp dword [ebp - 0xa0], 0
jne 0x404f49
mov edx, dword [ebp + 8]
mov dword [edx], 0x43ba9c
jmp 0x404f95
cmp dword [ebp - 0xa4], 5
jne 0x404f66
cmp dword [ebp - 0xa0], 1
jne 0x404f66
mov eax, dword [ebp + 8]
mov dword [eax], 0x43baa8
jmp 0x404f95
cmp dword [ebp - 0xa4], 5
jne 0x404f83
cmp dword [ebp - 0xa0], 2
jne 0x404f83
mov ecx, dword [ebp + 8]
mov dword [ecx], str.WindowsXP
jmp 0x404f95
cmp dword [ebp - 0xa4], 6
jne 0x404f95
mov edx, dword [ebp + 8]
mov dword [edx], str.WindowsVista
jmp 0x404ff7
cmp dword [ebp - 0xa4], 4
jne 0x404fb4
cmp dword [ebp - 0xa0], 0
jne 0x404fb4
mov eax, dword [ebp + 8]
mov dword [eax], 0x43bad0
jmp 0x404fec
cmp dword [ebp - 0xa4], 4
jne 0x404fd1
cmp dword [ebp - 0xa0], 0xa
jne 0x404fd1
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x43badc
jmp 0x404fec
cmp dword [ebp - 0xa4], 4
jne 0x404fec
cmp dword [ebp - 0xa0], 0x5a
jne 0x404fec
mov edx, dword [ebp + 8]
mov dword [edx], 0x43bae8
jmp 0x404ff7
mov eax, dword [ebp + 8]
mov dword [eax], 0x43baf4
xor ecx, ecx
jne 0x404e80
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00414b5b
mov esp, ebp
pop ebp
ret 4

Function at 0x406940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.00415670
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040dd60
add esp, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40699d
mov ecx, dword [ebp - 0x14]
mov dword [0x46e408], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.00414deb
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408370
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x46ec34], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x46ec38], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4086c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46ec3c], eax
xor ecx, ecx
jne 0x40837d
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x408910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
shl eax, 0x10
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xbfffffff
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x7fffffff
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00403e70
add esp, 4
xor edx, edx
jne 0x408914
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408f60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x444380]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x9c
push 0
lea eax, [ebp - 0xb0]
push eax
call fcn.00415670
add esp, 0xc
mov dword [ebp - 0xb0], 0x9c
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408fad
xor eax, eax
jmp 0x408fd3
cmp dword [ebp - 0xac], 6
jne 0x408fd1
cmp dword [ebp - 0xa8], 2
jne 0x408fd1
movzx edx, byte [ebp - 0x16]
cmp edx, 1
jne 0x408fd1
mov eax, 1
jmp 0x408fd3
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00414b5b
mov esp, ebp
pop ebp
ret
Function at 0x40a680
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
push str.999999999999999
call fcn.00405ed0
add esp, 4
add eax, 0x32
mov dword [ebp - 0x50], eax
mov eax, dword [0x45a564]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x64
ja case.0x40a6cd.3
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 0x40a870]
jmp dword [edx*4 + 0x40a860]
mov eax, 1
jmp 0x40a85b
mov dword [0x45a564], 0
mov dword [ebp - 0xc], 0x46d0e8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00414ad0
add esp, 4
test eax, eax
je 0x40a760
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00405ed0
add esp, 4
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
push edx
call fcn.00414604
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40a738
mov dword [ebp - 4], 2
jmp 0x40a7de
push str.666666666666666
push 0x445e74
push str.999999999999999
mov ecx, dword [ebp - 0xc]
push ecx
push str._ssr_slang_ss_s
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00414cec
add esp, 0x1c
jmp 0x40a7de
mov dword [ebp - 0xc], 0x46c850
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00414ad0
add esp, 4
test eax, eax
je 0x40a7de
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405ed0
add esp, 4
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.00414604
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x40a7af
mov dword [ebp - 4], 2
jmp 0x40a7de
push str.666666666666666
push 0x445e74
push str.999999999999999
mov edx, dword [0x45a564]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str._smode_dsr_slang_ss_s
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00414cec
add esp, 0x20
mov eax, dword [ebp - 0xc]
push eax
call fcn.00414ad0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x40a7f5
jmp 0x40a839
push 0x3c
push 0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00415670
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x100
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor ecx, ecx
jne 0x40a69b
cmp dword [ebp - 8], 0
je 0x40a858
mov edx, dword [ebp - 8]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00414deb
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareInstallerLogger
push 0x80000001
mov dword [esp + 0x18], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d0da
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push esi
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
pop esi
add esp, 0xc
ret

Function at 0x40d620
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x21c]
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x21c]
test esi, esi
push edi
mov edi, dword [esp + 0x230]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
jne 0x40d693
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00414b5b
add esp, 0x210
ret
test ecx, ecx
je 0x40d676
test edi, edi
je 0x40d676
test eax, eax
je 0x40d6bf
cmp byte [eax], 0
je 0x40d6bf
push eax
push ecx
push str._s_s
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00414cec
add esp, 0x14
jmp 0x40d6d2
push ecx
lea ecx, [esp + 0x1c]
push 0x200
push ecx
call fcn.004151ab
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d71c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d71c
mov esi, 2
jmp 0x40d747
push edi
call fcn.004159a0
mov ecx, dword [esp + 0x10]
add esp, 4
push eax
push edi
push 1
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40d743
mov dword [esp + 0x10], 2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d756
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.00414b5b
add esp, 0x210
ret
Function at 0x40d770
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x208], eax
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0x218]
push ebp
push esi
mov esi, dword [esp + 0x218]
test esi, esi
push edi
mov edi, dword [esp + 0x228]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ebp, 1
jne 0x40d7d9
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00414b5b
add esp, 0x20c
ret
test ecx, ecx
je 0x40d7bc
test eax, eax
je 0x40d801
cmp byte [eax], 0
je 0x40d801
push eax
push ecx
push str._s_s
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.00414cec
add esp, 0x14
jmp 0x40d814
push ecx
lea ecx, [esp + 0x18]
push 0x200
push ecx
call fcn.004151ab
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d857
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d875
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x230]
push ecx
push 4
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40d87a
mov ebp, 2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d889
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00414b5b
add esp, 0x20c
ret
Function at 0x40d8b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x208], eax
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0x218]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x220]
test edi, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov ebp, 1
jne 0x40d90e
mov eax, 2
jmp 0x40d9eb
test ecx, ecx
je 0x40d904
test eax, eax
je 0x40d936
cmp byte [eax], 0
je 0x40d936
push eax
push ecx
push str._s_s
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00414cec
add esp, 0x14
jmp 0x40d949
push ecx
lea ecx, [esp + 0x1c]
push 0x200
push ecx
call fcn.004151ab
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d9d5
mov eax, dword [esi]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x40d9ac
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push ebx
push edx
call edi
test eax, eax
jne 0x40d9d5
mov eax, dword [esp + 0x10]
push eax
call fcn.00415141
mov ecx, dword [esp + 0x14]
push ecx
push 0
push eax
mov dword [esi], eax
call fcn.00415670
mov eax, dword [esi]
add esp, 0x10
test eax, eax
jne 0x40d9bf
jmp 0x40d9d5
push eax
call fcn.004159a0
mov dword [esp + 0x14], eax
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x40d9d5
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push ebx
push eax
call edi
test eax, eax
je 0x40d9da
mov ebp, 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d9e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414b5b
add esp, 0x20c
ret
Function at 0x40da10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x21c]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [esp + 0x224]
test edi, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esi], 0
mov dword [esp + 0x10], 1
jne 0x40da7e
mov eax, 2
jmp 0x40db66
test ecx, ecx
je 0x40da74
test eax, eax
je 0x40daa6
cmp byte [eax], 0
je 0x40daa6
push eax
push ecx
push str._s_s
lea eax, [esp + 0x28]
push 0x200
push eax
call fcn.00414cec
add esp, 0x14
jmp 0x40dab9
push ecx
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.004151ab
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi], eax
jne 0x40db4b
mov eax, dword [ebx]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x40db20
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0
push ebp
push edx
call edi
test eax, eax
mov dword [esi], eax
jne 0x40db4b
mov eax, dword [esp + 0x14]
push eax
call fcn.00415141
mov ecx, dword [esp + 0x18]
push ecx
push 0
push eax
mov dword [ebx], eax
call fcn.00415670
mov eax, dword [ebx]
add esp, 0x10
test eax, eax
jne 0x40db33
jmp 0x40db4b
push eax
call fcn.004159a0
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
add esp, 4
test eax, eax
je 0x40db4b
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x20]
push 0
push 0
push ebp
push eax
call edi
test eax, eax
mov dword [esi], eax
je 0x40db53
mov dword [esp + 0x10], 2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40db62
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414b5b
add esp, 0x210
ret
Function at 0x40db80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x444380]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x21c]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
push esi
mov esi, dword [esp + 0x220]
test esi, esi
mov edx, 4
push edi
mov edi, dword [esp + 0x230]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
lea ebp, [edx - 3]
jne 0x40dbe1
mov eax, 2
jmp 0x40dc6a
test ecx, ecx
je 0x40dbd7
test eax, eax
je 0x40dc09
cmp byte [eax], 0
je 0x40dc09
push eax
push ecx
push str._s_s
lea eax, [esp + 0x28]
push 0x200
push eax
call fcn.00414cec
add esp, 0x14
jmp 0x40dc1c
push ecx
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.004151ab
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dc54
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40dc59
mov ebp, 2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40dc68
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414b5b
add esp, 0x210
ret

Function at 0x40dca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push ebx
push 0x800
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
jne 0x40dcdf
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x800
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, eax
test esi, esi
je 0x40dd43
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ebp, 0x800
xor edi, edi
sub ebp, esi
add esi, ebx
jmp 0x40dd00
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x1e]
add ecx, edi
push ecx
push edx
push eax
push str.setup__02d_02d_03d_
push ebp
push esi
call fcn.00414cec
push ebx
call fcn.00417068
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x40dd50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40dd43
add edi, 1
cmp edi, 0xa
jle 0x40dd00
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret