joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451f90
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x51fae0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
push 0x535a4c
call fcn.00405ec0
push 0x200
push edi
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
push pe_nt_image_headers32
lea ecx, [ebp]
push ecx
push 5
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x452033
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSCPManager::GetCountryCode:Failed:_GetLocaleInfo_Error:_lu
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov edi, 0xd
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x452070
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.00405ec0
mov dword [ebp - 4], 0xffffffff
jmp 0x452070
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x204
mov esp, ebp
pop ebp
ret
Function at 0x4520a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x521d80
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov ebx, ecx
push 0x535a4c
lea ecx, [esp + 0x2c]
xor esi, esi
call fcn.00405c00
mov dword [esp + 0x20], esi
push 0x535a4c
lea ecx, [esp + 0x18]
call fcn.00405c00
mov byte [esp + 0x20], 1
mov eax, dword [ebx + 8]
cmp dword [eax - 0xc], esi
je 0x4521f9
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4521f9
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
mov edi, pe_nt_image_headers32
sub eax, edi
or eax, edx
jge 0x452135
push edi
lea ecx, [esp + 0x2c]
call fcn.00405a50
mov ecx, dword [esp + 0x28]
cmp dword [ecx - 8], edi
mov esi, ecx
jge 0x452146
push 0x80070057
call fcn.004059d0
mov dword [ecx - 0xc], edi
mov eax, dword [esp + 0x28]
mov word [eax + 0x200], 0
call fcn.004e4d97
mov eax, dword [eax + 4]
push 0
push edi
push esi
push str._IP_
lea ecx, [eax + 0x5ef4]
call fcn.00480760
test eax, eax
jne 0x452195
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
je 0x452195
push eax
lea ecx, [esp + 0x18]
push str._IP___s_
push ecx
call fcn.004081a0
add esp, 0xc
jmp 0x4521a7
push str.CSCPManager::LaunchSCP:_Failed_to_find_IP_Address____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov esi, dword [esp + 0x14]
mov ebx, dword [ebx + 8]
call fcn.004e4d97
mov eax, dword [eax + 4]
push 0
add eax, 0x47a80
push eax
mov edx, esi
mov ecx, ebp
mov edi, str.execute_file
call fcn.004086e0
mov esi, eax
test esi, esi
jne 0x4521e4
test ebp, ebp
je 0x4521dd
mov dword [ebp], 1
push str.CSCPManager::LaunchSCP:_SCP_Launced_Successfully
jmp 0x4521fe
push esi
push str.CSCPManager::LaunchSCP:_Failed_To_Launch_SCP_error__lu
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
jmp 0x45220b
push str.CSCPManager::LaunchSCP:_SCP_Setup_file_not_downloaded
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x14]
call fcn.00406150
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00406150
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x461970
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51aa10
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 4
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
cmp eax, esi
jl 0x4619f8
push 0x3c
push esi
lea ecx, [ebp - 0x50]
push ecx
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], str.open
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x461a0a
push str.Fail_to_open_printer_folder_in_SilentOpenPrinterFolder__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
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 0x46d710
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
cmp ecx, 6
ja 0x46d824
jne 0x46d741
cmp ah, 1
jae 0x46d824
mov ecx, dword [0x534894]
mov eax, dword [0x534890]
mov edx, dword [0x534898]
mov dword [esp + 8], ecx
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov eax, dword [0x53489c]
mov dword [esp + 0xc], edx
push ecx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0046d860
mov edx, dword [0x55c40c]
mov eax, dword [0x55c410]
mov ecx, dword [0x55c414]
mov dword [esp + 4], edx
mov edx, dword [0x55c418]
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
push eax
mov edx, edi
mov ecx, esi
call fcn.0046d860
mov ecx, dword [0x55c3ec]
mov edx, dword [0x55c3f0]
mov eax, dword [0x55c3f4]
mov dword [esp + 4], ecx
mov ecx, dword [0x55c3f8]
mov dword [esp + 8], edx
lea edx, [esp + 4]
mov dword [esp + 0x10], ecx
push edx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0046d860
mov ecx, dword [0x55c400]
mov eax, dword [0x55c3fc]
mov edx, dword [0x55c404]
mov dword [esp + 8], ecx
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov eax, dword [0x55c408]
mov dword [esp + 0xc], edx
push ecx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0046d860
mov al, 1
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
push str._CSystemRefresh::RemoveUnknownDevice__Call_Windows_7_Remove_Unknown_Device_Function
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push ebx
mov edx, edi
mov ecx, esi
call fcn.0046dca0
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov al, 1
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x46e7d0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x5215b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor bl, bl
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x24], 0x104
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46e89f
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push str.SystemRoot
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46e88d
push 0x103
lea eax, [ebp]
push eax
push 0x104
push esi
call fcn.004fa71b
add esp, 0x10
mov bl, 1
mov byte [ebp - 0x11], bl
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x46e960
push 0x208
push 0
lea edx, [ebp]
push edx
call fcn.004fd670
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x46e960
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00405c00
mov byte [ebp - 4], 1
push 0x535a4c
lea ecx, [ebp - 0x1c]
call fcn.00405c00
mov byte [ebp - 4], 2
push 0x5c
mov edx, dword [ebp - 0x18]
push edx
call fcn.004fa6eb
add esp, 8
test eax, eax
je 0x46e948
sub eax, dword [ebp - 0x18]
sar eax, 1
cmp eax, 0xffffffff
je 0x46e948
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00416140
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.004199f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00406150
push 0x103
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x104
push esi
call fcn.004fa71b
add esp, 0x10
mov bl, 1
mov byte [ebp - 0x11], bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00406150
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00406150
mov dword [ebp - 4], 0xffffffff
jmp 0x46e98f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x471ea0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f5d0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2018
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], 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, ecx
mov edi, edx
push 0x200
push 0
lea eax, [ebp - 0x2018]
push eax
call fcn.004fd670
push 0x200
push 0
lea ecx, [ebp - 0x1e18]
push ecx
call fcn.004fd670
push 0x200
push 0
lea edx, [ebp - 0x1c18]
push edx
call fcn.004fd670
add esp, 0x24
mov dword [ebp - 4], 0
test edi, edi
je 0x47213b
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x471f30
sub eax, edx
sar eax, 1
je 0x47213b
push 0x800
push 0
lea eax, [ebp - 0x1218]
push eax
call fcn.004fd670
push edi
lea ecx, [ebp - 0x2018]
call fcn.0046f360
add esp, 0x10
mov esi, dword [ebx]
add esi, 0xe230
jne 0x471f9e
push str.Registry_Manager_was_not_be_initialized___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x2020], 0xd
push 0x5814b0
lea ecx, [ebp - 0x2020]
push ecx
call fcn.004fd5a3
push 0x800
push 0
lea edx, [ebp - 0xa18]
push edx
call fcn.004fd670
push str.DEMO
push str.InstallingSetupTestPage
push 0x535a74
lea edx, [ebp - 0xa18]
call fcn.00404380
push 0x200
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004fd670
lea ecx, [ebp - 0x2018]
push ecx
push str.FILE
push 0x539da0
lea edx, [ebp - 0x218]
call fcn.00418d80
push 1
push 0x800
lea edx, [ebp - 0x1a18]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0xa18]
call fcn.004920e0
add esp, 0x44
test eax, eax
je 0x4720a2
push 0x55da54
push str.FILE
push 0x539da0
lea edx, [ebp - 0x218]
call fcn.00418d80
push 1
push 0x800
lea edx, [ebp - 0x1a18]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [esi]
push ecx
lea edx, [ebp - 0xa18]
call fcn.004920e0
add esp, 0x20
test eax, eax
je 0x4720a2
push 1
push 0x800
lea edx, [ebp - 0x1a18]
push edx
push str.FILE
mov eax, dword [esi]
push eax
lea edx, [ebp - 0xa18]
call fcn.004920e0
add esp, 0x14
test eax, eax
je 0x4720a2
push str._r_n_____Get_Prn_File_path_fail_______r_n
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push 0
push 0x400
lea ecx, [ebp - 0x1218]
push ecx
lea edx, [ebp - 0x1a18]
push edx
mov ecx, dword [ebx]
call fcn.00480760
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x1218]
test eax, eax
jne 0x472103
push ecx
push str.the_Prn_file_does_not_exist___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x2024], 0xd
push 0x5814b0
lea edx, [ebp - 0x2024]
push edx
call fcn.004fd5a3
push edi
call fcn.004711c0
add esp, 4
mov dword [ebp - 0x201c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x201c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x47211f
Function at 0x474400
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0xa04
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0xa00], eax
push ebx
push 0x200
lea eax, [esp + 8]
push 0
push eax
xor bl, bl
call fcn.004fd670
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push ecx
push str.SET_ALTITUDE_LIST
push str._s___id_0X_04X__
lea edx, [esp + 0x10]
call fcn.00418d80
add esp, 0xc
call fcn.004e4d97
mov eax, dword [eax + 4]
add eax, 0x7f44
push eax
lea edx, [esp + 8]
call fcn.00488160
test al, al
je 0x4744a4
call fcn.004e4d97
mov eax, dword [eax + 4]
add eax, 0x7f44
push 0x400
push eax
lea ecx, [esp + 0x20c]
lea edx, [esp + 0xc]
call fcn.00487c90
test eax, eax
jne 0x4744a4
lea edx, [esp + 0x204]
push edx
push esi
call fcn.004f9f1e
add esp, 8
test eax, eax
mov al, 1
je 0x4744a6
mov al, bl
mov ecx, dword [esp + 0xa04]
pop ebx
xor ecx, esp
call fcn.004fa103
add esp, 0xa04
ret
Function at 0x475450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526230
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1408
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x200
xor ebx, ebx
push ebx
lea eax, [ebp - 0x214]
push eax
call fcn.004fd670
push 0x200
push ebx
lea ecx, [ebp - 0x1414]
push ecx
call fcn.004fd670
add esp, 0x18
mov dword [ebp - 4], ebx
mov byte [esi + 0x7c14], bl
push 0x800
push ebx
lea edx, [ebp - 0x1214]
push edx
call fcn.004fd670
push 0x800
push ebx
lea eax, [ebp - 0xa14]
push eax
call fcn.004fd670
add esp, 0x18
lea edi, [esi + 0x6014]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4754f0
sub eax, edx
sar eax, 1
jne 0x475531
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x536d5c
mov edx, edi
call fcn.00494c80
mov eax, 0x5356dc
mov ecx, edi
call fcn.004043a0
mov eax, str.CI3Temp
mov ecx, edi
call fcn.004043a0
push 0x800
push ebx
lea ecx, [ebp - 0xa14]
push ecx
call fcn.004fd670
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
push str._s_swlist__d__d.xml
lea edx, [ebp - 0xa14]
call fcn.00404380
lea edx, [esi + 0x7a14]
push edx
lea eax, [esi + 0x810]
push eax
lea edx, [ebp - 0x1214]
call fcn.00404380
mov ecx, dword [esi + 0x6010]
push ecx
lea edx, [ebp - 0x1214]
push edx
push str.Query_Command:___s___timeout___d_sec
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x24
mov eax, dword [esi + 0x6010]
push eax
lea edx, [ebp - 0xa14]
lea ecx, [ebp - 0x1214]
call fcn.004becd0
test eax, eax
je 0x4755f1
mov ecx, dword [esi + 0x6010]
add ecx, ecx
push ecx
lea edx, [ebp - 0xa14]
lea ecx, [ebp - 0x1214]
call fcn.004becd0
test eax, eax
je 0x4755f1
push str.Query_Software_List_fail____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
xor al, al
jmp 0x4756cc
lea ecx, [ebp - 0xa14]
call fcn.00475710
test al, al
jne 0x475691
lea eax, [esi + 0x7814]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x475610
sub eax, edx
sar eax, 1
jne 0x4755ea
push str._kokoko__Fail_LoadSWList______Try_again_with_MDL____
mov ecx, 0x649e50
call fcn.004918f0
push 0x800
push ebx
lea edx, [ebp - 0x1214]
push edx
call fcn.004fd670
lea eax, [ebp - 0x214]
push eax
lea ecx, [esi + 0x1010]
push ecx
lea edx, [ebp - 0x1214]
call fcn.00404380
add esp, 0x18
mov edx, dword [esi + 0x6010]
push edx
lea edx, [ebp - 0xa14]
lea ecx, [ebp - 0x1214]
call fcn.004becd0
test eax, eax
jne 0x4755ea
lea ecx, [ebp - 0xa14]
call fcn.00475710
test al, al
je 0x4755ea
mov ecx, esi
call fcn.00475860
push str.Sorting__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov ebx, esi
call fcn.004790c0
push str.End__
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x475710
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5261fd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2060
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x205c], eax
push ebx
push edi
mov eax, dword [0x5a4aa8]
xor eax, esp
push eax
lea eax, [esp + 0x2070]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov edi, ecx
call fcn.00487b00
mov dword [esp + 0x2078], 0
test edi, edi
je 0x47580c
mov eax, edi
lea edx, [eax + 2]
jmp 0x475780
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475780
sub eax, edx
sar eax, 1
je 0x47580c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47580c
push 0
lea eax, [esp + 0x18]
call fcn.00487be0
test eax, eax
je 0x4757cf
push str.Load_XML_fail____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [esp + 0x2078], 0xffffffff
lea ecx, [esp + 0x14]
push ecx
jmp 0x47582e
push 1
lea edx, [esp + 0x18]
push edx
push esi
call fcn.00475c20
mov bl, al
push 2
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00475c20
test bl, bl
jne 0x4757f3
test al, al
je 0x4757bd
mov dword [esp + 0x2078], 0xffffffff
lea edx, [esp + 0x14]
push edx
call fcn.00487b80
mov al, 1
jmp 0x475835
push str.Invalid_SW_List_XML_fail____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [esp + 0x2078], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00487b80
xor al, al
mov ecx, dword [esp + 0x2070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x205c]
xor ecx, esp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x47a2b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x834
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.004e0b49
call fcn.0047da20
push 0
mov ecx, esi
call fcn.004dfe40
push 0x800
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004fd670
mov edi, dword [esi + 0x145c4]
add esp, 0xc
test edi, edi
je 0x47a40b
push 0x800
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.004fd670
add esp, 0xc
push 0
push 0x400
lea ebx, [esp + 0x40]
mov edx, str.WIZARD_CAPTION
mov ecx, edi
call fcn.00487e80
test eax, eax
mov ecx, esi
jne 0x47a33a
mov edx, ebx
push edx
jmp 0x47a33f
push str.Samsung_Printer
call fcn.004dfda6
call fcn.004e4d97
call fcn.004e4d97
mov eax, dword [eax + 0xc]
push 0x84
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
mov dword [esi + 0x145b0], eax
mov eax, dword [esi + 0x20]
push 0x80
push eax
call ebx
mov ecx, dword [esi + 0x145b0]
mov edx, dword [esi + 0x20]
push ecx
xor edi, edi
push edi
push 0x80
push edx
call ebx
push 0x800
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.004fd670
mov ecx, dword [esi + 0x145c4]
add esp, 0xc
push edi
push 0x400
lea ebx, [esp + 0x40]
mov edx, 0x5619d0
call fcn.00487e80
test eax, eax
jne 0x47a401
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
mov edx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call fcn.00494490
add esp, 8
test eax, eax
jne 0x47a40b
movzx ecx, byte [esp + 0xc]
xor eax, eax
mov ah, byte [esp + 0x10]
mov al, byte [esp + 0x14]
shl eax, 8
or eax, ecx
mov dword [esi + 0x145b8], eax
jmp 0x47a40b
mov dword [esi + 0x145b8], 0xa5581b
mov edx, dword [esi + 0x78]
mov eax, dword [edx + 0x134]
lea ebx, [esi + 0x78]
push esi
push 0x83
mov ecx, ebx
call eax
push 0
mov ecx, ebx
call fcn.004dfe40
mov ecx, dword [0x56173c]
mov edx, dword [0x561740]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [0x561748]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov eax, dword [0x561744]
xor edi, edi
mov dword [esp + 0x30], ecx
push edi
xor ecx, ecx
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x20], 5
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.00493660
add esp, 4
cmp eax, 0x40002
jb 0x47a49c
mov edi, 4
mov eax, dword [esi + 0x20]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
test eax, eax
mov dword [esi + 0x28f5c], eax
jne 0x47a4d0
push str.RegisterDeviceNotification_fail
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x47d000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cf90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x47d130
cmp esi, eax
je 0x47d130
mov eax, dword [edi + 0x28af4]
cmp eax, 0xffffffff
je 0x47d065
lea ecx, [edi + 0x145f8]
call fcn.0047e010
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x38
push 0
push esi
call fcn.004fd670
add esp, 0xc
mov ecx, dword [ebx + 0x808]
mov dword [esi + 8], ecx
mov edx, dword [ebx + 0x80c]
mov dword [esi + 0xc], edx
cmp byte [ebx + 0xa11], 0
je 0x47d0b4
lea eax, [edi + 0x14610]
test eax, eax
je 0x47d09a
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47d0b4
mov eax, dword [edi + 0x24c10]
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x1c], ecx
lea eax, [ebx + 0xa14]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47d0c0
sub eax, edx
xor ecx, ecx
sar eax, 1
je 0x47d0ec
mov eax, dword [ebp + 8]
cmp eax, ecx
je 0x47d0ec
mov edx, dword [esi + 0x18]
add edx, dword [esi + 8]
mov dword [esi + 0x28], edx
mov eax, dword [eax + 0x10604]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 0x18]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x24], ecx
mov edx, dword [esi + 8]
add edx, eax
mov dword [esi + 0x30], edx
mov eax, dword [esi + 0x2c]
add eax, ecx
mov dword [esi + 0x34], eax
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47e7f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov byte [ecx + 0x11244], 1
jmp fcn.004e0e9f