joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a981
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov eax, 0x103c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00484d70
mov ecx, 0x400
xor ebx, ebx
xor esi, esi
sub esp, eax
lea edi, [ebp - 0x1018]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 1
xor edi, edi
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040835f
cmp eax, 0xffffffff
je 0x40aaa6
mov ebx, eax
lea eax, [ebp - 0x101c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1018]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0x1000
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x70050
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
sub esp, 0x20
test eax, eax
je 0x40aa25
cmp dword [ebp - 0x101c], 0
lea edi, [ebp - 0xfc8]
jne 0x40aa59
call fcn.0043df77
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], str.Could_not_get_layout_for_drive_0x_02x:__s
mov dword [esp + 4], eax
call fcn.0043d9e0
jmp 0x40aa90
mov eax, dword [ebp - 0x1018]
test eax, eax
jne 0x40aa63
cmp byte [edi], 0xef
je 0x40aa7a
inc esi
add edi, 0x90
cmp esi, dword [ebp - 0x1014]
jb 0x40aa43
jmp 0x40aa90
dec eax
jne 0x40aa52
mov dword [esp + 4], 0x4c7dfc
mov dword [esp], edi
call fcn.0043cd77
test eax, eax
je 0x40aa52
imul esi, esi, 0x90
mov edi, dword [ebp + esi - 0xfdc]
mov esi, dword [ebp + esi - 0xfe0]
jmp 0x40aa94
xor esi, esi
xor edi, edi
lea eax, [ebx - 1]
cmp eax, 0xfffffffd
ja 0x40aaa6
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
lea esp, [ebp - 0xc]
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b2ee
Capabilities:
Get disk information

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x7c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4b], 0x5c2e5c5c
mov dword [ebp - 0x48], 0x3a235c
movsx ebx, byte [edi]
mov byte [ebp - 0x47], bl
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x4b]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x40b378
call fcn.0043df77
mov dword [ebp - 0x5c], eax
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_toupper]
mov edx, dword [ebp - 0x5c]
mov dword [esp], str.Failed_to_open__c:_for_flushing:__s
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.0043d9e0
jmp 0x40b3cc
mov dword [esp], eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
push edx
mov edx, dword [ebp - 0x5c]
jne 0x40b3ba
mov dword [ebp - 0x60], edx
call fcn.0043df77
mov dword [ebp - 0x5c], eax
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_toupper]
mov ecx, dword [ebp - 0x5c]
mov dword [esp], str.Failed_to_flush__c:__s
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0043d9e0
mov edx, dword [ebp - 0x60]
lea eax, [edx - 1]
cmp eax, 0xfffffffd
ja 0x40b3cc
mov dword [esp], edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
mov dword [esp + 8], 0x33
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointA]
sub esp, 0xc
test eax, eax
jne 0x40b3ef
mov ebx, 1
jmp 0x40b468
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040af78
mov ebx, eax
test eax, eax
je 0x40b429
cmp dword [ebp + 0xc], 0
jne 0x40b3e8
movsx eax, byte [edi]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], str.Successfully_remounted__s_as__c:
call fcn.0043d9e0
jmp 0x40b3e8
cmp dword [ebp + 0xc], 0
jne 0x40b45e
call fcn.0043df77
mov dword [ebp - 0x5c], eax
movsx eax, byte [edi]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_toupper]
mov edx, dword [ebp - 0x5c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp], 0x496197
call fcn.0043d9e0
mov dword [0x4dfd80], 0xe0031209
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40d9fe
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov eax, 0x1030
mov ebp, esp
push edi
push ebx
call fcn.00484d70
mov ecx, 0x400
xor ebx, ebx
sub esp, eax
lea edi, [ebp - 0x1008]
xor eax, eax
mov dword [ebp - 0x100c], ebx
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040835f
mov ebx, eax
inc eax
jne 0x40da4f
xor edi, edi
jmp 0x40db29
lea eax, [ebp - 0x100c]
xor ecx, ecx
xor edx, edx
mov dword [esp], ebx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x1008]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0x1000
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x70050
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
sub esp, 0x20
test eax, eax
je 0x40da48
cmp dword [ebp - 0x100c], 0
je 0x40da48
cmp dword [ebp - 0x1008], 1
jne 0x40da48
cmp dword [ebp - 0x1004], 2
jne 0x40da48
lea eax, [ebp - 0xfb8]
mov dword [esp + 4], 0x4c7fac
mov dword [esp], eax
call fcn.0043cd77
test eax, eax
je 0x40da48
lea eax, [ebp - 0xf28]
mov dword [esp + 4], 0x4c7f6c
mov dword [esp], eax
call fcn.0043cd77
test eax, eax
je 0x40da48
cmp dword [ebp - 0xf34], 4
jle 0x40da48
mov edx, dword [ebp - 0xf3c]
mov eax, dword [ebp - 0xf40]
mov dword [esp], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.0040aab2
mov dword [esp + 4], 0x495f1a
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
sete al
movzx eax, al
mov edi, eax
lea eax, [ebx - 1]
cmp eax, 0xfffffffd
ja 0x40db3b
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
lea esp, [ebp - 8]
mov eax, edi
pop ebx
pop edi
pop ebp
ret
Function at 0x40e6a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ecx, 0x41
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x11c]
mov esi, edx
push ebx
mov ebx, eax
xor eax, eax
sub esp, 0x15c
mov dword [ebp - 0x124], 0xffffffff
rep stosd dword es:[edi], eax
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x120], 4
mov dword [edx], edi
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edi, eax
test edi, edi
je 0x40e772
cmp byte [ebx + edi], 0x5c
je 0x40e700
dec edi
jmp 0x40e6f3
cmp edi, 0x103
ja 0x40e863
inc eax
mov ecx, ebx
mov edx, 0x104
mov dword [esp], eax
lea eax, [ebp - 0x11c]
call fcn.0040dd0a
lea eax, [ebp - 0x12c]
mov byte [ebp + edi - 0x11c], 0
xor edx, edx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x11c]
inc edi
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x40e805
xor eax, eax
mov dword [ebp - 0x12c], eax
jmp 0x40e83b
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], 0x497f56
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x40e7b3
xor eax, eax
mov dword [ebp - 0x130], eax
jmp 0x40e83b
lea eax, [ebp - 0x128]
mov dword [esp + 0x14], 7
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12c]
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], 0x497f5f
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x40e765
lea eax, [ebp - 0x120]
xor ecx, ecx
add ebx, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x124]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
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 0x40e84f
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x40e863
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 0x40e901
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push ebx
mov ebx, eax
add eax, 8
sub esp, 0x20
mov dword [eax + 0x14], esi
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, eax
sub esp, 0x14
mov eax, 1
test edx, edx
jne 0x40e977
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0x26
jne 0x40e968
mov dword [esp + 8], 0x6b
mov dword [esp + 4], 0x497f70
mov dword [esp], 0x497f80
call dword [0x491228]
call esi
cmp eax, 0x3e5
sete al
movzx eax, al
neg eax
mov dword [ebx + 4], eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x41a726
Capabilities:
Read file on windows

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push esi
xor esi, esi
push ebx
mov ebx, eax
add eax, 8
sub esp, 0x20
mov dword [eax + 0x14], ecx
mov dword [esp + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x10000
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, eax
sub esp, 0x14
mov eax, 1
test edx, edx
jne 0x41a7a0
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0x26
jne 0x41a791
mov dword [esp + 8], 0x6b
mov dword [esp + 4], str.winio.h
mov dword [esp], str.GetLastError_____ERROR_HANDLE_EOF
call dword [0x491228]
call esi
cmp eax, 0x3e5
sete al
movzx eax, al
neg eax
mov dword [ebx + 4], eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x41acc9
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xffffffc0
mov eax, 0x1188
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.00484d70
sub esp, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
lea edi, [ebp - 0x1138]
mov dword [ebp - 0x114c], eax
mov eax, dword [ecx + 8]
mov ecx, 0x40
mov dword [ebp - 0x1150], eax
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
test edx, edx
mov dword [ebp - 0x113c], eax
sete al
cmp dword [ebp - 0x1150], 0
sete cl
or al, cl
jne 0x41ae98
cmp dword [ebp - 0x114c], 3
ja 0x41ae98
mov eax, edx
xor ebx, ebx
lea esi, [ebp - 0x1138]
call fcn.0041a585
mov dword [esp + 0x18], ebx
mov edi, eax
xor eax, eax
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
sub esp, 0x1c
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test edi, edi
je 0x41ad9c
mov dword [ebp - 0x1154], eax
mov dword [esp], edi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x1154]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push ecx
cmp ebx, 0xffffffff
jne 0x41adcf
call fcn.0043df77
mov dword [esp], str.Could_not_open_file:__s
mov dword [esp + 4], eax
call fcn.0043d9e0
mov dword [0x4dfd80], 0xc003006e
jmp 0x41ae9b
mov dword [esp], esi
mov eax, dword [ebp - 0x114c]
call dword [eax*4 + 0x489ea0]
mov eax, dword [0x4dfd80]
test eax, eax
jns 0x41adf2
cmp ax, 0x4c7
je 0x41ae9b
xor edx, edx
lea eax, [ebp - 0x113c]
mov dword [esp], ebx
lea edi, [ebp - 0x1038]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x41ae45
mov dword [0x4dfd80], 0xc003001e
call fcn.0043df77
mov dword [esp], str.__Read_error:__s
mov dword [esp + 4], eax
call fcn.0043d9e0
jmp 0x41ae9b
mov eax, dword [ebp - 0x113c]
test eax, eax
je 0x41ae6c
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov eax, dword [ebp - 0x114c]
call dword [eax*4 + 0x489e90]
jmp 0x41addf
mov dword [esp], esi
mov eax, dword [ebp - 0x114c]
call dword [eax*4 + 0x489e80]
mov eax, dword [ebp - 0x114c]
mov edi, dword [ebp - 0x1150]
mov ecx, dword [eax*4 + 0x489eb0]
rep movsb byte es:[edi], byte [esi]
mov esi, 1
jmp 0x41ae9d
or ebx, 0xffffffff
xor esi, esi
lea eax, [ebx - 1]
cmp eax, 0xfffffffd
ja 0x41aeaf
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x41c6d5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x158]
sub esp, 0x1bc
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str._sautorun.inf
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [ebp - 0x119], 0
mov dword [esp + 4], 0x49b119
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
test eax, eax
je 0x41c746
mov dword [esp + 4], ebx
mov esi, eax
mov dword [esp], str._s_already_exists___keeping_it
call fcn.0043d9e0
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0x41c778
mov dword [esp + 4], 0x49b13a
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
jne 0x41c77f
mov dword [esp + 4], ebx
mov dword [esp], str.Unable_to_create__s
call fcn.0043d9e0
mov dword [esp], str.NOTE:_This_may_be_caused_by_a_poorly_designed_security_solution._See_https:__goo.gl_QTobxX.
call fcn.0043d9e0
xor eax, eax
jmp 0x41c865
lea edi, [ebp - 0x118]
mov dword [esp + 8], pe_nt_image_headers32
mov ecx, dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [esp + 4], edi
mov eax, dword [0x524168]
mov dword [esp], eax
mov dword [ebp - 0x19c], ecx
call ecx
lea edx, [ebp - 0x198]
sub esp, 0xc
mov dword [esp + 4], edx
mov dword [esp + 8], 0x20
mov eax, dword [0x5241b4]
mov dword [esp], eax
mov ecx, dword [ebp - 0x19c]
call ecx
lea edx, [ebp - 0x198]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], str.__Created_by__s_n__https:__rufus.ie_n
mov dword [esp], esi
call sub.msvcrt.dll_fwprintf_s
mov dword [esp + 8], edi
mov dword [esp + 4], str._autorun__nicon___autorun.ico_nlabel___s_n
mov dword [esp], esi
call sub.msvcrt.dll_fwprintf_s
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp + 4], ebx
mov dword [esp], str.Created:__s
call fcn.0043d9e0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
cmp eax, 1
ja 0x41c83f
mov dword [esp + 8], 0xc0
mov dword [esp + 4], str.icon.c
mov dword [esp], str.strlen_filename____2
call dword [0x491228]
mov byte [ebp + eax - 0x159], 0x6f
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov byte [ebp + eax - 0x15a], 0x63
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0041c30c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41dcda
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call fcn.0041dab1
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test ebx, ebx
je 0x41dcfd
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x4228fc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x422913
mov dword [ebp + 8], str.localization:_invalid_parameter_for_add_message_command_n
jmp 0x42292b
mov eax, dword [ebx + 4]
lea edx, [eax - 0xbb9]
cmp edx, 0x18e
jbe 0x422935
mov dword [ebp + 8], str.localization:_invalid_MSG__index_n
add esp, 0x14
pop ebx
pop ebp
jmp fcn.0043d9e0
mov edx, dword [0x510e60]
mov eax, dword [edx + eax*4 - 0x2ee0]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov edx, dword [ebx + 4]
mov eax, dword [0x510e60]
xor ecx, ecx
lea eax, [eax + edx*4 - 0x2ee0]
xor edx, edx
mov dword [eax], edx
mov edx, dword [ebx + 0x18]
mov dword [eax], edx
mov dword [ebx + 0x18], ecx
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x4229af
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
je 0x4229d1
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4229d1
cmp ebx, 9
jbe 0x4229e7
mov dword [ebp + 8], str.localization:_invalid_parameter_for_add_dialog_command_n
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0043d9e0
lea eax, [ebx + 0x30]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 0x98], al
mov al, byte [esi]
mov dword [esp], ecx
add eax, 0x30
mov byte [ebp - 0x97], al
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp - 0xa0]
lea edx, [eax + 1]
mov edi, eax
mov eax, 0x7e
cmp edx, eax
mov dword [esp + 4], ecx
cmovbe eax, edx
mov dword [ebp - 0x9c], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x96]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov edx, dword [ebp - 0x9c]
mov eax, 0x7d
mov dword [esp + 4], 0x520eb8
cmp edx, 0x7e
cmovae edi, eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
mov byte [ebp + edi - 0x96], 0
call fcn.0043b17c
test eax, eax
je 0x422aa1
imul edi, eax, 0xc
mov eax, dword [0x520eb8]
mov eax, dword [eax + edi + 8]
test eax, eax
je 0x422a98
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x20]
mov dword [ecx], edx
mov dword [edx + 4], ecx
xor edx, edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
mov dword [esp], eax
call fcn.0042296d
mov eax, dword [0x520eb8]
mov dword [eax + edi + 8], esi
shl ebx, 4
lea edx, [esi + 0x1c]
mov ecx, dword [ebx + 0x48f88c]
lea eax, [ebx + 0x48f880]
add ebx, 0x48f888
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ecx
mov dword [ecx], edx
mov dword [eax + 0xc], edx
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4234ca
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 0x4236ac
mov ebx, eax
movzx ecx, byte [esi + 1]
xor eax, eax
movzx edx, bx
cmp ecx, eax
jle 0x423568
mov edi, dword [esi + 0x10]
cmp dword [edi + eax*4], edx
jne 0x423565
mov eax, dword [0x525ba0]
mov dword [esp + 0x10], edx
mov edx, 0xffc
mov dword [esp + 0xc], str.Will_use_default_UI_locale_0x_04X
sub edx, eax
add eax, 0x524ba0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [0x525b9b], 0
mov dword [esp], 0x524ba0
call sub.msvcrt.dll_strlen
lea edx, [eax + 2]
mov byte [eax + 0x524ba0], 0xd
mov byte [eax + 0x524ba1], 0xa
mov byte [eax + 0x524ba2], 0
mov eax, ebx
mov dword [0x525ba0], edx
jmp 0x423641
inc eax
jmp 0x4234ef
xor eax, eax
xor ebx, ebx
mov dword [0x520e88], eax
jmp 0x423574
inc ebx
movzx eax, byte [esi + 1]
cmp eax, ebx
jle 0x423646
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], 0x42272b
call dword [sym.imp.KERNEL32.DLL_EnumUILanguagesW]
sub esp, 0xc
cmp dword [0x520e88], 0
je 0x423573
mov edx, dword [esi + 0x18]
mov eax, dword [0x525ba0]
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0x10]
mov edx, dword [edx + ebx*4]
mov dword [esp + 0xc], str.Detected_installed_Windows_Language_Pack_for_0x_04X___s_
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x10], edx
mov edx, 0xffc
sub edx, eax
add eax, 0x524ba0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [0x525b9b], 0
mov dword [esp], 0x524ba0
call sub.msvcrt.dll_strlen
mov byte [eax + 0x524ba0], 0xd
lea edx, [eax + 2]
mov byte [eax + 0x524ba1], 0xa
mov byte [eax + 0x524ba2], 0
mov eax, dword [esi + 0x10]
mov dword [0x525ba0], edx
mov eax, dword [eax + ebx*4]
or ah, 4
jmp 0x4236b1
mov edx, dword [esi + 0x18]
mov eax, dword [0x525ba0]
mov dword [esp + 0xc], 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 + 8], 0xffffffff
mov dword [esp + 0x10], edx
mov edx, 0xffc
sub edx, eax
add eax, 0x524ba0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__snprintf_s]
mov byte [0x525b9b], 0
mov dword [esp], 0x524ba0
call sub.msvcrt.dll_strlen
lea edx, [eax + 2]
mov byte [eax + 0x524ba0], 0xd
mov dword [0x525ba0], edx
mov byte [eax + 0x524ba1], 0xa
mov byte [eax + 0x524ba2], 0
mov eax, 0x400
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4257e7
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], 0x4248a7
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 0x42585b
mov dword [esp], str.Unable_to_start_Windows_ISO_download_thread
call fcn.0043d9e0
xor eax, eax
mov dword [esp + 4], 0x8007
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [0x5241b4]
mov dword [0x4dfd80], 0xe0031205
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
sub esp, 0x10
leave
ret
Function at 0x42b7b3
Capabilities:
Create thread
Terminate thread

Disassembly:
cmp dword [0x522288], 0
jne 0x42b88e
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], 0x42a668
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x522288], eax
sub esp, 0x18
test eax, eax
jne 0x42b811
call fcn.0043df77
mov dword [esp], str.Failed_to_start_process_search_thread:__s
mov dword [esp + 4], eax
call fcn.0043d9e0
xor eax, eax
jmp 0x42b889
mov dword [esp + 4], 0xfffffffe
xor ebx, ebx
mov dword [esp], 0x42a668
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push eax
push eax
cmp dword [0x5210f4], 0
je 0x42b83a
mov eax, 1
jmp 0x42b889
mov dword [esp], 0x64
inc ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
push eax
cmp ebx, 0x32
jne 0x42b82a
mov dword [esp], str.Failed_to_start_process_search_thread:_hLock_init_failure_
xor ebx, ebx
call fcn.0043d9e0
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x522288]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [0x522288]
push edx
push edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x522288], ebx
push ecx
jmp 0x42b80d
mov ebx, dword [ebp - 4]
leave
ret
mov eax, 1
ret

Function at 0x42b894
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x522288]
test eax, eax
je 0x42b8fc
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x18
mov dword [0x5210e0], 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 0x42b8f3
mov dword [esp], str.Process_search_thread_did_not_exit_within_timeout___forcefully_terminating_it_
call fcn.0043d9e0
mov eax, dword [0x522288]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [0x522288]
push ecx
push ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
xor eax, eax
mov dword [0x522288], eax
leave
ret
ret