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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x116c
call fcn.0041c070
mov eax, dword [0x47c0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x407989
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x407988
test esi, esi
je 0x407988
push esi
call ebx
test eax, eax
je 0x407869
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1000
xor ebx, ebx
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.004317b0
add esp, 0xc
lea ecx, [ebp - 0x10bc]
push 1
push 0x40
push 1
push edi
call fcn.004072ec
push 1
push 0x40
push 2
push esi
lea ecx, [ebp - 0x116c]
call fcn.004073c6
jmp 0x407943
mov eax, dword [ebp - 0x116c]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x1160], ebx
jne 0x40795c
test byte [ecx], 1
jne 0x40795c
push ebx
push 0x1000
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x10bc]
call fcn.00407fb9
lea eax, [ebp - 0x1004]
push str.check
push eax
call fcn.00432970
pop ecx
pop ecx
test eax, eax
je 0x40790a
lea eax, [ebp - 0x1004]
push str._trate_
push eax
call fcn.00432970
pop ecx
pop ecx
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407913
sub ecx, edx
lea eax, [ebp - 0x1004]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x116c]
call fcn.00408828
push ebx
push 2
push 0x463e38
lea ecx, [ebp - 0x116c]
call fcn.00408828
mov eax, dword [ebp - 0x10bc]
lea ecx, [ebp - 0x10b0]
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx], ebx
je 0x4078a9
lea ecx, [ebp - 0x10bc]
call fcn.00407dba
lea ecx, [ebp - 0x116c]
call fcn.00407dec
lea ecx, [ebp - 0x116c]
call fcn.00407685
lea ecx, [ebp - 0x10bc]
call fcn.0040763f
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bf41
leave
ret

Function at 0x407997
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47c0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x407a19
cmp byte [esi + 0x3d], 0
je 0x407a19
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4079eb
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 0x4079ef
sub eax, 1
je 0x4079f3
dec eax
sub eax, 1
je 0x407a19
xor al, al
jmp 0x407a1b
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407a10
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044002c
add esp, 0x10
cmp edi, eax
jne 0x4079eb
cmp byte [esi + 0x3d], 0
sete al
jmp 0x407a1b
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041bf41
leave
ret
Function at 0x408213
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x47c0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x408239
xor eax, eax
jmp 0x4082fb
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x408262
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x408262
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4082fb
cmp dword [esi + 0x4c], 0
je 0x4082f9
mov ecx, esi
call fcn.00407cce
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40828e
push dword [esi + 0x4c]
push eax
call fcn.004070f9
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x4082f9
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
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 0x4082f9
cmp eax, 1
jle 0x4082c8
cmp eax, 3
jne 0x4082f9
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x408280
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x4082eb
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0044002c
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x4082f9
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x4082fb
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf41
leave
ret 4
Function at 0x4088f6
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 0x408918
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004089d4
jmp 0x4089cf
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 0x408939
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40893b
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x4089c3
jg 0x40894e
test esi, esi
je 0x4089c3
test ecx, ecx
jl 0x408990
jg 0x408958
test eax, eax
je 0x408990
cmp ebx, ecx
jg 0x40896a
jl 0x408962
cmp esi, eax
jae 0x40896a
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.00430cb0
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 0x408996
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x4089c3
jg 0x4089a0
test esi, esi
je 0x4089c3
cmp dword [edi + 0x4c], 0
je 0x4089c3
mov ecx, edi
call fcn.00407cce
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0043fa19
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 0x408aa3
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 0x408ac5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408b77
jmp 0x408b72
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 0x408ae6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x408ae8
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x408b66
jg 0x408afb
test esi, esi
je 0x408b66
test ecx, ecx
jl 0x408b3f
jg 0x408b05
test eax, eax
je 0x408b3f
cmp edi, ecx
jg 0x408b17
jl 0x408b0f
cmp esi, eax
jae 0x408b17
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.00430cb0
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 0x408b42
mov edx, dword [ebp + 8]
test edi, edi
jl 0x408b66
jg 0x408b4c
test esi, esi
je 0x408b66
cmp dword [ebx + 0x4c], 0
je 0x408b66
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.0044002c
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 0x408ca7
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47c0e4]
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 0x408d0c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x463e80
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.0041bf41
leave
ret 4
Function at 0x408e90
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x476bd0
push 0x432ce0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a1c
call fcn.0041c070
mov eax, dword [0x47c0e4]
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 0x409061
mov ecx, eax
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x408ef0
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x2a30], ecx
cmp ecx, 4
jl 0x409061
mov ebx, 0x104
cmp ecx, ebx
jg 0x409061
mov dword [ebp - 4], esi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [ebp - 4], 0xfffffffe
jmp 0x408f48
push 0x800
push esi
lea eax, [ebp - 0xa24]
push eax
call fcn.004317b0
mov dword [ebp - 0x2a2c], esi
push 0x2000
push esi
lea eax, [ebp - 0x2a24]
push eax
call fcn.004317b0
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 0x409061
push 0x208
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.004317b0
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.0044063a
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00408d1d
mov ecx, eax
mov dword [ebp - 0x2a28], ecx
cmp dword [ebp - 0x2a2c], 0
jbe 0x409061
mov eax, dword [ebp + esi*4 - 0x2a24]
cmp ebx, eax
je 0x409058
cmp ecx, eax
je 0x409058
push 0x400
lea ecx, [ebp - 0xa24]
push ecx
push eax
mov ecx, edi
call fcn.00408d98
test eax, eax
je 0x409052
push 0x400
lea eax, [ebp - 0xa24]
push eax
call fcn.0044063a
push dword [ebp - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00440477
add esp, 0x14
test eax, eax
jne 0x409052
push dword [ebp + esi*4 - 0x2a24]
push edi
call fcn.004093fc
mov ecx, dword [ebp - 0x2a28]
inc esi
cmp esi, dword [ebp - 0x2a2c]
jb 0x408fed
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.0041bf41
leave
ret 8
Function at 0x40907f
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x476bb0
push 0x432ce0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a14
call fcn.0041c070
mov eax, dword [0x47c0e4]
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 0x40923b
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + 2]
xor esi, esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4090d9
sub ecx, edx
sar ecx, 1
mov edi, 0x104
cmp ecx, edi
ja 0x40923b
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 0x409122
mov ebx, 0x800
push ebx
push esi
lea eax, [ebp - 0xa24]
push eax
call fcn.004317b0
mov dword [ebp - 0x2a2c], esi
push 0x2000
push esi
lea eax, [ebp - 0x2a24]
push eax
call fcn.004317b0
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 0x40923b
push 0x208
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.004317b0
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.0044063a
pop ecx
pop ecx
mov edi, esi
cmp dword [ebp - 0x2a2c], 0
jbe 0x40923b
mov ebx, 0x400
push ebx
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
mov ecx, dword [ebp - 0x2a28]
call fcn.00408d98
test eax, eax
je 0x40922e
push ebx
lea eax, [ebp - 0xa24]
push eax
call fcn.0044063a
pop ecx
pop ecx
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409213
test dx, dx
je 0x40920f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409213
add eax, 4
add ecx, 4
test dx, dx
jne 0x4091ed
mov eax, esi
jmp 0x409218
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40922e
push dword [ebp + edi*4 - 0x2a24]
push dword [ebp - 0x2a28]
call fcn.004093fc
inc edi
cmp edi, dword [ebp - 0x2a2c]
jb 0x4091b4
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.0041bf41
leave
ret 8
Function at 0x409259
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x848
push 0x476bf0
call fcn.0041c0d0
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 0x40938b
cmp word [esi], ax
je 0x40938b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x40928c
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x40938b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40938b
push 0x800
xor eax, eax
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.004317b0
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.004093a6
push 0x3c
pop esi
push esi
xor eax, eax
push eax
lea eax, [ebp - 0x858]
push eax
call fcn.004317b0
add esp, 0x28
mov dword [ebp - 0x858], esi
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x463eb0
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 0x409354
cmp dword [ebp + 0x1c], 0
je 0x409354
push 0xffffffffffffffff
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x409369
test esi, esi
je 0x409379
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x409379
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x409394
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 0x4093fc
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 0x409429
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 0x40b686
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x47c0e4]
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 0x40b7c9
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x40b7c9
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004317b0
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 0x40b7c9
lea eax, [esi + 0x38]
push str.update_
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00409a65
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 0x40b7b1
mov eax, dword [ebp - 0x214]
push edi
add eax, 0x38
push 0x46361c
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00409a65
add esp, 0xc
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0040b64f
add esp, 0xc
lea ecx, [ebp - 0x210]
push eax
call fcn.0040b5e2
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.0041bf41
leave
ret 4
Function at 0x40b9d6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x47c0e4]
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 0x40ba23
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ba23
lea ecx, [ebp - 0x38]
call fcn.00408c3e
push dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
call fcn.00408e90
lea ecx, [ebp - 0x38]
call fcn.00408c47
jmp 0x40bac4
push edi
xor edi, edi
inc edi
mov dword [esi + 0x3c], edi
call fcn.004117d0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, edi
jne 0x40bac3
push 0xf
pop esi
push 0x5b
push str.d:jenkins.jenkinsworkspacemgame_adblock_adblockmaster_updateupdateupdatorfunction.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 0x463cc4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov byte [ebp - 0x1c], bl
call fcn.00405f4b
call fcn.004117d0
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 0x464224
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.0041bf41
leave
ret

Function at 0x40bd86
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 [0x47c0e4]
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 0x40be67
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40be67
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40bdde
push dword [esi]
call edi
test eax, eax
jne 0x40be67
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004317b0
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 0x40be60
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x40be67
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40be6a
push 4
push ebx
push dword [esi]
jmp 0x40be58
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf41
leave
ret 4
Function at 0x40be92
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.0040bad2
mov ecx, esi
call fcn.0040b7da
mov ecx, esi
call fcn.0040b9d6
mov ecx, esi
call fcn.0040c12d
mov ecx, esi
pop esi
jmp fcn.0040bec4
Function at 0x410980
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dc5a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c0e4]
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 0x410b44
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 0x410b4e
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 0x410b58
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 0x410a62
xor ecx, ecx
jmp 0x410a80
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 0x410a70
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.00410c60
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x410a9c
xor ecx, ecx
jmp 0x410ab4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410aa4
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.00411550
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.00410c60
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 0x410af5
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 0x410b2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410b2e
cmp dword [esi + 0x10], 0
je 0x410b25
push dword [edi]
call fcn.004421f6
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