joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480280
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aafc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4e06b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], edi
push eax
mov ecx, ebx
mov dword [ebp - 0x14], edi
call fcn.0040a2e0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
cmp eax, edi
jbe 0x4803bc
push eax
call fcn.004819f2
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x14]
push esi
push ecx
push edi
mov ecx, ebx
call fcn.0040a2e0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4803ac
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call fcn.00403600
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push str.VarFileInfoTranslation
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
call edi
test eax, eax
jne 0x480363
push 0x4c60cc
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00404100
lea ecx, [ebp - 0x10]
call fcn.00404200
push esi
call fcn.0048245e
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [eax + 2]
push edx
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00402f60
add esp, 0x14
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040a2e0
push eax
push esi
call edi
test eax, eax
je 0x4803a4
mov eax, dword [ebp - 0x1c]
push eax
jmp 0x480334
lea ecx, [ebp - 0x10]
call fcn.00404200
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0048245e
add esp, 4
mov esi, dword [ebp + 8]
push 0x4c60cc
mov ecx, esi
call fcn.00404100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x480c10
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00487e90
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x404]
push ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x480c84
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x480c84
mov eax, dword [eax + 0xc]
cmp dword [eax], esi
je 0x480c84
mov eax, dword [eax]
mov eax, dword [eax]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00482469
mov esp, ebp
pop ebp
ret
Function at 0x480d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad50b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a960
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040a2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x480d82
call fcn.00407660
lea edi, [ebp - 0x48]
call fcn.00468fe0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00408010
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040aa80
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x480da1
push 1
call fcn.004077a0
mov dword [esi + 0x1c], 0
push 0x50
call fcn.004826fa
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x480dc3
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004103e0
jmp 0x480dc5
xor eax, eax
push edi
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2c]
call fcn.0040aa80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret
Function at 0x4814c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9017
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e06b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x4cbbe8
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
lea esi, [ebx + 0x10]
push esi
add edi, ebx
mov dword [ebp - 0x10], 1
call fcn.004607b0
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00460890
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov edx, dword [0x4e6844]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x482469
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e06b8]
jne 0x482473
repz ret
jmp fcn.0048c428
Function at 0x4a0c3c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048d75c
and dword [ebp - 0x14], 0
cmp dword [0x4e4ca8], 0
mov dword [ebp - 0x18], eax
jne 0x4a0cef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a0d97
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4a0d97
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4b7a50
push ebx
mov dword [0x4e4ca8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4e4cac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4e4cb0], eax
call edi
push eax
call esi
mov dword [0x4e4cb8], eax
test eax, eax
je 0x4a0cef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4e4cb4], eax
mov eax, dword [0x4e4cb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4a0d48
cmp dword [0x4e4cb8], ecx
je 0x4a0d48
push eax
call esi
push dword [0x4e4cb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a0d48
test ebx, ebx
je 0x4a0d48
call edi
test eax, eax
je 0x4a0d3f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a0d3f
test byte [ebp - 8], 1
jne 0x4a0d48
or dword [ebp + 0x10], 0x200000
jmp 0x4a0d7b
mov eax, dword [0x4e4cac]
cmp eax, dword [ebp - 0x18]
je 0x4a0d7b
push eax
call esi
test eax, eax
je 0x4a0d7b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a0d7b
mov eax, dword [0x4e4cb0]
cmp eax, dword [ebp - 0x18]
je 0x4a0d7b
push eax
call esi
test eax, eax
je 0x4a0d7b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4e4ca8]
call esi
test eax, eax
je 0x4a0d97
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a0d99
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482469
leave
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x402106
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x404075
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
sub esp, 0xe
mov byte [esp], 0x6d
mov byte [esp + 1], 0x63
mov byte [esp + 2], 0x69
mov byte [esp + 3], 0x53
mov byte [esp + 4], 0x65
mov byte [esp + 5], 0x6e
mov byte [esp + 6], 0x64
mov byte [esp + 7], 0x53
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x72
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xc], 0x67
mov byte [esp + 0xd], 0x41
mov byte [esp + 0xe], 0
lea eax, [esp]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4060ec], eax
leave
ret

Function at 0x403576
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret
Function at 0x10001930
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [0x10007334], 0
jne 0x10001948
mov dword [0x10007334], 1
jmp fcn.10004e04
ret

Function at 0x10001949
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call fcn.10001958

Function at 0x100055c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x100055d6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x100055f1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401440
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x420034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x43
xor esi, esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x401481
cmp dword [0x421450], esi
jne 0x4014c4
call fcn.00401870
lea eax, [esi + 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
mov eax, dword [0x421454]
and eax, 0xff00
cmp eax, 0x1500
jae 0x4014b7
cmp dword [0x421450], esi
jne 0x401521
call fcn.00401870
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
cmp dword [0x421450], esi
jne 0x401521
mov esi, 1
lea ecx, [ebp - 0x418]
call fcn.004015d0
push str.iSafeSvc.exe
lea eax, [ebp - 0x418]
push 0x208
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
xor ecx, ecx
push 1
push 0
test esi, esi
mov eax, str._start
cmove eax, ecx
push eax
lea eax, [ebp - 0x418]
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
call fcn.00401670
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
add eax, 3
pop esi
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret

Function at 0x401670
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x420034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4016fe
push edi
push 0x94
push str.iSafeService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4016ee
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4016e3
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x4016de
cmp eax, 2
je 0x4016de
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
jmp 0x4016fa
mov esi, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
jmp 0x4016fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
Function at 0x4026b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x420034]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
mov dword [ebp - 0x248], 0x3c
call sub.MSVCR110.dll_memset
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x23c], str.runas
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x22c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
Function at 0x4081f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x408296
test edx, edx
je 0x408296
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
je 0x40821b
lea eax, [ebx + 0x78]
test eax, eax
jne 0x408223
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
add eax, edi
push esi
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add ecx, edi
add esi, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x40827a
lea esp, [esp]
movsx eax, word [ecx + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edx
mov eax, dword [eax + esi*4]
add eax, edi
push eax
call dword [sym.imp.MSVCR110.dll__stricmp]
add esp, 8
test eax, eax
je 0x408283
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 8]
jb 0x408250
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
pop esi
mov eax, dword [ecx + eax*4]
add eax, dword [ebx + 0x34]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x409520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x420034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push edx
push ecx
mov dword [ebp - 0x41c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
cmp ecx, 1
je 0x4095dd
cmp ecx, 2
je 0x4095dd
cmp ecx, 4
jne 0x40964a
test esi, esi
jne 0x409596
test eax, eax
jne 0x40964a
lea eax, [esi + 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
je 0x4095ec
test eax, eax
jne 0x409630
cmp dword [ebp - 0x418], 4
jne 0x409630
cmp dword [ebp - 0x41c], 4
jne 0x409630
mov eax, dword [ebp - 0x414]
cmp eax, dword [esi]
je 0x40964a
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x409646
cmp word [esi], 0
je 0x409646
cmp eax, 2
jne 0x409602
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret 8
test eax, eax
jne 0x409630
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x40961b
cmp eax, 7
je 0x40961b
cmp eax, 2
jne 0x409630
lea eax, [ebp - 0x414]
push esi
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40964a
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x409630
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret 8
Function at 0x409e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x420034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x628]
push eax
or edx, 1
push edx
push 0
push 0x412d28
push 0x80000002
mov esi, ecx
mov dword [ebp - 0x628], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409ed9
push 0x412d28
push 0x414820
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x20c]
push dword [ebp - 0x62c]
push ebx
push eax
push 0x412d28
push 0
push 0x3010200
call edi
test eax, eax
je 0x409ed9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x624]
push eax
push 0
push str.path
push dword [ebp - 0x628]
mov dword [ebp - 0x620], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x409f4a
cmp word [esi], 0
je 0x409f4a
cmp eax, 2
je 0x409f58
test eax, eax
jne 0x409f58
mov eax, dword [ebp - 0x624]
cmp eax, 1
je 0x409f33
cmp eax, 7
je 0x409f33
cmp eax, 2
jne 0x409f58
lea eax, [ebp - 0x61c]
push esi
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x409f4e
jmp 0x409f58
test eax, eax
je 0x409f58
test esi, esi
je 0x409f58
cmp word [esi], 0
jne 0x409fa1
push str.path
push 0x412d28
push 0x414820
push str._s_s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0x62c]
push ebx
push eax
push esi
push 1
push 0x3010201
call edi
test eax, eax
jne 0x409ec6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
Function at 0x409fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x420034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x830]
push eax
or edx, 1
push edx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalliSafe
push 0x80000002
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x838], ebx
mov dword [ebp - 0x830], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.MSVCR110.dll_swprintf_s]
test eax, eax
je 0x40a075
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalliSafe
push 0x414820
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x20c]
push dword [ebp - 0x834]
push ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalliSafe
push 0
push 0x2010300
call edi
test eax, eax
je 0x40a075
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret
push str.uninstall.exe
push dword [ebp - 0x828]
lea eax, [ebp - 0x414]
push 0x4141dc
push 0x104
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x82c]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x830]
mov dword [ebp - 0x828], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x414], 0
je 0x40a112
cmp eax, 2
jne 0x40a0dc
lea ebx, [eax - 1]
jmp 0x40a11b
test eax, eax
jne 0x40a116
mov eax, dword [ebp - 0x82c]
cmp eax, 1
je 0x40a0f5
cmp eax, 7
je 0x40a0f5
cmp eax, 2
jne 0x40a116
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.MSVCR110.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40a172
jmp 0x40a116
test eax, eax
jne 0x40a172
mov ebx, 2
push str.UninstallString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstalliSafe
push 0x414820
push str._s_s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x20c]
push dword [ebp - 0x834]
push dword [ebp - 0x838]
push eax
lea eax, [ebp - 0x414]
push eax
movzx eax, bl
shl eax, 0x10
push 1
or eax, 0x2000301
push eax
call edi
test eax, eax
jne 0x40a062
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040dc0a
mov esp, ebp
pop ebp
ret