joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b77
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [ebp - 0x100], eax
push ebx
lea eax, [ebp - 0x104]
push ebx
push eax
push ebx
mov byte [edi], bl
mov dword [ebp - 0x104], 1
call sub.WSOCK32.dll_select
mov esi, eax
cmp esi, ebx
je 0x409c87
cmp esi, 0xffffffff
je 0x409c93
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push 4
push esi
push dword [ebp + 8]
call fcn.00409b09
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
je 0x409c77
cmp edi, ebx
je 0x409c6b
push dword [ebp + 0x18]
mov edi, dword [esi]
lea eax, [ebp - 0x104]
push ebx
push ebx
push eax
push ebx
call sub.WSOCK32.dll_select
cmp eax, ebx
mov dword [ebp + 0x18], eax
je 0x409c48
cmp eax, 0xffffffff
je 0x409c54
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 8]
call fcn.00409b09
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x409c24
cmp esi, ebx
jne 0x409ca2
cmp esi, ebx
jne 0x409c34
push str.The_server_has_unexpectedly_closed_the_connection._Please_try_nagain_later._If_this_problem_persists__contact_Softwrap_Support_n_details_on_http:__www.softwrap.com_
call fcn.004105b5
jmp 0x409c3f
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.00411fbd
mov eax, dword [ebp + 0x1c]
pop ecx
mov byte [eax], 1
jmp 0x409ca2
push str.The_Softwrap_Server_has_timed_out._This_communication_is_nbeing_aborted._Please_try_again_later.
call fcn.004105b5
jmp 0x409c5f
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.00411fbd
mov eax, dword [ebp + 0x18]
pop ecx
mov ecx, dword [ebp + 0x1c]
mov byte [ecx], 1
jmp 0x409ca4
push str.The_server_has_unexpectedly_closed_the_connection._Please_try_nagain_later._If_this_problem_persists__contact_Softwrap_Support_n_details_on_http:__www.softwrap.com_
call fcn.004105b5
jmp 0x409c82
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.00411fbd
pop ecx
mov eax, edi
jmp 0x409c63
push str.The_Softwrap_Server_has_timed_out._This_communication_is_nbeing_aborted._Please_try_again_later.
call fcn.004105b5
jmp 0x409c9e
call sub.WSOCK32.dll_WSAGetLastError
push eax
call fcn.00411fbd
pop ecx
mov byte [edi], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a04b
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, 0x9c
push edi
xor ebx, ebx
push esi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004174b0
add esp, 0xc
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40a09e
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
call esi
test eax, eax
jne 0x40a09e
push str.Cant_get_the_OS_Version___contact_Softwrap_support_for_help_n_contact_details_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
push ebx
push ebx
push ebx
push ebx
push str.se_File.
push 0x42f114
call fcn.00409a00
mov eax, dword [esp + 0x38]
add esp, 0x18
sub eax, ebx
je 0x40a0e9
dec eax
je 0x40a0e0
dec eax
jne 0x40a0f0
cmp dword [esp + 0x14], 4
ja 0x40a0d0
mov byte [0x42dbac], 1
cmp dword [esp + 0x14], 5
jne 0x40a0f0
mov byte [0x42dbac], 1
jmp 0x40a0f0
mov byte [0x42dbac], 2
jmp 0x40a0fe
mov byte [0x42dbac], 3
cmp byte [0x42dbac], 1
mov eax, dword [0x42f130]
je 0x40a103
mov eax, dword [0x42f134]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, 0x80
push ebx
push ebp
push 3
push ebx
mov edi, 0xc0000000
push 3
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x42e038], eax
jne 0x40a133
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40a14a
push dword [0x42e038]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Softwrap_cannot_be_run_with_SoftIce_loaded
call fcn.004099b6
pop ecx
push ebx
push ebx
push ebx
push ebx
push str.Error_in
push 0x42f10c
call fcn.00409a00
add esp, 0x18
push ebx
push ebp
push 3
push ebx
push 3
push edi
push dword [0x42f138]
call esi
cmp eax, 0xffffffff
mov dword [0x42e760], eax
jne 0x40a185
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40a19c
push dword [0x42e760]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Softwrap_cannot_be_run_with_RegMon_loaded
call fcn.004099b6
pop ecx
push ebx
push ebp
push 3
push ebx
push 3
push edi
push dword [0x42f13c]
call esi
cmp eax, 0xffffffff
mov dword [0x42e760], eax
jne 0x40a1c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40a1d8
push dword [0x42e760]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Softwrap_cannot_be_run_with_RegMon_loaded
call fcn.004099b6
pop ecx
push ebx
push ebp
push 3
push ebx
push 3
push edi
push str..FILEMON
call esi
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
mov dword [0x42de5c], eax
pop ebx
jne 0x40a200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40a217
push dword [0x42de5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Softwrap_cannot_be_run_with_FileMon_loaded
call fcn.004099b6
pop ecx
add esp, 0x9c
ret
Function at 0x40a21e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp byte [0x42dbac], 1
push ebx
push esi
push edi
push 0x64
mov eax, str.Windows_NT
pop ebx
mov dword [ebp - 4], ebx
je 0x40a240
mov eax, str.Windows
push eax
lea eax, [ebp - 0x58]
push str.SOFTWAREMicrosoft_sCurrentVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0x20019
lea eax, [ebp - 0x58]
push edi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a2b6
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push dword [ebp + 8]
push edi
push edi
push str.RegisteredOwner
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40a2b6
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0xc]
push edi
push edi
push str.RegisteredOrganization
push dword [ebp - 8]
call esi
test eax, eax
jne 0x40a2b6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40a2b8
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a2bd
Capabilities:
Accept command line arguments
Get disk information
Terminate process
Use process replacement

Disassembly:
push 0
push 0x40b8ee
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0xffffffff
jne 0x40a2f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_create_Loader_dialog_box__error__d_n
call fcn.004099b6
pop ecx
pop ecx
cmp dword [0x42f0b4], 0
je 0x40a302
jmp fcn.0040c773
ret

Function at 0x40a497
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
xor ebp, ebp
push edi
push ebp
push 0x413
push ebx
mov dword [0x42f0b4], ebp
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push 0x415
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push ebp
push 0x418
push ebx
call esi
push eax
call edi
mov ebp, 0x41e
push 5
push ebp
push ebx
call esi
push eax
call edi
push dword [esp + 0x14]
push ebp
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
cmp dword [esp + 0x1c], 0
je 0x40a50b
push 0
push 0x414
push ebx
call esi
push eax
call edi
jmp 0x40a51a
push 0x414
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40b663
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push edi
lea eax, [ebp - 0xa0]
push 0x50
mov edi, 0x4a1
push eax
push edi
push ebx
call esi
lea eax, [ebp - 0xa0]
push eax
call fcn.00415c2b
test al, al
pop ecx
je 0x40b6b4
lea eax, [ebp - 0x50]
push 0x50
inc edi
push eax
push edi
push ebx
call esi
lea eax, [ebp - 0x50]
push eax
call fcn.00415c2b
test al, al
pop ecx
jne 0x40b6d2
push str.This_e_mail_address_is_not_valid.
call fcn.00410576
pop ecx
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor al, al
jmp 0x40b750
mov eax, dword [0x42f150]
test eax, eax
jne 0x40b6f0
lea eax, [ebp - 0x104]
push 0x42f190
push eax
call fcn.00418030
pop ecx
pop ecx
jmp 0x40b705
push eax
lea eax, [ebp - 0x104]
push str.dla_s
push eax
call fcn.00417634
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xa0]
push 0x42e4e8
push eax
lea eax, [ebp - 0x50]
push eax
push str.http:__www.softwrap.com_STAF_editMail.asp
lea eax, [ebp - 0x2f8]
push str._s_eTo_seFrom_sswc_s_s
push eax
call fcn.00417634
add esp, 0x1c
lea eax, [ebp - 0x2f8]
push 5
push 0
push 0
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bc07
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
push ebx
push esi
push 0xffffffffffffffff
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareSoftwrapVer1.0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x40bd3b
push edi
push 0x32a
lea eax, [ebp - 0x578]
push 0x42ec68
push eax
call fcn.00417bc0
push 1
mov esi, 0x42f190
pop edi
lea eax, [ebp - 0x1d6]
push edi
push esi
push eax
call fcn.00417bc0
push edi
lea eax, [ebp - 0x1ce]
push esi
push eax
call fcn.00417bc0
push edi
lea eax, [ebp - 0x24e]
push esi
push eax
call fcn.00417bc0
push edi
lea eax, [ebp - 0x1f4]
push esi
push eax
call fcn.00417bc0
push edi
lea eax, [ebp - 0x1a6]
push esi
push eax
call fcn.00417bc0
add esp, 0x48
mov esi, 0x3e8
push esi
call fcn.004179b4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040bb76
lea eax, [ebp - 0x578]
push 0x3e6
push eax
push edi
call fcn.00417bc0
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call fcn.0040ce50
add esp, 0x38
push esi
push edi
push 3
push ebx
push str.Defaults
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00417985
pop ecx
pop edi
jmp 0x40bd6f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, 5
je 0x40bd62
cmp esi, 6
je 0x40bd62
push esi
push str.Error__ld_accessing_Softwrap_defaults_registry._nUntil_this_is_resolved__Softwrap_cannot_continue._If_the_problem_persists___nplease_contact_Softwrap_Support__contact_details_on_http:__www.softwrap.com_
jmp 0x40bd68
push esi
push str.Error__ld_accessing_Softwrap_defaults_registry._nTo_run_this_program__ask_your_administrator_to_create_a_HKEY_CURRENT_USERSoftwareSoftwrap_nregistry_key_and_give_you_full_access_to_it_and_its_subkeys._Until_this_is_done__Softwrap_cannot_continue._nIf_the_problem_persists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
pop ecx
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebx
leave
ret
Function at 0x40bd7f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
push ebx
push esi
push 0xffffffffffffffff
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareSoftwrapVer1.0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x40be78
push edi
push 0x32a
lea eax, [ebp - 0x578]
push 0x42ec68
push eax
call fcn.00417bc0
push 0xbc
lea eax, [ebp - 0x24e]
push 0x42eba8
push eax
call fcn.00417bc0
mov esi, 0x3e8
push esi
call fcn.004179b4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0040bb76
lea eax, [ebp - 0x578]
push 0x3e6
push eax
push edi
call fcn.00417bc0
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push edi
call fcn.0040ce50
add esp, 0x50
push esi
push edi
push 3
push ebx
push str.Defaults
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00417985
pop ecx
pop edi
jmp 0x40beac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, 5
je 0x40be9f
cmp esi, 6
je 0x40be9f
push esi
push str.Error__ld_accessing_Softwrap_defaults_registry._nUntil_this_is_resolved__Softwrap_cannot_continue._If_the_problem_persists___nplease_contact_Softwrap_Support__contact_details_on_http:__www.softwrap.com_
jmp 0x40bea5
push esi
push str.Error__ld_accessing_Softwrap_defaults_registry._nTo_run_this_program__ask_your_administrator_to_create_a_HKEY_CURRENT_USERSoftwareSoftwrap_nregistry_key_and_give_you_full_access_to_it_and_its_subkeys._Until_this_is_done__Softwrap_cannot_continue._nIf_the_problem_persists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
pop ecx
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebx
leave
ret
Function at 0x40bebc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push 0xffffffffffffffff
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [0x42db8c], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareSoftwrapVer1.0
push closesocket
mov dword [ebp - 4], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, eax
test esi, esi
jne 0x40bfa3
push dword [ebp - 4]
call fcn.004179b4
mov esi, eax
pop ecx
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0
push str.Defaults
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bf91
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.0040bb76
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push esi
call fcn.0040ce90
push 0x3e6
push esi
push 0x42e040
call fcn.00417bc0
add esp, 0x34
mov dword [0x42db8c], 1
push esi
call fcn.00417985
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40bfca
push dword [0x42f16c]
call ebx
cmp esi, 5
je 0x40bfbd
cmp esi, 6
je 0x40bfbd
push esi
push str.Error__ld_accessing_Softwrap_defaults_registry._nUntil_this_is_resolved__Softwrap_cannot_continue._If_the_problem_persists___nplease_contact_Softwrap_Support__contact_details_on_http:__www.softwrap.com_
jmp 0x40bfc3
push esi
push str.Error__ld_accessing_Softwrap_defaults_registry._nTo_run_this_program__ask_your_administrator_to_create_a_HKEY_CURRENT_USERSoftwareSoftwrap_nregistry_key_and_give_you_full_access_to_it_and_its_subkeys._Until_this_is_done__Softwrap_cannot_continue._nIf_the_problem_persists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
pop ecx
push dword [0x42f16c]
call ebx
pop esi
pop ebx
leave
ret
Function at 0x40c671
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [0x42f16c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareSoftwrapApplications
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, eax
cmp edi, esi
jne 0x40c6da
push 1
push 0x427940
push 3
push esi
push dword [0x42daac]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c70a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x42f16c]
call ebx
cmp edi, 5
je 0x40c6fd
cmp edi, 6
je 0x40c6fd
push edi
push str.Error__ld_accessing_Softwrap_defaults_registry._nUntil_this_is_resolved__Softwrap_cannot_continue._If_the_problem_persists___nplease_contact_Softwrap_Support__contact_details_on_http:__www.softwrap.com_
jmp 0x40c703
push edi
push str.Error__ld_accessing_Softwrap_defaults_registry._nTo_run_this_program__ask_your_administrator_to_create_a_HKEY_CURRENT_USERSoftwareSoftwrap_nregistry_key_and_give_you_full_access_to_it_and_its_subkeys._Until_this_is_done__Softwrap_cannot_continue._nIf_the_problem_persists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
call fcn.004099b6
pop ecx
pop ecx
push dword [0x42f16c]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cbaa
Capabilities:
Get disk information
Terminate process

Disassembly:
push 0x10
push str.Registration_Error
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00411ce2
push 1
call fcn.00417f53
Function at 0x40d051
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x400
call fcn.004179b4
mov ebx, eax
mov dword [esp], 0x230
call fcn.004179b4
mov edi, eax
push 1
push edi
push dword [ebp + 8]
call fcn.0040ced0
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call fcn.0040cfb3
push eax
push str.SoftwareSoftwrap_s
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push ebx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
mov dword [ebp + 0xc], eax
jne 0x40d0df
push dword [ebp + 8]
push edi
push 3
push esi
push str.License
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d0fb
push ebx
call fcn.00417985
push edi
call fcn.00417985
push dword [ebp + 0xc]
push str.Error__ld_creating_Softwrap_registry_path._nTo_run_this_program__ask_your_administrator_to_create_a_HKEY_LOCAL_MACHINESoftwareSoftwrap_nregistry_key_and_give_you_full_access_to_it._Until_this_is_done__Softwrap_cannot_continue._If_nthe_problem_persists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
call fcn.004099b6
add esp, 0x10
push ebx
call fcn.00417985
push edi
call fcn.00417985
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d10e
Capabilities:
Terminate process

Disassembly:
push esi
push 0x400
call fcn.004179b4
mov esi, eax
pop ecx
movsx eax, byte [esp + 8]
dec eax
dec eax
je 0x40d160
dec eax
je 0x40d149
dec eax
jne 0x40d16e
push dword [0x42f0d8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__ld_accessing_the_License_file__s_nTo_run_this_program__you_must_be_able_to_fully_access_the_above_file._Ask_your_administrator_nto_grant_you_full_permissions_to_it._Until_this_is_done__Softwrap_cannot_continue._If_the_nproblem_persists__please_contact_Softwrap_Support__details_on_http:__www.softwrap.com_
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40d16e
push dword [0x42f0d8]
push str.Cant_find_the_License_file__s._nSoftwrap_cannot_continue_until_the_license_file_is_replaced_nin_the_same_directory_as_the_program._For_futher_information_nplease_contact_Softwrap_support__http:__www.softwrap.com_
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40d16e
push str.Softwrap_has_detected_a_hack_attempt_on_its_License_file._nThis_software_is_now_disabled._For_further_information__please_ncontact_Softwrap_support__http:__www.softwrap.com_.
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push 0x10
push str.Softwrap_LockFile_Error
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.00417985
pop ecx
call fcn.00411ce2
push 1
call fcn.00417f53
pop esi
Function at 0x40d1bf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, 0x1400
push edi
call fcn.004179b4
push dword [ebp + 8]
mov dword [ebp - 8], eax
call fcn.00418120
inc eax
push eax
call fcn.00418628
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0x14], esi
push esi
call fcn.00418030
add esp, 0x14
push str..EXE
push esi
call fcn.004182b0
pop ecx
push eax
call fcn.00418230
xor ebx, ebx
pop ecx
cmp eax, ebx
pop ecx
je 0x40d213
mov byte [eax + 4], bl
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40d241
push dword [ebp + 8]
push str.Cannot_get_a_handle_to_file:__s
call fcn.004099b6
pop ecx
pop ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
cmp ecx, ebx
mov dword [ebp + 0x20], ecx
jne 0x40d25b
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x40d264
mov dword [ecx], eax
cmp dword [ebp + 0xc], ebx
je 0x40d34a
push 0x14
push ebx
push dword [ebp + 0xc]
xor esi, esi
call fcn.004174b0
push 0x14
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.004174b0
add esp, 0x18
mov dword [ebp + 0x10], 1
push edi
push ebx
push dword [ebp - 8]
call fcn.004174b0
mov eax, dword [ebp + 0x20]
add esp, 0xc
sub eax, esi
cmp eax, edi
jbe 0x40d2a8
mov eax, edi
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40d2d6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
push str.Cannot_read_from_the_file:__s
call fcn.004099b6
pop ecx
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x40d341
add esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
fild qword [ebp - 0x1c]
fild qword [ebp - 0x24]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
push ebx
fdivp st(1)
fild qword [ebp - 0x2c]
fmulp st(1)
call fcn.00417a78
add eax, dword [ebp + 0x18]
push eax
push 0x402
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.0040840b
lea eax, [ebp - 0x40]
push 1
push eax
push 0x14
push dword [ebp + 0xc]
call fcn.0040d197
add esp, 0x1c
xor dword [ebp + 0x10], 1
cmp esi, dword [ebp + 0x20]
jb 0x40d290
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.00417985
push dword [ebp - 0x14]
call fcn.0041857e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d410
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42e428]
mov byte [0x42f159], 2
call fcn.004142c1
test al, al
pop ecx
jne 0x40d443
push 5
push dword [0x42e428]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongA]
fld qword [0x42daa0]
mov byte [0x42f159], 1
ret