joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431811
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4471c0]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x43185e
push dword [ebp + 8]
call fcn.004342dc
mov esi, eax
test esi, esi
je 0x431886
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x431886
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x43a444
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004184e0
leave
ret 0xc

Function at 0x432b0e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x4471c0]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x432b6c
push 0x439e04
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00419155
add esp, 0x10
cmp eax, 0xffffffff
je 0x432b80
cmp eax, esi
jae 0x432b80
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x432b82
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
jne 0x432b37
jmp 0x432b83
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.004184e0
leave
ret
Function at 0x432ba3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4471c0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x432c45
call eax
mov esi, dword [sym.imp.KERNEL32.DLL_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x432d47
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
jns 0x432cf5
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x432d48
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x432cea
cmp dword [ebp - 0x24], 1
jne 0x432cea
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x439e14
push eax
call fcn.004191ac
add esp, 0xc
cmp eax, 1
jne 0x432cea
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x432d48
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x432d48
lea ecx, [ebp - 0x18]
push ecx
push 0x432b8d
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.DLL_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x432d48
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x432d6e
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00432b0e
cmp eax, ebx
pop ecx
pop ecx
jne 0x432d70
inc edi
cmp edi, esi
jl 0x432d57
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004184e0
leave
ret 4
Function at 0x432d7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x44676c
je 0x432e3b
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x432e23
mov esi, dword [ebx + 4]
jmp 0x432e1d
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x432e0d
cmp dword [ebp - 0xc], 4
jne 0x432e0d
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x432e05
or dword [eax + 0x9c], ecx
jmp 0x432e0d
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x432dd1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x432db4
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x433229
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x43741a
call fcn.00418490
sub esp, 0x11c
mov eax, dword [0x4471c0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x433322
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x4332f6
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402e30
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00433229
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004013c0
test bl, bl
jne 0x4332f6
or dword [ebp - 4], 0xffffffff
jmp 0x433267
cmp esi, 0x103
je 0x433306
cmp esi, 0x3f2
jne 0x433316
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004184e0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x433c04
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x433c39
cmp edi, dword [esi + 0xc]
jge 0x433c39
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x433c39
cmp edi, dword [eax + 8]
jge 0x433c39
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x433c3b
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x433d3f
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x433d73
jmp fcn.004285e8
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x433de4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x433edd
cmp eax, dword [edi + 0xc]
jge 0x433edd
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x433e35
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x433ec6
cmp dword [ebp + 0xc], ebx
je 0x433ec6
jmp 0x433e5f
push 0x10
call fcn.00433ad0
cmp eax, ebx
je 0x433e4b
mov ecx, eax
call fcn.00433d36
mov esi, eax
jmp 0x433e4d
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x433e76
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
jmp 0x433e86
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
cmp eax, ebx
jne 0x433e98
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call fcn.004285e8
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.004184f0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x433ed8
cmp ecx, dword [esi + 8]
jge 0x433ed8
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x433ede
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x433f9c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x433fca
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x433fe8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00433f06
jmp 0x433fe8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x433fe8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00433f06
test edi, edi
mov eax, edi
jne 0x433fd2
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44a184]
test ecx, ecx
je 0x43409b
jmp 0x433f9b
ret 8
Function at 0x405900
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x422f48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x42b35c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00404a20
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405956
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00406fc0
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00404a20
cmp dword [esp + 0x24], 8
jb 0x40599f
mov edx, dword [esp + 0x10]
push edx
call fcn.0040cc3a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x406ec0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x422a1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42b35c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040c44b
push 4
mov dword [esp + 0x20], 0
call fcn.0040d8b1
mov edi, eax
add esp, 4
test edi, edi
je 0x406f3e
call fcn.0040c0b7
mov dword [edi], eax
call fcn.0040bee5
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0040c207
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406f33
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0040c22f
jmp 0x406f40
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x409740
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x423227
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42b35c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x427548
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.0040a600
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.0040aeb0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
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 + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x42d790]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40aeb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x422a1b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42b35c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040c44b
push 4
mov dword [esp + 0x20], 0
call fcn.0040d8b1
mov edi, eax
add esp, 4
test edi, edi
je 0x40af2e
call fcn.0040c0b7
mov dword [edi], eax
call fcn.0040bee5
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0040c207
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40af23
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0040c22f
jmp 0x40af30
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40b690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42b35c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [edx]
xor edi, edi
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push str.ProgramFilesDir
push eax
call esi
test eax, eax
jne 0x40b756
mov ecx, dword [ebp - 8]
inc ecx
push ecx
call fcn.0040c493
mov ecx, dword [ebp + 0xc]
add esp, 4
lea edx, [ebp - 8]
push edx
mov edx, dword [ecx]
mov ebx, eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push str.ProgramFilesDir
push edx
call esi
test eax, eax
jne 0x40b74d
cmp dword [ebp - 0xc], 1
jne 0x40b74d
test ebx, ebx
je 0x40b729
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40b714
xor eax, eax
jmp 0x40b729
lea eax, [edi + edi]
call fcn.004145e0
mov esi, esp
push 3
mov edx, edi
mov eax, ebx
call fcn.00408a70
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40b730
sub ecx, esi
mov esi, dword [ebp + 8]
sar ecx, 1
push ecx
call fcn.00405180
mov edi, 1
push ebx
call fcn.0040d5dd
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc45
mov esp, ebp
pop ebp
ret
Function at 0x40b780
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x42b35c]
xor eax, esp
mov dword [esp + 0x800], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00414620
add esp, 0xc
lea edx, [esp]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40b7d6
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0040cc45
add esp, 0x804
ret
push str.AskSearch
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [esp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 1
call fcn.0040cc45
add esp, 0x804
ret

Function at 0x40b8a0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push edi
xor esi, esi
push esi
push esi
call ebp
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c493
add esp, 4
mov ebx, eax
push ebx
push edi
call ebp
test eax, eax
je 0x40b92c
cmp eax, edi
jae 0x40b92c
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b8e7
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.00405180
push 9
mov eax, str.AskSearch
mov ecx, esi
call fcn.00406fc0
cmp dword [esi + 0x18], 8
jb 0x40b91b
mov esi, dword [esi + 4]
jmp 0x40b91e
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, 1
push ebx
call fcn.0040d5dd
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x40b940
Capabilities:
Create directory
Get common file path
Get program files directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x42b35c]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
xor edi, edi
push edi
push 0x26
lea eax, [esp + 0x14]
push eax
push edi
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40b98f
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b974
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.00405180
jmp 0x40b9bd
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b9bd
lea edx, [esp + 8]
push edx
push esi
call fcn.0040b690
add esp, 8
cmp dword [esi + 0x14], edi
je 0x40ba26
push 8
mov eax, str.Ask.com
mov ecx, esi
call fcn.00406fc0
cmp dword [esi + 0x18], 8
jb 0x40b9fe
mov esi, dword [esi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040cc45
add esp, 0x210
ret
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040cc45
add esp, 0x210
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040cc45
add esp, 0x210
ret

Function at 0x40ba40
Capabilities:
Delete file
Write file on windows

Disassembly:
push ecx
push edi
mov edi, ecx
test edi, edi
jbe 0x40bab2
push esi
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40baac
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ba96
cmp dword [esp + 8], edi
jne 0x40ba96
mov edi, 1
jmp 0x40ba98
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40baac
pop esi
mov eax, 1
pop edi
pop ecx
ret
pop esi
xor eax, eax
pop edi
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop edi
pop ecx
ret

Function at 0x40cc45
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b35c]
jne 0x40cc4f
repz ret
jmp fcn.00412169