joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409260
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x42040a
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x42e7a0]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push edi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
push str.TEMP
lea eax, [esp + 0x18]
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll__wdupenv_s]
add esp, 0xc
test eax, eax
je 0x4092c7
push str._KiesTrayAgent__Failed_to_TEMP_environment_variable_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40942d
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0xc4]
call fcn.0040d090
push str.KiesLiveupdateTemp
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0x128], 0
call fcn.0040d6b0
mov byte [esp + 0x120], 1
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 8]
push SysReAllocString
push eax
call fcn.00414600
push 0
push 0
push str.SilentUpdateLastStep
push str.SoftwareSAMSUNGKies2.0
call fcn.00414620
push 0
push 0x4229bc
push str.SilentUpdateVer
push str.SoftwareSAMSUNGKies2.0
mov dword [esi + 0x830], eax
lea edi, [esi + 0x82c]
call fcn.00414760
add esp, 0x28
push eax
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
cmp dword [esi + 0x830], 0
jne 0x40937d
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::IsEmpty]
test al, al
je 0x40937d
push 1
lea ecx, [esp + 0x70]
call fcn.0040c6e0
push eax
mov ecx, esi
call fcn.00406c90
mov ecx, esi
call fcn.004091a0
cmp eax, 1
jne 0x409405
push str.KiesSilentUpdateAgent.exe
lea ecx, [esp + 0x70]
call fcn.0040d730
lea ecx, [esp + 0x6c]
call fcn.0040c6e0
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x124], 2
call fcn.0040d2f0
push 1
mov ecx, eax
mov byte [esp + 0x124], 3
call fcn.0040c6e0
push eax
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x18]
mov byte [esp + 0x120], 2
call fcn.00404930
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x120], 0
call fcn.00404930
lea ecx, [esp + 0xc0]
mov dword [esp + 0x120], 0xffffffff
call fcn.00404930
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0041d7e6
add esp, 0x118
ret
Function at 0x40bb60
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4206dc
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x42e7a0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
push esi
push edi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov esi, ecx
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi], vtable.CTrayNotifyIcon.0
mov dword [esi + 0x3e0], edi
mov dword [esi + 0x3e4], edi
mov dword [esi + 0x3e8], edi
mov dword [esp + 0x148], edi
mov dword [esi + 0x3ec], 0x424df8
mov dword [esi + 0x3f0], edi
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x14c], 1
mov dword [esi + 0x3f4], edi
mov dword [esi + 0x3f8], 1
mov dword [esi + 0x3fc], edi
mov dword [esi + 0x400], edi
mov dword [esi + 0x404], edi
mov dword [esi + 0x408], edi
mov dword [esi + 0x40c], edi
mov dword [esi + 0x410], edi
mov dword [esp + 0x2c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40bc4b
cmp dword [esp + 0x2c], 6
jb 0x40bc4b
mov dword [esi + 0x3fc], 3
jmp 0x40bca1
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x40bca1
push str.DllGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x40bca1
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x14
call eax
test eax, eax
jl 0x40bca1
mov eax, dword [esp + 0x18]
cmp eax, 6
jb 0x40bc92
mov dword [esi + 0x3fc], 2
jmp 0x40bca1
cmp eax, 5
jb 0x40bca1
mov dword [esi + 0x3fc], 1
push 0x3bc
lea ebp, [esi + 0x24]
push edi
push ebp
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 0x3fc]
add esp, 0xc
sub eax, 1
mov ecx, 0x98
je 0x40bce1
sub eax, 1
je 0x40bcd7
sub eax, 1
jne 0x40bceb
mov eax, 0x3bc
mov dword [ebp], eax
jmp 0x40bcee
mov eax, 0x3b8
mov dword [ebp], eax
jmp 0x40bcee
mov eax, 0x3a8
mov dword [ebp], eax
jmp 0x40bcee
mov dword [ebp], ecx
mov eax, esi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0041d7e6
add esp, 0x13c
ret
Function at 0x40fb00
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
xor ebp, ebp
push edi
mov edi, ecx
cmp ebx, ebp
jne 0x40fb21
push ebp
push ebp
push ebp
push 2
call fcn.00412cb0
pop edi
pop ebp
xor al, al
pop ebx
ret 8
push esi
mov esi, dword [edi + 0x18]
cmp esi, ebp
je 0x40fb41
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, ebp
jne 0x40fb30
mov esi, dword [sym.imp.MSVCR90.dll_fseek]
push 2
or eax, 0xffffffff
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
push ebp
push ebx
mov dword [edi + 8], eax
mov dword [edi + 4], eax
call esi
push ebx
call dword [sym.imp.MSVCR90.dll_ftell]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jg 0x40fb8b
push 0
push 0
push 0
push 0xc
mov ecx, edi
call fcn.00412cb0
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
lea eax, [ebp + 1]
push eax
call sub.mfc90u.dll_new__
push ebx
push 1
mov esi, eax
push ebp
push esi
mov byte [esi], 0
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x40fbcd
push esi
call sub.mfc90u.dll_delete__
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, edi
call fcn.00412cb0
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 8
mov byte [esi + ebp], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x40fbfc
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, 0xd
jne 0x40fbf3
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0xa
jne 0x40fbf7
jmp 0x40fbf6
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x40fbe0
mov eax, dword [esp + 0x18]
push eax
mov byte [ecx], 0
mov edx, dword [edi]
mov edx, dword [edx + 8]
push 0
push esi
mov ecx, edi
call edx
push esi
call sub.mfc90u.dll_delete__
add esp, 4
xor eax, eax
cmp byte [edi + 0x2c], al
pop esi
pop edi
pop ebp
sete al
pop ebx
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x4210a3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x42e988
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x42e988
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x425474
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0040e990
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4123e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4213a9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor eax, eax
mov ecx, 0x42e988
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esp + 0x14], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [esp + 0x1c]
push esi
mov byte [esp + 0x18], 3
call fcn.00411150
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x414620
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x42e998]
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41465f
mov eax, dword [esp + 0x1c]
add esp, 0x10
ret
mov eax, dword [esp]
push esi
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4146ae
cmp dword [esp + 0x24], 0
je 0x4146a6
mov eax, dword [esp + 4]
test eax, eax
je 0x4146a6
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x24]
push edx
push 4
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x10
ret

Function at 0x414760
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x42e7a0]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov eax, dword [esp + 0x220]
push ebp
push esi
mov ebp, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x234]
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
lea edx, [esp + 0x18]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
mov eax, dword [0x42e998]
push eax
mov dword [esp + 0x38], ebx
xor esi, esi
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4147e4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
jne 0x414814
test edi, edi
je 0x41484b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [esp + 0x10], eax
cmp dword [esp + 0x238], ebx
je 0x414818
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x414818
push eax
push edi
push 1
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x10]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41484b
test esi, esi
je 0x414839
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
lea edx, [esp + 0x20]
push edx
jmp 0x414844
test edi, edi
je 0x41484b
mov eax, dword [esp + 0x10]
inc eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41485a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0041d7e6
add esp, 0x218
ret
Function at 0x414ac0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 4]
push eax
mov eax, dword [0x42e998]
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x414b21
push esi
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x14]
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 4]
push ecx
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret

Function at 0x414e60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call ebx
push 0x43
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call edi
push 0x43
push 0
push 0
push 0
push 0
push 0
push esi
call edi
push esi
call ebx
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
ret
Function at 0x4155b0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x421629
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0x4229bc
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x30], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x41567c
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x415621
lea ecx, [esp + 0x10]
push ecx
jmp 0x415681
mov edx, dword [esp + 0x14]
push esi
push edi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x4229b8
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push str._u._u._u._u
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
jmp 0x415681
lea eax, [esp + 0x10]
push eax
mov esi, dword [esp + 0x34]
mov ecx, esi
call dword [0x422830]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x415b90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x421759
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
call fcn.00415900
mov esi, eax
push 0x425fc0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.00415870
mov ecx, dword [esi]
mov byte [esp + 0x24], 1
test ecx, ecx
je 0x415bf5
mov edx, dword [ecx]
jmp 0x415bf7
xor edx, edx
mov eax, dword [eax]
test eax, eax
je 0x415c01
mov ecx, dword [eax]
jmp 0x415c03
xor ecx, ecx
mov eax, dword [edi + 4]
mov esi, dword [eax]
lea edi, [esp + 0x14]
push edi
push 0
push 0x30
push edx
push ecx
mov ecx, dword [esi + 0x50]
push eax
call ecx
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x415c67
mov esi, eax
add eax, 8
push eax
call edi
test eax, eax
jne 0x415c5f
test esi, esi
je 0x415c5f
mov eax, dword [esi]
test eax, eax
je 0x415c46
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x415c56
push eax
call sub.mfc90u.dll_delete__
add esp, 4
push esi
call sub.mfc90u.dll_delete
add esp, 4
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
test esi, esi
je 0x415cab
lea edx, [esi + 8]
push edx
call edi
test eax, eax
jne 0x415cab
test esi, esi
je 0x415cab
mov eax, dword [esi]
test eax, eax
je 0x415c92
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x415ca2
push eax
call sub.mfc90u.dll_delete__
add esp, 4
push esi
call sub.mfc90u.dll_delete
add esp, 4
test ebp, ebp
jge 0x415d07
lea ecx, [esp + 0x2c]
call dword [0x422778]
push ebp
lea eax, [esp + 0x30]
push str.Query_for_operating_system_name_failed._Error_code__0x
push eax
mov dword [esp + 0x30], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x41c180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push ebp
push 0x20
mov ebx, ecx
push 0x40
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x41c35c
mov eax, dword [esp + 0x6c]
push esi
push eax
mov ecx, ebx
mov dword [ebp], 0
call fcn.0041b7b0
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x41c36b
mov eax, dword [0x42e734]
push edi
mov edi, eax
cmp eax, 0x42e734
je 0x41c21d
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x41c34e
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c206
test dx, dx
je 0x41c202
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c206
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c1e0
xor eax, eax
jmp 0x41c20b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41c34e
mov edi, dword [edi]
cmp edi, 0x42e734
jne 0x41c1d0
push 1
push esi
mov ecx, ebx
call fcn.0041b870
test eax, eax
je 0x41c26d
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.PCIVEN__xDEV__xSUBSYS__xREV__x
push eax
call dword [sym.imp.MSVCR90.dll_swscanf_s]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x34]
add esp, 0x18
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x1c], eax
push 0
push esi
mov ecx, ebx
call fcn.0041b870
mov esi, eax
test eax, eax
jne 0x41c281
mov esi, dword [esp + 0x78]
push 0x40
lea ecx, [esp + 0x2c]
push 0
push ecx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0
push 0x1132
mov dword [esp + 0x4c], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0xffff0002
mov dword [esp + 0x40], 5
mov dword [esp + 0x64], ebp
call esi
mov edi, eax
xor eax, eax
lea ecx, [esp + 0x30]
push ecx
push eax
push 0x113f
push ebx
mov dword [esp + 0x40], 0x22
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call esi
test edi, edi
je 0x41c364
mov ecx, dword [0x42e738]
mov edx, dword [esp + 0x74]
lea eax, [ebp + 4]
mov dword [ebp + 8], ecx
mov ebp, dword [esp + 0x20]
mov dword [eax], 0x42e734
mov dword [ecx], eax
push edx
mov ecx, ebp
mov dword [0x42e738], eax
call fcn.0041b9c0
mov esi, eax
test esi, esi
je 0x41c35a
push str.RootHub
push 0
push 0
push 0
push esi
push edi
push ebx
mov ecx, ebp
call fcn.0041ba80
test eax, eax
jne 0x41c35a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10
mov eax, dword [esp + 0x24]
push eax
jmp 0x41c34f
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x10

Function at 0x41d7e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e7a0]
jne 0x41d7f0
repz ret
jmp fcn.0041df8a
Function at 0x41e353
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42ee9c], 0
push esi
jne 0x41e2c1
call fcn.0041e1d5
test eax, eax
je 0x41e304
mov eax, dword [0x42ee9c]
cmp eax, 1
jne 0x41e2e2
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41e304
pop esi
ret
push eax
call dword [0x42eea4]
test eax, eax
jne 0x41e34c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41e308
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42ee9c]
call dword [0x42eea4]
mov edi, eax
test edi, edi
je 0x41e32d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41e349
mov edi, esi
add esi, 0xff0
push edi
push dword [0x42ee9c]
call dword [0x42eea0]
add edi, 0x10
cmp edi, esi
jb 0x41e335
mov eax, edi
pop edi
pop esi
ret
jmp 0x41e2ae