joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6b60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x7c]
lea ebx, [ebp - 0x74]
mov edi, ecx
sub esp, 0xac
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], ebx
mov dword [esp + 4], esi
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x74], 0
mov dword [esp], eax
call fcn.004b3a00
test al, al
jne 0x4b6bc0
mov edx, dword [ebp - 0x7c]
cmp edx, ebx
je 0x4b6bb1
mov dword [esp], edx
mov byte [ebp - 0x89], al
call sub.libstdc_6.dll_operator_delete_void_
movzx eax, byte [ebp - 0x89]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea ecx, [ebp - 0x64]
mov dword [esp], 0xc84b1f
call fcn.004b1fc0
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], esi
mov dword [esp + 4], edi
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x64]
mov dword [esp + 8], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.004b6550
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x5c]
cmp eax, edx
je 0x4b6c0d
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
cmp dword [ebp - 0x4c], 0xc8
je 0x4b6cc0
mov dword [esp], str._sensors__SensorsAnalytics_SDK_send_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
mov dword [esp + 8], 0x22
mov dword [esp + 4], str.SensorsAnalytics_SDK_send_failed:
mov dword [esp], sym.imp.libstdc_6.dll_std::cerr
call fcn.004e3c20
mov eax, dword [ebp - 0x44]
mov dword [esp], sym.imp.libstdc_6.dll_std::cerr
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
call fcn.004e3c20
mov dword [esp], eax
call fcn.004e3ba0
xor esi, esi
mov dword [esp], 0xcbefe8
call sub.libwinpthread_1.dll_pthread_mutex_lock
test eax, eax
jne 0x4b6cc7
mov eax, esi
mov dword [esp], 0xcbefe8
mov byte [0xcbefe4], al
call sub.libwinpthread_1.dll_pthread_mutex_unlock
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov dword [esp], eax
call fcn.00548c70
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
sub esp, 4
cmp eax, edx
je 0x4b6cb0
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
mov eax, esi
jmp 0x4b6b95
mov esi, 1
jmp 0x4b6c6a
mov dword [esp], eax
call fcn.004e3bc8
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00525160
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x4b6ce8
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov esi, eax
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x5c]
cmp eax, edx
je 0x4b6cd9
mov dword [esp], eax
call sub.libstdc_6.dll_operator_delete_void_
jmp 0x4b6cd9
Function at 0x4ded20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x28]
add eax, 1
add eax, dword [esp + 0x2c]
cmp dword [esp + 0x28], 1
mov dword [esp + 0xc], eax
jle 0x4dedd7
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 8], 1
neg eax
not ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov ecx, ebp
mov ebp, edx
sub eax, 1
mov dword [esp + 0x10], eax
lea esi, [esi]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
movzx eax, byte [edi - 1]
add esi, edi
mov dword [esp], esi
mov esi, eax
mov ebx, dword [esp + 4]
movzx eax, byte [edi]
movzx ebx, byte [edi + ebx]
mov edx, eax
or edx, ebx
and ebx, eax
or edx, esi
or dl, byte [edi + ecx]
and ebx, esi
and bl, byte [edi + ecx]
mov esi, eax
xor edx, 1
or edx, ebx
lea ebx, [ebp + 3]
and edx, 1
cmovne ebp, ebx
add edi, 1
cmp dword [esp], edi
jne 0x4ded83
add dword [esp + 8], 1
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 8]
add dword [esp + 0xc], esi
cmp esi, eax
jne 0x4ded70
add esp, 0x14
mov edx, ebp
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
add esp, 0x14
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
Function at 0x4e2e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0xcbfa60]
test esi, esi
jle 0x4e2f20
mov edi, dword [0xcbfa64]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4e2e44
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4e2ec5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4e2e30
mov dword [esp], eax
mov ebx, eax
call fcn.004e3700
test eax, eax
mov edi, eax
je 0x4e2f47
mov eax, dword [0xcbfa64]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004e3800
add eax, dword [edi + 0xc]
mov edx, dword [0xcbfa64]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4e2f27
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4e2ebe
sub eax, 4
and eax, 0xfffffffb
jne 0x4e2ed0
add dword [0xcbfa60], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0xcbfa64]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4e2ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00551fd0
lea esi, [esi]
xor esi, esi
jmp 0x4e2e4e
mov eax, dword [0xcbfa64]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00551fd0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00551fd0
mov esi, esi
lea edi, [edi]

Function at 0x4e3380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xcbfa78
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xcbfa70]
sub esp, 4
test ebx, ebx
je 0x4e33d5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4e33ce
test esi, esi
je 0x4e33ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4e33b0
mov dword [esp], 0xcbfa78
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4e3960
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x4e3aec
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x20000000
mov eax, 0xffffffff
cmovb eax, edx
mov dword [esp], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
je 0x4e3a7c
xor ebx, ebx
nop
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call sub.libstdc_6.dll_operator_new___unsigned_int_
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jne 0x4e39d0
lea eax, [edi + ebx*4]
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040e970
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4e3ad8
mov eax, dword [edi]
test eax, eax
je 0x4e3ad8
xor ebx, ebx
jmp 0x4e3ac7
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x4e3ad8
mov dword [esp], eax
add ebx, 1
call sub.libstdc_6.dll_operator_delete___void_
cmp dword [esp + 0x3c], ebx
jne 0x4e3ac0
mov dword [esp], edi
call sub.libstdc_6.dll_operator_delete___void_
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov esi, 0xffffffff
jmp 0x4e3ae0
Function at 0x4e51b0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x4e5203
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x4e51f0
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x4e5280
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.004e4a60
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.004e4630
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004e4ea0
mov eax, dword [0x5682e4]
cmp eax, 0xffffffff
je 0x4e52b5
test eax, eax
je 0x4e52a5
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x4e520b
mov dword [0x5682e4], 0
call fcn.004e9590
test al, 1
mov edx, 3
jne 0x4e528e
jmp 0x4e5293
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4e529b
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x4e529b
mov dword [0x5682e4], 1
jmp 0x4e528e
Function at 0x551fd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004e94a0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004e94a0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
pop ebp
jmp fcn.004014e0
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x40d24a8b
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x742c237c
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4015cf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov edi, dword [esp + 0x18]
push 0x100
mov esi, 0x4030e4
push dword [edi]
push esi
call ebx
push 0x4030c0
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0x14
call fcn.00401000
test al, al
jne 0x401668
push 0x4032e4
push esi
call fcn.00401148
pop ecx
xor ebp, ebp
test eax, eax
pop ecx
je 0x401661
mov eax, dword [esp + 0x14]
mov esi, 0x4038f8
cmp eax, 1
jbe 0x40164c
mov ebx, dword [sym.imp.MSVCRT.dll_wcscat]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
push 0x403060
push esi
call ebx
push dword [edi]
push esi
call ebx
add esp, 0x10
add edi, 4
dec dword [esp + 0x14]
jne 0x401633
push 1
push ebp
push esi
push 0x4032e4
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebp
call dword [sym.imp.MSVCRT.dll_exit]
push edi
xor ebp, ebp
push dword [esp + 0x18]
mov word [0x4032e4], bp
jmp section..htext

Function at 0x40170f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402088
push 0x401850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403cf8], 0xffffffff
or dword [0x403cfc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403d00], eax
call fcn.00401841
cmp dword [0x4030b0], 0
jne 0x401792
push 0x40183e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040182c
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403ce8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015cf
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401193
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
push ebx
push esi
lea eax, [ebp + 8]
push edi
mov ebx, 0xf003f
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
xor edi, edi
push ebx
push edi
push dword [ebp + 8]
push 0x80000002
call esi
test eax, eax
jne 0x40139b
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x64
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.CurrentVersion
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40139b
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0x6c]
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40139b
lea eax, [ebp + 8]
push eax
push ebx
push edi
push str.Main
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40139b
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x47c]
push eax
push edi
push edi
push str.Install_Directory
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40139b
lea eax, [ebp - 0x47c]
mov dword [ebp - 4], edi
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x47e], 0x5c
pop ecx
je 0x401272
lea eax, [ebp - 0x47c]
push 0x4140b8
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x47c]
push str.Plugins_
push eax
call sub.MSVCRT.dll_wcscat
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x274]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x274]
push str.NPIDMan1.dll
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x18
lea eax, [ebp - 4]
mov esi, 0x41b968
push edi
push eax
lea eax, [ebp - 0x274]
push esi
push eax
call fcn.004059d7
cmp dword [ebp - 4], edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
je 0x401316
mov eax, dword [0x41bbc8]
cmp eax, edi
jne 0x4012da
mov eax, 0x41bbcc
lea ecx, [ebp - 0x274]
push ecx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x884]
push eax
call ebx
mov eax, dword [0x41ba68]
add esp, 0x10
cmp eax, edi
jne 0x4012ff
mov eax, 0x41ba6c
push 0x10030
push eax
lea eax, [ebp - 0x884]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x47c]
push eax
lea eax, [ebp - 0x274]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x274]
push str.NPIDMan2.dll
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x274]
push esi
push eax
call fcn.004059d7
cmp dword [ebp - 4], edi
je 0x40139b
mov eax, dword [0x41bbc8]
cmp eax, edi
jne 0x401362
mov eax, 0x41bbcc
lea ecx, [ebp - 0x274]
push ecx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x884]
push eax
call ebx
mov eax, dword [0x41ba68]
add esp, 0x10
cmp eax, edi
jne 0x401387
mov eax, 0x41ba6c
push 0x10030
push eax
lea eax, [ebp - 0x884]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013a0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c4
lea eax, [ebp - 0x24]
push esi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push 0x41b124
push esi
push str.SoftwareDownloadManagerIDMBI
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401584
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401404
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401584
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x401427
cmp dword [ebp - 0x1c], esi
jne 0x40143c
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
jmp 0x401584
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp + 8], esi
lea eax, [ebp - 0x22c]
push 0x104
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x401566
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x22c]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401566
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x208
push eax
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push 0x41471c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40155d
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push 0x414714
push eax
call edi
lea eax, [ebp - 0x434]
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
add esp, 0x14
cmp eax, esi
je 0x4014e4
mov word [eax + 2], si
cmp dword [ebp + 0xc], esi
mov eax, str.ProgramPlugins_
jne 0x4014f3
mov eax, str.Plugins_
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x8c4]
push 0x4146e4
push eax
call edi
add esp, 0x10
push 1
pop ebx
lea eax, [ebp - 0x8c4]
push ebx
push eax
lea eax, [ebp - 0x67c]
push str._sNP_IDM_d.dll
push eax
mov dword [ebp - 0x14], esi
call edi
add esp, 0x10
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401544
cmp ebx, 5
jg 0x40155d
jmp 0x40155a
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x67c]
push 0x41b968
push eax
call fcn.004059d7
inc ebx
jmp 0x40150f
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp + 8]
cmp dword [ebp - 0x10], esi
je 0x401447
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
pop edi
pop ebx
pop esi
leave
ret
Function at 0x402805
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41096c
call fcn.00410480
sub esp, 0x214
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareDownloadManager
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402843
or eax, 0xffffffff
jmp 0x4028a1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x208
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push str.TempPath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402896
lea eax, [ebp - 0x220]
push str.DwnlData
push eax
lea eax, [ebp - 0x220]
push 0x414ffc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x220]
push eax
call fcn.0041009e
add esp, 0x14
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret