joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088fb
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 0x40891d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004089d9
jmp 0x4089d4
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 0x40893e
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x408940
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x4089c8
jg 0x408953
test esi, esi
je 0x4089c8
test ecx, ecx
jl 0x408995
jg 0x40895d
test eax, eax
je 0x408995
cmp ebx, ecx
jg 0x40896f
jl 0x408967
cmp esi, eax
jae 0x40896f
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.00430720
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 0x40899b
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x4089c8
jg 0x4089a5
test esi, esi
je 0x4089c8
cmp dword [edi + 0x4c], 0
je 0x4089c8
mov ecx, edi
call fcn.00407cd3
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0043f489
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
leave
ret 0xc

Function at 0x408aa8
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 0x408aca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408b7c
jmp 0x408b77
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 0x408aeb
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x408aed
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x408b6b
jg 0x408b00
test esi, esi
je 0x408b6b
test ecx, ecx
jl 0x408b44
jg 0x408b0a
test eax, eax
je 0x408b44
cmp edi, ecx
jg 0x408b1c
jl 0x408b14
cmp esi, eax
jae 0x408b1c
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.00430720
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 0x408b47
mov edx, dword [ebp + 8]
test edi, edi
jl 0x408b6b
jg 0x408b51
test esi, esi
je 0x408b6b
cmp dword [ebx + 0x4c], 0
je 0x408b6b
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0043fa9c
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
leave
ret 0xc
Function at 0x408cac
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47b0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xor esi, esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408d11
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x462f84
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041bf51
leave
ret 4
Function at 0x408e95
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x475c10
push 0x432750
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a1c
call fcn.0041c080
mov eax, dword [0x47b0e4]
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 0x409066
mov ecx, eax
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x408ef5
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x2a30], ecx
cmp ecx, 4
jl 0x409066
mov ebx, 0x104
cmp ecx, ebx
jg 0x409066
mov dword [ebp - 4], esi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [ebp - 4], 0xfffffffe
jmp 0x408f4d
push 0x800
push esi
lea eax, [ebp - 0xa24]
push eax
call fcn.00431220
mov dword [ebp - 0x2a2c], esi
push 0x2000
push esi
lea eax, [ebp - 0x2a24]
push eax
call fcn.00431220
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 0x409066
push 0x208
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.00431220
add esp, 0xc
push dword [ebp - 0x2a28]
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.0040471c
push ebx
lea eax, [ebp - 0x224]
push eax
call fcn.004400aa
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00408d22
mov ecx, eax
mov dword [ebp - 0x2a28], ecx
cmp dword [ebp - 0x2a2c], 0
jbe 0x409066
mov eax, dword [ebp + esi*4 - 0x2a24]
cmp ebx, eax
je 0x40905d
cmp ecx, eax
je 0x40905d
push 0x400
lea ecx, [ebp - 0xa24]
push ecx
push eax
mov ecx, edi
call fcn.00408d9d
test eax, eax
je 0x409057
push 0x400
lea eax, [ebp - 0xa24]
push eax
call fcn.004400aa
push dword [ebp - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0043fee7
add esp, 0x14
test eax, eax
jne 0x409057
push dword [ebp + esi*4 - 0x2a24]
push edi
call fcn.00409401
mov ecx, dword [ebp - 0x2a28]
inc esi
cmp esi, dword [ebp - 0x2a2c]
jb 0x408ff2
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.0041bf51
leave
ret 8
Function at 0x409084
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x475bf0
push 0x432750
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a14
call fcn.0041c080
mov eax, dword [0x47b0e4]
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 0x409240
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4090de
sub ecx, edx
sar ecx, 1
mov edi, 0x104
cmp ecx, edi
ja 0x409240
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 0x409127
mov ebx, 0x800
push ebx
push esi
lea eax, [ebp - 0xa24]
push eax
call fcn.00431220
mov dword [ebp - 0x2a2c], esi
push 0x2000
push esi
lea eax, [ebp - 0x2a24]
push eax
call fcn.00431220
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 0x409240
push 0x208
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.00431220
add esp, 0xc
push dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.0040471c
push edi
lea eax, [ebp - 0x224]
push eax
call fcn.004400aa
pop ecx
pop ecx
mov edi, esi
cmp dword [ebp - 0x2a2c], 0
jbe 0x409240
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
mov ecx, dword [ebp - 0x2a28]
call fcn.00408d9d
test eax, eax
je 0x409233
push ebx
lea eax, [ebp - 0xa24]
push eax
call fcn.004400aa
pop ecx
pop ecx
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409218
test dx, dx
je 0x409214
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409218
add eax, 4
add ecx, 4
test dx, dx
jne 0x4091f2
mov eax, esi
jmp 0x40921d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409233
push dword [ebp + edi*4 - 0x2a24]
push dword [ebp - 0x2a28]
call fcn.00409401
inc edi
cmp edi, dword [ebp - 0x2a2c]
jb 0x4091b9
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.0041bf51
leave
ret 8
Function at 0x40925e
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x848
push 0x475c30
call fcn.0041c0e0
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 0x409390
cmp word [esi], ax
je 0x409390
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x409291
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x409390
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409390
push 0x800
xor eax, eax
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.00431220
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.004093ab
push 0x3c
pop esi
push esi
xor eax, eax
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.00431220
add esp, 0x28
mov dword [ebp - 0x858], esi
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x462fb4
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 0x409359
cmp dword [ebp + 0x1c], 0
je 0x409359
push 0xffffffffffffffff
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x40936e
test esi, esi
je 0x40937e
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x40937e
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x409399
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 0x409401
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 0x40942e
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 0x40b68b
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x47b0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x214], esi
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x40b7ce
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x40b7ce
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00431220
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [edi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x40b7ce
lea eax, [esi + 0x38]
push str.update_
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00409a6a
mov eax, dword [edi]
lea ecx, [ebp - 0x210]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.0040298b
mov esi, dword [ebp - 0x210]
push esi
call ebx
test eax, eax
jne 0x40b7b6
mov eax, dword [ebp - 0x214]
push edi
add eax, 0x38
push 0x46261c
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00409a6a
add esp, 0xc
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0040b654
add esp, 0xc
lea ecx, [ebp - 0x210]
push eax
call fcn.0040b5e7
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004041cf
mov ecx, dword [ebp - 0x218]
lea ecx, [ecx - 0x10]
call fcn.004041cf
mov esi, dword [ebp - 0x210]
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esi - 0x10]
call fcn.004041cf
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf51
leave
ret 4
Function at 0x40b9db
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x47b0e4]
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 0x40ba28
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ba28
lea ecx, [ebp - 0x38]
call fcn.00408c43
push dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
call fcn.00408e95
lea ecx, [ebp - 0x38]
call fcn.00408c4c
jmp 0x40bac9
push edi
xor edi, edi
inc edi
mov dword [esi + 0x3c], edi
call fcn.004117e0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, edi
jne 0x40bac8
push 0xf
pop esi
push 0x48
push str.d:jenkins.jenkinsworkspacehalodeskupdateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x34], bl
call fcn.00405f4b
push 3
push 0x462dc8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov byte [ebp - 0x1c], bl
call fcn.00405f4b
call fcn.004117e0
mov edi, eax
lea ecx, [ebp - 0xd0]
push 0x2b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405063
mov esi, eax
push 0x463334
push esi
call fcn.00405624
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xd0]
call fcn.00405733
lea ecx, [ebp - 0x1c]
call fcn.00405db0
lea ecx, [ebp - 0x34]
call fcn.00405db0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf51
leave
ret

Function at 0x40bd8b
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47b0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call edi
test eax, eax
jne 0x40be6c
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40be6c
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40bde3
push dword [esi]
call edi
test eax, eax
jne 0x40be6c
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00431220
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40be65
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x40be6c
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40be6f
push 4
push ebx
push dword [esi]
jmp 0x40be5d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf51
leave
ret 4
Function at 0x40be97
Capabilities:
Check if file exists

Disassembly:
push esi
push 0x3e8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.0040bad7
mov ecx, esi
call fcn.0040b7df
mov ecx, esi
call fcn.0040b9db
mov ecx, esi
call fcn.0040c132
mov ecx, esi
pop esi
jmp fcn.0040bec9
Function at 0x40bec9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x47b0e4]
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.00431220
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 0x40c01a
xor ebx, ebx
inc ebx
mov dword [edi + 0x3c], ebx
call fcn.004117e0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, ebx
jne 0x40c123
push 0xf
pop esi
push 0x48
xor ebx, ebx
mov dword [ebp - 0x228], esi
push str.d:jenkins.jenkinsworkspacehalodeskupdateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 0x23c], bl
call fcn.00405f4b
push 3
push 0x462dc8
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], esi
mov byte [ebp - 0x224], bl
call fcn.00405f4b
call fcn.004117e0
mov edi, eax
lea ecx, [ebp - 0x2dc]
push 0x51
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405063
mov esi, eax
push str.CUpdatorFunction::StartUpdateFiles_INI
push esi
call fcn.00405624
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2dc]
call fcn.00405733
lea ecx, [ebp - 0x224]
call fcn.00405db0
lea ecx, [ebp - 0x23c]
call fcn.00405db0
jmp 0x40c123
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x240]
call fcn.00402826
lea eax, [edi + 0x38]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
lea ecx, [edi + 4]
call fcn.00409de1
mov ecx, dword [ebp - 0x240]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004041cf
test esi, esi
jne 0x40c123
call fcn.004117e0
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 0x40c120
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0xf
pop esi
push 0x48
push str.d:jenkins.jenkinsworkspacehalodeskupdateupdateupdatorfunction.cpp
mov dword [ebp - 0x210], esi
mov byte [ebp - 0x224], al
call fcn.00405f4b
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x462dc8
mov dword [ebp - 0x228], esi
mov byte [ebp - 0x23c], 0
call fcn.00405f4b
call fcn.004117e0
mov edi, eax
lea ecx, [ebp - 0x2dc]
push 0x58
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00405063
mov esi, eax
push str.CUpdatorFunction::StartUpdateFiles
push esi
call fcn.00405624
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2dc]
call fcn.00405733
lea ecx, [ebp - 0x23c]
call fcn.00405db0
lea ecx, [ebp - 0x224]
call fcn.00405db0
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.0041bf51
leave
ret
Function at 0x410990
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d6aa
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47b0e4]
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.004038e4
mov ecx, eax
test ecx, ecx
je 0x410b54
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.004038e4
mov ecx, eax
test ecx, ecx
je 0x410b5e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.004038e4
mov ecx, eax
test ecx, ecx
je 0x410b68
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 0x410a72
xor ecx, ecx
jmp 0x410a90
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 0x410a80
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040465f
push edi
mov ecx, ebx
call fcn.00410c70
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x410aac
xor ecx, ecx
jmp 0x410ac4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ab4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.0040465f
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00411560
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00410c70
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 0x410b05
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 0x410b3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410b3e
cmp dword [esi + 0x10], 0
je 0x410b35
push dword [edi]
call fcn.00441c66
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.00403106
push 0x80004005
call fcn.00403106
push 0x80004005
call fcn.00403106
int3