joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422510
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x433b28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
push 2
push edi
push edi
push edi
push ebx
push edx
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x4225a7
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x2c]
push 4
push eax
push 4
push edi
mov edi, dword [esp + 0x40]
push edi
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4225c1
push eax
push ebx
push edi
push str.Fail_to_set__s_of__s__LastErr_ld
push 2
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x18
test esi, esi
je 0x4225e5
jmp 0x4225de
push eax
push ebx
push str.Unable_to_set_value_of__s__LastErr_ld
push 2
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x14
jmp 0x4225e5
push ebp
push edi
push ebx
push str.NCswData::CAppParams::SetDWORD:_Done___s___s___lu
push 8
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x18
test esi, esi
je 0x4225e5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x423290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov ecx, 6
mov esi, str.SHInvokePrinterCommandA
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
call fcn.00406e60
push str.shell32.dll
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0042c2c0
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.0042c360
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
call eax
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042c2b0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x425ab0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4340c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0
call fcn.00422350
mov eax, dword [eax]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000001
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x425b48
mov edi, dword [esp + 8]
mov dword [esp + 8], edi
call fcn.00422350
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push str.URI_for_Update
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x425b5b
test edi, edi
je 0x425b48
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
test edi, edi
je 0x425b66
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x425b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4340e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
call fcn.00422350
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push 1
push edi
push eax
push 0x80000001
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x425c23
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x18], esi
call fcn.00422350
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x120]
push edx
lea ecx, [ebp - 0x1c]
push eax
push ecx
push edi
push str.PATH_for_Update
push esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x425c23
lea edx, [ebp - 0x120]
push edx
jmp 0x425c2d
call dword [sym.imp.PdvCommon.dll_public:_static_class_NPdv::CManager____cdecl_NPdv::CManager::GetInstance_void_]
mov eax, dword [eax + 0x24]
push eax
lea ecx, [ebx + 4]
call fcn.0042ec02
cmp esi, edi
je 0x425c40
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425c80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x434108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0
call fcn.00422350
mov eax, dword [eax]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000001
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x425d18
mov edi, dword [esp + 8]
mov dword [esp + 8], edi
call fcn.00422350
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push str.PATH_for_Update
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x425d2b
test edi, edi
je 0x425d18
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
test edi, edi
je 0x425d36
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4262e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4341f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
lea edi, [esi + 4]
mov dword [esi + 0x18], ecx
mov ecx, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi], eax
call dword [sym.imp.PdvCommon.dll_public:_bool___thiscall_NPdv::CAddress::IsOpened_void_const]
test al, al
je 0x426328
mov ecx, edi
call dword [sym.imp.PdvCommon.dll_public:_void___thiscall_NPdv::CAddress::Close_void_]
mov edx, dword [ebp + 0xc]
xor ebx, ebx
push edx
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [sym.imp.PdvCommon.dll_public:_void___thiscall_NPdv::CAddress::OpenWithAddrStr_char_const__]
push ebx
push 4
push ebx
push ebx
push esi
push 0x426420
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebx
mov dword [esi + 8], eax
je 0x426384
mov dword [eax + 0x28], ebx
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 1
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x4263a0
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x426381
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4269e0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43431d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esi + 0x18]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x44]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x50]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 0xe
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 0xf
call fcn.0042eb12
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x426af0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4343e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0x10
call fcn.00427150
lea ecx, [esi + 0x58]
mov byte [esp + 0x10], 0xf
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 0xe
call fcn.0042ebf6
lea ecx, [esi + 0x50]
mov byte [esp + 0x10], 0xd
call fcn.0042ebf6
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 0xc
call fcn.0042ebf6
lea ecx, [esi + 0x48]
mov byte [esp + 0x10], 0xb
call fcn.0042ebf6
lea ecx, [esi + 0x44]
mov byte [esp + 0x10], 0xa
call fcn.0042ebf6
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 9
call fcn.0042ebf6
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 8
call fcn.0042ebf6
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 7
call fcn.0042ebf6
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call fcn.0042ebf6
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.0042ebf6
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.0042ebf6
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.0042ebf6
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call fcn.0042ebf6
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 1
call fcn.0042ebf6
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 0
call fcn.0042ebf6
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.0042f10c
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x427160
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x427193
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x74], eax
or eax, 0xffffffff
pop esi
add esp, 0x14
ret
lea edx, [esp + 8]
lea ecx, [esi + 0x20]
push edx
call fcn.0042ec02
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x428830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [sym.imp.CnOem.dll_void__NCnOem::c_hCswTestPrintBitmap]
sub esp, 0x18
mov eax, dword [eax]
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x42885b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov dword [edi + 0x74], eax
call fcn.00427ae0
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x18
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x428878
mov ecx, edi
call fcn.00427ae0
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x428896
mov cx, word [esi + 0xe]
cmp cx, 0x18
jne 0x42888f
mov dword [esp + 0xc], eax
jmp 0x42889a
mov eax, 1
shl eax, cl
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x1c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push ebp
mov ebp, dword [esi + 4]
push 0x2710
push 0xfe
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], edx
call ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0x2710
push 0xfe
push eax
call ebx
mov ecx, dword [edi + 8]
push 0x58
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [edi + 8]
push 0x5a
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push ebp
call ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
call ebx
push 3
mov ecx, edi
mov ebx, eax
call sub.MFC42.DLL_CDC::SetStretchBltMode
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 8]
mov dword [esp + 0x24], eax
push 0xcc0020
push 0
lea eax, [esi + edx*4 + 0x28]
mov edx, dword [esi + 4]
push esi
push eax
push ecx
push edx
push 0
push 0
push ebx
push ebp
push 0x4e2
mov ecx, edi
call fcn.00428ac0
push eax
push 0x55f
mov ecx, edi
call fcn.00428aa0
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ecx, dword [esp + 0x24]
mov esi, eax
push ecx
mov ecx, edi
call sub.MFC42.DLL_CDC::SetStretchBltMode
pop ebp
pop ebx
cmp esi, 0xffffffff
jne 0x428992
mov ecx, edi
call fcn.00427ae0
or eax, esi
pop edi
pop esi
add esp, 0x18
ret
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
Function at 0x428c40
Capabilities:
Check os version

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov byte [esi], 0
push edi
mov byte [esi + 0x98], 0
mov dword [edi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x428c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionEx___failed:_LastErr___lu
push 2
call fcn.00429620
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x10
mov ecx, 0x25
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x18]
mov byte [esi], 1
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
push str.OSVersionInfo___PlatformId_lu__lx._lx._lx__s_
push 8
call fcn.00429620
mov edi, dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
push eax
call edi
add esp, 0x20
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x428cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.kernel32.dll
push str.LoadLibrary__s__failed:_LastErr_lu
push 1
call fcn.00429620
push eax
call edi
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
push str.IsWow64Process
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x428d69
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x428d41
mov eax, dword [esp + 0x10]
test eax, eax
je 0x428d93
push ebp
mov byte [esi + 0x98], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsWow64Process___failed:_LastErr_lu
push 1
call fcn.00429620
push eax
call edi
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
cmp dword [esi + 8], 5
jb 0x428d93
cmp dword [esi + 0xc], 1
jb 0x428d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsWow64Process
push str.GetProcAddress__s__failed:_LastErr_lu
push 1
call fcn.00429620
push eax
call edi
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x429040
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, ecx
push esi
call edi
cmp eax, 0xffffffff
jne 0x4290be
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42908e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateDirectory
lea ecx, [esp + 0x18]
call fcn.00428e30
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push 0x43f658
push ecx
mov dword [esp + 0x1c], eax
call sub.MSVCRT.dll__CxxThrowException
push esi
call edi
cmp eax, 0xffffffff
jne 0x4290be
push esi
lea edx, [esp + 0x14]
push str.Fail_to_create_TmpFile_because__s_not_exist
push edx
call fcn.00428db0
mov al, byte [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
push 0x43c6f8
push ecx
call sub.MSVCRT.dll__CxxThrowException
and eax, 0x10
cmp al, 0x10
je 0x4290ed
push esi
lea edx, [esp + 0x14]
push str.Fail_to_create_TmpFile_because__s_is_not_a_directory
push edx
call fcn.00428db0
mov al, byte [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
push 0x43c6f8
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esp + 0x10]
lea edx, [ebx + 1]
push edx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x42912d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempFileName
lea ecx, [esp + 0x18]
call fcn.00428e30
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push 0x43f658
push edx
mov dword [esp + 0x1c], ecx
call sub.MSVCRT.dll__CxxThrowException
pop edi
mov byte [ebx], 1
pop esi
pop ebx
ret 8

Function at 0x429140
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 1]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x429170
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Fail_to_delete_TmpFile__s__LastErr_lu
push 2
call fcn.00429620
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x14
mov byte [esi], 0
pop edi
pop esi
ret
Function at 0x4292a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x44]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x14], 0x440
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], str.open
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x429330
test edi, edi
jne 0x429300
mov edi, str.NULL
push edi
push ebx
push str.ShellExecuteEx__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x5c]
push eax
push edx
call fcn.00428e60
mov eax, dword [eax]
add esp, 0x14
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
push 0x43f658
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esp + 0x44]
push ebx
lea ecx, [esi + 4]
mov dword [esi], edx
call fcn.0042ec02
push edi
lea ecx, [esi + 8]
call fcn.0042ec02
pop edi
pop esi
pop ebx
add esp, 0x3c
ret 0xc

Function at 0x429450
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x429476
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x429476
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [esp + 0xc]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4294b8
push esi
push edi
push str.CopyFile__s___s__FALSE_
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00428e60
mov eax, dword [eax]
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
push 0x43f658
push ecx
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
ret

Function at 0x4294c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push esi
push eax
call fcn.00429450
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42950e
push esi
push str.GetFileAttributes__s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00428e60
mov edx, dword [eax]
add esp, 0x10
lea eax, [esp + 0xc]
mov dword [esp + 0xc], edx
push 0x43f658
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x429555
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x429555
push esi
push str.SetFileAttributes__s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push eax
push edx
call fcn.00428e60
mov eax, dword [eax]
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
push 0x43f658
push ecx
call sub.MSVCRT.dll__CxxThrowException
pop esi
ret
Function at 0x42a270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42a28a
test al, 0x10
jne 0x42a28a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x42a3a0
Capabilities:
Check os version

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov byte [esi], 0
push edi
mov byte [esi + 0x98], 0
mov dword [edi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x42a3f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionEx___failed:_LastErr___lu
push 2
call fcn.0042c3b0
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x10
mov ecx, 0x25
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x18]
mov byte [esi], 1
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
push str.OSVersionInfo___PlatformId_lu__lx._lx._lx__s_
push 8
call fcn.0042c3b0
mov edi, dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
push eax
call edi
add esp, 0x20
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x42a456
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.kernel32.dll
push str.LoadLibrary__s__failed:_LastErr_lu
push 1
call fcn.0042c3b0
push eax
call edi
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
push str.IsWow64Process
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x42a4c9
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
test eax, eax
je 0x42a4a1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42a4f3
push ebp
mov byte [esi + 0x98], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsWow64Process___failed:_LastErr_lu
push 1
call fcn.0042c3b0
push eax
call edi
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
cmp dword [esi + 8], 5
jb 0x42a4f3
cmp dword [esi + 0xc], 1
jb 0x42a4f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsWow64Process
push str.GetProcAddress__s__failed:_LastErr_lu
push 1
call fcn.0042c3b0
push eax
call edi
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret