joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, edx
push edi
test esi, esi
je 0x405d10
mov eax, dword [0x50d8b8]
test eax, eax
je 0x405b18
push eax
call fcn.004a8ee9
add esp, 4
mov eax, dword [0x50d8bc]
test eax, eax
je 0x405b2a
push eax
call fcn.004a8ee9
add esp, 4
push 0x4e9acc
push esi
call fcn.004af4e5
mov esi, eax
add esp, 8
test esi, esi
jne 0x405b55
push str.fopen
call fcn.004af7ef
add esp, 4
lea eax, [esi - 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push 0x40
push 0x50fad8
call fcn.004afce7
add esp, 0x10
cmp eax, 1
je 0x405b85
push str.fread_head_
call fcn.004af7ef
add esp, 4
mov eax, 0xffffffeb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x50fad8], 0x2464c42
jne 0x405d04
mov edi, dword [0x50fb14]
mov ecx, 8
mov eax, edi
mul ecx
mov ebx, edx
mov edx, dword [0x50faf0]
cmp edx, eax
jne 0x405d04
mov ecx, dword [0x50faf4]
cmp ecx, ebx
jne 0x405d04
mov eax, dword [0x50fae4]
movsd xmm0, qword [0x50fae8]
mov dword [0x50d894], eax
mov eax, dword [0x50faf8]
mov dword [0x50d8a8], eax
mov eax, dword [0x50fadc]
mov dword [0x50d8ac], eax
mov eax, dword [0x50fae0]
push edi
movsd qword [0x50d898], xmm0
mov dword [0x50d8a0], edx
mov dword [0x50d8a4], ecx
mov dword [0x50d8b0], eax
mov dword [0x50d8b4], edi
call fcn.004a8ede
add esp, 4
mov dword [0x50d8b8], eax
test eax, eax
jne 0x405c2a
mov eax, 0xffffff9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x50d8a8]
shl eax, 3
push eax
call fcn.004a8ede
add esp, 4
mov dword [0x50d8bc], eax
test eax, eax
jne 0x405c50
mov eax, 0xffffff38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [0x50d8b4]
push 1
push dword [0x50d8b8]
call fcn.004afce7
mov ecx, dword [0x50d8b4]
add esp, 0x10
cmp eax, ecx
je 0x405c8a
push str.fread_data_
call fcn.004af7ef
add esp, 4
mov eax, 0xffffffe1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movd xmm1, ecx
sub esp, 8
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
mov byte [0x50d890], 1
movsd xmm0, qword [0x50d898]
addsd xmm1, qword [ecx*8 + 0x4f3670]
mulsd xmm1, qword [0x4f3600]
mulsd xmm1, qword [0x4f3600]
movsd qword [esp], xmm1
push dword [0x50d8a8]
push dword [0x50d8a4]
push dword [0x50d8a0]
sub esp, 8
movsd qword [esp], xmm0
push dword [0x50d894]
push str.____Load_BloomFilter_n_u__p_f__m_llu__k_d___malloc___size_.2fMB_n
call fcn.00405650
add esp, 0x24
push esi
call fcn.004af74b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406050
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0215
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x14], ecx
push 0x2c
mov byte [ebp - 0x10], 0
call fcn.0048d8f9
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov dword [ebx], vtable.C7zMgrArchive.0
push 8
mov dword [ebx + 0x10], 0
call fcn.0048d929
add esp, 8
mov dword [ebx + 0x10], eax
xor ecx, ecx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 3
mov word [eax], cx
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], ecx
mov byte [ebp - 4], 2
mov edx, 0x4f2500
mov dword [ebx + 0xc], ecx
mov esi, 0xc
mov dword [ebx + 8], ecx
mov ecx, 0x4e9840
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x406102
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4060e3
lea esi, [ebx + 8]
mov dword [esi], 0
jmp 0x406196
mov ecx, 0x4e9840
mov edx, 0x4f25a0
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40612d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x406111
lea esi, [ebx + 8]
mov dword [esi], 0
jmp 0x406196
mov ecx, 0x4e9840
mov edx, 0x4f2580
mov esi, 0xc
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40615c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x406140
lea esi, [ebx + 8]
mov dword [esi], 0
jmp 0x406196
mov ecx, 0x4e9840
mov edx, 0x4f24e0
mov esi, 0xc
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40618d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x406170
lea esi, [ebx + 8]
mov edx, esi
call fcn.00454ca0
jmp 0x406196
lea esi, [ebx + 8]
push esi
call fcn.004545f0
mov edx, dword [esi]
test edx, edx
je 0x4061aa
mov ecx, dword [edx]
lea eax, [ebx + 4]
push eax
push 0x4e9880
push edx
call dword [ecx]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4061bb
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4061d8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4061d1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x4061e0
mov edi, dword [edi]
mov eax, dword [ebx]
mov ecx, ebx
push 0
push edi
mov eax, dword [eax + 8]
call eax
test al, al
je 0x406218
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x14], 8
jb 0x4061fb
mov ecx, dword [ecx]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov eax, dword [eax + 0x1c]
call eax
mov ecx, dword [ebp - 0x10]
test al, al
movzx ecx, cl
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406590
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x508164]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp byte [0x50d292], 0
push esi
push edi
mov edi, ecx
jne 0x406618
push 0x4e9cb0
push 0xf3
push 0x4e9b40
push 4
call fcn.00407ee0
push eax
call fcn.00407910
add esp, 0x14
call fcn.00407880
mov esi, eax
mov ecx, esi
call fcn.0043b0a0
cmp edi, 0xffffffff
je 0x406618
push 0x4e9c70
lea edx, [esi + 0x100]
lea ecx, [esp + 0x10]
call fcn.00408890
add esp, 4
lea eax, [esp + 0xc]
cmp dword [esp + 0x20], 8
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0xc]
call fcn.0040c2c0
xor ecx, ecx
cmp byte [0x50d292], cl
sete cl
call fcn.00406240
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
Function at 0x406b90
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0298
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x74
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00407880
mov ecx, eax
call fcn.00438a50
test al, al
je 0x406dbd
push str.GlobalB5E74532_8213_4ed6_BAD4_19D4360216F4
call fcn.00408960
add esp, 4
mov esi, eax
push dword [0x50d294]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test esi, esi
je 0x406dbd
test eax, eax
je 0x406dbd
push 0xffffffffffffffff
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push 0
push eax
push 2
mov dword [ebp - 0x84], esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x406c57
push 0x4e9e14
push 0x19f
push 0x4e9b40
push 4
call fcn.00407ee0
push eax
call fcn.00407910
add esp, 0x14
jmp 0x406dbd
cmp eax, 1
jne 0x406dbd
push 0x4e9e2c
push 0x1a5
push 0x4e9b40
push 4
call fcn.00407ee0
push eax
call fcn.00407910
add esp, 0x14
lea ecx, [ebp - 0x7c]
call fcn.0040eca0
push 1
push 0x4e9980
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004086c0
mov dword [ebp - 0x54], 0
xor ecx, ecx
mov dword [ebp - 0x50], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 0xc
push str.Progress.ini
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004086c0
mov dword [ebp - 0x3c], 0
xor ecx, ecx
mov dword [ebp - 0x38], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x64]
call fcn.0040c2c0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.0040c2c0
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x4c]
push eax
push 0
push str.errcnt
push str.DATA
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
push eax
push 0x4ea21c
lea eax, [ebp - 0x34]
push 0x10
push eax
call fcn.0040c120
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x4c]
add esp, 0x10
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
push str.errcnt
push str.DATA
call esi
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
push 0x4edfb0
push 0x4edfb4
push str.DATA
call esi
cmp byte [0x508ba9], 0
je 0x406db5
lea ecx, [ebp - 0x4c]
call fcn.004509c0
lea ecx, [ebp - 0x4c]
call fcn.0040c2c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x406f00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe0
mov eax, dword [0x508164]
xor eax, esp
mov dword [esp + 0xdc], eax
push 0x80
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4ea21c
lea eax, [esp + 0x60]
push 0x40
push eax
call fcn.0040c120
add esp, 0x10
mov ecx, 0x508be4
push 8
push 0x4e9eb8
call fcn.004086c0
push 5
push str._ppid
mov ecx, 0x508be4
call fcn.004086c0
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406f72
sub eax, edx
mov ecx, 0x508be4
sar eax, 1
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004086c0
lea ecx, [esp]
mov dword [esp + 0x10], 0x44
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 1
push ecx
push 0
push 0
push 0
xor eax, eax
xorps xmm0, xmm0
cmp dword [0x508bf8], 8
push 0
mov word [esp + 0x6a], ax
mov word [esp + 0x58], ax
mov eax, 0x508be4
cmovae eax, dword [0x508be4]
push 0
push 0
push eax
push 0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x6a], xmm0
movlpd qword [esp + 0x72], xmm0
movaps xmmword [esp + 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407027
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4e9ed8
push 0x1e6
push 0x4e9b40
push 4
call fcn.00407ee0
push eax
call fcn.00407910
mov ecx, dword [esp + 0xf0]
add esp, 0x14
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
Function at 0x407c80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0431
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x106c
call fcn.0048e8e0
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x106c], eax
lea esi, [ebx + 0x3c]
push esi
mov dword [ebp - 0x1074], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp eax, dword [ebx]
jg 0x407eb7
cmp byte [ebx + 4], 0
je 0x407e34
mov ecx, ebx
call fcn.004082f0
mov edi, eax
mov dword [ebp - 0x1070], edi
test edi, edi
je 0x407eb7
push 0x4ea06c
push 0
call fcn.004b180c
add esp, 8
cmp byte [ebx + 5], 0
je 0x407ddb
push ecx
lea eax, [ebp - 0x1068]
push eax
lea ecx, [ebp - 0x107c]
call fcn.0040b4e0
mov ecx, eax
call fcn.0040bdd0
push dword [ebp - 0x106c]
lea ecx, [ebp - 0x1064]
mov byte [ebp - 4], 2
call fcn.004081d0
mov edi, eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004096c0
cmp dword [edi + 0x44], 8
lea eax, [edi + 0x30]
jb 0x407d69
mov eax, dword [eax]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x1068]
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push dword [ebx + 0x38]
push edi
mov edi, dword [ebp - 0x1070]
push 0x4ea0b4
push edi
call fcn.0040b430
add esp, 0x20
lea ecx, [ebp - 0x1034]
mov byte [ebp - 4], 4
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0x1064]
push eax
call fcn.0048dbcc
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x1068]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ddb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x18], 0
je 0x407dfb
add ebx, 8
cmp dword [ebx + 0x14], 8
jb 0x407dec
mov ebx, dword [ebx]
push ebx
push 0x4ea0ec
push edi
call fcn.0040b430
add esp, 0xc
mov edx, dword [ebp + 0x18]
lea eax, [ebp + 0x1c]
push eax
push ecx
mov ecx, edi
call fcn.0040b400
push 0x4ea1e4
push edi
call fcn.0040b4c0
push edi
call fcn.004af74b
add esp, 0x14
jmp 0x407eb7
push 0x1000
lea eax, [ebp - 0x101c]
push 0
push eax
call fcn.004a5f00
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x101c]
add esp, 0xc
mov edi, 0x800
test eax, eax
je 0x407e8e
cmp eax, 0x64
jae 0x407e8e
cmp dword [ebx + 0x1c], 8
lea ecx, [ebx + 8]
jb 0x407e6c
mov ecx, dword [ecx]
add eax, eax
mov edx, edi
push eax
push ecx
lea ecx, [ebp - 0x101c]
call fcn.0040b9f0
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x101c]
add esp, 8
sub edi, eax
lea ecx, [ecx + eax*2]
lea eax, [ebp + 0x1c]
push eax
push 0
push dword [ebp + 0x18]
push edi
push ecx
call fcn.00403f90
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x101c]
add esp, 0x14
push eax
call edi
push 0x4ea0f4
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
Function at 0x407ee0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d04a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x50fb1c]
test eax, eax
jne 0x408058
push 0x54
call fcn.0048d8f9
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
lea edi, [esi + 0x20]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov dword [0x50fb1c], 0
mov byte [esi + 5], 1
call fcn.00409200
push str.DebugOut.ini
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00408890
add esp, 4
push str.DebugOut.log
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00408890
mov esi, eax
add esp, 4
cmp edi, esi
je 0x407fe7
mov ecx, edi
call fcn.0040c2c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x5c]
call fcn.0040c2c0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmovae eax, dword [ebp - 0x2c]
push eax
push 4
push str.LEVEL
push str.CONFIG
call esi
mov edi, dword [ebp - 0x60]
cmp dword [ebp - 0x18], 8
mov dword [edi], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 1
push str.FILE
push str.CONFIG
call esi
cmp eax, 1
sete al
mov byte [edi + 4], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x38], eax
call fcn.0040c2c0
lea ecx, [ebp - 0x44]
call fcn.0040c2c0
mov dword [0x50fb1c], edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x409200
Capabilities:
Check if file exists
Create directory
Get common file path
Get startup folder

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d06e3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x288], edi
push 0x208
mov dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push 0
mov dword [ebp - 0x28c], edi
push eax
mov dword [ebp - 0x284], 0
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4092b0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0040beb0
mov dword [ebp - 0x284], 2
push 7
push str.VrvLog
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 1
call fcn.004086c0
mov dword [edi + 0x10], 0
xor ecx, ecx
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x284], 7
call fcn.0040c2c0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x409348
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409366
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40935d
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x280]
call fcn.00409d30
mov esi, eax
push 0x4e9980
mov edx, edi
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.00408890
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.00409e60
mov esi, eax
add esp, 8
cmp edi, esi
je 0x4093d1
mov ecx, edi
call fcn.0040c2c0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x250]
call fcn.0040c2c0
lea ecx, [ebp - 0x268]
call fcn.0040c2c0
lea ecx, [ebp - 0x280]
call fcn.0040c2c0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4093fc
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, edi
jne 0x40941c
cmp dword [edi + 0x14], 8
jb 0x409411
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x409880
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov eax, dword fs:[0x2c]
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x14], 0
mov ecx, dword [eax]
mov eax, dword [0x50fdf8]
cmp eax, dword [ecx + 4]
jle 0x409925
push 0x50fdf8
call fcn.0048de6a
add esp, 4
cmp dword [0x50fdf8], 0xffffffff
jne 0x409925
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x409911
cmp dword [ebp - 0x114], 5
jne 0x409911
cmp dword [ebp - 0x110], 0
sete al
jmp 0x409913
xor al, al
push 0x50fdf8
mov byte [0x50fdfc], al
call fcn.0048de20
add esp, 4
cmp byte [0x50fdfc], 0
mov eax, 0x85
mov ecx, 5
cmovne eax, ecx
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x42a
jne 0x40994c
mov dword [esi + 0x18], 0
cmp edi, 4
je 0x409974
cmp edi, 1
je 0x409974
cmp edi, 2
jne 0x409982
pop edi
mov dword [esi + 0x10], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 0x14
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40ae30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d08b4
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x14]
mov dword [edi + 0xc], 0
mov ecx, esi
mov dword [edi + 0x10], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040a5a0
mov dword [esi], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x40aefb
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
call fcn.0040e030
push eax
mov byte [ebp - 4], 4
call fcn.0040c990
int3