joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422ffa
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultUILanguage]
test esi, esi
je 0x4231c4
mov ebx, eax
movzx ecx, byte [esi + 1]
xor eax, eax
movzx edx, bx
cmp ecx, eax
jle 0x423090
mov edi, dword [esi + 0x10]
cmp dword [edi + eax*4], edx
jne 0x42308d
mov eax, dword [0x528740]
mov dword [esp + 0xc], edx
mov edx, 0xffc
mov dword [esp + 8], str.Will_use_default_UI_locale_0x_04X
sub edx, eax
add eax, 0x527740
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [0x52873b], 0
mov dword [esp], 0x527740
call sub.msvcrt.dll_strlen
lea edx, [eax + 2]
mov byte [eax + 0x527740], 0xd
mov byte [eax + 0x527741], 0xa
mov byte [eax + 0x527742], 0
mov eax, ebx
mov dword [0x528740], edx
jmp 0x423161
inc eax
jmp 0x42301f
xor eax, eax
xor ebx, ebx
mov dword [0x523a08], eax
jmp 0x42309c
inc ebx
movzx eax, byte [esi + 1]
cmp eax, ebx
jle 0x423166
mov eax, dword [esi + 0x10]
lea edi, [ebp - 0x22]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], str._04X
mov dword [esp + 4], 5
mov dword [esp + 0xc], eax
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__snwprintf]
mov dword [esp + 8], edi
mov dword [esp + 4], 4
mov dword [esp], 0x422257
call dword [sym.imp.KERNEL32.DLL_EnumUILanguagesW]
sub esp, 0xc
cmp dword [0x523a08], 0
je 0x42309b
mov edx, dword [esi + 0x18]
mov eax, dword [0x528740]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x10]
mov edx, dword [edx + ebx*4]
mov dword [esp + 8], str.Detected_installed_Windows_Language_Pack_for_0x_04X___s_
mov dword [esp + 0xc], edx
mov edx, 0xffc
sub edx, eax
add eax, 0x527740
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [0x52873b], 0
mov dword [esp], 0x527740
call sub.msvcrt.dll_strlen
mov byte [eax + 0x527740], 0xd
lea edx, [eax + 2]
mov byte [eax + 0x527741], 0xa
mov byte [eax + 0x527742], 0
mov eax, dword [esi + 0x10]
mov dword [0x528740], edx
mov eax, dword [eax + ebx*4]
or ah, 4
jmp 0x4231c9
mov edx, dword [esi + 0x18]
mov eax, dword [0x528740]
mov dword [esp + 8], str.NOTE:_No_Windows_Language_Pack_is_installed_for__s_on_this_system._r_nThis_means_that_some_controls_may_still_be_displayed_using_the_system_locale.
mov dword [esp + 0xc], edx
mov edx, 0xffc
sub edx, eax
add eax, 0x527740
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf]
mov byte [0x52873b], 0
mov dword [esp], 0x527740
call sub.msvcrt.dll_strlen
lea edx, [eax + 2]
mov byte [eax + 0x527740], 0xd
mov dword [0x528740], edx
mov byte [eax + 0x527741], 0xa
mov byte [eax + 0x527742], 0
mov eax, 0x400
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4238ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
push ebx
sub esp, 0x16c
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x140], ecx
mov ecx, 0x41
rep stosd dword es:[edi], eax
xor ecx, ecx
mov edi, dword [ebp - 0x140]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov ecx, edx
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x124], 0xffffffff
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x11c]
mov ebx, eax
test ebx, ebx
je 0x4239c5
mov esi, dword [ebp - 0x13c]
cmp byte [esi + ebx], 0x5c
je 0x42392b
dec ebx
jmp 0x423914
cmp ebx, 0x103
ja 0x423ac2
lea ecx, [eax + 1]
mov eax, 0x104
mov esi, dword [ebp - 0x13c]
mov edi, edx
cmp ecx, eax
cmova ecx, eax
mov eax, dword [ebp - 0x13c]
rep movsb byte es:[edi], byte [esi]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x11c]
lea ecx, [eax + 1]
cmp ecx, 0x104
mov ecx, 0x103
cmovae eax, ecx
mov byte [ebp + eax - 0x11c], 0
lea eax, [ebp - 0x12c]
mov byte [ebp + ebx - 0x11c], 0
inc ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x423a58
xor eax, eax
mov dword [ebp - 0x12c], eax
jmp 0x423a9a
lea eax, [ebp - 0x130]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a1d65
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x423a06
xor eax, eax
mov dword [ebp - 0x130], eax
jmp 0x423a9a
lea eax, [ebp - 0x128]
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4a1d6e
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x4239b8
lea eax, [ebp - 0x120]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x13c]
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x423aae
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x423ac2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x423aca
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
xor edx, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x423b12
mov dword [esp + 8], 0x91
mov dword [esp + 4], 0x4a1d84
mov dword [esp], 0x4a1d9a
call dword [0x494088]
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x423b46
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x423bba
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4a1dd8
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
je 0x423b92
xor ebx, ebx
mov dword [ebp - 0x20], ebx
jmp 0x423bba
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x423bcb
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x423bdc
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x426862
Capabilities:
Create thread

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0x523aa0
mov dword [esp + 8], 0x426831
mov dword [0x523aa0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [0x523aa4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
mov dword [0x523aa8], eax
mov eax, dword [ebp + 0x14]
mov dword [0x523aac], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
sub esp, 0x18
leave
ret

Function at 0x4268b6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x523a60], 0
mov eax, dword [ebp + 8]
mov dword [0x523b68], eax
jne 0x42690f
xor eax, eax
xor edx, edx
mov dword [esp + 8], 0x42473a
mov dword [esp + 4], edx
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edx, 1
mov dword [0x523a60], eax
sub esp, 0x18
test eax, eax
jne 0x426911
mov dword [esp], str.Unable_to_start_update_check_thread
call fcn.0043efa9
xor edx, edx
leave
mov eax, edx
ret

Function at 0x426915
Capabilities:
Create thread

Disassembly:
push ebp
xor edx, edx
xor ecx, ecx
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x42581a
mov dword [esp + 4], ecx
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edx, eax
sub esp, 0x18
mov eax, 1
test edx, edx
jne 0x426989
mov dword [esp], str.Unable_to_start_Windows_ISO_download_thread
call fcn.0043efa9
xor eax, eax
mov dword [esp + 4], 0x8007
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [0x526d5c]
mov dword [0x4e2900], 0xe0031205
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
sub esp, 0x10
leave
ret
Function at 0x42c863
Capabilities:
Create thread
Terminate thread

Disassembly:
cmp dword [0x524e28], 0
jne 0x42c93e
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x24
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], 0x42b71c
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x524e28], eax
sub esp, 0x18
test eax, eax
jne 0x42c8c1
call fcn.0043f53d
mov dword [esp], str.Failed_to_start_process_search_thread:__s
mov dword [esp + 4], eax
call fcn.0043efa9
xor eax, eax
jmp 0x42c939
mov dword [esp + 4], 0xfffffffe
xor ebx, ebx
mov dword [esp], 0x42b71c
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push eax
push eax
cmp dword [0x523c94], 0
je 0x42c8ea
mov eax, 1
jmp 0x42c939
mov dword [esp], 0x64
inc ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
push eax
cmp ebx, 0x32
jne 0x42c8da
mov dword [esp], str.Failed_to_start_process_search_thread:_hLock_init_failure_
xor ebx, ebx
call fcn.0043efa9
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x524e28]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [0x524e28]
push edx
push edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x524e28], ebx
push ecx
jmp 0x42c8bd
mov ebx, dword [ebp - 4]
leave
ret
mov eax, 1
ret

Function at 0x42c944
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x524e28]
test eax, eax
je 0x42c9ac
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x18
mov dword [0x523c80], edx
mov dword [esp + 4], 0x7d0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
push ecx
test eax, eax
je 0x42c9a3
mov dword [esp], str.Process_search_thread_did_not_exit_within_timeout___forcefully_terminating_it_
call fcn.0043efa9
mov eax, dword [0x524e28]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [0x524e28]
push ecx
push ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
xor eax, eax
mov dword [0x524e28], eax
leave
ret
ret
Function at 0x42c9ad
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x15c
cmp dword [0x524e28], 0
mov word [ebp - 0x13a], 0x3a3f
mov byte [ebp - 0x138], 0
jne 0x42c9e0
mov dword [esp], str.Process_search_thread_is_not_started_
call fcn.0043efa9
jmp 0x42ca20
cmp dword [0x523c94], 0
jne 0x42ca06
mov dword [esp + 8], 0x347
mov dword [esp + 4], str.process.c
mov dword [esp], str.blocking_process.hLock___NULL
call dword [0x494088]
mov dword [esp + 4], 4
mov dword [esp], 0x10
call sub.msvcrt.dll_calloc
mov ebx, eax
test eax, eax
jne 0x42ca27
xor eax, eax
jmp 0x42cbb9
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00408898
mov dword [esp + 8], 0x104
mov edi, eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
lea eax, [edi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x42ca6d
lea eax, [ebp - 0x11c]
mov esi, 1
call fcn.0042b34c
mov dword [ebx], eax
mov dword [esp], edi
lea edi, [ebp - 0x137]
call sub.msvcrt.dll_free
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040a5e5
mov ecx, edi
mov al, byte [ecx]
test al, al
je 0x42cafa
mov byte [ebp - 0x13a], al
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x14c], ecx
mov dword [esp + 4], eax
lea eax, [ebp - 0x13a]
mov dword [esp + 8], 0x104
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
mov ecx, dword [ebp - 0x14c]
sub esp, 0xc
test eax, eax
jne 0x42cad1
inc ecx
mov edi, esi
jmp 0x42caf6
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x14c], ecx
lea edi, [esi + 1]
call fcn.0042b34c
mov ecx, dword [ebp - 0x14c]
lea esi, [ebx + esi*4]
mov dword [esi], eax
inc ecx
cmp edi, 0x10
je 0x42cafc
mov esi, edi
jmp 0x42ca8c
mov edi, esi
mov dword [esp + 4], 0x7d0
mov eax, dword [0x523c94]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
push esi
mov esi, eax
test eax, eax
je 0x42cb33
mov dword [esp], str.Could_not_obtain_process_search_lock
call fcn.0043efa9
mov dword [esp], ebx
call sub.msvcrt.dll_free
jmp 0x42ca20
cmp dword [0x523c90], 0
jne 0x42cb8f
mov eax, dword [0x523c90]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [0x523c98]
inc dword [0x523c84]
mov dword [0x523c90], ebx
mov dword [0x523c8c], edi
mov dword [0x523c80], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push ecx
test eax, eax
jne 0x42cbaa
call fcn.0043f53d
mov dword [esp], str.Could_not_signal_start_event_to_process_search:__s
mov dword [esp + 4], eax
call fcn.0043efa9
jmp 0x42cbaa
mov eax, dword [0x523c90]
cmp esi, dword [0x523c8c]
jae 0x42cb3c
mov eax, dword [eax + esi*4]
inc esi
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x42cb8f
mov eax, dword [0x523c94]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42d61c
Capabilities:
Parse credit card information

Disassembly:
push ebp
xor eax, eax
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov cl, byte [esi + edx]
test cl, cl
je 0x42d807
cmp eax, 0x1d
je 0x42d807
cmp cl, 0x3f
je 0x42d6c3
jg 0x42d684
cmp cl, 0x2b
je 0x42d6b6
jg 0x42d66e
cmp cl, 0x24
je 0x42d6a9
cmp cl, 0x2a
jne 0x42d7eb
mov byte [eax*8 + 0x524ec0], 5
jmp 0x42d7fa
cmp cl, 0x2e
jne 0x42d7eb
mov byte [eax*8 + 0x524ec0], 1
jmp 0x42d7fa
cmp cl, 0x5c
je 0x42d6d0
cmp cl, 0x5e
je 0x42d69c
cmp cl, 0x5b
je 0x42d75f
jmp 0x42d7eb
mov byte [eax*8 + 0x524ec0], 2
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 3
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 6
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 4
jmp 0x42d7fa
lea edi, [edx + 1]
lea ebx, [esi + edi]
mov cl, byte [ebx]
test cl, cl
je 0x42d7fa
mov edx, edi
cmp cl, 0x64
je 0x42d71c
jg 0x42d705
cmp cl, 0x53
je 0x42d743
cmp cl, 0x57
je 0x42d729
cmp cl, 0x44
jne 0x42d750
mov byte [eax*8 + 0x524ec0], 0xb
jmp 0x42d7fa
cmp cl, 0x73
je 0x42d736
cmp cl, 0x77
jne 0x42d750
mov byte [eax*8 + 0x524ec0], 0xc
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 0xa
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 0xd
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 0xe
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 0xf
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 7
mov cl, byte [ebx]
jmp 0x42d7f3
cmp byte [esi + edx + 1], 0x5e
jne 0x42d778
mov byte [eax*8 + 0x524ec0], 9
cmp byte [esi + edx + 2], 0
je 0x42d79c
inc edx
jmp 0x42d780
mov byte [eax*8 + 0x524ec0], 8
mov ecx, dword [ebp - 0x10]
mov edi, edx
inc edx
mov bl, byte [esi + edx]
cmp bl, 0x5d
je 0x42d7c7
test bl, bl
je 0x42d7c7
cmp bl, 0x5c
jne 0x42d7b4
cmp ecx, 0x26
jle 0x42d7a0
xor eax, eax
jmp 0x42d814
cmp byte [esi + edi + 2], 0
je 0x42d79c
mov byte [ecx + 0x524e80], 0x5c
lea edx, [edi + 2]
inc ecx
jmp 0x42d7b9
cmp ecx, 0x27
jg 0x42d79c
mov bl, byte [esi + edx]
mov edi, edx
inc ecx
mov byte [ecx + 0x524e7f], bl
jmp 0x42d785
cmp ecx, 0x27
jg 0x42d79c
mov ebx, dword [ebp - 0x10]
lea edi, [ecx + 1]
mov byte [ecx + 0x524e80], 0
mov dword [ebp - 0x10], edi
add ebx, 0x524e80
mov dword [eax*8 + 0x524ec4], ebx
jmp 0x42d7fa
mov byte [eax*8 + 0x524ec0], 7
mov byte [eax*8 + 0x524ec4], cl
cmp byte [esi + edx], 0
je 0x42d79c
inc edx
inc eax
jmp 0x42d631
mov byte [eax*8 + 0x524ec0], 0
mov eax, 0x524ec0
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42f0e6
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
call fcn.0042e251
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp word [eax], 0x22
mov ebx, eax
jne 0x42f129
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 - 2], 0x22
jne 0x42f129
mov dword [esp], ebx
call sub.msvcrt.dll_wcslen
mov word [ebx + eax*2 - 2], 0
lea eax, [ebx + 2]
mov dword [esp], eax
jmp 0x42f12c
mov dword [esp], ebx
call esi
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, esi
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42f227
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push edx
call edi
test esi, esi
je 0x42f2da
mov dword [esp + 4], 2
mov dword [esp], esi
call sub.msvcrt.dll_calloc
mov dword [ebp - 0x1c], eax
call edi
cmp dword [ebp - 0x1c], 0
je 0x42f2d5
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x1c]
xor esi, esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
sub esp, 0xc
call edi
test ebx, ebx
je 0x42f2b0
mov eax, dword [ebp - 0x1c]
call fcn.0042f155
mov esi, eax
call edi
test esi, esi
je 0x42f2a9
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea ebx, [eax + 2]
call edi
jmp 0x42f2b0
mov eax, 0xe
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x42f2dc
mov dword [ebp - 0x1c], eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1c]
jmp 0x42f2dc
mov eax, 0xe
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x42feaa
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
lea eax, [ebp - 0x1c]
push ebx
xor ebx, ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 8], edi
mov dword [esp + 4], 0x4a4f2d
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x42ff49
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
push ecx
mov ebx, eax
push ecx
and edi, 0xfffffffd
je 0x42ff33
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, str.Key_is_not_empty
push edx
cmp ebx, 5
je 0x42ff1f
call fcn.0043f53d
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str.Failed_to_delete_registry_key_HKCUSoftware_s:__s
call fcn.0043efa9
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
xor eax, eax
test edi, edi
sete al
jmp 0x42ff4b
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x430066
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x28], eax
mov eax, 0x5267e0
call fcn.0042e251
mov dword [ebp - 0x1c], eax
mov eax, 0x4a4f69
call fcn.0042e251
mov dword [esp + 4], 2
mov dword [esp], 0x104
mov edi, eax
call sub.msvcrt.dll_calloc
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
sub esp, 0x10
mov dword [ebp - 0x24], eax
call eax
test ebx, ebx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
je 0x43011a
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sub esp, 0x20
mov ebx, eax
test eax, eax
jne 0x43011a
mov eax, dword [ebp - 0x24]
call eax
mov dword [ebp - 0x20], eax
test esi, esi
je 0x430126
mov dword [esp], esi
call sub.msvcrt.dll_free
test edi, edi
je 0x430132
mov dword [esp], edi
call sub.msvcrt.dll_free
cmp dword [ebp - 0x1c], 0
je 0x430143
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x43015a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ecx, 0x82
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x220]
mov esi, eax
xor eax, eax
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x24c
rep stosd dword es:[edi], eax
mov dword [esp + 8], edx
xor eax, eax
xor edx, edx
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
sub esp, 0x10
mov dword [ebp - 0x22c], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov edi, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push esi
mov eax, dword [ebp - 0x22c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret