joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489c70
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov ebx, edx
mov edi, ecx
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x2a4]
push 0x294
push 0xff
push esi
call fcn.004ec220
add esp, 0xc
mov ecx, esi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push edi
call fcn.004ba120
xor eax, eax
dec eax
lea edi, [ebp - 0x500]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.004ba380
movzx eax, byte [edi + 0xb]
test al, al
js 0x489cdc
and eax, 0x7f
jmp 0x489ce2
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x489e51
xor edi, edi
lea ebx, [ebp - 0x4f4]
jmp 0x489d9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
je 0x489d52
mov esi, eax
jmp 0x489d52
mov ecx, ebx
call fcn.004ba110
test al, al
jne 0x489d23
mov eax, dword [ebp - 0x4f4]
jmp 0x489dd0
mov ecx, ebx
call fcn.004ba110
xor esi, esi
test al, al
jne 0x489d52
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x489d45
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
je 0x489cf7
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.004117a0
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004ba380
lea ecx, [ebp - 0x500]
push ebx
call fcn.0049c140
mov ecx, ebx
call fcn.0049c100
movzx eax, byte [ebp - 0x4f5]
test al, al
js 0x489d8d
and eax, 0x7f
jmp 0x489d93
mov eax, dword [ebp - 0x4fc]
mov edi, esi
test eax, eax
je 0x489e53
push 0x250
push 0xff
push ebx
call fcn.004ec220
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.004ba340
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x489df0
cmp byte [ebp + 8], 0
je 0x489d0d
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x489de5
mov ecx, dword [ebp - 0x500]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.004ba110
test al, al
je 0x489d30
xor esi, esi
cmp byte [ebp + 8], 0
je 0x489d52
lea ecx, [ebp - 0x500]
mov edx, dword [ebp - 0x504]
push 1
call fcn.00489c70
add esp, 4
mov esi, eax
test eax, eax
jne 0x489d52
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x489e40
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
jmp 0x489d4e
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.0049c100
lea ecx, [ebp - 0x2a4]
call fcn.004ba2d0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48ae80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x98], eax
xor ebx, ebx
test ecx, ecx
je 0x48b057
mov dword [esp], edx
push ebx
push ebx
push ecx
mov ebx, ecx
call fcn.005018d2
add esp, 0xc
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x60]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x20]
push 0x48
push str.file_util.cc
push str.ReadStreamToSpanWithMaxSize
push edi
call fcn.0049a500
add esp, 0x10
mov ecx, esi
xor esi, esi
push esi
push edi
call fcn.00490060
mov dword [edi + 0x30], esi
pxor xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov dword [esp + 4], ebx
push ebx
call fcn.004fb186
add esp, 4
push eax
call fcn.004fb1da
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x48affe
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov edx, eax
neg edx
sbb ecx, dword [esp + 0x40]
mov edi, 0xffff
cmovl edi, eax
mov eax, dword [esp]
cmp edi, eax
cmovae edi, eax
inc edi
xor eax, eax
dec eax
lea esi, [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
lea ebx, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [ebx], eax
call dword [section..00cfg]
mov eax, dword [ebx]
push edi
push eax
push esi
mov dword [esp + 0x18], ecx
call ecx
add esp, 0xc
xor ebx, ebx
mov eax, dword [esi + 4]
add eax, ebx
push dword [esp + 4]
push edi
push 1
push eax
call fcn.005015e2
add esp, 0x10
test eax, eax
je 0x48b011
mov esi, eax
mov eax, dword [esp]
sub eax, ebx
cmp eax, esi
jb 0x48b008
add esi, ebx
push dword [esp + 4]
call fcn.00500f58
add esp, 4
test eax, eax
jne 0x48b00f
test ebx, ebx
mov eax, 0x10000
cmove edi, eax
lea ebx, [esi + edi]
mov eax, dword [esp + 8]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xc]
call dword [section..00cfg]
mov eax, dword [esp + 0x94]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov ebx, esi
jmp 0x48af82
mov edi, 0xffff
jmp 0x48af42
xor esi, esi
mov ebx, dword [esp]
jmp 0x48b024
mov ebx, esi
push dword [esp + 4]
call fcn.00500f84
add esp, 4
test eax, eax
sete al
mov esi, eax
mov eax, dword [esp + 8]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0xc]
call dword [section..00cfg]
mov eax, dword [esp + 0x94]
push ebx
push eax
lea eax, [esp + 0x18]
push eax
call ecx
add esp, 0xc
lea ecx, [esp + 0x60]
call fcn.004900e0
mov ebx, esi
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48ed30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x54b5ec]
cmp eax, 0xffffffff
je 0x48ed4d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x48ed52
call fcn.0048ee40
mov eax, dword [0x55bd18]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48edf8
mov edi, dword [0x55bd14]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x48ed8b
mov ecx, edi
call fcn.00485720
mov ecx, dword [0x55ad0c]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx eax, al
mov ebx, eax
shl ebx, 4
cmp dword [ebx + 0x55ad10], 0
je 0x48edb3
inc edx
cmp edx, 0x100
jne 0x48ed94
jmp 0x48ede2
lea ecx, [ebx + 0x55ad10]
mov dword [ecx], 1
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov edx, dword [0x55bd10]
inc edx
mov dword [0x55bd10], edx
mov dword [ecx + 0xc], edx
mov dword [0x55ad0c], eax
mov dword [esi], eax
mov eax, dword [ecx + 8]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x48ee3d
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x55bd18
call fcn.004e8347
add esp, 4
cmp dword [0x55bd18], 0xffffffff
jne 0x48ed73
push 4
call fcn.004e82a5
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00485710
mov dword [0x55bd14], edi
push 0x55bd18
call fcn.004e83bd
add esp, 4
jmp 0x48ed73
int3

Function at 0x48ee40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x54b5ec]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x48eeed
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x48ef5c
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.004ec220
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.004be260
add esp, 8
push edi
call fcn.004e8303
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.004ebca0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.004be260
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.004be240
add esp, 4
test al, al
je 0x48ef5f
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
jne 0x48ef31
push esi
call fcn.004be240
add esp, 4
test al, al
je 0x48ef62
cmp dword [ebp - 0x814], 0xffffffff
je 0x48ef62
push 0xffffffffffffffff
call fcn.00519760
add esp, 4
mov ecx, dword [ebp - 0x814]
xor eax, eax
dec eax
lock cmpxchg dword [0x54b5ec], ecx
je 0x48ee71
push ecx
call fcn.00519760
add esp, 4
mov ecx, dword [0x54b5ec]
mov dword [ebp - 0x814], ecx
jmp 0x48ee71
int3
int3
int3
Function at 0x49ede0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00486f60
mov dword [esi], 0
test eax, eax
je 0x49ee42
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jb 0x49ee28
mov dword [ebp - 0x10], eax
call fcn.0049a530
push dword [esi]
call fcn.004844e0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x49ee3b
mov dword [esi], ebx
mov ebx, eax
call fcn.0049a530
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.0043b3b0
lea ecx, [esi + 0x10]
call fcn.004b9390
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x49f900
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x547008]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea esi, [ebp - 0x20]
push 3
push ecx
push eax
push esi
call fcn.004857a0
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x49fa65
mov esi, dword [ebp - 0x20]
mov dword [ebx], esi
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x800
mov dword [ebp - 0x24], 0
push eax
push 0x533ef4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x49f984
push 0x533f44
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49f992
mov ecx, eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x49f98f
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov edi, 0
mov esi, 0
test ecx, ecx
je 0x49fa07
mov dword [ebp - 0x28], ebx
cmp ecx, 0x15555556
jae 0x49faa2
shl ecx, 2
mov dword [ebp - 0x30], ecx
lea edi, [ecx + ecx*2]
push edi
call fcn.004e82a5
add esp, 4
mov dword [ebp - 0x20], eax
mov esi, eax
add edi, eax
mov dword [ebp - 0x18], edi
xor ebx, ebx
xor edi, edi
mov ecx, esi
add ecx, ebx
je 0x49fa87
mov eax, dword [ebp - 0x24]
push dword [eax + edi]
call fcn.0041f0b0
add edi, 4
add ebx, 0xc
cmp dword [ebp - 0x30], edi
jne 0x49f9dd
mov edi, esi
add edi, ebx
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
lea eax, [ebp - 0x20]
push eax
call fcn.0049f710
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x49fa30
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x49fa65
cmp edi, esi
je 0x49fa5c
add edi, 0xfffffff4
jmp 0x49fa50
push dword [edi]
call fcn.004e82d5
add esp, 4
lea eax, [edi - 0xc]
cmp edi, esi
mov edi, eax
je 0x49fa5c
test edi, edi
je 0x49fa79
cmp byte [edi + 0xb], 0
jns 0x49fa47
jmp 0x49fa3d
push esi
call fcn.004e82d5
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 8
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x44
jmp 0x49fa93
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x28
push str....._third_partylibc_srcinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
lea ecx, [ebp - 0x20]
call fcn.004171a0
int3
Function at 0x4a05b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [0x55be38]
cmp eax, 3
je 0x4a05da
mov ebx, edx
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x2c], edx
jmp 0x4a062a
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
test al, al
jns 0x4a060c
push dword [ebp - 0x30]
call fcn.004e82d5
add esp, 4
cmp byte [ebp - 0x20], 0
jne 0x4a05dc
mov ecx, dword [ebp - 0x34]
inc ecx
movzx eax, byte [0x55be38]
xor eax, 3
mov dword [ebp - 0x28], ebx
cmp ecx, eax
mov ebx, dword [ebp - 0x2c]
jae 0x4a05da
xor eax, eax
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], ecx
lea eax, [ecx*8 + 0x533ed8]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0045dac0
movzx eax, byte [ebp - 0x11]
mov edx, eax
and edx, 0x7f
test al, al
cmovs edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x30], esi
cmovs ecx, esi
test edx, edx
js 0x4a06bf
test ecx, ecx
jne 0x4a0670
test edx, edx
jne 0x4a06d0
cmp ebx, edx
mov esi, edx
cmovb esi, ebx
test edi, edi
jne 0x4a067f
test esi, esi
jne 0x4a06d0
cmp edx, ebx
setbe bl
mov dword [ebp - 0x20], ebx
mov ebx, edx
cmova ebx, dword [ebp - 0x28]
ja 0x4a05fd
test esi, esi
je 0x4a05fd
mov dword [ebp - 0x24], eax
xor ebx, ebx
movzx eax, word [edi + ebx*2]
cmp ax, word [ecx + ebx*2]
jne 0x4a05f0
inc ebx
cmp esi, ebx
jne 0x4a06a0
mov al, 1
mov dword [ebp - 0x20], eax
mov ebx, edx
jmp 0x4a05fa
push str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
push str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
push 0x13a
jmp 0x4a06df
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x13c
push str....._third_partylibc_srcinclude_string_view
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
int3
Function at 0x4a3010
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, edx
mov esi, ecx
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4a3031
mov eax, dword [esi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor eax, eax
test edi, edi
je 0x4a3111
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
js 0x4a3130
push edi
call fcn.004e82a5
add esp, 4
mov ebx, eax
add eax, edi
mov dword [ebp - 0x2c], eax
xor eax, eax
mov ecx, ebx
add ecx, eax
je 0x4a3115
mov byte [ecx], 0
inc eax
cmp edi, eax
jne 0x4a3069
cmp byte [esi + 0xb], 0
jns 0x4a3083
mov esi, dword [esi]
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
xor ecx, ecx
test eax, eax
je 0x4a30e2
lea esi, [ebp - 0x20]
mov dword [esi], ecx
lea eax, [ebp - 0x24]
mov dword [eax], ecx
push esi
push eax
push 0x52cf80
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
setne al
cmp dword [esi], 0x34
setae cl
and cl, al
cmp cl, 1
jne 0x4a30e2
mov eax, dword [ebp - 0x24]
mov esi, ecx
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x30], ecx
mov ecx, esi
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [edx + 0x10], xmm1
movups xmmword [edx], xmm0
test ebx, ebx
je 0x4a30fb
mov eax, dword [ebp - 0x2c]
dec eax
cmp edi, eax
ja 0x4a3138
mov esi, ecx
push ebx
call fcn.004e82d5
add esp, 4
mov ecx, esi
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4a30fd
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x28
push str....._third_partylibc_srcinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
lea ecx, [ebp - 0x1c]
call fcn.004171a0
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x44
jmp 0x4a3121
Function at 0x4a3830
Capabilities:
Get common file path
Get disk size
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x260
mov bl, byte [ebp + 8]
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x258], eax
xor edi, edi
lea esi, [esp + 0x50]
push 0x208
push edi
push esi
call fcn.004ec220
add esp, 0xc
test bl, bl
mov eax, 0x26
mov ecx, 0x1c
cmovne ecx, eax
push esi
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4a3910
xor eax, eax
dec eax
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], eax
push edi
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4a38e9
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 4]
mov bl, 1
cmp dword [esp], eax
sbb ecx, 0
jae 0x4a3943
lea esi, [esp + 8]
mov ecx, esi
push 0xfa
push str.HasEnoughDiskSpace
push 0
call fcn.0045baa0
lea ecx, [esp + 0x44]
push 0x534207
push str.There_is_not_enough_disk_space_to_install_browser
call fcn.004148f0
mov ecx, esi
call fcn.0045bd40
xor ebx, ebx
jmp 0x4a3943
lea esi, [esp + 8]
mov ecx, esi
push 0xf4
push str.HasEnoughDiskSpace
push 0
call fcn.0045baa0
lea ecx, [esp + 0x44]
push 0x5341d5
push str.GetDiskFreeSpaceEx_failed
jmp 0x4a3935
lea esi, [esp + 8]
mov ecx, esi
push 0xee
push str.HasEnoughDiskSpace
push 0
call fcn.0045baa0
lea ecx, [esp + 0x44]
push 0x5341bb
push str.SHGetFolderPath_failed
call fcn.004148f0
mov ecx, esi
call fcn.0045bd40
mov bl, 1
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a5850
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov edx, dword [ebp + 8]
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0xc8], eax
lea esi, [esp + 0x7c]
mov dword [esi], 0xffffffff
mov ecx, esi
call fcn.004a5a10
mov edi, dword [esi]
lea esi, [edi + 1]
cmp esi, 2
jae 0x4a58b8
xor ebx, ebx
cmp esi, 2
jb 0x4a58a0
call fcn.0049a530
push edi
call fcn.004844e0
add esp, 4
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0xc], esi
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x80]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov dword [esi + 0x40], 0xffffffff
lea eax, [esp + 0x78]
mov dword [eax], 0x44
push eax
push esi
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x4a5979
xor ebx, ebx
mov ecx, edi
lea edi, [esp + 0x20]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [esp + 0x10], ecx
mov edx, 2
push edi
call fcn.004a5ae0
add esp, 4
mov edi, dword [edi]
test al, al
je 0x4a594e
cmp dword [esp + 0x24], edi
je 0x4a59d9
xor ebx, ebx
cmp dword [edi], 0
je 0x4a594e
push dword [edi + ebx*8 + 4]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4a594c
inc ebx
cmp ebx, dword [edi]
jb 0x4a5934
xor ebx, ebx
jmp 0x4a594e
mov bl, 1
test edi, edi
mov esi, dword [esp + 0xc]
je 0x4a5970
mov eax, dword [esp + 0x24]
mov ecx, eax
sub ecx, edi
dec eax
cmp ecx, eax
ja 0x4a59f7
push edi
call fcn.004e82d5
add esp, 4
mov edi, dword [esp + 0x10]
jmp 0x4a588d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x14]
push eax
push esi
call fcn.00516ab0
add esp, 8
lea ebx, [esp + 0x20]
mov ecx, ebx
push esi
push 0x61
push str.IsUserAnAdminGroup
push 1
call fcn.0045bec0
lea ecx, [esp + 0x5c]
push 0x534773
push str.CreateWellKnownSid_failed
call fcn.004148f0
mov ecx, ebx
call fcn.0045bf00
cmp byte [esi + 0xb], 0
jns 0x4a59ce
push dword [esp + 0x14]
call fcn.004e82d5
add esp, 4
xor ebx, ebx
mov esi, dword [esp + 0xc]
jmp 0x4a588d
push str.vector___index_out_of_bounds
push 0x52a71f
push 0x601
push str....._third_partylibc_srcinclude_vector
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x44
push str....._third_partylibc_srcinclude__memoryconstruct_at.h
jmp 0x4a59ed
Function at 0x4a7210
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x55be4c]
mov ecx, dword [0x54bb78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a7258
mov esi, dword [0x55be48]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004e8be6
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret
push 0x55be4c
call fcn.004e8347
add esp, 4
cmp dword [0x55be4c], 0xffffffff
jne 0x4a723f
push 0x18
call fcn.004e82a5
add esp, 4
mov esi, eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
lea ecx, [esi + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edi, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0041f0b0
mov ecx, esi
push edi
call fcn.004a87e0
cmp byte [edi + 0xb], 0
jns 0x4a72ba
push dword [ebp - 0x18]
call fcn.004e82d5
add esp, 4
mov ecx, esi
call fcn.004a8880
mov dword [0x55be48], esi
push 0x55be4c
call fcn.004e83bd
add esp, 4
jmp 0x4a723f

Function at 0x4a87e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
mov edx, edi
call fcn.004a7c40
movzx eax, byte [edi + 0xb]
test al, al
js 0x4a881a
mov ecx, eax
and ecx, 0x7f
jmp 0x4a881d
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4a8855
mov dword [ebp - 0x1c], 0
test al, al
jns 0x4a882f
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x4a8852
mov edi, eax
mov ecx, esi
push eax
push dword [ebp - 0x1c]
call fcn.004a8cf0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [ebp - 0xd]
test al, al
jns 0x4a8864
push dword [ebp - 0x18]
call fcn.004e82d5
add esp, 4
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004e8be6
add esp, 0x14
pop esi
pop edi
pop ebp
ret 4