joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x43b62f
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
push 0x39e0853f
pop eax
sub edx, 0x493691cc
sub eax, 0x2cef0968
call fcn.0043b67c
add eax, 0xbbe848d0
sub eax, edx
xor dword [ecx], edi
push 0xfd8002fa
pop edx
sub edx, eax
sub edx, 0xf5d85f9d
inc ecx
mov eax, edx
add eax, 0x900c17d2
cmp ecx, ebx
jne fcn.0043b62f
push eax
mov eax, dword [esp]
add esp, 4
ret
Function at 0x4016d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42f892
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov eax, dword [esi + 0x140]
mov dword [esp + 0x18], 6
test eax, eax
je 0x401719
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax]
mov eax, dword [edx + eax]
call dword [eax]
mov dword [esi + 0x140], 0
lea ecx, [esi + 0x13c]
mov byte [esp + 0x18], 5
call fcn.0042ebf6
lea edi, [esi + 0x104]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 9
call fcn.0042ebf6
lea ecx, [edi + 0x2c]
mov byte [esp + 0x18], 8
call fcn.0042ebf6
lea ecx, [edi + 0x24]
mov byte [esp + 0x18], 7
call fcn.0042ebf6
mov ecx, edi
mov byte [esp + 0x18], 4
call fcn.0042ec26
lea ecx, [esi + 0xe4]
mov byte [esp + 0x18], 3
call fcn.00421b20
lea edi, [esi + 0xd4]
mov dword [esp + 0xc], edi
mov dword [edi], 0x435b7c
mov ecx, edi
mov byte [esp + 0x18], 0xa
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xcc]
mov dword [edi], 0x435b68
mov byte [esp + 0x18], 1
call fcn.0042ebf6
lea ecx, [esi + 0xc8]
mov byte [esp + 0x18], 0
call fcn.0042ebf6
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0042ebfc
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4029e0
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x42f9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.00401310
mov esi, dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
push str.CCswApp::Reboot
mov edi, eax
push str._s:_begin
push 0x10
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], str.CCswApp::Reboot
call esi
add esp, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x34], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402a8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CCswApp::Reboot:_OpenProcessToken___failed__LastErr___lu
push 8
call fcn.00401310
push eax
call esi
add esp, 0x10
mov dword [esp + 0x34], 0xffffffff
push str.CCswApp::Reboot
push str._s:_end
push 0x10
push edi
call esi
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0x20]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
lea edx, [esp + 0x24]
push 0
push edx
push 0
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x402b19
push eax
push str.CCswApp::Reboot:_AdjustTokenPrivileges___failed__LastErr___lu
push 8
call fcn.00401310
push eax
call esi
add esp, 0x10
mov dword [esp + 0x34], 0xffffffff
push str.CCswApp::Reboot
push str._s:_end
push 0x10
push edi
call esi
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push 1
push 0
push 0
push 0x449060
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x402b74
call ebx
push eax
push str.CCswApp::Reboot:_InitiateSystemShutdown___failed__LastErr___lu
push 8
call fcn.00401310
push eax
call esi
add esp, 0x10
mov dword [esp + 0x34], 0xffffffff
push str.CCswApp::Reboot
push str._s:_end
push 0x10
push edi
call esi
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov edx, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
push 0
push edx
mov dword [esp + 0x40], 0
call ebp
call ebx
test eax, eax
je 0x402bd8
push eax
push str.CCswApp::Reboot:_AdjustTokenPrivileges__2_failed__LastErr___lu
push 8
call fcn.00401310
push eax
call esi
add esp, 0x10
mov dword [esp + 0x34], 0xffffffff
push str.CCswApp::Reboot
push str._s:_end
push 0x10
push edi
call esi
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push str.CCswApp::Reboot
push str._s:_end
push 0x10
push edi
mov dword [esp + 0x44], 0xffffffff
call esi
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x408530
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4306b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push ebp
push esi
push edi
push 0x7a
xor ebx, ebx
push 0x79
mov esi, ecx
push ebx
push 0x90
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CPropertyPageEx::CPropertyPageEx
lea edi, [esi + 0x98]
mov dword [esp + 0x1ac], ebx
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x436988
lea edi, [esi + 0xd8]
mov byte [esp + 0x1ac], 1
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x435eb4
lea edi, [esi + 0x118]
mov byte [esp + 0x1ac], 2
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x435eb4
lea edi, [esi + 0x158]
mov byte [esp + 0x1ac], 3
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x4360c0
lea edi, [esi + 0x198]
mov byte [esp + 0x1ac], 4
mov ecx, edi
call sub.MFC42.DLL_CString::CString
lea ebp, [esi + 0x19c]
mov byte [esp + 0x1ac], 5
mov ecx, ebp
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebp], 0x4360c0
lea ebp, [esi + 0x1dc]
mov byte [esp + 0x1ac], 6
mov ecx, ebp
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebp], 0x435df0
lea ebp, [esi + 0x21c]
mov byte [esp + 0x1ac], 7
mov ecx, ebp
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebp], 0x435eb4
lea ebp, [esi + 0x25c]
mov byte [esp + 0x1ac], 8
mov ecx, ebp
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebp], 0x435eb4
lea ebp, [esi + 0x29c]
mov byte [esp + 0x1ac], 9
mov ecx, ebp
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebp], 0x435eb4
lea ebp, [esi + 0x2dc]
mov byte [esp + 0x1ac], 0xa
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x1ac], 0xb
mov dword [esi + 0x2e0], ebx
mov dword [esi + 0x2e4], ebx
mov dword [esi + 0x2e8], ebx
push 0x449060
mov ecx, ebp
mov dword [esi + 0x2ec], ebx
mov dword [esi + 0x2f0], 1
mov dword [esi], 0x436dc8
call fcn.0042ec02
push 0x449060
mov ecx, edi
call fcn.0042ec02
lea eax, [esp + 0x14]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x40f050
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x43147d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
push edi
push 0x7c
push 0x7b
mov esi, ecx
push 0
push 0x97
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CPropertyPageEx::CPropertyPageEx
lea edi, [esi + 0x98]
mov dword [esp + 0x1a4], 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x4360c0
lea edi, [esi + 0xd8]
mov byte [esp + 0x1a4], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString
push 0x449060
mov ecx, edi
mov byte [esp + 0x1a8], 2
mov dword [esi], 0x437ae8
call fcn.0042ec02
lea eax, [esp + 0xc]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x416680
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4326ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
push edi
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x28], esi
call sub.MFC42.DLL_CPropertySheetEx::CPropertySheetEx
xor ebx, ebx
lea ecx, [esi + 0xc0]
mov dword [esp + 0x1c], ebx
call fcn.00411ae0
lea ecx, [esi + 0x328]
mov byte [esp + 0x1c], 1
call fcn.00406730
lea ecx, [esi + 0x594]
mov byte [esp + 0x1c], 2
call fcn.0040ed20
lea ecx, [esi + 0x62c]
mov byte [esp + 0x1c], 3
call fcn.00408530
lea ecx, [esi + 0x920]
mov byte [esp + 0x1c], 4
call fcn.0040fe20
lea ecx, [esi + 0xb94]
mov byte [esp + 0x1c], 5
call fcn.0040f050
lea ecx, [esi + 0xc70]
mov byte [esp + 0x1c], 6
call fcn.00405010
lea ecx, [esi + 0xea4]
mov byte [esp + 0x1c], 7
call fcn.0040ce10
lea ecx, [esi + 0x1004]
mov byte [esp + 0x1c], 8
call fcn.0040e290
lea ecx, [esi + 0x1140]
mov byte [esp + 0x1c], 9
call fcn.004130e0
lea ecx, [esi + 0x1260]
mov byte [esp + 0x1c], 0xa
call fcn.0040c8e0
lea ecx, [esi + 0x133c]
mov byte [esp + 0x1c], 0xb
call fcn.0040da00
lea ecx, [esi + 0x15b8]
mov byte [esp + 0x1c], 0xc
call fcn.0040ad80
lea ecx, [esi + 0x1810]
mov byte [esp + 0x1c], 0xd
call fcn.00414f90
lea ecx, [esi + 0x2158]
mov byte [esp + 0x1c], 0xe
call fcn.00413ba0
lea ecx, [esi + 0x46b0]
mov byte [esp + 0x1c], 0xf
call fcn.004125a0
mov byte [esp + 0x1c], 0x10
mov dword [esi + 0x4a18], ebx
call dword [sym.imp.PdvCommon.dll_public:_static_class_NPdv::CManager____cdecl_NPdv::CManager::GetInstance_void_]
lea edi, [esi + 0x4a1c]
mov dword [esp + 0x38], edi
lea ecx, [edi + 0xc]
mov dword [edi], eax
mov dword [edi + 4], 0x448de0
mov dword [edi + 8], ebx
call sub.MFC42.DLL_CString::CString
lea ebp, [edi + 0x10]
mov byte [esp + 0x1c], 0x11
mov dword [esp + 0x34], ebp
lea ecx, [ebp + 4]
mov dword [ebp], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [esp + 0x1c], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x1c]
mov byte [esp + 0x1c], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x24]
mov dword [edi + 0x20], ebx
call fcn.0042b360
lea ecx, [edi + 0xc5c]
mov byte [esp + 0x1c], 0x15
mov dword [edi + 0xc4c], ebx
mov dword [edi + 0xc50], ebx
mov dword [edi + 0xc54], ebx
mov byte [edi + 0xc58], bl
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov byte [esp + 0x1c], 0x16
mov dword [esi + 0x5680], ebx
mov dword [esi], 0x438840
call fcn.00416b40
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x417110
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x800
add ecx, 4
lea eax, [esp]
push ecx
mov ecx, dword [esp + 0x80c]
push 0x800
push eax
push 0x449060
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x80c]
lea eax, [esp]
push eax
call fcn.0042ec02
add esp, 0x800
ret 0xc

Function at 0x417210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4328b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esi + 8], ebx
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov byte [esi + 0xc], bl
mov byte [esi + 0x30], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x417227
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4328b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esi + 8], ebx
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov byte [esi + 0xc], bl
mov byte [esi + 0x30], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4179a0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x432986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], esi
push 0x438914
lea ecx, [esp + 0x10]
mov dword [esp + 0x428], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 8]
lea ecx, [esp + 0xc]
add eax, 0x30
mov byte [esp + 0x424], 1
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
push edx
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
jne 0x417a77
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push str.DisplayName
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x417a6a
lea ecx, [esp + 0xc]
mov byte [esp + 0x424], bl
call fcn.0042ebf6
cmp esi, ebx
je 0x417a66
push esi
call edi
mov al, 1
jmp 0x417a90
cmp esi, ebx
je 0x417a77
push esi
call edi
xor esi, esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x424], bl
call fcn.0042ebf6
cmp esi, ebx
je 0x417a8e
push esi
call edi
xor al, al
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x41c
ret

Function at 0x417c60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x417c9f
push str.Fail_to_open_registry_key_of_scan_driver_version
push 1
call fcn.00401310
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov byte [edx], 0
pop esi
pop ecx
ret
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push 0x43894c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
je 0x417cec
push str.Fail_to_get_value_of_scan_driver_version
push 1
call fcn.00401310
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0xc
mov byte [esi], 0
pop esi
pop ecx
ret
Function at 0x4183a0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push eax
mov dword [ebp - 4], 0
call fcn.00418660
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0042ec56
push str.Setup.iss
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ecx
call edi
cmp eax, 0xffffffff
je 0x41842d
test al, 0x10
jne 0x41842d
mov byte [esi + 4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0042ebf6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0042ebf6
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov bl, 2
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0042ec56
push 0x445248
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x20]
push edx
call edi
cmp eax, 0xffffffff
je 0x418472
test al, 0x10
jne 0x418472
mov eax, 1
jmp 0x418474
xor eax, eax
test al, al
mov byte [esi + 4], al
je 0x41850f
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0042ec56
push str.Setup.ini
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::operator
mov eax, dword [str.AppInfo]
mov edx, dword [ebp + 8]
mov ecx, dword [0x445238]
mov dword [ebp - 0x1c], eax
push edx
push 0
lea eax, [ebp - 0x1c]
push str.KBytes
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esi + 0xc]
push 0x20
mov dword [esi + 8], eax
push edx
push 0x449060
lea eax, [ebp - 0x1c]
push str.Version
push eax
call edi
mov ecx, dword [ebp + 8]
add esi, 0x2c
push ecx
push 0x40
push esi
push 0x449060
lea edx, [ebp - 0x1c]
push str.CLSID
push edx
call edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0042ebf6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
jmp 0x418415
Function at 0x4186f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esi + 4]
call fcn.0042ec02
lea ecx, [esp + 8]
xor edi, edi
push ecx
push 1
push edi
push str.SoftWareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418730
mov edi, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push str.ProgramFilesDir
push edi
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dl, byte [esp + 0x10]
mov byte [esi + 1], 0
test edi, edi
mov byte [esi], dl
je 0x418772
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x11c]
lea ecx, [esi + 8]
push eax
call fcn.0042ec02
pop edi
pop esi
add esp, 0x10c
ret 8

Function at 0x4186fd
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esi + 4]
call fcn.0042ec02
lea ecx, [esp + 8]
xor edi, edi
push ecx
push 1
push edi
push str.SoftWareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418730
mov edi, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push str.ProgramFilesDir
push edi
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dl, byte [esp + 0x10]
mov byte [esi + 1], 0
test edi, edi
mov byte [esi], dl
je 0x418772
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x11c]
lea ecx, [esi + 8]
push eax
call fcn.0042ec02
pop edi
pop esi
add esp, 0x10c
ret 8
Function at 0x418790
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x432b73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push esi
mov esi, ecx
push 0x43897c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
add esi, 4
lea ecx, [esp + 4]
push esi
mov dword [esp + 0x420], 0
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 1
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41886c
mov esi, dword [esp + 8]
mov dword [esp + 0x10], eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.DisplayName
push esi
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418861
test esi, esi
je 0x418835
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x41c], 0xffffffff
call fcn.0042ebf6
mov al, 1
pop esi
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
add esp, 0x41c
ret
test esi, esi
je 0x41886c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x41c], 0xffffffff
call fcn.0042ebf6
mov ecx, dword [esp + 0x414]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x41c
ret

Function at 0x4187ab
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x432b73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x410
push esi
mov esi, ecx
push 0x43897c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
add esi, 4
lea ecx, [esp + 4]
push esi
mov dword [esp + 0x420], 0
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 1
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41886c
mov esi, dword [esp + 8]
mov dword [esp + 0x10], eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.DisplayName
push esi
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418861
test esi, esi
je 0x418835
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x41c], 0xffffffff
call fcn.0042ebf6
mov al, 1
pop esi
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
add esp, 0x41c
ret
test esi, esi
je 0x41886c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x41c], 0xffffffff
call fcn.0042ebf6
mov ecx, dword [esp + 0x414]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x41c
ret