joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411836
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x41185e
call fcn.0043e4b0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x41195b
cmp byte [ebp + 0x14], 0
je 0x411876
test bl, 0x10
je 0x411876
call fcn.0043e4b0
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x411856
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.00416de4
cmp dword [esi], 0x40
mov dword [ebp - 8], eax
jne 0x4118be
call fcn.0043e4b0
mov dword [esi], 0x2746
jmp 0x4118d1
cmp dword [esi], 0x4d2
jne 0x4118d7
call fcn.0043e4b0
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4118e0
or eax, 0xffffffff
jmp 0x4118f2
call fcn.0043e4b0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x41195d
test bl, 0x10
je 0x4118fb
test eax, eax
je 0x41194d
test bl, 1
jne 0x41195b
call fcn.0043e4b0
lea edx, [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x18], 0x2733
mov dword [ebp - 0x14], eax
call fcn.004108ef
test al, al
je 0x41193a
call fcn.0043e4b0
lea edx, [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x20], 0x4d5
mov dword [ebp - 0x1c], eax
call fcn.004108ef
test al, al
jne 0x41195b
push esi
mov ecx, edi
call fcn.00411be8
pop ecx
test eax, eax
jns 0x411879
jmp 0x41195b
call fcn.004109b2
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411be8
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x411c1a
call fcn.0043e4b0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x411c70
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00416de4
mov edi, eax
test edi, edi
je 0x411c64
jle 0x411c6e
call fcn.0043e4b0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cb06
leave
ret
Function at 0x411c7f
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x411cb1
call fcn.0043e4b0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x411d07
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00416de4
mov edi, eax
test edi, edi
je 0x411cfb
jle 0x411d05
call fcn.0043e4b0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cb06
leave
ret

Function at 0x411d16
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x411d46
call fcn.0043e4b0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x411da1
push ebx
xor eax, eax
inc eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00416de4
mov edi, eax
test edi, edi
js 0x411d9e
call fcn.0043e4b0
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043cb06
leave
ret
Function at 0x4164f4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443e86
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
xor esi, esi
lea eax, [esp + 0x70]
mov dword [esp + 0x14], esi
push eax
mov ecx, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
call fcn.0041686b
mov edi, eax
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
mov dword [esp + 0xb4], esi
call fcn.00416850
mov esi, eax
xor ebx, ebx
inc ebx
mov byte [esp + 0xb0], bl
cmp dword [edi + 0x14], 0x10
jb 0x416588
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x416590
mov esi, dword [esi]
test esi, esi
je 0x416599
cmp byte [esi], 0
jne 0x41659b
xor esi, esi
test edi, edi
je 0x4165a4
cmp byte [edi], 0
jne 0x4165a6
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.00411daf
mov edi, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
lea ecx, [esp + 0x40]
mov dword [edi + 4], eax
call fcn.00402286
lea ecx, [esp + 0x70]
call fcn.00402286
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
xor eax, eax
mov dword [esp + 0xb0], 2
cmp dword [edi], eax
je 0x41661f
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
mov byte [esp + 0xb0], 3
jmp 0x41667a
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x88]
push eax
call fcn.0041686b
mov edi, eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
mov dword [esp + 0xb0], 4
push eax
mov dword [esp + 0x18], 2
call fcn.00416850
mov dword [esp + 0xb0], 5
mov edx, dword [esp + 0x18]
push edi
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 6
call fcn.00416886
pop ecx
pop ecx
push 0xe
pop ebx
mov edi, dword [esp + 0x30]
push eax
mov ecx, edi
call fcn.00415f6b
or ebx, 0x10
test bl, 8
je 0x4166a2
mov ecx, dword [esp + 0x38]
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
test ecx, ecx
je 0x4166a2
call fcn.00410861
test bl, 4
je 0x4166b3
lea ecx, [esp + 0x58]
and ebx, 0xfffffffb
call fcn.00402286
test bl, 2
je 0x4166c7
lea ecx, [esp + 0x88]
and ebx, 0xfffffffd
call fcn.00402286
mov dword [esp + 0xb0], 2
test bl, 1
je 0x4166e4
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4166e4
call fcn.00410861
test esi, esi
je 0x4166ef
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0043cb06
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41eab5
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44328f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
push dword [esp + 0x10]
xor ebx, ebx
push dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push dword [ebp + 8]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0041aec1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0xc4], ebx
call fcn.0041f07d
mov byte [esp + 0xc0], 1
mov edx, dword [edi]
push eax
add edx, 0x18
lea ecx, [esp + 0x80]
call fcn.0041e574
pop ecx
mov esi, eax
push esi
lea ecx, [esp + 0x30]
call fcn.0040405d
lea eax, [esi + 0x18]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xc4], 3
call fcn.0041e80a
mov byte [esp + 0xc0], 4
mov ecx, dword [edi]
lea eax, [esp + 0x2c]
mov ecx, dword [ecx + 0x50]
push eax
mov ecx, dword [ecx - 4]
lea eax, [esp + 0x14]
push eax
call fcn.0041e5e8
lea ecx, [esp + 0x44]
mov byte [esp + 0xc0], 5
call fcn.0041713d
lea ecx, [esp + 0x2c]
call fcn.00402286
lea ecx, [esp + 0x94]
mov byte [esp + 0xc0], 6
call fcn.0041713d
lea ecx, [esp + 0x7c]
call fcn.00402286
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], bl
call fcn.0041713d
lea ecx, [esp + 0x14]
call fcn.00402286
mov eax, dword [edi]
add eax, 0x18
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], ebx
jb 0x41ebec
mov eax, dword [eax]
mov byte [eax], bl
mov eax, dword [edi]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], ebx
jb 0x41ebfb
mov eax, dword [eax]
mov byte [eax], bl
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0043cb06
mov esp, ebp
pop ebp
ret 8

Function at 0x41ff08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41ff61
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41ff52
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x41ff4e
cmp esi, ecx
jae 0x41ff52
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x41ff3e
cmp esi, ecx
jb 0x41ff56
xor eax, eax
jmp 0x41ff60
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420ef8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444be8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1074
call fcn.0043fe20
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
xor eax, esp
push eax
lea eax, [esp + 0x1088]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push eax
push edi
mov dword [esp + 0x20], eax
lea eax, [ecx + 0x150]
push str.Bootstrapper::CreateProcess_module___S__args___S
push eax
mov dword [esp + 0x24], edx
call fcn.00402357
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0x1c
xor eax, eax
push 0xffe
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
mov dword [esp + 0x28], 0x44
call sub.MSVCR110.dll_memset
mov ebx, dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
cmp word [edi], 0x22
mov esi, 0x800
lea eax, [esp + 0x7c]
je 0x420fda
push 0x44eba0
push esi
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x7c]
push edi
push esi
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x7c]
push 0x44eba0
push esi
push eax
call ebx
jmp 0x420fe3
push edi
push esi
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x7c]
push 0x44eba4
push esi
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x7c]
push dword [esp + 0x18]
push esi
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push str.CreateProcess__S_failed
push eax
call fcn.0040f7ef
add esp, 0xc
mov esi, eax
push dword [esp + 0x14]
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
push ecx
lea eax, [esp + 0x9c]
push eax
push ecx
mov dword [esp + 0x10b8], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42104d
mov ecx, esi
call fcn.00432f3e
lea ecx, [esp + 0x64]
call fcn.00402286
mov ecx, dword [esp + 0x1088]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.0043cb06
mov esp, ebp
pop ebp
ret 0xc

Function at 0x421577
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4215d1
cmp dword [ebp - 0x108], 2
jne 0x4215d1
cmp dword [ebp - 0x114], 5
jne 0x4215d1
mov al, 1
jmp 0x4215d3
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043cb06
leave
ret
Function at 0x4217f5
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444ddf
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
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 ecx, [esp + 0x34]
mov byte [esp + 0xa8], 1
call fcn.0042175b
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
je 0x4218af
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
jmp 0x4218ca
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
jne 0x42189a
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4218f1
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jmp 0x4218f5
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x421912
cmp dword [esp + 0x10], 0
setne bl
lea ecx, [esp + 0x34]
call fcn.004216dc
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.004217b3
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.004217b3
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.0043cb06
mov esp, ebp
pop ebp
ret
Function at 0x422cab
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444e18
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28a8
call fcn.0043fe20
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x28a4], eax
push esi
push edi
mov eax, dword [0x467034]
xor eax, esp
push eax
lea eax, [esp + 0x28b8]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x18], 0x2880
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea esi, [esp + 0x2c]
cmp dword [esi + 0x1a0], 6
jne 0x422dac
movzx eax, byte [esi + 0x19b]
push eax
movzx eax, byte [esi + 0x19a]
push eax
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [esp + 0x34]
push str._02x__02x__02x__02x__02x__02x__02x__02x
push eax
call fcn.0040f7ef
and dword [esp + 0x28e8], 0
cmp dword [esp + 0x50], 0x10
lea eax, [esi + 0x10c]
push eax
lea ecx, [esp + 0x40]
cmovae ecx, dword [esp + 0x40]
push ecx
lea eax, [edi + 0x150]
push str.MAC:__s_Name:__s
push eax
call fcn.00402357
or dword [esp + 0x28f8], 0xffffffff
add esp, 0x38
lea ecx, [esp + 0x14]
call fcn.00402286
mov esi, dword [esi]
test esi, esi
jne 0x422d0d
mov ecx, dword [esp + 0x28b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28a4]
xor ecx, esp
call fcn.0043cb06
mov esp, ebp
pop ebp
ret
Function at 0x4261b3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4455bf
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x150]
push str.deploySelf
push edi
call fcn.00402357
cmp byte [ebp + 8], 0
pop ecx
pop ecx
je 0x4263dc
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0042614b
xor ebx, ebx
mov dword [esp + 0x290], ebx
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
push str.Bootstrapper::deploySelf___Final_file_path_S
push edi
call fcn.00402357
add esp, 0xc
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42635e
push str._PathFileExists
push edi
call fcn.00402357
pop ecx
pop ecx
push str.Error_when_getting_bootstrapper_filename_for_selfDeploy
lea ecx, [esp + 0x60]
call fcn.0040221e
push 0x104
lea eax, [esp + 0x78]
push eax
push ebx
mov byte [esp + 0x29c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4262a2
lea ecx, [esp + 0x5c]
call fcn.00432f3e
lea ecx, [esp + 0x5c]
mov byte [esp + 0x290], bl
call fcn.00402286
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.0040c58a
mov byte [esp + 0x290], 2
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
push str.GetModuleFileName:__S
push edi
call fcn.00402357
add esp, 0xc
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
cmp dword [esp + 0x28], 8
lea edx, [esp + 0x14]
cmovae edx, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.004332e4
cmp dword [esp + 0x44], 8
pop ecx
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
cmp dword [esp + 0x28], 8
push ecx
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push str.Copy:_from___S_to__S
push edi
call fcn.00402357
add esp, 0x10
lea ecx, [esp + 0x14]
push ebx
push 1
mov byte [esp + 0x298], bl
call fcn.0040253d
jmp 0x42636b
push str.PathFileExists
push edi
call fcn.00402357
pop ecx
pop ecx
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call dword [eax + 0xa0]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x290], 3
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xdc]
mov byte [esp + 0x290], 4
cmp dword [esp + 0x58], 8
lea ecx, [esp + 0x44]
cmovae ecx, dword [esp + 0x44]
cmp dword [eax + 0x14], 8
jb 0x4263af
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.00424c79
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.0040253d
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.0040253d
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.0040253d
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0043cb06
mov esp, ebp
pop ebp
ret 4
Function at 0x426402
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x444939
call fcn.0043feb0
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42644f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x42644f
push esi
lea eax, [ebp - 0x28]
push str.CreateDirectory__S_failed
push eax
call fcn.0040f7ef
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00432f3e
lea ecx, [ebp - 0x28]
call fcn.00402286
call fcn.0043fe5f
ret
Function at 0x428a9f
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0xa0]
cmp dword [eax + 0x14], 8
jb 0x428ac9
mov eax, dword [eax]
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040253d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
movsd xmm0, qword [0x456620]
mov dword [ebp - 0x28], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [ebp - 0x24], ecx
fild qword [ebp - 0x28]
and eax, 0x80000000
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
fild qword [ebp - 0x28]
fchs
faddp st(1)
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fstp qword [ebp - 0x28]
comisd xmm0, xmmword [ebp - 0x28]
ja 0x428b32
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043cb06
leave
ret
mov ecx, dword [esi + 0x11c]
push edi
mov eax, dword [ecx]
push str.There_is_not_enough_room_on_your_disk_to_install_Roblox._Please_free_up_some_space_and_try_again.
call dword [eax + 0x1c]
push 5
lea ecx, [ebp - 0x40]
call fcn.004320a1
push 0x45b324
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR110.dll__CxxThrowException
int3
Function at 0x42b650
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445615
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], eax
call fcn.004332c5
and dword [esp + 0x88], 0
cmp dword [eax + 0x14], 0x10
jb 0x42b6ae
mov eax, dword [eax]
push eax
lea eax, [esi + 0x150]
push str.ERROR:__s
push eax
call fcn.00402357
or dword [esp + 0x94], 0xffffffff
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00402286
lea ebx, [esi + 0x70]
push 0x18
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
pop edi
cdq
idiv edi
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x42b795
cmp byte [esi + 0x4b], al
je 0x42b795
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
push eax
lea ecx, [esp + 0x34]
call fcn.0040b7d4
xor edi, edi
inc edi
lea edx, [esp + 0x30]
lea ecx, [esp + 0x48]
mov dword [esp + 0x88], edi
call fcn.0040f5a8
push eax
mov edx, str.An_error_occurred_while_starting
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 2
call fcn.0040ce88
pop ecx
lea ecx, [esp + 0x48]
call fcn.00402286
push 0
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x90], 5
call fcn.0040253d
mov ecx, dword [esp + 0x10]
mov ebx, dword [esi + 0x11c]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [ecx]
mov esi, dword [ebx]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
call dword [eax + 4]
push eax
push edi
mov ecx, ebx
call dword [esi + 0x1c]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402286
mov ebx, dword [esp + 0x14]
push 0x18
pop edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x60]
call fcn.004332c5
mov esi, eax
mov dword [esp + 0x88], 6
mov ecx, dword [ebx + 4]
cmp esi, ecx
jae 0x42b7de
cmp dword [ebx], esi
ja 0x42b7de
sub esi, dword [ebx]
mov eax, esi
cdq
idiv edi
mov esi, eax
cmp ecx, dword [ebx + 8]
jne 0x42b7d0
push ecx
mov ecx, ebx
call fcn.0040fe08
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x42b7f8
imul esi, esi, 0x18
add esi, dword [ebx]
jmp 0x42b7f2
cmp ecx, dword [ebx + 8]
jne 0x42b7eb
push ecx
mov ecx, ebx
call fcn.0040fe08
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x42b7f8
push esi
call fcn.0040405d
add dword [ebx + 4], edi
lea ecx, [esp + 0x60]
call fcn.00402286
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0043cb06
mov esp, ebp
pop ebp
ret 4