joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5137b1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00513954
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x513929
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x513929
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5138d8
jg 0x51380a
test eax, eax
je 0x5138ce
push 1
push 0x1000
call fcn.004e9c30
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x513830
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5138c5
push 0x8000
push ebx
call fcn.005190b3
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x51385c
jg 0x513857
cmp ecx, 0x1000
jb 0x51385c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0051c496
add esp, 0x10
cmp eax, 0xffffffff
je 0x5138a1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x513857
jl 0x513888
test ecx, ecx
jne 0x513849
push dword [ebp - 0xc]
push ebx
call fcn.005190b3
push esi
call fcn.004e9b90
add esp, 0xc
xor edi, edi
jmp 0x51393a
cmp byte [edi + 0x24], 0
je 0x5138b8
cmp dword [edi + 0x20], 5
jne 0x5138b8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5138c3
mov edi, dword [edi + 0x18]
jmp 0x5138c5
xor edi, edi
push esi
call fcn.004e9b90
pop ecx
jmp 0x51393a
test ecx, ecx
jg 0x51389a
jl 0x5138d8
test eax, eax
jae 0x51389a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005181ad
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5138fb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x51389a
jmp 0x513932
push ebx
call fcn.0051721a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x51389a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x51393a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x513937
mov edi, dword [edi + 0x18]
jmp 0x51393a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005181ad
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x516a5c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5cd34c
push esi
call fcn.00521871
pop ecx
pop ecx
test eax, eax
jne 0x516a8a
xor al, al
jmp 0x516b07
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005167ed
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x516ac4
push dword [ebp - 0x210]
call fcn.004e9b90
xor al, al
jmp 0x516b05
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x516aca
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x516aea
push edx
call fcn.005169ad
pop ecx
test al, al
je 0x516ab5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x516af8
mov bl, 1
push dword [ebp - 0x210]
call fcn.004e9b90
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00504b53
leave
ret
Function at 0x518bc2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x607e00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x518c02
cmp byte [ebx], 0xa
jne 0x518c02
or byte [eax + edi + 0x28], 4
jmp 0x518c07
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x518d05
mov al, byte [edx]
cmp al, 0x1a
je 0x518ce7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x518c36
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x518c5b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x518c65
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x518c18
jmp 0x518d05
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x518ce2
cmp dword [ebp - 0xc], 0
je 0x518ce2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x607e00]
test byte [eax + edi + 0x28], 0x48
je 0x518cbc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x518ca7
mov byte [esi], dl
jmp 0x518cb8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x607e00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x518d05
cmp byte [ebp - 1], 0xa
jne 0x518ccb
cmp esi, ebx
jne 0x518ccb
mov byte [esi], 0xa
jmp 0x518d04
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005181ad
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x518d05
mov byte [esi], 0xd
jmp 0x518d04
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x607e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x518d01
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x518d05
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x518d0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x607e00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x518d51
cmp word [esi], dx
jne 0x518d51
or byte [edi + eax + 0x28], 4
jmp 0x518d56
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x518e8f
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x518e6f
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x518d98
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x518dce
cmp eax, edx
jae 0x518dda
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x518d70
jmp 0x518e8f
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x518e6b
cmp dword [ebp - 0x14], 0
je 0x518e6b
mov eax, dword [ebx*4 + 0x607e00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x518e43
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x518e89
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x607e00]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x607e00]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x607e00]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x518e8c
pop ebx
cmp word [ebp - 4], bx
jne 0x518e54
cmp esi, dword [ebp + 0xc]
jne 0x518e54
mov word [esi], bx
jmp 0x518e8c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005181ad
add esp, 0x10
cmp word [ebp - 4], bx
je 0x518e8f
push 0xd
jmp 0x518e88
mov ecx, dword [ebx*4 + 0x607e00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x518e86
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x518e8f
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x51e73b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00504f70
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00516723
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x51e77d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x51e8d9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00529f10
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x607e00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0051820b
mov ecx, dword [esi*4 + 0x607e00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x51e8d2
cmp eax, dword [edi + ecx + 0x24]
jne 0x51e8d2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51e8d2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0051820b
add esp, 0x14
test edx, edx
jl 0x51e8d2
jg 0x51e848
test eax, eax
jb 0x51e8d2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x51e8d2
jl 0x51e862
cmp dword [ebp - 0x1008], eax
ja 0x51e8d2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x51e880
test ebx, ebx
je 0x51e8b9
cmp ecx, edi
jae 0x51e8b9
mov al, byte [ecx]
cmp al, 0xd
jne 0x51e89a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x51e8a6
cmp byte [ecx + 1], 0xa
jne 0x51e8a6
inc ecx
jmp 0x51e8a6
movzx eax, al
movsx eax, byte [eax + 0x603290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x51e880
cmp edx, ebx
jne 0x51e880
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x51e8d7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00504b53
leave
ret

Function at 0x523f26
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ce708
push 0x5ce700
push 0x5ce708
push 0x1e
call fcn.00524482
mov esi, eax
add esp, 0x10
test esi, esi
je 0x523f5a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x523f60
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x523fa4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5ce724
push str.FlsGetValue
push 0x20
call fcn.00524482
mov esi, eax
add esp, 0x10
test esi, esi
je 0x523fdb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x528b02
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x528b4d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00528c78
test al, al
jne 0x528b47
sub edx, 2
cmp edx, edi
jne 0x528b2d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x528b6f
lea eax, [edi + 2]
cmp edx, eax
je 0x528b6f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00528a4e
add esp, 0x10
jmp 0x528c69
push esi
lea ecx, [ebp - 0x255]
call fcn.00528c78
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x528bb2
push dword [ebp - 0x25c]
jmp 0x528b5f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x528bef
cmp word [ebp - 0x226], 0
je 0x528c10
cmp word [ebp - 0x226], ax
jne 0x528bef
cmp word [ebp - 0x224], 0
je 0x528c10
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00528a4e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x528c5c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x528bc9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x528c44
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x528c69
push 0x528ca0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0051fb50
add esp, 0x10
jmp 0x528c39
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00504b53
leave
ret
Function at 0x52a318
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x52a3b5
push ebx
push esi
call fcn.0052a406
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0052a261
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x52a362
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x52a3b4
push edi
push eax
call fcn.00469d40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x52a382
call fcn.004e9b90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x52a3b3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0052a261
add esp, 0x20
test eax, eax
jne 0x52a3a1
push edi
call fcn.004e9b90
jmp 0x52a3a9
push ebx
call fcn.004e9b90
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x52a3b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x52a3c9
pop esi
ret
push ebx
push edi
push esi
call fcn.0052a406
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00469d40
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x52a3f1
push ebx
push esi
push edi
call fcn.00506d50
add esp, 0xc
push 0
call fcn.004e9b90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x52a448
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052a6b1

Function at 0x52eaae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052eab9
Function at 0x53dd80
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov ebx, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0xd8], eax
xor eax, eax
mov dword [esp + 0xd0], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
cmp byte [ebx + 0xb], 0
mov ecx, ebx
jns 0x53ddc6
mov ecx, dword [ebx]
lea edx, [esp + 0xb0]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x53de51
push ebx
call fcn.00464310
add esp, 4
movzx eax, al
xor eax, 5
cmp byte [ebx + 0xb], 0
mov ecx, ebx
jns 0x53ddf3
mov ecx, dword [ebx]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
test eax, eax
je 0x53de63
push 0x3a
push str..._.._chrome_installer_util_delete_after_reboot_helper.cc
call fcn.004e0fc0
add esp, 8
test eax, eax
jle 0x53de71
lea edi, [esp + 8]
mov ecx, edi
push 0xffffffffffffffff
push 0x5e
push str..._.._chrome_installer_util_delete_after_reboot_helper.cc
call fcn.0045d3f0
lea eax, [esp + 0x10]
push 0x18
push str.Scheduled_for_deletion:
push eax
call fcn.005364d0
add esp, 0xc
push ebx
push eax
call fcn.0045dbd0
add esp, 8
mov ecx, edi
call fcn.0045d7d0
jmp 0x53de71
push 1
call fcn.004e0f90
add esp, 4
test al, al
jne 0x53de8e
xor ebx, ebx
jmp 0x53de76
push 2
call fcn.004e0f90
add esp, 4
test al, al
jne 0x53decf
test esi, esi
setne bl
mov ecx, dword [esp + 0xd8]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0055df20
lea esi, [esp + 8]
mov ecx, esi
push eax
push 1
push 0x3f
push str..._.._chrome_installer_util_delete_after_reboot_helper.cc
call fcn.0055e050
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.0045dbd0
add esp, 8
push 0x10
push str._does_not_exist.
push eax
call fcn.005364d0
add esp, 0xc
mov ecx, esi
call fcn.0055e0b0
jmp 0x53de5f
call fcn.0055df20
lea edi, [esp + 8]
mov ecx, edi
push eax
push 2
push 0x4a
push str..._.._chrome_installer_util_delete_after_reboot_helper.cc
call fcn.0055e050
lea eax, [esp + 0x10]
push 0x13
push str.Could_not_schedule
push eax
call fcn.005364d0
add esp, 0xc
push ebx
push eax
call fcn.0045dbd0
add esp, 8
push 0xe
push str._for_deletion.
push eax
call fcn.005364d0
add esp, 0xc
mov ecx, edi
call fcn.0055e0b0
jmp 0x53de71
Function at 0x55c210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 8
call fcn.0050397a
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
xor ecx, ecx
push ecx
push ecx
push eax
push 0x55c260
push ecx
push ecx
call fcn.0051315a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x55c24f
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x55d730
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004e0c80
test al, al
jne 0x55d74e
mov ecx, esi
call fcn.004e0c80
test al, al
je 0x55d753
xor eax, eax
pop esi
pop ebp
ret
pop esi
pop ebp
jmp fcn.005621d0
Function at 0x55dc70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x603024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x614208], 0
je 0x55dca8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x6141f8]
test esi, esi
je 0x55dd42
test byte [0x605ec4], 1
je 0x55dc91
cmp byte [esi + 0xb], 0
jns 0x55dcc7
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x5e7590]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x614208], eax
inc eax
cmp eax, 1
ja 0x55dc91
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.005072d0
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x55dde8
xor ebx, ebx
jmp 0x55dc91
push 0xc
call fcn.0050397a
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.005072d0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
dec edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
lea eax, [ebp - 0x218]
push eax
call fcn.00440fc0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x55dd99
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.004de5a0
cmp eax, edi
je 0x55ddd1
movzx ecx, byte [esi + 0xb]
mov edx, ecx
test cl, cl
jns 0x55ddb4
mov edx, dword [esi + 4]
cmp edx, eax
jbe 0x55de98
mov edx, eax
inc edx
test cl, cl
js 0x55de7d
mov word [esi + eax*2 + 2], 0
mov byte [esi + 0xb], dl
mov ecx, esi
push str.debug.log
call fcn.0044afd0
mov dword [0x6141f8], esi
jmp 0x55dcb6
mov ecx, dword [0x6141f8]
push esi
call fcn.0044a990
mov ecx, dword [0x6141f8]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x55de8e
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x55de20
push 0x5dff6c
call fcn.0044afd0
mov ecx, dword [0x6141f8]
push str.debug.log
call fcn.0044afd0
mov eax, dword [0x6141f8]
cmp byte [eax + 0xb], 0
jns 0x55de37
mov eax, dword [eax]
movaps xmm0, xmmword [0x5e7590]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x614208], eax
inc eax
cmp eax, 1
ja 0x55dc91
mov dword [0x614208], 0
jmp 0x55dd3b
mov ecx, dword [esi]
mov word [ecx + eax*2 + 2], 0
mov dword [esi + 4], edx
jmp 0x55ddd1
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
jmp 0x55de08
mov ecx, esi
call fcn.0055adc0
int3
Function at 0x5618b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x603024]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x170
push str..._.._base_files_file_util_win.cc
push str.DeleteFileAfterReboot
push ebx
call fcn.004e0f50
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.004e70c0
movzx eax, byte [edi + 0xb]
mov ecx, eax
test al, al
jns 0x561916
mov ecx, dword [edi + 4]
cmp ecx, 0x103
jbe 0x561922
xor ebx, ebx
jmp 0x561938
test al, al
jns 0x561928
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
lea ecx, [esp + 0x10]
call fcn.004e7120
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret