joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1580
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x2c]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.004e1560
push ebp
push 0x4141b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4e165c
lea eax, [ebp - 0x1c]
call fcn.00403b20
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.00473d40
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
call fcn.00403b20
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
call fcn.00473c90
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
call fcn.00474480
mov ebx, eax
mov eax, str._DataSize
push eax
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
mov edx, str.TWin32WidgetSet.ClipboardGetOwnerShip_DataHandle
mov eax, ebx
call fcn.00475900
mov eax, dword [ebp - 0xc]
mov byte [eax - 0x10], 0
jmp 0x4e16b3
push dword [ebp - 0x10]
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
xor eax, eax
push fcn.004e1540
push ebp
push 0x4141b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
call dword [edx + 0x70]
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
call dword [ebx + pe_nt_image_headers32]
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e1540
push dword [ebp - 0x10]
push dword [ebp - 4]
call sub.user32.dll_SetClipboardData
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004e1560
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50bd60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 1
je 0x50bd7b
jmp 0x50bd88
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x50bd90
jmp 0x50bd98
jmp 0x50be4a
xor eax, eax
push 0x50be27
push ebp
push 0x414530
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov edx, 0
call fcn.0040d2a0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
jne 0x50be09
jmp 0x50be1c
cmp dword [ebp - 8], 0
jne 0x50be11
jmp 0x50be1c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x50be4a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x55a160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
xor eax, eax
push fcn.0055a140
push ebp
push 0x4141b0
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextLengthW
mov dword [ebp - 0xc], eax
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.0040a8e0
cmp dword [ebp - 0xc], 0
jle 0x55a1c8
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x55a1bc
mov eax, 0x62d2f0
push eax
push dword [ebp - 4]
call sub.user32.dll_GetWindowTextW
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0040a8e0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
call fcn.0040b210
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004305a0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0055a140
mov esp, ebp
pop ebp
ret
Function at 0x55b680
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, ecx
mov edx, 0x60f440
call fcn.0040e9b0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0055b670
push ebp
push 0x4141b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
add eax, 0x34
xor edx, edx
call fcn.00408a50
mov edx, dword [ebp - 0xc]
mov eax, fcn.004de800
mov dword [edx + 0x2c], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [edx + 0x24], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [edx + 0x28], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
xor dx, dx
call fcn.004093a0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add eax, 0x30
call fcn.00408a50
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
add eax, 0x18
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.00559870
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0055bcf0
mov eax, dword [ebp - 4]
test dword [eax + 0x28], 0x10
jne 0x55b7ac
mov eax, dword [ebp - 4]
call fcn.004ff670
test al, al
jne 0x55b7ac
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
or eax, 0x8000000
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x24], eax
lea esi, [esi]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0055b670
mov esp, ebp
pop ebp
ret
Function at 0x57e3a0
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x60]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov eax, ecx
lea edi, [ebp - 0x60]
mov esi, eax
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 8], 1
jne 0x57e3d4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call dword [edx + 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp - 0xc], 0
je 0x57e58a
mov esi, esi
xor eax, eax
push 0x57e56b
push ebp
push 0x414530
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x28], 0xffffffff
mov eax, dword [ebp - 0xc]
lea edx, [eax + 4]
mov eax, 0x5b2f30
mov ecx, 0x48
call fcn.00403650
mov eax, dword [ebp - 0xc]
lea edx, [eax + 0x4c]
mov eax, 0x5b2f80
mov ecx, 0x1000
call fcn.00403650
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x10], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x1c]
shl eax, 8
mov edx, dword [ebp - 0x14]
movzx edx, byte [ebp + edx - 0x60]
or eax, edx
mov dword [ebp - 0x1c], eax
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jl 0x57e47c
mov dword [ebp - 0x14], 0
mov esi, esi
cmp dword [ebp - 0x18], 3
jl 0x57e450
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [edx + ebx*4 + 4]
mov eax, dword [ebp - 0x1c]
xor eax, ecx
mov dword [edx + ebx*4 + 4], eax
cmp dword [ebp - 0x10], 0x11
jl 0x57e438
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0057e5a0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov dword [ecx + edx*4 + 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ecx + edx*4 + 8], eax
add dword [ebp - 0x10], 2
cmp dword [ebp - 0x10], 0x11
jle 0x57e4b0
mov dword [ebp - 0x14], 0xffffffff
mov esi, esi
add dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
lea esi, [esi]
nop
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0057e5a0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
shl eax, 0xa
mov ecx, dword [ebp - 0x10]
lea edx, [edx + eax + 0x4c]
mov eax, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
shl eax, 0xa
mov ecx, dword [ebp - 0x10]
lea eax, [edx + eax + 0x50]
mov edx, dword [ebp - 0x20]
mov dword [eax + ecx*4], edx
add dword [ebp - 0x10], 2
cmp dword [ebp - 0x10], 0xff
jle 0x57e4f8
cmp dword [ebp - 0x14], 3
jl 0x57e4e8
mov dword [ebp - 0x28], 1
cmp dword [ebp - 0xc], 0
je 0x57e560
cmp dword [ebp - 8], 0
je 0x57e560
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
call dword [edx + 0x44]
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
jmp 0x57e58a
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x57e5a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, edx
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0xffffffff
add dword [esp + 0x10], 1
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + edx*4 + 4]
xor dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, 0xff
mov bl, al
shr ecx, 8
mov eax, ecx
and eax, 0xff
mov dl, al
shr ecx, 8
mov eax, ecx
and eax, 0xff
shr ecx, 8
and ecx, 0xff
mov edi, dword [esp + 4]
lea esi, [edi + 0x4c]
and ecx, 0xff
and eax, 0xff
mov ecx, dword [esi + ecx*4]
add ecx, dword [esi + eax*4 + 0x400]
movzx eax, dl
mov edx, dword [esp + 4]
mov eax, dword [edx + eax*4 + 0x84c]
xor eax, ecx
mov ecx, eax
movzx eax, bl
mov edx, dword [esp + 4]
add ecx, dword [edx + eax*4 + 0xc4c]
xor ecx, dword [esp + 8]
mov dword [esp + 8], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
cmp dword [esp + 0x10], 0xf
jl 0x57e5c8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 0x44]
xor ecx, eax
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 0x48]
xor edx, eax
mov eax, dword [esp]
mov dword [eax], edx
mov eax, dword [esp]
mov dword [eax + 4], ecx
lea esp, [esp + 0x18]
pop edi
pop esi
pop ebx
ret
Function at 0x57f090
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x11c]
mov byte [ebp - 4], al
mov byte [ebp - 8], 2
cmp dword [0x5b3fcc], 1
jne 0x57f0c8
cmp dword [0x5b3fd0], 2
jne 0x57f0c8
cmp dword [0x5b3fd4], 3
jne 0x57f0c8
mov byte [ebp - 8], 3
jmp 0x57f1d4
push 0x104
lea eax, [ebp - 0x11c]
push eax
call fcn.004130b0
push eax
call sub.kernel32.dll_GetModuleFileNameA
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x57f1c6
cmp byte [ebp - 4], 0
je 0x57f12a
push 0
push dword [ebp - 0xc]
call sub.kernel32.dll_GetFileSize
cmp eax, dword [0x5b3fd0]
je 0x57f12a
mov byte [ebp - 8], 1
jmp 0x57f1bc
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0xc]
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
test eax, eax
je 0x57f1bc
push 0
push 0
push 0
push 4
push dword [ebp - 0x10]
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
test eax, eax
je 0x57f1b4
mov dword [ebp - 0x18], 0xfff00fff
mov ecx, dword [0x5b3fcc]
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.0057f1e0
mov eax, dword [0x5b3fcc]
add eax, 0x24
mov ecx, dword [0x5b3fd0]
sub ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5b3fcc]
lea edx, [edx + eax + 0x24]
lea eax, [ebp - 0x18]
call fcn.0057f1e0
mov eax, dword [ebp - 0x18]
not eax
cmp eax, dword [0x5b3fd4]
jne 0x57f1ac
mov byte [ebp - 8], 0
nop
push dword [ebp - 0x14]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
jmp 0x57f1d4
call sub.kernel32.dll_GetLastError
cmp eax, 5
jne 0x57f1d4
mov byte [ebp - 8], 4
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x57f1e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x14]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, ecx
sub eax, 1
test eax, eax
jl 0x57f23c
mov dword [ebp - 0x10], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x10], 1
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov cl, byte [edx]
mov dl, byte [esi + ebx]
xor dl, cl
mov byte [ebp - 0x14], dl
mov edx, dword [ebp - 4]
mov edx, dword [edx]
shr edx, 8
movzx ecx, byte [ebp - 0x14]
xor edx, dword [ecx*4 + 0x5b3ff0]
mov ecx, dword [ebp - 4]
mov dword [ecx], edx
cmp eax, dword [ebp - 0x10]
jg 0x57f208
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x58a060
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov edx, 0xffffffff
lea esi, [esi]
nop
add edx, 1
mov byte [eax + edx + 0x18], 0
cmp edx, 0x3f
jl 0x58a078
mov dword [eax + 0x58], 0
mov dword [eax + 0x5c], 0
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov dword [eax + 0x70], 0
mov dword [eax + 0x74], 0
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 0
mov dword [eax + 0x80], 0
mov dword [eax + 0x84], 0
mov dword [eax + 0x88], 0
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov dword [eax + 0x94], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x402310
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
mov dword [esp + 0x18], 0x44
call esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x402365
mov eax, dword [eax]
jmp 0x402369
push 0xfffffffffffffff5
call esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x402379
mov eax, dword [eax]
jmp 0x40237d
push 0xfffffffffffffff6
call esi
mov esi, dword [esp + 0x60]
xorps xmm0, xmm0
or dword [esp + 0x40], 0x100
mov dword [esp + 0x4c], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push dword [esp + 0x80]
movups xmmword [esp + 0x2c], xmm0
push 0x425788
call fcn.00402440
add esp, 0xc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4023e0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
add esp, 0x54
ret
call fcn.00401050
push eax
push esi
push dword [esp + 0x64]
call fcn.00402420
add esp, 8
push eax
push str.Could_not_create_child_process__s:__s_n
call fcn.004010f0
int3
Function at 0x402b10
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x28
mov eax, dword [0x42f140]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.004026c0
add esp, 4
test al, al
jne 0x402cef
lea eax, [esp]
push eax
push 0x201
push 0
push str.SOFTWAREMicrosoftVisualStudioSxSVS7
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402cef
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebp, ebp
push ebx
mov dword [esp + 0x20], str.14.0
mov dword [esp + 0x24], str.12.0
mov dword [esp + 0x28], str.11.0
mov dword [esp + 0x2c], str.10.0
push esi
mov esi, dword [esp + ebp*4 + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0
push esi
push dword [esp + 0x24]
call edi
cmp eax, 2
je 0x402cc2
cmp dword [esp + 0x20], 1
jne 0x402cc2
push dword [esp + 0x1c]
call fcn.0040a99a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402ceb
lea eax, [esp + 0x1c]
push eax
push ebx
push 0
push 0
push esi
push dword [esp + 0x24]
call edi
test eax, eax
jne 0x402cc2
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402be3
sub esi, ecx
sar esi, 1
lea edi, [esi + esi]
lea eax, [edi + 0x1a]
push eax
call fcn.0040a99a
push edi
push ebx
push eax
mov dword [esp + 0x24], eax
call fcn.00408340
mov eax, dword [esp + 0x24]
add esp, 0x10
movups xmm0, xmmword [str.VCLib_amd64]
xor ecx, ecx
movups xmmword [edi + eax], xmm0
movq xmm0, qword [0x425a6c]
movq qword [edi + eax + 0x10], xmm0
mov edi, eax
mov word [eax + esi*2 + 0x18], cx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x402c36
sub edi, ecx
sar edi, 1
lea esi, [edi + edi]
lea eax, [esi + 0x1e]
push eax
call fcn.0040a99a
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
push eax
call fcn.00408340
mov ecx, dword [esp + 0x28]
add esp, 0x10
movups xmm0, xmmword [str._vcruntime.lib]
movups xmmword [esi + ecx], xmm0
push ecx
movq xmm0, qword [0x4259b0]
movq qword [esi + ecx + 0x10], xmm0
mov eax, dword [0x4259b8]
mov dword [esi + ecx + 0x18], eax
xor eax, eax
mov word [ecx + edi*2 + 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402ca0
test al, 0x10
je 0x402cce
mov eax, dword [esp + 0x18]
push eax
call fcn.0040a97f
push dword [esp + 0x18]
call fcn.0040a97f
push ebx
call fcn.0040a97f
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
inc ebp
cmp ebp, 4
jl 0x402b82
jmp 0x402ce1
mov eax, dword [esp + 0x18]
push eax
call fcn.0040a97f
push ebx
call fcn.0040a97f
add esp, 8
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00407506
add esp, 0x28
ret
Function at 0x403040
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push str.VCINSTALLDIR
call fcn.0040b0bb
add esp, 4
test eax, eax
je 0x40306a
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.00403660
add esp, 8
xor eax, eax
add esp, 0xc
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0
push ebp
push eax
mov dword [esp + 0x10], 0
call fcn.00402b10
mov ebp, dword [esp + 0xc]
add esp, 4
test ebp, ebp
jne 0x4030a4
push str.Couldnt_find_Visual_Studio_2017_or_higher._Please_run_this_from_the_MSVC_x86_native_tools_command_prompt.
call fcn.00401170
add esp, 4
xor eax, eax
pop ebp
add esp, 0xc
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, ebp
mov dword [esp + 0x10], eax
lea edx, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x4030b6
sub esi, edx
xor edi, edi
sar esi, 1
test eax, eax
je 0x4030df
mov edi, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4030d0
sub edi, ecx
sar edi, 1
lea eax, [edi + esi]
lea eax, [eax*2 + 0x16]
push eax
call fcn.0040a99a
mov ebx, eax
lea ecx, [esi + esi]
push ecx
mov eax, 0x22
push ebp
lea ecx, [ebx + 2]
mov word [ebx], ax
push ecx
call fcn.00408340
movups xmm0, xmmword [str.__x86_]
mov ecx, dword [esp + 0x20]
add esp, 0x10
movups xmmword [ebx + esi*2 + 2], xmm0
mov ax, word [0x42602c]
mov word [ebx + esi*2 + 0x12], ax
test ecx, ecx
je 0x40313d
lea eax, [edi + edi]
push eax
lea eax, [esi + 0xa]
push ecx
lea eax, [ebx + eax*2]
push eax
call fcn.00408340
add esp, 0xc
lea eax, [edi + esi]
xor ecx, ecx
push ebx
push 0x426030
mov word [ebx + eax*2 + 0x14], cx
call fcn.00403630
push ebx
call fcn.0040aac0
push ebx
call fcn.0040a97f
push ebp
call fcn.0040a97f
push dword [esp + 0x2c]
call fcn.0040a97f
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x403320
Capabilities:
Move file

Disassembly:
push 1
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x403335
ret
call fcn.00401050
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.could_not_rename__s_to__s:__s
call fcn.004010f0
int3
Function at 0x403350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403518
test al, 0x10
je 0x403518
push esi
push ebx
call fcn.00403180
mov esi, eax
add esp, 4
test esi, esi
je 0x403565
push ebp
push edi
call fcn.0040a6ed
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [eax], 0
cmp dword [esi + 0x144], 0
jne 0x4033b4
push 0x105
push 1
call fcn.0040a974
add esp, 8
mov dword [esi + 0x144], eax
jmp 0x4033c4
lea eax, [esi + 4]
push eax
push dword [esi]
call ebp
test eax, eax
je 0x403486
push 0x105
push 0
push dword [esi + 0x144]
call fcn.004088c0
push 0x104
lea eax, [esi + 0x30]
push eax
push dword [esi + 0x144]
call fcn.0040a850
mov edi, dword [esi + 0x144]
add esp, 0x18
test edi, edi
je 0x40349c
mov ecx, 0x4257fc
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403422
test dl, dl
je 0x40341e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403422
add eax, 2
add ecx, 2
test dl, dl
jne 0x403402
xor eax, eax
jmp 0x403427
sbb eax, eax
or eax, 1
test eax, eax
je 0x403394
mov ecx, 0x425800
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403456
test dl, dl
je 0x403452
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403456
add eax, 2
add ecx, 2
test dl, dl
jne 0x403436
xor eax, eax
jmp 0x40345b
sbb eax, eax
or eax, 1
test eax, eax
je 0x403394
push 0
push edi
push ebx
call fcn.00402590
push edx
push eax
push 0x4257d8
call fcn.00402440
push eax
call fcn.00403350
add esp, 0x1c
jmp 0x403394
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40349c
call fcn.0040a6ed
mov dword [eax], 0x28
call fcn.0040a6ed
pop edi
pop ebp
cmp dword [eax], 0
jg 0x403580
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x4034c5
call fcn.0040a6ed
mov dword [eax], 0x28
jmp 0x4034e1
mov eax, dword [esi + 0x144]
test eax, eax
je 0x4034d8
push eax
call fcn.0040a97f
add esp, 4
push esi
call fcn.0040a97f
add esp, 4
push ebx
call fcn.00414321
add esp, 4
test eax, eax
jns 0x403515
call fcn.0040a6ed
cmp dword [eax], 2
jne 0x40359b
call fcn.0040a6ed
push ebx
push str.directory__s_does_not_exist
mov dword [eax], 0
call fcn.00401170
add esp, 8
pop esi
pop ebx
ret
push ebx
call fcn.004142ac
add esp, 4
test eax, eax
jns 0x403516
call fcn.0040a6ed
cmp dword [eax], 2
jne 0x40354a
call fcn.0040a6ed
push ebx
push str.file__s_does_not_exist
mov dword [eax], 0
call fcn.00401170
add esp, 8
pop ebx
ret
call fcn.0040a6ed
push dword [eax]
call fcn.0040a83a
add esp, 4
push eax
push ebx
push str.could_not_remove_file__s:__s
call fcn.004010f0
call fcn.0040a6ed
push dword [eax]
call fcn.0040a83a
add esp, 4
push eax
push ebx
push str.could_not_open_directory__s:__s
call fcn.004010f0
call fcn.0040a6ed
push dword [eax]
call fcn.0040a83a
add esp, 4
push eax
push ebx
push str.could_not_read_directory__s:__s
call fcn.004010f0
call fcn.0040a6ed
push dword [eax]
call fcn.0040a83a
add esp, 4
push eax
push ebx
push str.could_not_remove_directory__s:__s
call fcn.004010f0
int3