joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp byte [esi + 0x23f], 0
push ebx
push edi
jne 0x40afdb
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40af73
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
mov ecx, dword [esi + 0x244]
test ecx, ecx
je 0x40afd4
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40afd4
test ecx, ecx
je 0x40afae
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40afb4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x244]
mov eax, dword [ecx + edi*4]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x10]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 1
jmp 0x40af82
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.MSVCR80.dll_free]
xor edi, edi
mov ecx, dword [esi + 0x244]
test ecx, ecx
je 0x40b055
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40b055
test ecx, ecx
je 0x40b00f
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40b015
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0x244]
mov eax, dword [edx + edi*4]
push eax
call ebx
mov ecx, dword [esi + 0x244]
add esp, 4
test ecx, ecx
je 0x40b03d
mov eax, dword [esi + 0x248]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40b043
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x244]
mov dword [ecx + edi*4], 0
add edi, 1
jmp 0x40afe3
mov ebx, dword [esi + 0x248]
cmp ecx, ebx
jbe 0x40b065
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0x244]
cmp edi, dword [esi + 0x248]
jbe 0x40b079
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x40b0b1
mov eax, dword [esi + 0x248]
sub eax, ebx
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + edi]
mov dword [esp + 0xc], edx
jle 0x40b0a7
push ecx
push ebx
push ecx
push edi
call dword [sym.imp.MSVCR80.dll_memmove_s]
add esp, 0x10
mov eax, dword [esp + 0xc]
mov dword [esi + 0x248], eax
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ef60
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov ebp, ecx
jne 0x40ef7d
push edi
push edi
push edi
push 2
call fcn.004114e0
pop edi
xor eax, eax
pop ebp
ret 0x10
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_fseek]
push esi
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_ftell]
mov esi, dword [esp + 0x2c]
push 0
push 0
push edi
mov dword [esi], eax
call ebx
mov eax, dword [esi]
add esp, 0x1c
test eax, eax
jg 0x40efb8
mov dword [esi], 0
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret 0x10
add eax, 1
push eax
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [esi]
push edi
push 1
push ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x40eff6
mov edx, dword [esp + 0x14]
push edx
mov dword [esi], 0
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret 0x10
cmp byte [esp + 0x20], 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov byte [ecx + eax], 0
je 0x40f019
mov edx, dword [esp + 0x18]
push esi
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.004137e0
mov eax, dword [esp + 0x14]
pop esi
pop ebx
pop edi
pop ebp
ret 0x10

Function at 0x40f740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4335a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
or eax, 0xffffffff
push edi
xor edi, edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esp + 8], esi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], edi
mov dword [esi], vtable.TiXmlAttribute.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x10], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40f7b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4335f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
or eax, 0xffffffff
xor ebp, ebp
mov dword [esi + 8], eax
mov dword [esi + 4], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0xc], ebp
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [esp + 0x1c], ebp
mov dword [esi], vtable.TiXmlAttribute.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ebx, [esi + 0x30]
mov ecx, ebx
mov byte [esp + 0x1c], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [esp + 0x24]
push eax
mov ecx, edi
mov byte [esp + 0x20], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x10], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4100b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4337d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 8]
lea esi, [edi + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
cmp dword [esi + 0x18], 0x10
jb 0x4100fe
mov esi, dword [esi + 4]
jmp 0x410101
add esi, 4
push 0x44330c
push esi
call fcn.0040ec50
mov esi, eax
add esp, 8
test esi, esi
mov ecx, edi
je 0x41015c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ebx
push edx
push eax
push esi
call fcn.0040f030
push esi
mov bl, al
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
push 0
push 0
push 0
push 2
call fcn.004114e0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x414870
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x433a9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
mov dword [esp + 8], 0
mov esi, dword [esp + 0x240]
mov ecx, esi
mov dword [esp + 0x238], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x208
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x244], 0
mov dword [esp + 0x14], 1
call fcn.00417e46
mov bl, byte [esp + 0x250]
add esp, 0xc
mov cl, bl
neg cl
push 1
lea edx, [esp + 0x2c]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41496d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push eax
mov ecx, esi
mov dword [esp + 0x23c], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0xc]
mov byte [esp + 0x238], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test bl, bl
mov ecx, esi
je 0x41493f
push str.TencentDeskUpdate
jmp 0x414944
push str.TencentDesktop
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push esi
call fcn.004142b0
add esp, 4
test al, al
jne 0x414960
push esi
call fcn.00414400
add esp, 4
push str.Global.db
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [esp + 0x230]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret
Function at 0x414a80
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x433afc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00414870
add esp, 8
mov eax, dword [esp + 0x34]
mov ebp, 8
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x2a4], ebx
jae 0x414ac9
lea eax, [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x414b9d
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.00414870
mov eax, dword [esp + 0x3c]
add esp, 8
cmp dword [esp + 0x48], ebp
jae 0x414b06
lea eax, [esp + 0x34]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x414b20
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x414b6f
lea eax, [esp + 0x14]
push eax
call fcn.00414800
add esp, 4
test al, al
je 0x414b6f
cmp dword [esp + 0x48], ebp
mov ecx, dword [esp + 0x34]
jae 0x414b3f
lea ecx, [esp + 0x34]
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x414b4d
lea eax, [esp + 0x18]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x414b6f
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x414b68
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x18]
jae 0x414b7d
lea eax, [esp + 0x18]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
call edi
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, 0xffffffff
je 0x414bd5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x414bce
mov edx, dword [esp + 0x2ac]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414bce
cmp dword [esp + 0x10], edi
jne 0x414bce
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
mov dword [esp + 0x2a4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x298
ret 4
Function at 0x414c10
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x433b19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00414870
add esp, 8
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], ebx
jae 0x414c4e
lea eax, [esp + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x414ca8
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.00414870
mov eax, dword [esp + 0x18]
add esp, 8
cmp dword [esp + 0x24], 8
jae 0x414c88
lea eax, [esp + 0x10]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call edi
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, 0xffffffff
je 0x414cd0
mov eax, dword [esp + 0x54]
push ebx
lea edx, [esp + 0x58]
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414cc9
cmp dword [esp + 0x54], 0x10
jne 0x414cc9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4
Function at 0x4156f0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret

Function at 0x415960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433bca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [esp + 0x20]
push edi
mov ecx, esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
cmp edi, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 1
jg 0x4159e4
mov ebx, dword [esp + 0x28]
lea esp, [esp]
movzx eax, byte [ebx + edi*2 + 1]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
movzx ecx, word [ebx + edi*2]
and ecx, 0x800000ff
jns 0x4159d2
dec ecx
or ecx, 0xffffff00
inc ecx
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_]
add edi, 1
cmp edi, ebp
jle 0x4159b0
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x415a29
mov ebp, 0x10
mov edi, edi
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
cmp edi, eax
jbe 0x415a00
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], ebp
jb 0x415a0a
mov eax, dword [esi + 4]
jmp 0x415a0d
lea eax, [esi + 4]
cmp byte [eax + edi], 0x20
jne 0x415a29
mov eax, dword [esi + 0x14]
push 1
add eax, 0xffffffff
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
cmp dword [esi + 0x14], ebx
jne 0x4159f0
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x416c00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov ebp, 1
push SysStringLen
mov edi, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
call esi
test eax, eax
jne 0x416d7c
mov ecx, dword [esp + 0x128]
push ecx
push str._sConnection
lea edx, [esp + 0x28]
push 0x103
push edx
call fcn.0040f720
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
call esi
test eax, eax
jne 0x416d71
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0xc], eax
mov eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.MediaSubType
push eax
call esi
test eax, eax
jne 0x416d66
push 0x104
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x103
call fcn.00417e46
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.PnpInstanceID
push edx
call esi
test eax, eax
jne 0x416d66
cmp dword [esp + 0xc], ebp
jne 0x416d56
mov esi, dword [sym.imp.MSVCR80.dll_strncmp]
push edi
lea eax, [esp + 0x24]
push 0x43a974
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x416d34
xor edi, edi
jmp 0x416d66
cmp dword [esp + 0xc], ebp
jne 0x416d56
push 3
lea ecx, [esp + 0x24]
push 0x43a974
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x416d56
mov edi, 2
jmp 0x416d66
xor edx, edx
cmp dword [esp + 0xc], 2
setne dl
lea edx, [edx + edx + 1]
mov edi, edx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x118
ret

Function at 0x417120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax - 0xc], 0
jne 0x417137
lea ecx, [esp + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor eax, eax
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41715b
test al, 0x10
je 0x41715b
lea ecx, [esp + 8]
mov esi, 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, esi
pop esi
ret
lea ecx, [esp + 8]
xor esi, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, esi
pop esi
ret
Function at 0x418b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push esi
push 0x64
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.00417e46
mov eax, dword [ebp + 0x14]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 0x10
shl edx, 8
movzx ecx, cl
or edx, ecx
shl edx, 8
shr eax, 0x18
or edx, eax
mov eax, dword [ebp + 0x10]
push edx
xor ecx, ecx
mov edx, eax
shr edx, 0x10
mov ch, dl
mov edx, eax
shr edx, 0x18
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov cl, dl
push ecx
mov ecx, eax
shr ecx, 8
movzx eax, al
movzx edx, cl
shl eax, 8
or edx, eax
mov eax, dword [ebp + 0xc]
push edx
mov ecx, eax
shr ecx, 0x10
push ecx
movzx edx, ax
mov eax, dword [ebp + 8]
push edx
push eax
push str._X__X__X__X__X_X
lea ecx, [ebp - 0xd0]
push 0x63
push ecx
call esi
lea edx, [ebp - 0xd0]
push edx
push str.CLSID_sLocalServer32
lea eax, [ebp - 0x2d8]
push 0x103
push eax
call esi
add esp, 0x40
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x2d8]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
pop esi
jne 0x418c0d
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x418c15
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x419eb0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x419f0c
cmp dword [esi + 0x24], 0
jne 0x419efe
mov eax, dword [esi + 4]
push 0
push 0x452160
push 0x451fe0
push 0
push eax
mov dword [esi + 0x28], 1
call fcn.00417d1e
mov ecx, dword [eax + 0x14]
mov edx, dword [esi + 0x1c]
add esp, 0x14
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419efe
mov eax, dword [esi + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
pop esi
ret

Function at 0x419f10
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x20]
push eax
push 0
push esi
push 0x419e70
push 0
push 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], ecx
pop esi
ret