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

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x45a3d8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x44f1a7
add eax, 8
inc ecx
cmp eax, 0x45a468
jb 0x44f198
cmp dword [ecx*8 + 0x45a3d8], edx
lea ebx, [ecx*8]
jne 0x44f36b
cmp dword [0x4594dc], 1
je 0x44f327
cmp dword [0x4594dc], 0
jne 0x44f1de
cmp dword [0x4594e0], 1
je 0x44f327
cmp edx, 0xfc
je 0x44f36b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x44f21b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x44f25f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x453608
push ebp
call fcn.0044c060
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4535e8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x45a3dc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004509f0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4655b0], 0
je 0x44f33d
mov eax, dword [0x4655b0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x44f347
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x45a3dc]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x44fff0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x4656b0], edx
push ebx
push esi
push edi
push ebp
jbe 0x4501f7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x4655b0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4501f7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x450059
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x45006a
push 2
push 0
push edx
call fcn.00450e80
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x450106
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x45013f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4500cd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4500bb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4500a2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450135
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x45008d
jmp 0x45013f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450135
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x45013f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4501e6
cmp dword [esp + 0x10], 0
je 0x450198
cmp dword [esp + 0x10], 5
jne 0x45017b
mov dword [0x45a0d4], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x45a0d8], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0044d700
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4501c2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4501c2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45a0d4], 0x1c
mov dword [0x45a0d8], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45a0d4], 9
mov dword [0x45a0d8], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x450fc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0044c890
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x4656b0], esi
jbe 0x45110d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x4655b0]
test byte [edx + ecx*8 + 4], 1
je 0x45110d
push 1
push ebx
push esi
call fcn.00450e80
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x4510fd
push 2
push ebx
push esi
call fcn.00450e80
add esp, 0xc
cmp eax, 0xffffffff
je 0x4510fd
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x4510a3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00451200
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x451066
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0044fff0
add esp, 0xc
cmp eax, 0xffffffff
je 0x451082
sub ebp, eax
test ebp, ebp
jg 0x45105b
jmp 0x451097
cmp dword [0x45a0d8], 5
jne 0x451095
mov dword [0x45a0d4], 0xd
mov ebx, eax
push edi
push esi
call fcn.00451200
add esp, 8
jmp 0x4510e0
jge 0x4510e0
push 0
push ecx
push esi
call fcn.00450e80
add esp, 0xc
push esi
call fcn.0044ff30
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x4510e0
mov dword [0x45a0d4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x45a0d8], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00450e80
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x45a0d4], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x4515a0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x4517de
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.00451a80
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x4517de
cmp ebp, dword [esp + 0x18]
je 0x4517de
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x45a0fc]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x45a100], ecx
jne 0x4515fd
push ecx
call fcn.00451850
add esp, 4
mov dword [0x45a0fc], eax
cmp dword [0x45a0fc], 0
jne 0x4516ad
cmp dword [esp + 0x1c], 0
je 0x451634
cmp dword [0x45a104], 0
je 0x451634
call fcn.00451170
test eax, eax
je 0x4516ad
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x451645
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x45a0fc], 0
jne 0x451679
push 4
call fcn.0044c950
add esp, 4
mov dword [0x45a0fc], eax
test eax, eax
jne 0x45166e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x45a0fc]
mov dword [eax], 0
cmp dword [0x45a104], 0
jne 0x4516ad
push 4
call fcn.0044c950
add esp, 4
mov dword [0x45a104], eax
test eax, eax
jne 0x4516a2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x45a104]
mov dword [eax], 0
mov esi, dword [0x45a0fc]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.004517f0
add esp, 8
mov edi, eax
test edi, edi
jl 0x451715
cmp dword [esi], 0
je 0x451715
cmp dword [esp + 0x10], 0
je 0x45170c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.0044c900
add esp, 4
cmp dword [ebx], 0
je 0x4516f9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x4516ea
shl edi, 2
push edi
push esi
call fcn.004518d0
add esp, 8
test eax, eax
je 0x45175d
jmp 0x451758
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x45175d
cmp dword [esp + 0x10], 0
jne 0x4517d4
test edi, edi
jge 0x451726
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.004518d0
add esp, 8
test eax, eax
jne 0x451748
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x45a0fc], eax
cmp dword [esp + 0x1c], 0
je 0x4517ca
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0044c950
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4517ca
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0044c900
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x40105c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x4010cb
cmp dword [ebp - 4], esi
je 0x4010cb
cmp dword [ebp + 0x10], esi
je 0x4010ae
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp ebx, esi
jne 0x4010bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4010c2
mov eax, dword [ebp - 4]
mov dword [ebx], eax
xor eax, eax
cmp edi, esi
sete al
jmp 0x4010cd
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4010d1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40112e
cmp dword [ebp - 4], eax
je 0x40112e
cmp dword [ebp + 0x14], eax
je 0x40111c
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x401130
xor eax, eax
pop esi
leave
ret

Function at 0x401133
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x401185
cmp dword [ebp - 4], eax
je 0x401185
cmp dword [ebp + 0x14], eax
je 0x401173
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x401187
xor eax, eax
pop esi
leave
ret
Function at 0x40118a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
lea eax, [ebp - 4]
push eax
push 0xa
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x200
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40120e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4011dc
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 4]
call fcn.0040118a
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x401211
mov dword [ebp - 8], 0x200
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4011bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop ebx
pop esi
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x40120d

Function at 0x4019bc
Capabilities:
Set registry value

Disassembly:
push dword [esp + 8]
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x4019e1
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret

Function at 0x401a08
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401a73
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x400
jmp 0x401a49
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 4]
call fcn.00401a08
pop ecx
pop ecx
test eax, eax
jne 0x401a5c
push edi
lea eax, [ebp - 0x804]
push eax
push 0
push dword [ebp - 4]
call esi
test eax, eax
je 0x401a34
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
leave
ret
Function at 0x401a75
Capabilities:
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call sub.MSVCR90.dll_memset
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401ad4
push dword [ebp + 0xc]
push str.WinampAgent
push dword [ebp - 4]
call fcn.004019e1
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
xor eax, eax
pop esi
leave
ret 8

Function at 0x401af4
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push str.WinampAgentMain
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401b16
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401b45
push str.WinampAgent
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret 4
Function at 0x401b4b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4046a8
push dword [ebp + 0xc]
lea eax, [ebp - 0x664]
push eax
call edi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x401c39
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_wcscmp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
push eax
call edi
test byte [ebp - 0x254], 0x10
je 0x401bf0
lea eax, [ebp - 0x228]
push 0x4046a4
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401c16
lea eax, [ebp - 0x228]
push 0x40469c
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x401c16
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x45c]
push edx
push eax
call dword [ecx + 0x64]
jmp 0x401c16
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401c16
push 4
push eax
lea eax, [ebp - 0x45c]
push eax
call esi
push 4
push 0
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401b9a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
leave
ret 8

Function at 0x401f35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
push edi
push dword [ebp + 0xc]
mov edi, 0x104
push str.__s____1
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.0040121f
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push str.AudioCD_shellplaycommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40201e
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call esi
test eax, eax
lea eax, [ebp - 0x418]
push eax
jne 0x402009
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x402013
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x620]
push eax
push ebx
mov dword [ebp - 8], edi
push ebx
mov edi, str.Winamp_Back
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x401fef
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x402002
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp + 0xc]
call fcn.004019e1
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0xc]
call fcn.004019bc
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 8
Function at 0x402025
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
push dword [ebp + 0xc]
mov esi, 0x104
push str.__s____1
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0040121f
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push str.AudioCD_shellplaycommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x402132
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x402128
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR90.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x402128
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
mov edi, str.Winamp_Back
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x208
call esi
test eax, eax
jne 0x40210e
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4020ed
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call fcn.004019bc
pop ecx
pop ecx
test eax, eax
jne 0x402128
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x402128
xor eax, eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
call fcn.004019bc
pop ecx
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
leave
ret 8
Function at 0x402139
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push 0x80000000
call esi
xor ebx, ebx
test eax, eax
jne 0x4021e8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4021cd
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0x10
test eax, eax
je 0x4021da
lea eax, [ebp - 0x108]
push eax
push str.Winamp_Back
push dword [ebp - 4]
call fcn.004019e1
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.004019bc
add esp, 0x14
jmp 0x4021da
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.004019bc
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x4021e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x402218
push 0x114
lea eax, [ebp - 0x21c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebp - 0x218], 6
jb 0x4022a5
push dword [ebp + 0x14]
lea eax, [ebp - 0x41c]
push str.SoftwareClientsMedia_sCapabilitiesFileAssociations
push 0x200
push eax
call fcn.00401253
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x4022a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004019e1
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push str._n_vSN
push 3
push ebx
push 0x4051c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40229c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
leave
ret 0x10