joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b6b
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x4579c6
call fcn.004416b2
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x38], edi
cmp dword [edi + 0x3c], ebx
je 0x408c7e
cmp byte [edi + 0x41], bl
je 0x408c7e
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x408ba3
xor al, al
jmp 0x408c80
push ebx
push 8
pop esi
lea eax, [ebp - 0x30]
call fcn.00408437
lea eax, [edi + 0x44]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.004240d5
mov esi, eax
call fcn.00407868
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.004240d5
mov esi, eax
call fcn.00407868
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
mov esi, dword [ebp - 0x40]
add ebx, esi
push ebx
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x408c16
dec eax
je 0x408c1a
dec eax
dec eax
je 0x408c7a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.0040860c
mov al, bl
jmp 0x408c80
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.004240d5
mov esi, eax
call fcn.00407868
mov ebx, dword [ebp - 0x34]
sub ebx, eax
je 0x408c58
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x30]
call fcn.004240d5
mov esi, eax
call fcn.00407868
push dword [edi + 0x4c]
push ebx
push 1
push eax
call fcn.0043e303
add esp, 0x10
cmp ebx, eax
jne 0x408c04
cmp byte [edi + 0x41], 0
je 0x408c7a
test ebx, ebx
jne 0x408bb8
push ebx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.00408459
mov edi, dword [ebp - 0x38]
jmp 0x408bb8
mov bl, 1
jmp 0x408c06
mov al, 1
call fcn.00441735
ret

Function at 0x40bc2b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bc8f
cmp dword [ebp + 0xc], 1
je 0x40bc67
cmp dword [ebp + 0xc], 2
je 0x40bc67
push 0xd
pop eax
jmp 0x40bc8f
mov eax, dword [ebp - 4]
test edi, edi
je 0x40bc89
test eax, eax
je 0x40bc84
test al, 1
jne 0x40bc62
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40bc89
jmp 0x40bc62
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x40eede
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40eef5
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40ef2a
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40ef26
cmp edi, eax
jae 0x40ef2a
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40ef18
cmp edi, eax
jb 0x40ef2e
xor eax, eax
jmp 0x40ef37
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x40ef59
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459584
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x47e180]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x47e180]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x54]
call fcn.004073f1
xor ebx, ebx
mov dword [esp + 0x98], ebx
xor edi, edi
cmp dword [esp + 0x64], ebx
jbe 0x40f189
push 0xf
pop esi
push ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], esi
call fcn.00409344
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
call fcn.00409344
lea eax, [esp + 0x50]
mov byte [esp + 0x98], 2
call fcn.00422e98
mov al, byte [eax]
cmp al, byte [0x464d28]
je 0x40f15f
lea eax, [esp + 0x50]
call fcn.00422e98
mov al, byte [eax]
cmp al, byte [0x464d24]
je 0x40f15f
mov al, byte [0x464d20]
mov byte [esp + 0x10], al
push 1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
mov eax, edi
call fcn.0040e5b2
cmp eax, 0xffffffff
je 0x40f159
sub eax, edi
push eax
push edi
lea eax, [esp + 0x58]
push eax
lea esi, [esp + 0x24]
call fcn.0040e43d
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 3
call fcn.0040849d
push ebx
push 1
mov ecx, esi
mov byte [esp + 0xa0], 2
call fcn.0040860c
mov eax, dword [esp + 0x80]
lea edi, [edi + eax + 1]
push 1
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
mov eax, edi
mov byte [esp + 0x1c], 0x2c
call fcn.0040e5b2
cmp eax, 0xffffffff
jne 0x40f0a2
mov eax, dword [esp + 0x64]
dec eax
sub eax, edi
push eax
push edi
lea eax, [esp + 0x58]
push eax
lea esi, [esp + 0x24]
call fcn.0040e43d
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], 4
call fcn.0040849d
push ebx
push 1
mov ecx, esi
mov byte [esp + 0xa0], 2
call fcn.0040860c
mov eax, dword [esp + 0x48]
lea edi, [edi + eax + 1]
lea eax, [esp + 0x34]
call fcn.0040f1e7
lea eax, [esp + 0x6c]
call fcn.0040f1e7
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x6c]
push eax
add ebx, 4
call fcn.0040c28a
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
je 0x40f123
cmp dword [esp + 0x4c], 0x10
mov ecx, dword [esp + 0x38]
jae 0x40f11d
lea ecx, [esp + 0x38]
push ecx
call eax
pop ecx
jmp 0x40f136
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x70]
push edx
call dword [eax + 4]
push ebx
push 1
lea ecx, [esp + 0x3c]
call fcn.0040860c
push ebx
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], bl
call fcn.0040860c
xor ebx, ebx
jmp 0x40f17f
mov edi, dword [esp + 0x64]
jmp 0x40f160
inc edi
push ebx
push 1
lea ecx, [esp + 0x3c]
call fcn.0040860c
push ebx
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0xa0], bl
call fcn.0040860c
cmp edi, dword [esp + 0x64]
jb 0x40efbf
push ebx
push 1
lea ecx, [esp + 0x58]
call fcn.0040860c
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0043d7ed
mov esp, ebp
pop ebp
ret 8
Function at 0x410221
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x4c
mov eax, 0x45ba8c
call fcn.00441649
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x30]
push ecx
push 4
push eax
push 0x436ae5
xor esi, esi
push esi
push esi
call fcn.0044007e
add esp, 0x18
cmp eax, esi
je 0x410275
mov ecx, dword [edi]
xor edx, edx
add ecx, 4
inc edx
lock xadd dword [ecx], edx
mov ecx, dword [edi]
push eax
lea esi, [ecx + 8]
call fcn.0040ff5e
mov edi, dword [edi]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.00441721
ret
lea eax, [ebp - 0x58]
call fcn.00401a52
push eax
mov dword [ebp - 4], esi
call fcn.0040a426
int3

Function at 0x4109f5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b9f1
mov eax, dword fs:[0]
push eax
mov eax, 0x107c
call fcn.004505f0
mov eax, dword [0x47e180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push ecx
push edi
push str.Bootstrapper::CreateProcess_module___S__args___S
lea esi, [eax + 0xc8]
mov dword [ebp - 0x101c], ecx
mov dword [ebp - 0x1018], edx
call fcn.004081d4
add esp, 0xc
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x1080]
push ebx
push eax
call fcn.00440e30
add esp, 0xc
xor eax, eax
push 0xffe
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push ebx
push eax
mov dword [ebp - 0x1084], 0x44
call fcn.00440e30
add esp, 0xc
cmp word [edi], 0x22
mov esi, 0x800
lea eax, [ebp - 0x1014]
je 0x410acb
push 0x464ef0
push esi
push eax
call fcn.0043f4ad
add esp, 0xc
push edi
lea eax, [ebp - 0x1014]
push esi
push eax
call fcn.0043f51c
add esp, 0xc
push 0x464ef0
lea eax, [ebp - 0x1014]
push esi
push eax
call fcn.0043f51c
jmp 0x410ad3
push edi
push esi
push eax
call fcn.0043f4ad
add esp, 0xc
push 0x464ef4
lea eax, [ebp - 0x1014]
push esi
push eax
call fcn.0043f51c
add esp, 0xc
push dword [ebp - 0x101c]
lea eax, [ebp - 0x1014]
push esi
push eax
call fcn.0043f51c
add esp, 0xc
push edi
push str.CreateProcess__S_failed
lea esi, [ebp - 0x1038]
call fcn.004244cd
pop ecx
pop ecx
mov esi, eax
push dword [ebp - 0x1018]
lea eax, [ebp - 0x1084]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1014]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x410b46
mov eax, esi
call fcn.004208bd
push ebx
push 1
lea ecx, [ebp - 0x1038]
call fcn.0040860c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043d7ed
leave
ret 4
Function at 0x410f27
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x47e180]
xor eax, ebp
mov dword [ebp + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00440e30
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410f7a
cmp dword [ebp - 0x70], 2
jne 0x410f7a
cmp dword [ebp - 0x7c], 5
jne 0x410f7a
mov al, 1
jmp 0x410f7c
xor al, al
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0043d7ed
add ebp, 0x98
leave
ret

Function at 0x410f91
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x47e180]
xor eax, ebp
mov dword [ebp + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00440e30
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410fe2
cmp dword [ebp - 0x7c], 6
jne 0x410fe2
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
je 0x410fe4
xor al, al
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0043d7ed
add ebp, 0x98
leave
ret
Function at 0x4111e1
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x459528
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x47e180]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x47e180]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, vtable.ATL::CAccessToken.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x34]
mov byte [esp + 0xa8], 1
call fcn.00411153
mov byte [esp + 0xa8], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [esp + 0x10]
push ecx
push 1
mov edi, 0x2000a
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x41129d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4112b0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4112d8
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4112f7
cmp dword [esp + 0x10], ebx
setne bl
lea ecx, [esp + 0x34]
call fcn.004110dc
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.004111a3
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.004111a3
mov al, bl
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0043d7ed
mov esp, ebp
pop ebp
ret
Function at 0x411ad1
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b9be
mov eax, dword fs:[0]
push eax
mov eax, 0x28a4
call fcn.004505f0
mov eax, dword [0x47e180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28b0]
push eax
lea eax, [ebp - 0x28ac]
push eax
mov dword [ebp - 0x28b0], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
lea edi, [ebp - 0x28ac]
cmp dword [edi + 0x1a0], 6
jne 0x411bbd
movzx eax, byte [edi + 0x19b]
push eax
movzx eax, byte [edi + 0x19a]
push eax
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
push str._02x__02x__02x__02x__02x__02x__02x__02x
lea esi, [ebp - 0x2c]
call fcn.004244cd
add esp, 0x24
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x411b92
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x10c]
push ecx
push eax
push str.MAC:__s_Name:__s
lea esi, [ebx + 0xc8]
call fcn.004081d4
or dword [ebp - 4], 0xffffffff
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040860c
mov edi, dword [edi]
test edi, edi
jne 0x411b25
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043d7ed
leave
ret
Function at 0x413b19
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x25c
lea ebp, [esp - 4]
mov eax, dword [0x47e180]
xor eax, ebp
mov dword [ebp + 0x25c], eax
push 0x1c
mov eax, 0x45c521
call fcn.00441649
lea eax, [ebp + 0x38]
push eax
mov ecx, ebx
call fcn.00413ab4
and dword [ebp - 4], 0
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x413b58
lea eax, [ebp + 0x3c]
push eax
lea edi, [ebx + 0xc8]
push str.Bootstrapper::deploySelf___Final_file_path_S
mov esi, edi
call fcn.004081d4
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
pop ecx
pop ecx
jae 0x413b79
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413c5a
push str._PathFileExists
call fcn.004081d4
lea ecx, [ebp - 0x28]
mov dword [esp], str.Error_when_getting_bootstrapper_filename_for_selfDeploy
call fcn.004073f1
push 0x104
lea eax, [ebp + 0x54]
push eax
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x413bc2
lea eax, [ebp - 0x28]
call fcn.004208bd
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040860c
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp + 0x1c]
call fcn.004074af
mov byte [ebp - 4], 2
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x413bee
lea eax, [ebp + 0x20]
push eax
push str.GetModuleFileName:__S
mov esi, edi
call fcn.004081d4
pop ecx
pop ecx
mov ecx, dword [ebp + 0x3c]
push 8
pop esi
cmp dword [ebp + 0x50], esi
jae 0x413c0b
lea ecx, [ebp + 0x3c]
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x34], esi
jae 0x413c16
lea eax, [ebp + 0x20]
push ecx
push eax
mov ecx, edi
call fcn.00420c62
pop ecx
pop ecx
mov ecx, dword [ebp + 0x3c]
cmp dword [ebp + 0x50], esi
jae 0x413c2c
lea ecx, [ebp + 0x3c]
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x34], esi
jae 0x413c37
lea eax, [ebp + 0x20]
push ecx
push eax
push str.Copy:_from___S_to__S
mov esi, edi
call fcn.004081d4
add esp, 0xc
push 0
push 1
lea esi, [ebp + 0x1c]
mov byte [ebp - 4], 0
call fcn.00408944
jmp 0x413c65
push str.PathFileExists
call fcn.004081d4
pop ecx
mov eax, dword [ebx]
lea ecx, [ebp]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x94]
mov byte [ebp - 4], 4
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
jae 0x413c92
lea ecx, [ebp + 4]
cmp dword [eax + 0x18], 8
jb 0x413c9d
mov eax, dword [eax + 4]
jmp 0x413ca0
add eax, 4
push ecx
push eax
mov ecx, ebx
call fcn.004131d6
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x28]
call fcn.00408944
push edi
push 1
lea esi, [ebp]
call fcn.00408944
push edi
push 1
lea esi, [ebp + 0x38]
call fcn.00408944
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x25c]
xor ecx, ebp
call fcn.0043d7ed
add ebp, 0x260
leave
ret
Function at 0x413cef
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x45a602
call fcn.00441649
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413d3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413d3d
push dword [ebp + 8]
lea esi, [ebp - 0x28]
push str.CreateDirectory__S_failed
call fcn.004244cd
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.004208bd
push 0
push 1
mov ecx, esi
call fcn.0040860c
call fcn.00441721
ret
Function at 0x41538b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebx]
sub esp, 0x2c
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
cmp dword [eax + 0x18], 8
jb 0x4153a7
mov eax, dword [eax + 4]
jmp 0x4153aa
add eax, 4
push esi
push edi
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.00408944
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
and dword [ebp - 4], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
fild qword [ebp - 0x18]
mov dword [ebp - 8], edi
fild qword [ebp - 8]
fchs
faddp st(1)
fcomp qword [0x46d948]
fnstsw ax
test ah, 5
jp 0x415420
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx]
push edi
push str.There_is_not_enough_room_on_your_disk_to_install_Roblox._Please_free_up_some_space_and_try_again.
call dword [eax + 0x18]
push 5
lea esi, [ebp - 0x20]
call fcn.0041f86a
push 0x472510
mov eax, esi
push eax
call fcn.00441753
pop edi
pop esi
leave
ret
Function at 0x417826
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x458552
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x47e180]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x47e180]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x63], 0
je 0x41787e
push 1
lea esi, [esp + 0x2c]
call fcn.0041f892
push 0x4724c4
mov eax, esi
push eax
call fcn.00441753
lea edi, [eax + 0x88]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jbe 0x4179af
push 0x46277d
lea ecx, [esp + 0x58]
call fcn.004073f1
and dword [esp + 0x80], 0
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x1c]
call fcn.0042b768
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x1c]
call fcn.0042b768
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4178e4
cmp ebx, dword [esp + 0x1c]
je 0x4178e9
call fcn.0043dd11
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x20]
je 0x41793d
test ebx, ebx
jne 0x417935
call fcn.0043dd11
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x417908
call fcn.0043dd11
push 0xffffffffffffffff
mov eax, esi
push 0
lea esi, [esp + 0x5c]
call fcn.00409123
test ebx, ebx
jne 0x417939
call fcn.0043dd11
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0x10]
jb 0x41792e
call fcn.0043dd11
add dword [esp + 0x18], 0x1c
jmp 0x4178ca
mov eax, dword [ebx]
jmp 0x4178fe
mov ebx, dword [ebx]
jmp 0x417920
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x3c]
push str.previous_error
push eax
call fcn.0041f7fe
add esp, 0xc
mov byte [esp + 0x80], 1
cmp dword [eax + 0x18], 0x10
jb 0x417967
mov eax, dword [eax + 4]
jmp 0x41796a
add eax, 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0043d80d
push 0
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], vtable.silent_exception.0
mov byte [esp + 0x88], 0
call fcn.0040860c
mov dword [esp + 0x1c], vtable.previous_error.0
push 0x472588
lea eax, [esp + 0x20]
jmp 0x417878
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0043d7ed
mov esp, ebp
pop ebp
ret 4
Function at 0x417c70
Capabilities:
Read file via mapping

Disassembly:
push 4
mov eax, 0x45b496
call fcn.00441649
mov eax, dword [edi + 0x44]
push 0x800
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x417cd8
lea eax, [ebp - 0x10]
push eax
call fcn.004208eb
and dword [ebp - 4], 0
push dword [eax]
lea esi, [edi + 0xc8]
push str.Could_not_map_view_of_file:__S
call fcn.004081d4
add esp, 0xc
lea eax, [ebp - 0x10]
call fcn.0040d5c6
mov eax, dword [edi + 0x44]
test eax, eax
je 0x417cd4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x44], 0
mov al, 1
jmp 0x417cef
mov esi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call sub.KERNEL32.dll_GetCurrentProcessId
xor ecx, ecx
cmp esi, eax
sete cl
mov al, cl
call fcn.00441721
ret
Function at 0x4180c5
Capabilities:
Delete file

Disassembly:
push 0x7c
mov eax, 0x45b466
call fcn.004416b2
mov ebx, ecx
lea edi, [ebx + 0xc8]
push str.Bootstrapper::forceMFCStudioCleanup___deleteCurVersionKeys
mov esi, edi
call fcn.004081d4
pop ecx
lea eax, [ebp - 0x84]
call fcn.004216d3
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 8
jb 0x418100
mov eax, dword [eax + 4]
jmp 0x418103
add eax, 4
mov cl, byte [ebx + 0x61]
mov byte [ebp - 0x68], cl
push eax
push dword [ebp - 0x68]
mov ecx, edi
call fcn.00421244
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x84]
call fcn.00408944
call fcn.0041823b
mov al, byte [ebx + 0x61]
mov byte [ebp - 0x68], al
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
call fcn.004142be
xor ebx, ebx
inc ebx
push str.RobloxStudioLauncher.exe
lea esi, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.004074af
mov eax, esi
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.0040a72d
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41817a
lea eax, [ebp - 0x28]
push eax
push str.Bootstrapper::forceMFCStudioCleanup___deleting_studio_stub:__S
mov esi, edi
call fcn.004081d4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x418195
lea eax, [ebp - 0x28]
push eax
call fcn.00424b4a
pop ecx
test al, al
je 0x4181b3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4181ac
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push edi
push ebx
lea esi, [ebp - 0x2c]
call fcn.00408944
push edi
push ebx
lea esi, [ebp - 0x48]
call fcn.00408944
push edi
push ebx
lea esi, [ebp - 0x64]
call fcn.00408944
call fcn.00441735
ret

Function at 0x41f7a7
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x4887b0], 0
jne 0x41f7d7
push 0x467d30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f7d0
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4887b4], eax
mov byte [0x4887b0], 1
mov eax, dword [0x4887b4]
test eax, eax
je 0x41f7ef
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x41f7fb
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4