joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ffd
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0x2c
mov eax, 0x4505bb
call fcn.00417f91
mov esi, ecx
mov dword [ebp - 0x38], esi
lea eax, [esi + 0x40]
mov dword [esi + 0x28], 2
push 0
push dword [eax]
mov dword [ebp - 0x2c], eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
and dword [ebp - 0x24], 0
lea eax, [esi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0x454888
mov dword [ebp - 0x18], 0x4548a0
mov dword [ebp - 0x14], str.NetBridge.dll
mov dword [ebp - 0x28], eax
push 0x4548e4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403b80
mov edi, dword [ebp + esi*4 - 0x1c]
and dword [ebp - 4], 0
push edi
call fcn.004018a3
add esp, 0x10
lea ecx, [ebp - 0x20]
push eax
push edi
call fcn.00403f71
push edi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.00403b80
add esp, 0xc
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404125
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
call fcn.00403b80
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040169a
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00402009
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404125
push str.Utils
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
call fcn.00403b80
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040169a
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00402009
push edi
call fcn.004018a3
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.00403f71
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40412f
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00402009
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00402009
mov eax, dword [ebp - 0x28]
inc esi
cmp esi, 3
jb 0x40404f
mov ecx, dword [ebp - 0x38]
call fcn.004041e1
xor eax, eax
call fcn.00417f3b
ret 4

Function at 0x4041e1
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.writer_update.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00417f15
leave
ret
Function at 0x407745
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x874], ecx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
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 str.update_temp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.00407d61
push 0x454ce0
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.00407d22
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40780c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x407936
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4078e8
mov esi, dword [ebp - 0x86c]
and esi, 0x10
je 0x40789a
mov ecx, 0x454ce8
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407853
test dx, dx
je 0x40784f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407853
add eax, 4
add ecx, 4
test dx, dx
jne 0x40782d
xor eax, eax
jmp 0x407858
sbb eax, eax
or eax, 1
test eax, eax
je 0x4078e8
mov ecx, 0x454cec
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407891
test dx, dx
je 0x40788d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407891
add eax, 4
add ecx, 4
test dx, dx
jne 0x40786b
xor eax, eax
jmp 0x407896
sbb eax, eax
or eax, 1
test eax, eax
je 0x4078e8
test esi, esi
jne 0x4078e8
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x407817
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x870]
call fcn.0040158b
lea ecx, [ebp - 0x870]
push ecx
mov ecx, dword [ebp - 0x874]
call fcn.004079c7
mov ecx, dword [ebp - 0x870]
add ecx, 0xfffffff0
call fcn.00402009
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417f15
leave
ret
Function at 0x4079c7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00418040
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x407a54
push edi
push 7
pop ecx
lea edi, [ebp - 0x2024]
rep stosd dword es:[edi], eax
push 0x2000
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2020], 3
call fcn.0042c1a0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.00433143
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00417f15
leave
ret 4

Function at 0x407a63
Capabilities:
Read .ini file

Disassembly:
push 0x20
mov eax, 0x450a8b
call fcn.00417f91
push ecx
push ecx
mov eax, esp
mov dword [eax], str.config.ini
mov dword [eax + 4], 0xa
call fcn.00408798
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040308a
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.00401cc5
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401501
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
push 0x104
cmovae edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401ee5
push 0x104
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040202d
push edi
push 0x104
push esi
push 0x454b90
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404cdf
mov esi, dword [ebp - 0x2c]
push str.writerUpdate
push esi
call fcn.00407da6
pop ecx
pop ecx
test eax, eax
je 0x407b1c
push str.bigupdate
push esi
call fcn.00407da6
pop ecx
pop ecx
test eax, eax
je 0x407b1c
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.00402009
lea ecx, [ebp - 0x28]
call fcn.00405f3e
mov eax, ebx
call fcn.00417f3b
ret

Function at 0x407b6b
Capabilities:
Read .ini file

Disassembly:
push 0x20
mov eax, 0x450ae8
call fcn.00417f91
call fcn.00407a63
test eax, eax
je 0x407b87
mov al, 1
jmp 0x407c2e
push ecx
push ecx
mov eax, esp
mov dword [eax], str.config.ini
mov dword [eax + 4], 0xa
call fcn.00408798
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040308a
mov dword [ebp - 4], 1
call fcn.00401cc5
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401501
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov ebx, 0x104
mov byte [ebp - 4], 2
cmovae edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push ebx
call fcn.00401ee5
push ebx
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040202d
push edi
push ebx
push esi
push 0x454b90
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404cdf
mov esi, dword [ebp - 0x2c]
push str.UpdateTaskEnd
push esi
call fcn.00407da6
pop ecx
pop ecx
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00402009
lea ecx, [ebp - 0x28]
call fcn.00405f3e
test edi, edi
sete al
call fcn.00417f3b
ret
Function at 0x408578
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push edi
push 0x210
xor edi, edi
push edi
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x108
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 1
push 1
push 0x412790
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], edi
push eax
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0040816d
pop edi
pop esi
test eax, eax
jne 0x4085f3
push str._n_Adjustprivilege:_CreateProcess_fail.__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor al, al
jmp 0x4085f5
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417f15
leave
ret
Function at 0x408601
Capabilities:
Compare security identifiers

Disassembly:
push 0x34
push 0x468ae0
call fcn.004180e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ecx], ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x40864a
cmp dword [ebp - 0x28], ebx
jne 0x408680
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x40874d
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40874d
cmp dword [ebp - 0x28], 0
je 0x40874d
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40874d
cmp dword [ebp - 0x2c], eax
jbe 0x40874d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40874d
push dword [ebp - 0x2c]
call fcn.0043324f
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40874d
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push esi
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40874d
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x40874d
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40874d
cmp dword [ebp - 0x30], 0
je 0x40874d
mov dword [ebp - 0x3c], ebx
cmp ebx, dword [esi]
jae 0x40874d
push dword [ebp - 0x30]
push dword [esi + ebx*8 + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x408737
inc ebx
jmp 0x40871c
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov eax, dword [esi + ebx*8 + 8]
shr eax, 2
and eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0040876e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4088b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
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 0x408925
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040308a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00417f15
leave
ret
Function at 0x408943
Capabilities:
Get file version info

Disassembly:
push 0x20
mov eax, 0x450bc0
call fcn.00417f5d
lea eax, [ebp - 0x14]
xor ebx, ebx
and dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x408ae9
push esi
call fcn.004180c5
mov edi, eax
pop ecx
test edi, edi
je 0x408ae9
mov eax, dword [ebp + 8]
push edi
push esi
push dword [ebp - 0x14]
push dword [eax]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x408ae2
call fcn.00408fde
mov ebx, dword [ebp + 0xc]
test al, al
je 0x408a96
call fcn.00408f5c
test al, al
jne 0x408a96
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408a96
xor esi, esi
test dword [ebp + 8], 0xfffffffc
mov dword [ebp - 0x1c], esi
jbe 0x408a96
and dword [ebp - 4], 0
call fcn.00401cc5
push eax
lea ecx, [ebp - 0x18]
call fcn.00401501
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 1
movzx eax, word [ecx + esi*4 + 2]
push eax
movzx eax, word [ecx + esi*4]
push eax
lea eax, [ebp - 0x18]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.0040425e
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
and dword [ebp - 0x24], 0
add esp, 0x10
and dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x408a5a
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402009
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
inc esi
shr eax, 2
mov dword [ebp - 0x1c], esi
cmp esi, eax
jb 0x4089e5
jmp 0x408a96
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.00402058
push 0x2e
push 0x2c
mov ecx, ebx
call fcn.004095a5
push 0x20
mov ecx, ebx
call fcn.004093b8
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
mov dword [ebp - 0x10], 1
call fcn.00402009
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x408adf
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x2c]
and dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x454380
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408adf
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4543b8
push ebx
call fcn.0040425e
xor ebx, ebx
add esp, 0x18
inc ebx
jmp 0x408ae2
mov ebx, dword [ebp - 0x10]
push edi
call fcn.004180ce
pop ecx
mov al, bl
call fcn.00417f26
ret

Function at 0x409040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.0042c1a0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409090
cmp dword [ebp - 0x114], 6
jb 0x409090
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00417f15
leave
ret
Function at 0x40911e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
push 0x468aa0
call fcn.004180e0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
push 0x200
push ebx
lea eax, [ebp - 0x42c]
push eax
call fcn.0042c1a0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push ebx
lea eax, [ebp - 0x42c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409204
mov dword [ebp - 0x438], ebx
mov edi, 0x210
push edi
push ebx
lea eax, [ebp - 0x22c]
push eax
call fcn.0042c1a0
add esp, 0xc
mov dword [ebp - 0x434], edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push ebx
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409204
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x10], eax
jle 0x409204
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040922a
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40a8f3
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450e63
mov eax, dword fs:[0]
push eax
mov eax, 0x116c
call fcn.00418040
mov eax, dword [0x46d0e4]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x40aaa7
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x40aaa7
test esi, esi
je 0x40aaa7
push esi
call ebx
test eax, eax
je 0x40a95a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1000
xor ebx, ebx
lea eax, [ebp - 0x1010]
push ebx
push eax
call fcn.0042c1a0
add esp, 0xc
lea ecx, [ebp - 0x1178]
push 1
push 0x40
push 1
push edi
call fcn.0040a269
push 1
push 0x40
push 2
push esi
lea ecx, [ebp - 0x10c0]
mov dword [ebp - 4], ebx
call fcn.0040a380
mov eax, dword [ebp - 0x1178]
lea ecx, [ebp - 0x116c]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx], ebx
jne 0x40aa7b
mov esi, 0x4554f0
mov eax, dword [ebp - 0x10c0]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x10b4], ebx
jne 0x40aa7b
test byte [ecx], 1
jne 0x40aa7b
push ebx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1178]
call fcn.0040b0fe
lea eax, [ebp - 0x1010]
push str.check
push eax
call fcn.0042d770
pop ecx
pop ecx
test eax, eax
je 0x40aa2d
lea eax, [ebp - 0x1010]
push str._trate_
push eax
call fcn.0042d770
pop ecx
pop ecx
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aa24
jmp 0x40aa3d
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aa36
push ebx
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x10c0]
call fcn.0040b9af
push ebx
push 2
push esi
lea ecx, [ebp - 0x10c0]
call fcn.0040b9af
mov eax, dword [ebp - 0x1178]
lea ecx, [ebp - 0x116c]
mov eax, dword [eax + 4]
add ecx, eax
cmp dword [ecx], ebx
je 0x40a9ba
lea ecx, [ebp - 0x1178]
call fcn.0040aeff
lea ecx, [ebp - 0x10c0]
call fcn.0040af31
lea ecx, [ebp - 0x10c0]
call fcn.0040a71d
lea ecx, [ebp - 0x1178]
call fcn.0040a673
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.00417f15
leave
ret
Function at 0x40aac1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40ab45
cmp byte [esi + 0x3d], 0
je 0x40ab45
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40ab17
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40ab1b
sub eax, 1
je 0x40ab1f
dec eax
sub eax, 1
je 0x40ab45
xor al, al
jmp 0x40ab47
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ab3c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00434454
add esp, 0x10
cmp edi, eax
jne 0x40ab17
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40ab47
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00417f15
leave
ret

Function at 0x40b381
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46d0e4]
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 0x40b3a7
xor eax, eax
jmp 0x40b46b
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b3d0
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40b3d0
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 0x40b46b
cmp dword [esi + 0x4c], 0
je 0x40b469
mov ecx, esi
call fcn.0040ae13
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40b3fc
push dword [esi + 0x4c]
push eax
call fcn.0040a04c
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40b469
mov byte [ebp - 0x28], al
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
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 edx
test eax, eax
js 0x40b469
cmp eax, 1
jle 0x40b438
cmp eax, 3
jne 0x40b469
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40b3ee
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x40b45b
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00434454
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x40b469
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x40b46b
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417f15
leave
ret 4