joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b6f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab500
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4e23d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0040a770
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b755
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x2c]
call fcn.00411730
mov ecx, esi
call fcn.00407060
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.004074f0
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.00407220
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.00408ab0
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.004091c0
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.00409480
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.00406e30
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.00408690
cmp byte [esi + 8], 0
je 0x40b8cf
cmp byte [esi], 0
jne 0x40b8cf
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0xffffffff
push eax
push str.UEFISecureBootEnabled
push str.SYSTEMCurrentControlSetControlSecureBootState
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043d140
xor eax, eax
mov dword [ebp - 0x30], 0
add esp, 0x10
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
jne 0x40b834
push 9
lea edi, [eax + 1]
push str.Supported
jmp 0x40b84d
cmp eax, 1
jne 0x40b844
push 7
mov edi, eax
push str.Enabled
jmp 0x40b84d
push 0x17
xor edi, edi
push str.Disabled___Not_Detected
lea ecx, [ebp - 0x40]
call fcn.0040db90
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00404dd0
push edi
push 9
mov ecx, esi
call fcn.0040b3e0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40b8ab
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b8a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b935
push edx
push ecx
call fcn.0045bfb6
add esp, 8
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.004097a0
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.00408f30
cmp byte [esi], 0
jne 0x40b8cf
mov ecx, esi
call fcn.004076f0
lea ecx, [esi + 0x2c]
call fcn.00411880
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40b919
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b90f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b93a
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret
call fcn.004844a9
call fcn.004844a9
int3
Function at 0x40bdd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp + 8], 0
mov dword [esi + 0x28], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 8], al
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x40c030
push 0
push 0
mov byte [esi], 0
call fcn.0048e1e1
add esp, 0x18
mov dword [esi + 0x24], eax
mov al, 1
pop esi
pop ebp
ret 8

Function at 0x40c060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c0b9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c0b9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40c0aa
cmp esi, edx
jae 0x40c0b9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40c098
cmp esi, edx
jae 0x40c0b9
cmp word [esi], 0
je 0x40c0b9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40c1d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e23d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40c271
cmp byte [esi + 0x3d], 0
je 0x40c271
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40c227
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40c239
sub eax, 1
je 0x40c23d
sub eax, 2
je 0x40c271
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40c25a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048dc1e
add esp, 0x10
cmp edi, eax
jne 0x40c227
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045c263
mov esp, ebp
pop ebp
ret
Function at 0x40ccd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab620
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4e23d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0043d0d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40cd7b
push 1
mov dword [ebp - 4], 0
call fcn.004341c2
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ee60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4e23d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40ee90
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40eecc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40eecc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40efb1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40eef4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40ef27
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0048d33b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40efb1
cmp eax, 1
jle 0x40ef84
cmp eax, 3
jne 0x40efb1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00403820
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40efa1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048dc1e
add esp, 0x10
cmp edi, eax
jne 0x40efb1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40eeb7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c263
mov esp, ebp
pop ebp
ret 4
Function at 0x4100e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x410104
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004101d0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x410125
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x410127
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x4101af
jg 0x41013a
test esi, esi
je 0x4101af
test ecx, ecx
jl 0x41017c
jg 0x410144
test eax, eax
je 0x41017c
cmp ebx, ecx
jg 0x410156
jl 0x41014e
cmp esi, eax
jae 0x410156
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004808a0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x410182
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x4101af
jg 0x41018c
test esi, esi
je 0x4101af
cmp dword [edi + 0x4c], 0
je 0x4101af
mov ecx, edi
call fcn.0040d4c0
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0048d60b
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4103a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410460
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4103c5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4103c7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x410444
jg 0x4103da
test esi, esi
je 0x410444
test ecx, ecx
jl 0x41041e
jg 0x4103e4
test eax, eax
je 0x41041e
cmp edi, ecx
jg 0x4103f6
jl 0x4103ee
cmp esi, eax
jae 0x4103f6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004808a0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x410421
mov edx, dword [ebp + 8]
test edi, edi
jl 0x410444
jg 0x41042b
test esi, esi
je 0x410444
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x410444
push eax
push esi
push 1
push edx
call fcn.0048dc1e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411730
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab940
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e23d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x411773
cmp eax, 0x80010106
jne 0x411854
push 0
push 0
push 0
push 3
push 4
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ebx, [edi + 0x10]
push ebx
push 0x4bf300
push 1
push 0
push 0x4bf2f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
push str.ROOTCIMV2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x411866
mov ecx, dword [ebx]
lea edx, [edi + 8]
push edx
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push esi
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edx
call dword [eax + 0xc]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str.rootcimv2SecurityMicrosoftTPM
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x411870
mov ecx, dword [ebx]
add edi, 0xc
push edi
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push esi
push ecx
mov dword [ebp - 4], 1
call dword [eax + 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [eax]
call esi
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [edi]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00406e10
push 0x8007000e
call fcn.00406e10
int3

Function at 0x412470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e23d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push 0x208
push 0
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004813a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4b6708
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00445630
lea eax, [ebp - 0x20c]
add esp, 4
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4124e0
sub eax, edx
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ba60
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0045c263
mov esp, ebp
pop ebp
ret 4
Function at 0x412680
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0045c710
mov eax, dword [0x4e23d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4126dc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x4127b6
cmp dword [ebp + 0x10], 0
jle 0x4127b6
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.004813a0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x100c], eax
and ecx, 0x80000fff
jns 0x41272b
dec ecx
or ecx, 0xfffff000
inc ecx
xor esi, esi
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x412787
nop
push 0x1000
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.004808a0
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4127b6
inc esi
add edi, 0x1000
cmp esi, dword [ebp - 0x100c]
jl 0x412740
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x4127b6
push ecx
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.004808a0
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c263
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b800
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac970
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e23d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x10]
push eax
call fcn.0041d590
mov ecx, eax
call fcn.00412450
push str.Win11Assisttant.exe
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.0041a810
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b864
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x120]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x41b9b1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x41b9b1
call fcn.0040b110
mov ecx, eax
test ecx, ecx
je 0x41b9e6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [edi + 0x120]
lea eax, [ebp - 0x14]
push str._s_t_d
push eax
call fcn.0040a940
mov ecx, dword [edi + 0x10c]
add esp, 0x10
test ecx, ecx
je 0x41b8e5
mov eax, dword [ecx]
push 0
call dword [eax]
mov ecx, dword [edi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [edi + 0x10c], 0
call fcn.0040b080
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41b919
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x41b91b
mov edx, dword [esi]
mov ecx, esi
push 0
push str.ungzip
call dword [edx + 0x30]
mov eax, dword [esi]
mov ecx, esi
push 0
push str.gzip
call dword [eax + 0x30]
jmp 0x41b91b
xor esi, esi
mov dword [edi + 0x10c], esi
test esi, esi
mov esi, dword [ebp - 0x14]
je 0x41b98f
push 0
push 0x7530
push 0x3ea
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 1
push 0
push str.update_down_start
call fcn.0041d500
mov ecx, eax
call fcn.0045d650
mov ecx, dword [edi + 0x10c]
lea eax, [edi + 0x74]
push eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [edi + 0x10c]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [edi + 0x10c]
push esi
push 0
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x118]
call fcn.0041a5f0
mov edi, 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41b9b3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41b9b3
xor edi, edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41b9d2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406e10
int3
Function at 0x422700
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad5cb
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4e23d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0xc], 0
setne byte [ebp - 0x44]
call fcn.0043bfd0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x42288a
push 0x66
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srcmain_wnd.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0040daa0
push 3
push 0x4b5b84
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040daa0
mov byte [ebp - 4], 1
call fcn.0043bfd0
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0xc1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405060
mov esi, eax
push str.Web_call_OnStartCheck__is_update_check:
push esi
mov byte [ebp - 4], 2
call fcn.00406390
add esp, 8
mov ecx, esi
push dword [ebp - 0x44]
call fcn.0041a660
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.00406570
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x42282f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x422825
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4228be
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x422878
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42286e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4228c3
push edx
push ecx
call fcn.0045bfb6
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push dword [ebp - 0x44]
lea ecx, [ebx + 0xc4]
push dword [ebx + 4]
call fcn.0040bdd0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045c263
mov esp, ebp
pop ebp
ret 0x10
call fcn.004844a9
call fcn.004844a9
int3