joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a410
Capabilities:
Hash data with crc32

Disassembly:
push ebx
sub esp, 8
mov eax, dword [0x44cd60]
mov edx, dword [esp + 0x10]
test eax, eax
mov dword [edx], 0xffffffff
je 0x41a430
add esp, 8
pop ebx
ret
mov dword [esp], 0x400
call fcn.00420870
xor edx, edx
mov dword [0x44cd60], eax
jmp 0x41a5c5
mov ecx, edx
shr ecx, 1
test cl, 1
jne 0x41a5e1
shr ecx, 1
test cl, 1
jne 0x41a5f2
shr ecx, 1
test cl, 1
jne 0x41a603
shr ecx, 1
test cl, 1
jne 0x41a614
shr ecx, 1
test cl, 1
jne 0x41a625
shr ecx, 1
test cl, 1
jne 0x41a636
shr ecx, 1
test cl, 1
je 0x41a647
shr ecx, 1
xor ecx, 0xedb88320
mov dword [eax + edx*4], ecx
add edx, 1
cmp edx, 0x100
je 0x41a427
test dl, 1
je 0x41a697
mov ecx, edx
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a6a4
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a6af
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a6ba
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a6c5
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a6d0
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a6db
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
jne 0x41a6e6
shr ecx, 1
mov dword [eax + edx*4], ecx
lea ecx, [edx + 1]
test cl, 1
je 0x41a6fd
mov ebx, ecx
shr ebx, 1
xor ebx, 0xedb88320
test bl, 1
je 0x41a690
shr ebx, 1
xor ebx, 0xedb88320
test bl, 1
je 0x41a687
shr ebx, 1
xor ebx, 0xedb88320
test bl, 1
je 0x41a680
shr ebx, 1
xor ebx, 0xedb88320
test bl, 1
je 0x41a650
shr ebx, 1
xor ebx, 0xedb88320
test bl, 1
je 0x41a65b
shr ebx, 1
xor ebx, 0xedb88320
test bl, 1
je 0x41a666
shr ebx, 1
xor ebx, 0xedb88320
test bl, 1
jne 0x41a671
shr ebx, 1
mov dword [eax + ecx*4], ebx
add edx, 2
test dl, 1
je 0x41a448
mov ecx, edx
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a455
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a460
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a46b
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a476
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a481
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
je 0x41a48c
shr ecx, 1
xor ecx, 0xedb88320
test cl, 1
jne 0x41a497
shr ecx, 1
jmp 0x41a49f
shr ebx, 1
test bl, 1
jne 0x41a59b
shr ebx, 1
test bl, 1
jne 0x41a5ac
shr ebx, 1
test bl, 1
je 0x41a5bd
shr ebx, 1
xor ebx, 0xedb88320
jmp 0x41a5bf
shr ebx, 1
jmp 0x41a581
shr ebx, 1
jmp 0x41a570
shr ebx, 1
jmp 0x41a55f
mov ecx, edx
shr ecx, 1
test cl, 1
jne 0x41a4cd
shr ecx, 1
test cl, 1
jne 0x41a4de
shr ecx, 1
test cl, 1
jne 0x41a4ef
shr ecx, 1
test cl, 1
jne 0x41a500
shr ecx, 1
test cl, 1
jne 0x41a511
shr ecx, 1
test cl, 1
jne 0x41a522
shr ecx, 1
test cl, 1
je 0x41a533
shr ecx, 1
xor ecx, 0xedb88320
mov dword [eax + edx*4], ecx
lea ecx, [edx + 1]
test cl, 1
jne 0x41a544
mov ebx, ecx
shr ebx, 1
jmp 0x41a54e
Function at 0x41a710
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov dword [esp + 8], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
test esi, esi
mov eax, dword [ebp]
je 0x41a902
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov ebx, dword [0x44cd60]
shr edx, 8
lea edi, [esi - 1]
and edi, 7
xor al, byte [ecx]
movzx eax, al
mov eax, dword [ebx + eax*4]
xor eax, edx
cmp esi, 1
mov edx, 1
je 0x41a902
test edi, edi
je 0x41a83d
cmp edi, 1
je 0x41a81e
cmp edi, 2
je 0x41a807
cmp edi, 3
je 0x41a7f0
cmp edi, 4
je 0x41a7d9
cmp edi, 5
je 0x41a7c2
cmp edi, 6
nop
je 0x41a7ab
mov ecx, dword [esp + 0x1c]
mov edx, eax
shr edx, 8
xor al, byte [ecx + 1]
movzx edi, al
mov eax, dword [ebx + edi*4]
xor eax, edx
mov edx, 2
mov ecx, dword [esp + 0x1c]
mov edi, eax
shr edi, 8
xor al, byte [ecx + edx]
add edx, 1
movzx eax, al
mov eax, dword [ebx + eax*4]
xor eax, edi
mov ecx, dword [esp + 0x1c]
mov edi, eax
shr edi, 8
xor al, byte [ecx + edx]
add edx, 1
movzx eax, al
mov eax, dword [ebx + eax*4]
xor eax, edi
mov ecx, dword [esp + 0x1c]
mov edi, eax
shr edi, 8
xor al, byte [ecx + edx]
add edx, 1
movzx eax, al
mov eax, dword [ebx + eax*4]
xor eax, edi
mov ecx, dword [esp + 0x1c]
mov edi, eax
shr edi, 8
xor al, byte [ecx + edx]
add edx, 1
movzx eax, al
mov eax, dword [ebx + eax*4]
xor eax, edi
mov ecx, dword [esp + 0x1c]
mov edi, eax
shr edi, 8
xor al, byte [ecx + edx]
add edx, 1
movzx eax, al
mov eax, dword [ebx + eax*4]
xor eax, edi
mov ecx, dword [esp + 0x1c]
mov edi, eax
shr edi, 8
xor al, byte [ecx + edx]
add edx, 1
movzx eax, al
mov eax, dword [ebx + eax*4]
xor eax, edi
cmp esi, edx
je 0x41a902
mov ecx, dword [esp + 0x1c]
mov edi, eax
shr edi, 8
xor al, byte [ecx + edx]
movzx ecx, byte [ecx + edx + 1]
movzx eax, al
xor edi, dword [ebx + eax*4]
mov eax, edi
xor edi, ecx
mov ecx, dword [esp + 0x1c]
and edi, 0xff
mov edi, dword [ebx + edi*4]
shr eax, 8
xor eax, edi
mov dword [esp], eax
mov edi, eax
movzx eax, byte [esp]
xor al, byte [ecx + edx + 2]
movzx ecx, byte [ecx + edx + 3]
shr edi, 8
movzx eax, al
xor edi, dword [ebx + eax*4]
mov eax, edi
xor edi, ecx
mov ecx, dword [esp + 0x1c]
and edi, 0xff
mov edi, dword [ebx + edi*4]
shr eax, 8
xor eax, edi
mov dword [esp], eax
mov edi, eax
movzx eax, byte [esp]
xor al, byte [ecx + edx + 4]
movzx ecx, byte [ecx + edx + 5]
shr edi, 8
movzx eax, al
xor edi, dword [ebx + eax*4]
mov eax, edi
xor edi, ecx
mov ecx, dword [esp + 0x1c]
and edi, 0xff
mov edi, dword [ebx + edi*4]
shr eax, 8
xor eax, edi
mov dword [esp], eax
mov edi, eax
movzx eax, byte [esp]
xor al, byte [ecx + edx + 6]
movzx ecx, byte [ecx + edx + 7]
shr edi, 8
add edx, 8
movzx eax, al
xor edi, dword [ebx + eax*4]
mov eax, edi
xor edi, ecx
and edi, 0xff
shr eax, 8
xor eax, dword [ebx + edi*4]
cmp esi, edx
jne 0x41a83d
mov dword [ebp], eax
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
add esp, 0x14
ret
Function at 0x41d2a0
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [0x470544]
test eax, eax
je 0x41d2b4
mov dword [esp], eax
call fcn.00421200
mov eax, section..data
call fcn.0041d270
mov eax, 0x42c1e0
call fcn.0041d270
mov eax, 0x42c320
call fcn.0041d270
mov eax, 0x42c4a0
call fcn.0041d270
mov eax, 0x42c680
call fcn.0041d270
mov eax, 0x42c7a0
call fcn.0041d270
mov eax, 0x42c8c0
call fcn.0041d270
mov eax, 0x42c9a0
call fcn.0041d270
mov eax, dword [0x44d0e0]
test eax, eax
je 0x41d311
add esp, 0x14
ret
call sub.cygwin1.dll___getreent
mov edx, dword [eax + 0xc]
mov dword [esp + 8], 0x29
mov dword [esp + 4], 1
mov dword [esp], str.Unknown_ciphertext_format_name_requested_n
mov dword [esp + 0xc], edx
call sub.cygwin1.dll_fwrite
add esp, 0x14
jmp fcn.00420a50
Function at 0x4216b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
mov dword [esp], eax
mov dword [esp + 0x20], ebp
call sub.cygwin1.dll_strlen
test eax, eax
mov ebx, eax
jne 0x421706
call sub.cygwin1.dll___getreent
mov edx, dword [eax + 0xc]
mov dword [esp + 8], 0x1f
mov dword [esp + 4], 1
mov dword [esp], str.Invalid_session_name_requested_n
mov dword [esp + 0xc], edx
call sub.cygwin1.dll_fwrite
call fcn.00420a50
mov dword [esp], edi
call sub.cygwin1.dll_strlen
mov dword [esp + 4], 1
lea ebp, [eax + 1]
lea eax, [ebp + ebx]
mov dword [esp], eax
call fcn.004208e0
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov esi, eax
lea ebx, [esi + ebx]
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.cygwin1.dll_memcpy
mov eax, esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
add esp, 0x24
ret

Function at 0x4217a0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x10
test eax, eax
je 0x4217c1
call sub.cygwin1.dll___errno
mov eax, dword [eax]
test eax, eax
je 0x4217c1
mov edx, dword [0x44d4a8]
test byte [edx + 0xc], 0x40
jne 0x4217f5
mov eax, dword [str._JOHN_john.rec]
mov dword [esp], eax
call fcn.00421620
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Incorrect_crash_recovery_file_format:__s_n
mov ecx, dword [eax + 0xc]
mov dword [esp], ecx
call sub.cygwin1.dll_fprintf
add esp, 0x10
pop ebx
jmp fcn.00420a50
mov dword [esp + 4], ebx
mov dword [esp], 0x432e40
call fcn.00420a70
add esp, 0x10
pop ebx
ret

Function at 0x421850
Capabilities:
Terminate process

Disassembly:
push ebx
sub esp, 0x10
mov eax, dword [0x44d4ac]
mov dword [esp + 4], 6
mov dword [esp], eax
call sub.cygwin1.dll_flock
test eax, eax
jne 0x421872
add esp, 0x10
pop ebx
ret
call sub.cygwin1.dll___errno
cmp dword [eax], 0xb
je 0x421890
mov dword [esp], str.flock
call fcn.00420a70
add esp, 0x10
pop ebx
ret
mov ecx, dword [str._JOHN_john.rec]
mov dword [esp], ecx
call fcn.00421620
mov ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Crash_recovery_file_is_locked:__s_n
mov edx, dword [eax + 0xc]
mov dword [esp], edx
call sub.cygwin1.dll_fprintf
add esp, 0x10
pop ebx
jmp fcn.00420a50
Function at 0x4254c0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebx
sub esp, 0x10
mov eax, dword [0x44de84]
mov ebx, dword [esp + 0x18]
test eax, eax
jne 0x4254d6
add esp, 0x10
pop ebx
ret
call fcn.00427810
test ebx, ebx
lea esi, [esi]
jne 0x425513
call sub.cygwin1.dll___getreent
mov edx, dword [eax + 0xc]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], str.Session_aborted_n
mov dword [esp + 0xc], edx
call sub.cygwin1.dll_fwrite
add esp, 0x10
pop ebx
jmp fcn.00420a50
mov dword [esp + 8], 0x10
mov dword [esp + 4], str.Session_aborted_n
mov dword [esp], 2
call fcn.00420ad0
mov dword [esp], 1
call sub.cygwin1.dll__exit
nop
lea esi, [esi]
Function at 0x428d90
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebp, dword [0x44df50]
mov ebx, dword [ebp]
cmp ebx, 0xfffffffe
je 0x428e2d
xor edi, edi
jmp 0x428dc2
mov ebp, dword [0x44df50]
lea edi, [edx + edi]
mov ebx, dword [ebp + edi]
cmp ebx, 0xfffffffe
je 0x428e2d
add edi, 4
lea esi, [ebp + edi]
mov dword [esp], esi
call sub.cygwin1.dll_strlen
cmp ebx, 0xfffffffd
lea edx, [eax + 1]
je 0x428db6
mov byte [esi + eax], 0xa
mov eax, dword [0x44df54]
mov dword [esp + 4], edx
mov dword [esp + 0x14], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sub.cygwin1.dll_fwrite
mov edx, dword [esp + 0x14]
cmp eax, 1
je 0x428db0
mov dword [esp + 0x14], edx
mov dword [esp], str.fwrite
call fcn.00420a70
mov edx, dword [esp + 0x14]
mov ebp, dword [0x44df50]
lea edi, [edx + edi]
mov ebx, dword [ebp + edi]
cmp ebx, 0xfffffffe
jne 0x428dc2
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401000
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
mov eax, 0x410620
call fcn.00410160
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push eax
xor ebx, ebx
push 0x4113c0
push 1
push ebx
push 0x4113b0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40111b
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push 0x4113d0
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
jl 0x40111b
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jl 0x40111b
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jne 0x40111b
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, ebx
je 0x40111b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, 0x4140b8
lea eax, [ebp - 0x21c]
push edi
push eax
call esi
cmp dword [ebp + 0x10], 0x17
je 0x4010bc
cmp dword [ebp + 0x10], 2
jne 0x4010d4
lea eax, [ebp - 0x21c]
push 0x41bb00
push eax
call esi
lea eax, [ebp - 0x21c]
push edi
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
push 0x4140b0
push eax
call fcn.00405be1
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
lea edx, [ebp - 0x21c]
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
cmp eax, ebx
jl 0x40111b
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x21c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x401128
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x401135
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
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, 0x41b828
push edi
push eax
lea eax, [ebp - 0x274]
push esi
push eax
call fcn.00405972
cmp dword [ebp - 4], edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
je 0x401316
mov eax, dword [0x41ba88]
cmp eax, edi
jne 0x4012da
mov eax, 0x41ba8c
lea ecx, [ebp - 0x274]
push ecx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x884]
push eax
call ebx
mov eax, dword [0x41b928]
add esp, 0x10
cmp eax, edi
jne 0x4012ff
mov eax, 0x41b92c
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.00405972
cmp dword [ebp - 4], edi
je 0x40139b
mov eax, dword [0x41ba88]
cmp eax, edi
jne 0x401362
mov eax, 0x41ba8c
lea ecx, [ebp - 0x274]
push ecx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x884]
push eax
call ebx
mov eax, dword [0x41b928]
add esp, 0x10
cmp eax, edi
jne 0x401387
mov eax, 0x41b92c
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 0x41afe4
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 0x41b828
push eax
call fcn.00405972
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, 0x410644
call fcn.00410160
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.0040fd87
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
Function at 0x4028b6
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get session user name
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7b8
and dword [ebp - 4], 0
push ebx
push esi
mov esi, 0x114
push edi
push esi
lea eax, [ebp - 0x3a8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3a8]
mov dword [ebp - 0x3a8], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
mov edi, str._s_sDMCache
je 0x4029c1
cmp dword [ebp - 0x398], 2
jne 0x4029c1
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4029c1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x294]
push eax
push 0
push 0
push str.AppData
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4029ae
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
mov dword [ebp - 8], eax
cmp word [ebp + eax*2 - 0x294], 0x5c
mov eax, 0x41afe4
je 0x402984
mov eax, 0x4140b8
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x5b0]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4029ae
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x402a96
lea eax, [ebp - 0x294]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x402a91
lea eax, [ebp - 0x294]
push eax
call sub.MSVCRT.dll_wcslen
dec eax
pop ecx
mov dword [ebp - 8], eax
cmp word [ebp + eax*2 - 0x294], 0x5c
mov eax, 0x41afe4
je 0x402a01
mov eax, 0x4140b8
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x5b0]
push edi
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0x398], 2
jne 0x402a83
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x402a4b
lea eax, [ebp - 0x8c]
push str.default_user
push eax
call esi
pop ecx
pop ecx
mov eax, dword [ebp - 8]
cmp word [ebp + eax*2 - 0x294], 0x5c
mov eax, 0x41afe4
je 0x402a63
mov eax, 0x4140b8
lea ecx, [ebp - 0x8c]
push ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x5b0]
push str._s_sDMCache_s
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x5b0]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x402a96
or eax, 0xffffffff
jmp 0x402ad9
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x7b8]
push str._s_settings.bak
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x7b8]
push eax
call ebx
cmp eax, 0xffffffff
je 0x402ad7
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x7b8]
push 0x41b828
push eax
call fcn.00405972
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret