joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ba77
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x46bab0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004678ca
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040338b
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x46d5d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x46d61a
call fcn.00471426
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x46d61a
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x46d635
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0046d18e
test ebx, ebx
mov esi, eax
je 0x46d633
test edi, edi
je 0x46d633
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46ecaa
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_recv]
ret 0xc

Function at 0x46ecc2
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_send]
ret 0xc

Function at 0x46ed6a
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x46f0ac
Capabilities:
Resolve dns

Disassembly:
push 0x18
mov eax, 0x49d287
call fcn.0048d04b
mov esi, dword [ebp + 8]
mov ebx, ecx
call dword [0x4d699c]
xor edi, edi
mov dword [ebp - 0x24], edi
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x46f0ec
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [ebp - 0x24]
call fcn.004040ae
xor eax, eax
call fcn.0048d0ce
ret 8
push 0x10
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00487f00
add esp, 0xc
push esi
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x46f125
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
je 0x46f143
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [ebp - 0x20]
mov word [ebp - 0x1e], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
mov edi, eax
jmp 0x46f14e
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [ebp - 0x24]
call fcn.004040ae
mov eax, edi
jmp 0x46f0e4
Function at 0x47b082
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4d5674]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x47b0c2
push 0x4b05d8
push 4
push eax
call fcn.0048d6d4
push eax
call fcn.0040332d
add esp, 0x10
jmp 0x47b0d4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x47b142
push edi
call fcn.0048cbd7
mov edi, dword [eax]
call fcn.0048cbd7
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0048bf41
add esp, 0x18
mov ebx, eax
call fcn.0048cbd7
cmp dword [eax], 0
je 0x47b122
call fcn.0048cbd7
push dword [eax]
call fcn.004675f9
pop ecx
jmp 0x47b129
call fcn.0048cbd7
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x47b142
cmp ebx, esi
jae 0x47b142
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x47b144
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00487a23
leave
ret
Function at 0x47c59d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x47c5e3
call fcn.00471426
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x47c5e3
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x47c626
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x47c60f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x47c60f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x47c623
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x487a23
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d5674]
jne 0x487a2d
repz ret
jmp fcn.0048fba7
Function at 0x492fd6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d6030]
je 0x492ff1
inc edi
cmp edi, 0x17
jb 0x492fe2
cmp edi, 0x17
jae 0x493171
push ebp
push 3
call fcn.00498a09
cmp eax, 1
pop ecx
je 0x49313d
push 3
call fcn.00498a09
test eax, eax
pop ecx
jne 0x493025
cmp dword [0x4d5670], 1
je 0x49313d
cmp ebx, 0xfc
je 0x493170
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d9810
push ebp
call fcn.0048d6d4
add esp, 0xc
test eax, eax
je 0x49305b
push esi
push esi
push esi
push esi
push esi
call fcn.0048e542
add esp, 0x14
push 0x104
mov esi, 0x4d9829
push esi
push 0
mov byte [0x4d992d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x49309f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048d6d4
add esp, 0xc
test eax, eax
je 0x49309f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048e542
add esp, 0x14
push esi
call fcn.004875a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4930e4
push esi
call fcn.004875a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d9b24
push 0x4b6334
sub ecx, eax
push ecx
push eax
call fcn.0048d0ec
add esp, 0x14
test eax, eax
je 0x4930e4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048e542
add esp, 0x14
jmp 0x4930e6
xor esi, esi
push 0x4b23e8
push ebx
push ebp
call fcn.0048dc84
add esp, 0xc
test eax, eax
je 0x493106
push esi
push esi
push esi
push esi
push esi
call fcn.0048e542
add esp, 0x14
push dword [edi*8 + 0x4d6034]
push ebx
push ebp
call fcn.0048dc84
add esp, 0xc
test eax, eax
je 0x493128
push esi
push esi
push esi
push esi
push esi
call fcn.0048e542
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049884c
add esp, 0xc
jmp 0x493170
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x493170
cmp ebp, 0xffffffff
je 0x493170
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d6034]
push dword [esi]
call fcn.004875a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49884c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00490748
xor ebx, ebx
cmp dword [0x4d9cac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x498922
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x498a02
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4b33d8
push edi
call esi
cmp eax, ebx
je 0x498a02
push eax
call fcn.004906da
mov dword [esp], 0x4b33c8
push edi
mov dword [0x4d9cac], eax
call esi
push eax
call fcn.004906da
mov dword [esp], 0x4b33b4
push edi
mov dword [0x4d9cb0], eax
call esi
push eax
call fcn.004906da
mov dword [0x4d9cb4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048d98a
test eax, eax
pop ecx
pop ecx
je 0x4988f0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048e542
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x498922
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004906da
cmp eax, ebx
pop ecx
mov dword [0x4d9cbc], eax
je 0x498922
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004906da
pop ecx
mov dword [0x4d9cb8], eax
mov eax, dword [0x4d9cb8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4989a7
cmp dword [0x4d9cbc], ecx
je 0x4989a7
push eax
call fcn.00490751
push dword [0x4d9cbc]
mov esi, eax
call fcn.00490751
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4989a7
cmp edi, ebx
je 0x4989a7
call esi
cmp eax, ebx
je 0x498974
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x498974
test byte [ebp - 0x18], 1
jne 0x4989a7
lea eax, [ebp - 0x10]
push eax
call fcn.0048d9c1
test eax, eax
pop ecx
je 0x49898f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048e542
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49899e
or dword [ebp + 0x10], 0x200000
jmp 0x4989e2
or dword [ebp + 0x10], 0x40000
jmp 0x4989e2
mov eax, dword [0x4d9cb0]
cmp eax, dword [ebp - 8]
je 0x4989e2
push eax
call fcn.00490751
cmp eax, ebx
pop ecx
je 0x4989e2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4989e2
mov eax, dword [0x4d9cb4]
cmp eax, dword [ebp - 8]
je 0x4989e2
push eax
call fcn.00490751
cmp eax, ebx
pop ecx
je 0x4989e2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d9cac]
call fcn.00490751
cmp eax, ebx
pop ecx
je 0x498a02
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x498a04
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49cc20
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d5674]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049cbb5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00487f00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x49cc6f
cmp dword [ebp - 0x1c], 5
jb 0x49cc87
jmp 0x49cc83
cmp dword [ebp - 0x10], 1
jne 0x49cc87
cmp dword [ebp - 0x1c], 4
ja 0x49cc83
jne 0x49cc87
cmp dword [ebp - 0x18], 0
jbe 0x49cc87
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4b3cc0
call fcn.0049caa6
test eax, eax
jge 0x49cca8
mov byte [0x4d9d49], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00487a23
add ebp, 0x78
leave
ret
Function at 0x406500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430940
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00412c9e
mov edi, eax
add esp, 4
test edi, edi
je 0x4065ab
push 1
mov dword [ebp - 4], 0
call fcn.004118b7
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407b90
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430b15
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x440253], 0
je 0x407cfa
push str.restoring_registry_entries__HKCS__1
call fcn.00406ba0
add esp, 4
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
push 0
push str.steamShellOpenCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c22
push dword [0x43f00c]
push 0x44c258
push 1
push eax
push 0x432d40
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407cfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004027e0
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00401320
push 0x41
push str.Unable_to_restore_the_original_registry_entry__HKCS__2__error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040a7e0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00406ba0
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x407cd9
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407ccf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407d39
push ecx
push edx
call fcn.00412cce
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00404b90
cmp byte [0x440252], 0
jne 0x407d20
push str.removing_registry_entries__HKCS__2__added_by_loader_
call fcn.00406ba0
add esp, 4
push str.steam
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412f32
mov esp, ebp
pop ebp
ret
call fcn.00417acf
int3
Function at 0x407d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430b15
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x440250], 0
je 0x407ebc
push str.restoring_registry_entries__HKCU_
call fcn.00406ba0
add esp, 4
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407def
push dword [section..data]
push 0x440258
push 1
push eax
push str.SteamClientDll
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x43f004]
push 0x444258
push 1
push 0
push str.SteamClientDll64
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004027e0
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00401320
push 0x3e
push str.Unable_to_restore_the_original_registry_entry__HKCU___error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040a7e0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00406ba0
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x407ea2
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407e98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407ed5
push ecx
push edx
call fcn.00412cce
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00404b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412f32
mov esp, ebp
pop ebp
ret
call fcn.00417acf
int3
Function at 0x407ee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430b15
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43f100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x440251], 0
je 0x40804e
push str.restoring_registry_entries__HKLM_
call fcn.00406ba0
add esp, 4
mov dword [ebp - 0x5c], 0
cmp dword [0x450270], 7
lea ecx, [ebp - 0x5c]
mov eax, 0x45025c
cmova eax, dword [0x45025c]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407f81
push dword [0x43f008]
push 0x448258
push 1
push eax
push str.InstallPath
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40804e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004027e0
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00401320
push 0x3e
push str.Unable_to_restore_the_original_registry_entry__HKLM___error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040a7e0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00406ba0
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x408034
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40802a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408067
push ecx
push edx
call fcn.00412cce
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00404b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412f32
mov esp, ebp
pop ebp
ret
call fcn.00417acf
int3
Function at 0x40a2f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x43f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push 0x10021
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00412c9e
add esp, 4
test eax, eax
je 0x40a4d6
lea esi, [eax + 0x23]
and esi, 0xffffffe0
push 0xfffe
push 0
push esi
lea edi, [esi + 0xfffe]
mov dword [ebp - 0x10], esi
mov dword [esi - 4], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call fcn.00414a30
add esp, 0xc
mov dword [ebp - 0x24], edi
cmp dword [0x450288], 7
mov eax, 0x450274
mov dword [ebp - 4], 0
cmova eax, dword [0x450274]
push eax
push 0x7fff
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, eax
mov ecx, 3
mov dword [ebp - 0x1c], ecx
cmp edx, 0x7ffe
jne 0x40a473
test ecx, ecx
jle 0x40a473
mov ecx, edi
sub ecx, esi
sar ecx, 1
lea esi, [ecx + ecx]
cmp esi, ecx
jae 0x40a3ed
mov eax, dword [ebp - 0x10]
lea edi, [eax + esi*2]
jmp 0x40a42b
jbe 0x40a42e
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp esi, eax
jbe 0x40a419
lea eax, [ebp - 0x11]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00402700
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
jmp 0x40a42e
sub esi, ecx
add esi, esi
push esi
push 0
push edi
call fcn.00414a30
add esp, 0xc
add edi, esi
mov dword [ebp - 0x24], edi
cmp dword [0x450288], 7
mov eax, 0x450274
mov esi, edi
cmova eax, dword [0x450274]
sub esi, dword [ebp - 0x10]
push eax
sar esi, 1
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
lea eax, [esi - 1]
dec ecx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
cmp edx, eax
je 0x40a3d0
mov edi, dword [ebp - 0x38]
xorps xmm0, xmm0
push edx
push esi
mov ecx, edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00401a30
test esi, esi
je 0x40a4c3
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x40a4b9
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a4d6
push ecx
push esi
call fcn.00412cce
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00417acf
int3