joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511f56
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x55d198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004d1637
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004305cd
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51210a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00430994
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x408b10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00442814
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x559f1c
push eax
call fcn.004429fb
push edi
push esi
call fcn.004306d0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret 4
Function at 0x40a510
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51229e
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x55d198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x40a55c
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
call dword [eax]
mov dword [ebp - 0x14], eax
push edi
lea ecx, [ebp - 0x38]
call fcn.0040a840
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40a584
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x40a595
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
movaps xmm0, xmm3
push esi
mov esi, ecx
mov dword [ebp - 0x14], eax
push edi
mov edi, dword [ebp + 8]
movsd qword [ebp - 0x10], xmm0
mov eax, dword [esi]
mov dword [ebp - 4], edi
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x40b1ef
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 4]
push edx
call dword [eax + 8]
cmp edi, 0x3e9
jne 0x40b17d
mov ecx, dword [esi]
add ecx, 0x3c
cmp dword [ecx + 0x14], 8
jb 0x40b164
mov ecx, dword [ecx]
call fcn.00421300
mov eax, dword [esi]
mov dword [eax + 0x98], 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x3ea
jne 0x40b199
mov eax, dword [esi]
mov dword [eax + 0x98], 3
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x3eb
jne 0x40b1bf
mov eax, dword [esi]
mov dword [eax + 0x98], 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 8]
call fcn.0040bb70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x3ec
jne 0x40b1e7
mov eax, dword [esi]
mov dword [eax + 0x98], 5
mov eax, dword [esi]
add eax, 0x54
cmp dword [eax + 0x14], 8
jb 0x40b1e0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00430251
int3

Function at 0x40b2d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
movaps xmm0, xmm2
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 8]
movsd qword [ebp - 0xc], xmm0
mov eax, dword [esi]
mov dword [ebp - 4], edi
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x40b38d
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 4]
push edx
call dword [eax + 8]
cmp edi, 0x7d1
jne 0x40b32b
mov eax, dword [esi]
pop edi
pop esi
mov dword [eax + 0x98], 0xa
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x7d2
jne 0x40b347
mov eax, dword [esi]
pop edi
pop esi
mov dword [eax + 0x98], 0xb
mov esp, ebp
pop ebp
ret 8
cmp edi, 0x7d3
jne 0x40b35d
mov eax, dword [esi]
mov dword [eax + 0x98], 0xc
jmp 0x40b371
cmp edi, 0x7d4
jne 0x40b385
mov eax, dword [esi]
mov dword [eax + 0x98], 0xd
mov eax, dword [esi]
add eax, 0x54
cmp dword [eax + 0x14], 8
jb 0x40b37e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.00430251
int3
Function at 0x40bb70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5125a5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x55d198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040bcd0
mov ebx, eax
lea esi, [edi + 0x58]
cmp esi, ebx
je 0x40bbe6
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40bbbf
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403a50
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40bbd7
mov eax, dword [esi]
jmp 0x40bbd9
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004032c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40bc02
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00403a50
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x40bc4e
cmp dword [esi + 4], 0
je 0x40bc35
mov eax, dword [esi + 4]
test eax, eax
je 0x40bc35
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0xffffffff
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x40bc4e
mov ecx, esi
call fcn.00422d50
push 0x50
push esi
call fcn.004d1b2d
add esp, 8
push 0x50
call fcn.004d1637
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 1
call fcn.00444b40
sub esp, 0x1c
mov ecx, 0x40d5c0
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x40bc93
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____cdecl___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x40d5c0
mov dword [eax + 0x24], eax
push str.ABDEF
push edi
mov ecx, esi
call fcn.00422910
mov dword [edi + 0x7c], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x40bcb1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
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 0x40ef60
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5128e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x55d198]
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 + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40efb1
mov eax, dword [esi]
jmp 0x40efb3
mov eax, esi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x40efd4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40efc5
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403800
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
mov word [esi + 0x18], ax
cmp word [edi], ax
jne 0x40f004
xor ecx, ecx
jmp 0x40f01f
mov ecx, edi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f010
sub ecx, ebx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x18]
call fcn.00403800
mov eax, dword [ebp + 0x14]
movsd xmm0, qword [0x548488]
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x38], 0x4053d0
movsd qword [esi + 0x40], xmm0
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x4c], 0xffffffff
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x70], 0xf
mov dword [esi + 0x6c], 0
mov byte [esi + 0x5c], 0
mov dword [esi + 0x88], 7
mov dword [esi + 0x84], 0
mov word [esi + 0x74], ax
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 0x10
Function at 0x410a80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa7c
mov eax, dword [0x55d198]
xor eax, esp
mov dword [esp + 0xa78], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004182d0
push 0x410c30
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0
lea ecx, [esp + 0x24]
call fcn.00403d40
mov edx, eax
lea ecx, [esp + 0xc]
call fcn.00424180
add esp, 4
lea eax, [esp + 8]
mov ecx, 0x562dbc
push 0xffffffffffffffff
push 0
push eax
call fcn.00409b90
mov eax, dword [esp + 0x1c]
cmp eax, 0x10
jb 0x410af2
inc eax
lea ecx, [esp + 8]
push eax
push dword [esp + 0xc]
call fcn.00409eb0
mov eax, dword [esp + 0x34]
cmp eax, 8
jb 0x410b0a
inc eax
lea ecx, [esp + 0x20]
push eax
push dword [esp + 0x24]
call fcn.00403a50
call fcn.004179e0
cmp dword [0x562da0], 0
jne 0x410b9f
cmp dword [0x562d9c], 8
mov eax, 0x562d88
cmovae eax, dword [0x562d88]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x562da0], eax
test eax, eax
je 0x410b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410b7e
push dword [0x562da0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x562da0], 0
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xa78]
xor ecx, esp
call fcn.004d1626
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x562da0], 0
jne 0x410b9f
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xa78]
xor ecx, esp
call fcn.004d1626
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 0x562db8
call fcn.0042a420
mov ecx, esi
call fcn.00410c40
push 0xa3c
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00444b40
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.00410e50
push 0
push Ordinal_1
push Ordinal_1
push Ordinal_1
push Ordinal_1
push 0
push 0x10cf0000
push 0x544fec
push 0
lea ecx, [esp + 0x5c]
call fcn.0049ffe2
lea ecx, [esp + 0x38]
call fcn.0049fe8e
lea ecx, [esp + 0x38]
call fcn.004a0500
lea ecx, [esp + 0x38]
call fcn.00412640
mov ecx, dword [esp + 0xa7c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004d1626
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410c40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512b3b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
call fcn.0048ac73
add esp, 4
push 4
call fcn.0048af0b
add esp, 4
lea eax, [ebp - 0x98]
push 0x84
push 0
push eax
call fcn.00444b40
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call fcn.00486267
add esp, 4
mov dword [ebp - 4], 0
call fcn.00428c70
cmp dword [0x562d84], 8
mov eax, 0x562d70
cmovae eax, dword [0x562d70]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
push str.LCID
push str.MutiLang
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [0x562da4]
mov ecx, esi
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x410d0d
nop dword [eax]
cmp dword [edx + 0x10], eax
jge 0x410cfa
mov edx, dword [edx + 8]
jmp 0x410cfe
mov ecx, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x410cf0
cmp ecx, esi
je 0x410d0d
cmp eax, dword [ecx + 0x10]
jge 0x410d0f
mov ecx, esi
cmp ecx, esi
je 0x410d22
add ecx, 0x14
cmp dword [ecx + 0x14], 8
jb 0x410d1e
mov ecx, dword [ecx]
test ecx, ecx
jne 0x410d27
mov ecx, str.en_US
sub esp, 8
mov dword [0x562dac], eax
call fcn.00427770
add esp, 8
lea ecx, [ebp - 0x98]
call fcn.00481789
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret
Function at 0x4151e0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51355d
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], 0
call fcn.00444b40
mov dword [esi + 0x10], 0
lea ecx, [edi + 0x978]
mov dword [esi + 0x14], 0
add esp, 0xc
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41526b
mov eax, dword [esi]
jmp 0x41526d
mov eax, esi
xor edx, edx
push 0xffffffffffffffff
push edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.004033f0
mov dword [ebp - 4], 0
cmp dword [edi + 0x988], 0
mov dword [ebp - 0x234], 1
je 0x4152b7
cmp dword [edi + 0x974], 8
lea eax, [edi + 0x960]
jb 0x4152a8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4153e2
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.004235b0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
call fcn.004234a0
test eax, eax
jne 0x41530c
call fcn.00423420
test eax, eax
jne 0x415347
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x415347
push 0
push str.CNSoft
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.004e2432
add esp, 0x18
jmp 0x41536e
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push 0
push 0x2a
push eax
push 0
call edi
test eax, eax
jne 0x41536e
push eax
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call edi
push 0x544088
push str.CNVideoConverter
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.004e2432
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x41539d
xor ecx, ecx
jmp 0x4153b5
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4153a6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403800
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4153e2
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00403a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret 4
Function at 0x415570
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x208
push 0
push eax
mov esi, ecx
call fcn.00444b40
add esi, 0x978
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4155ae
mov esi, dword [esi]
push 0x10
push edi
push 0x10
push esi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
mov ecx, 0x54516c
lea eax, [ebp - 0x234]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4155f6
test dx, dx
je 0x4155f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4155f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4155d0
xor eax, eax
jmp 0x4155fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4156af
push eax
push str.set.ini
push edi
push eax
lea esi, [eax + 1]
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.004e2432
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
push 0x14
lea eax, [ebp - 0x2c]
push eax
push str.true
push str.IsOverride
push str.Uninstall
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
lea eax, [ebp - 0x2c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41568f
test dx, dx
je 0x415672
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41568f
add eax, 4
add ecx, 4
test dx, dx
jne 0x415650
xor eax, eax
xor ecx, ecx
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret 4
sbb eax, eax
xor ecx, ecx
or eax, 1
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004d1626
mov esp, ebp
pop ebp
ret 4

Function at 0x415820
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.004158b0
cmp dword [edi + 0xa20], 1
jne 0x415870
cmp dword [edi + 0x944], 8
lea esi, [edi + 0x930]
jb 0x415843
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415870
mov ecx, edi
call fcn.004a0174
mov ecx, eax
call fcn.00421030
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [edi + 0xa24]
test eax, eax
je 0x41588e
push eax
push 0xa
lea ecx, [edi + 0x30]
call fcn.0048641d
push eax
lea ecx, [edi + 0x30]
call fcn.0048afe7
mov eax, dword [edi + 0xa28]
test eax, eax
je 0x4158ac
push eax
push 0xb
lea ecx, [edi + 0x30]
call fcn.0048641d
push eax
lea ecx, [edi + 0x30]
call fcn.0048afe7
pop edi
pop esi
ret

Function at 0x415ac0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x944], 8
lea esi, [edi + 0x930]
jb 0x415ad5
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415b02
mov ecx, edi
call fcn.004a0174
mov ecx, eax
call fcn.00421030
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
ret
Function at 0x419c50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x419c81
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x419c70
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x41a1d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513bd3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x55d198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x14]
mov dword [esi], eax
mov ecx, edi
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
push eax
push 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0041a770
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x41a26d
push dword [edi + 4]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041a700
mov dword [edi + 0xc], 0
push 0x24
mov dword [ebp - 4], 1
call fcn.004d1637
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
add esp, 4
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax + 4], 0x14
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.std::_Root_node.0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [esi + 0x30], ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 1
mov dword [esi + 0x34], 0x100
mov dword [esi + 0x38], 4
mov dword [esi + 0x3c], ecx
mov ecx, esi
mov dword [esi + 0x40], 1
mov dword [esi + 0x50], 0x8775dfb
call fcn.0041a8b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4210d0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513fab
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x42113a
xor ecx, ecx
jmp 0x421152
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421143
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403800
push 0x1c
push 0x547104
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.00403070
xor ecx, ecx
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], 0
call fcn.004033f0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x4211c8
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00403a50
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42120d
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42120d
lea esi, [eax + 1]
jmp 0x421232
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
push esi
call fcn.004e3f86
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x421250
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00403a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret