joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408692
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4799d8
push 0x433a30
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a1c
call fcn.004144e0
mov eax, dword [0x47f0a8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2a34], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2a28], eax
test eax, eax
je 0x408863
mov ecx, eax
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4086f2
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x2a30], ecx
cmp ecx, 4
jl 0x408863
mov ebx, 0x104
cmp ecx, ebx
jg 0x408863
mov dword [ebp - 4], esi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40874a
push 0x800
push esi
lea eax, [ebp - 0xa24]
push eax
call fcn.004320f0
mov dword [ebp - 0x2a2c], esi
push 0x2000
push esi
lea eax, [ebp - 0x2a24]
push eax
call fcn.004320f0
add esp, 0x18
lea eax, [ebp - 0x2a2c]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x408863
push 0x208
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.004320f0
add esp, 0xc
push dword [ebp - 0x2a28]
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.00403fb4
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.0043badd
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040851f
mov ecx, eax
mov dword [ebp - 0x2a28], ecx
cmp dword [ebp - 0x2a2c], 0
jbe 0x408863
mov eax, dword [ebp + esi*4 - 0x2a24]
cmp ebx, eax
je 0x40885a
cmp ecx, eax
je 0x40885a
push 0x400
lea ecx, [ebp - 0xa24]
push ecx
push eax
mov ecx, edi
call fcn.0040859a
test eax, eax
je 0x408854
push 0x400
lea eax, [ebp - 0xa24]
push eax
call fcn.0043badd
push dword [ebp - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0043b8bd
add esp, 0x14
test eax, eax
jne 0x408854
push dword [ebp + esi*4 - 0x2a24]
push edi
call fcn.00408c0d
mov ecx, dword [ebp - 0x2a28]
inc esi
cmp esi, dword [ebp - 0x2a2c]
jb 0x4087ef
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041439b
leave
ret 8
Function at 0x408881
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4799b8
push 0x433a30
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a14
call fcn.004144e0
mov eax, dword [0x47f0a8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2a28], eax
cmp dword [ebp + 0xc], 0
je 0x408a3d
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4088db
sub ecx, edx
sar ecx, 1
mov edi, 0x104
cmp ecx, edi
ja 0x408a3d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x2a28]
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov dword [ebp - 4], 0xfffffffe
jmp 0x408924
mov ebx, 0x800
push ebx
push esi
lea eax, [ebp - 0xa24]
push eax
call fcn.004320f0
mov dword [ebp - 0x2a2c], esi
push 0x2000
push esi
lea eax, [ebp - 0x2a24]
push eax
call fcn.004320f0
add esp, 0x18
lea eax, [ebp - 0x2a2c]
push eax
push ebx
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x408a3d
push 0x208
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.004320f0
add esp, 0xc
push dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.00403fb4
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.0043badd
pop ecx
pop ecx
mov edi, esi
cmp dword [ebp - 0x2a2c], 0
jbe 0x408a3d
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
mov ecx, dword [ebp - 0x2a28]
call fcn.0040859a
test eax, eax
je 0x408a30
push ebx
lea eax, [ebp - 0xa24]
push eax
call fcn.0043badd
pop ecx
pop ecx
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408a15
test dx, dx
je 0x408a11
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408a15
add eax, 4
add ecx, 4
test dx, dx
jne 0x4089ef
mov eax, esi
jmp 0x408a1a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408a30
push dword [ebp + edi*4 - 0x2a24]
push dword [ebp - 0x2a28]
call fcn.00408c0d
inc edi
cmp edi, dword [ebp - 0x2a2c]
jb 0x4089b6
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041439b
leave
ret 8
Function at 0x408a5b
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x848
push 0x4799f8
call fcn.00414510
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x408b8d
cmp word [esi], ax
je 0x408b8d
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x408a8e
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x408b8d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408b8d
push 0x800
xor eax, eax
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.004320f0
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.00408ba8
push 0x3c
pop esi
push esi
xor eax, eax
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.004320f0
add esp, 0x28
mov dword [ebp - 0x858], esi
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x467e7c
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x408b56
cmp dword [ebp + 0x1c], 0
je 0x408b56
push 0xffffffffffffffff
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x408b6b
test esi, esi
je 0x408b7b
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x408b7b
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x408b96
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x408c0d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x408c3a
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 8
Function at 0x40b215
Capabilities:
Check if file exists
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x424], eax
push esi
push edi
mov eax, dword [ebx]
xor edi, edi
mov dword [ebp - 0x420], ecx
cmp dword [eax - 0xc], edi
je 0x40b3bb
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x40b3bb
call fcn.00402a92
push eax
lea ecx, [ebp - 0x418]
call fcn.00402d6e
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004320f0
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004320f0
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x414]
push eax
call fcn.0043ba70
pop ecx
push edi
mov ecx, ebx
call fcn.0040adb4
movzx eax, ax
push eax
call fcn.0043becf
movzx eax, ax
pop ecx
cmp word [ebp - 0x414], ax
jne 0x40b2e4
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40b333
push edi
mov ecx, ebx
call fcn.0040adb4
movzx eax, ax
push eax
push str._c:.temp
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00408ba8
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x40b333
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00402d97
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
call fcn.0040b586
mov ecx, dword [ebp - 0x41c]
lea ecx, [ecx - 0x10]
call fcn.00403b1f
mov esi, dword [ebp - 0x418]
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40b3af
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b39a
mov ecx, dword [ebp - 0x420]
push esi
call fcn.0040bc34
jmp 0x40b3af
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x418]
push eax
call fcn.0040ad47
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.00403b1f
mov eax, edi
jmp 0x40b3bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041439b
leave
ret 8

Function at 0x40b3ce
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b425
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b425
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40b406
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40b425
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b421
test al, 0x10
je 0x40b421
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40b425
xor eax, eax
jmp 0x40b428
xor eax, eax
inc eax
pop esi
pop ebp
ret 4
Function at 0x40b586
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.004144e0
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [eax]
mov dword [ebp - 0x1108], ecx
cmp dword [edi - 0xc], 0x104
jg 0x40b68f
xor eax, eax
push 0x800
push eax
lea eax, [ebp - 0x1104]
push eax
call fcn.004320f0
push 0x800
xor ecx, ecx
lea eax, [ebp - 0x904]
push ecx
push eax
call fcn.004320f0
push edi
lea eax, [ebp - 0x1104]
push 0x400
push eax
call fcn.0043bf6e
add esp, 0x24
test esi, esi
je 0x40b614
xor eax, eax
cmp word [esi], ax
je 0x40b614
push esi
lea eax, [ebp - 0x1104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x100
xor esi, esi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004320f0
mov edi, dword [ebp - 0x1108]
add esp, 0xc
push 0x80
lea eax, [ebp - 0x104]
mov ecx, edi
push eax
call fcn.0040b9c1
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea eax, [ebp - 0x904]
push 0x400
push eax
call fcn.0043beff
add esp, 0xc
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b6a2
inc esi
cmp esi, 0xa
jl 0x40b631
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041439b
leave
ret 0xc
lea edx, [ebp - 0x904]
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x40b6ad
sub edx, esi
lea eax, [ebp - 0x904]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00403f40
xor eax, eax
inc eax
jmp 0x40b691
Function at 0x40b6d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x38]
cmp dword [eax - 0xc], ebx
je 0x40b71d
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b71d
lea ecx, [ebp - 0x38]
call fcn.00408440
push dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
call fcn.00408692
lea ecx, [ebp - 0x38]
call fcn.00408449
jmp 0x40b7be
push edi
xor edi, edi
inc edi
mov dword [esi + 0x3c], edi
call fcn.00411550
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, edi
jne 0x40b7bd
push 0xf
pop esi
push 0x4f
push str.d:jenkins.jenkinsworkspacepcstorepcstore_updateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x34], bl
call fcn.0040576d
push 3
push 0x467ca0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov byte [ebp - 0x1c], bl
call fcn.0040576d
call fcn.00411550
mov edi, eax
lea ecx, [ebp - 0xd0]
push 0x2b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404886
mov esi, eax
push 0x468238
push esi
call fcn.00404e47
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xd0]
call fcn.00404f56
lea ecx, [ebp - 0x1c]
call fcn.0040562a
lea ecx, [ebp - 0x34]
call fcn.0040562a
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041439b
leave
ret

Function at 0x40badf
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, ecx
test ebx, ebx
je 0x40bbf2
push edi
push 7
pop ecx
lea edi, [ebp - 0x82c]
rep stosd dword es:[edi], eax
push 0x800
stosw word es:[edi], ax
lea eax, [ebp - 0x804]
xor edi, edi
push edi
push eax
call fcn.004320f0
lea edx, [ebp - 0x804]
mov dword [ebp - 0x828], 3
add esp, 0xc
mov ecx, ebx
sub edx, ebx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40bb3c
lea eax, [ebp - 0x804]
mov dword [ebp - 0x824], eax
mov eax, 0x614
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bbee
push ebx
mov ecx, esi
call fcn.0040b3ce
test eax, eax
jne 0x40bbee
call fcn.00402a92
push eax
lea ecx, [ebp - 0x80c]
call fcn.00402d6e
push ebx
lea ecx, [ebp - 0x808]
call fcn.00402d97
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
lea eax, [ebp - 0x808]
push eax
call fcn.0040b215
mov ecx, dword [ebp - 0x808]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00403b1f
push 4
test esi, esi
mov esi, dword [ebp - 0x80c]
push edi
je 0x40bbd9
push esi
jmp 0x40bbda
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00403b1f
mov eax, edi
jmp 0x40bbf1
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041439b
leave
ret 4
Function at 0x40bc02
Capabilities:
Check if file exists

Disassembly:
push esi
push 0xc8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0040b7cc
mov ecx, esi
call fcn.0040ae0f
mov ecx, esi
call fcn.0040b6d0
mov ecx, esi
call fcn.0040beec
mov ecx, esi
pop esi
jmp fcn.0040bc83

Function at 0x40bc34
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40bc7b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bc7b
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40bc6c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40bc7b
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
jmp 0x40bc7e
xor eax, eax
inc eax
pop esi
pop ebp
ret 4
Function at 0x40bc83
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x244], edi
call fcn.004320f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.update_rate.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bdd4
xor ebx, ebx
inc ebx
mov dword [edi + 0x3c], ebx
call fcn.00411550
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, ebx
jne 0x40bedd
push 0xf
pop esi
push 0x4f
xor ebx, ebx
mov dword [ebp - 0x228], esi
push str.d:jenkins.jenkinsworkspacepcstorepcstore_updateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 0x23c], bl
call fcn.0040576d
push 3
push 0x467ca0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], esi
mov byte [ebp - 0x224], bl
call fcn.0040576d
call fcn.00411550
mov edi, eax
lea ecx, [ebp - 0x2dc]
push 0x51
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00404886
mov esi, eax
push str.CUpdatorFunction::StartUpdateFiles_INI
push esi
call fcn.00404e47
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2dc]
call fcn.00404f56
lea ecx, [ebp - 0x224]
call fcn.0040562a
lea ecx, [ebp - 0x23c]
call fcn.0040562a
jmp 0x40bedd
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x240]
call fcn.00402d97
lea eax, [edi + 0x38]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
lea ecx, [edi + 4]
call fcn.00409576
mov ecx, dword [ebp - 0x240]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00403b1f
test esi, esi
jne 0x40bedd
call fcn.00411550
xor ebx, ebx
mov ecx, eax
inc ebx
push ebx
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, ebx
jne 0x40beda
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0xf
pop esi
push 0x4f
push str.d:jenkins.jenkinsworkspacepcstorepcstore_updateupdateupdatorfunction.cpp
mov dword [ebp - 0x210], esi
mov byte [ebp - 0x224], al
call fcn.0040576d
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x467ca0
mov dword [ebp - 0x228], esi
mov byte [ebp - 0x23c], 0
call fcn.0040576d
call fcn.00411550
mov edi, eax
lea ecx, [ebp - 0x2dc]
push 0x58
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00404886
mov esi, eax
push str.CUpdatorFunction::StartUpdateFiles
push esi
call fcn.00404e47
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2dc]
call fcn.00404f56
lea ecx, [ebp - 0x23c]
call fcn.0040562a
lea ecx, [ebp - 0x224]
call fcn.0040562a
mov edi, dword [ebp - 0x244]
mov dword [edi + 0x3c], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041439b
leave
ret
Function at 0x410700
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46237a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47f0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.00402a92
mov ecx, eax
test ecx, ecx
je 0x4108c4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.00402a92
mov ecx, eax
test ecx, ecx
je 0x4108ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.00402a92
mov ecx, eax
test ecx, ecx
je 0x4108d8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x4107e2
xor ecx, ecx
jmp 0x410800
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4107f0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403f40
push edi
mov ecx, ebx
call fcn.004109e0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41081c
xor ecx, ecx
jmp 0x410834
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410824
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00403f40
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.004112d0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.004109e0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410875
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x4108ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4108ae
cmp dword [esi + 0x10], 0
je 0x4108a5
push dword [edi]
call fcn.00440678
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 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 0xc
push 0x80004005
call fcn.00402f6b
push 0x80004005
call fcn.00402f6b
push 0x80004005
call fcn.00402f6b
int3