joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe15c24
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
not dword [esp]
inc ecx
mov esi, dword [eax + esi*4]
and word [esp], 0xbdb3
inc ecx
shr edx, 8
inc esp
xor edx, esi
jmp 0xa29549
xor cx, 0xda9c
dec ebp
lea esp, [esi + edi*2 + 0x5007fb36]
inc ecx
rol al, 0xa2
jae 0x8c5567
dec ebp
add ebx, esp
inc bp
xchg eax, edx
dec eax
shl edx, cl
cwde
inc bx
mov ecx, dword [edi + ecx*4 - 0x17868]
dec edi
lea edi, [edi + ecx - 0x5e12]
inc cx
inc esi
inc bp
and ecx, esi
xor cx, si
inc sp
bt edx, edx
dec cx
inc ebp
xchg dl, al
mov ebp, 0xf59f5ea3
not cx
jmp 0x8942d2
dec eax
inc edi
push 0x9a2f9210
inc ecx
xor edx, 0x30a00ab4
dec eax
dec eax
call fcn.00e06afa
inc ecx
mov eax, 0xf703848a
inc ecx
mov ebp, eax
dec edx
lea eax, [eax*2 - 0x41f354ea]
inc ebp
movzx esp, word [edi]
inc sp
xor esp, esi
inc ecx
push eax
inc cx
xor esp, 0x41666db3
neg esp
push eax
inc ebp
movsx edx, al
dec esi
lea ebp, [edx*2 - 0x607c84e4]
inc cx
not esp
mov word [esp + 7], 0xda89
inc ecx
sar ebp, 0x4d
inc cx
adc esp, 0x92ba6225
inc edx
mov esi, dword [ecx]
inc cx
xor esi, esp
dec esi
lea esp, [esp + 0x10]
dec esp
and ebp, dword [esp + edx*2 - 0x63168522]
dec edx
ror dword [esp + ebp - 0xac11], 0xbf
inc cx
movzx edx, byte [esp + edx*2 - 0x63168524]
dec eax
lea edi, [ebp - 0x637992e2]
inc sp
mov edx, edx
mov edx, ebp
push edx
inc bp
movzx edx, dl
ja 0x8909a2
inc ebp
and ebp, edx
dec ebp
mov dword [esi + ebx - 0xe], eax
inc cx
bt ebp, eax
inc edi
mov esp, dword [edi + esi*8 - 0xc]
inc ecx
movzx edi, dl
dec eax
cdq
inc esp
xor esp, esi
inc ecx
and cl, 0xbe
inc ecx
mov eax, 0x348aa405
dec eax
not eax
inc ecx
xor esp, 0x93bfdc8b
jmp 0xa3788a
jmp 0xdfc128
jmp 0x8d7df8
inc ecx
not esp
inc edi
lea esp, [esp + esi + 0x4c004836]
dec ecx
rol esi, 0x7d
inc ebp
xadd edx, esi
dec esi
lea esi, [esi*2 + 0x4d2110b1]
inc ecx
neg esp
inc bp
bt ebp, edx
inc ecx
movsx ecx, al
inc esp
or dh, cl
inc edi
lea esp, [edx + 0x2608c3c7]
dec eax
shr edi, cl
dec ecx
cmovnp eax, ebp
push esi
sar dl, 0xa2
dec eax
cdq
inc bp
or ebp, ecx
inc esp
xor dword [esp + eax + 0x4696], esp
pop esi
push edi
pop ecx
cwde
dec ebp
arpl sp, sp
jmp 0x8a09ab
and esi, 0xff
inc dword [esp + 1]
jle 0x893342
inc ecx
mov eax, 0xb317dda3
dec eax
mov dword [esp], esi
inc ecx
movzx esi, al
dec esp
xor eax, esi
dec edx
lea esi, [eax*4 - 0x2c428ad5]
dec esp
lea eax, [0xfffe7113]
mov esi, 0x5211da30
push esi
shr si, 0xa5
movzx esi, byte [edi + esi - 0x521106d1]
not dword [esp + 3]
inc ecx
xor esi, edx
jmp 0x8db59d

Function at 0xe16f1a
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
adc eax, ecx
pop edx
mov dword [ebp + 8], eax
pop edx
mov ecx, dword [ebp + 8]
mov edx, 0xad9d7f2f
btc edx, edx
inc dx
mov edx, dword [ebp + 0xc]
setg byte [esp + 0xd]
ja 0x969aeb
Function at 0x4037b2
Capabilities:
Copy file

Disassembly:
mov eax, 0x41bfd8
call fcn.00404cbc
sub esp, 0x3dc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x18]
cmp dword [eax - 8], ebx
jne 0x4037c6
xor al, al
jmp 0x4038b7
lea ecx, [ebp - 0xd8]
push edi
push ecx
lea ecx, [ebp - 0x74]
push ecx
push ebx
push ebx
push eax
call fcn.004052b3
mov edi, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x10]
push 0x424120
push edi
push eax
call fcn.00413be0
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], ebx
push ecx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00413b7a
mov eax, dword [eax]
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
lea eax, [ebp - 0x2e4]
push ebx
push eax
call fcn.0040583d
add esp, 0x14
lea ecx, [ebp + 8]
call fcn.004139d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004139d8
lea eax, [ebp - 0x2e4]
push ebx
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp byte [ebp + 0xc], bl
je 0x4038b4
push str.glbsp.exe
lea eax, [ebp - 0x3e8]
push dword [edi]
push str._s_s
push eax
call fcn.004057eb
mov esi, 0x4242a0
lea eax, [ebp - 0x1e0]
push esi
push eax
call fcn.00404e10
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.00404e20
lea eax, [ebp - 0x1e0]
push esi
push eax
call fcn.00404e20
add esp, 0x28
lea eax, [ebp - 0x1e0]
push ebx
push eax
lea eax, [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x3e8]
push eax
push ebx
call fcn.004057d5
add esp, 0x14
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4057af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407189
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4057d2
test byte [esp + 8], 2
je 0x4057d2
call fcn.004071fc
mov dword [eax], 0xd
call fcn.00407205
mov dword [eax], 5
jmp 0x4057ab
xor eax, eax
ret
Function at 0x409d31
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x424ff0
cmp edx, dword [eax]
je 0x409d53
add eax, 8
inc ecx
cmp eax, 0x425080
jl 0x409d44
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x424ff0]
jne 0x409e81
mov eax, dword [0x429a48]
cmp eax, 1
je 0x409e5b
test eax, eax
jne 0x409d84
cmp dword [0x4248d4], 1
je 0x409e5b
cmp edx, 0xfc
je 0x409e81
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409dbb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404e10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004063b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409dfe
lea eax, [ebp - 0x1a4]
push eax
call fcn.004063b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x424138
push edi
call fcn.0040c580
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404e10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404e20
lea eax, [ebp - 0xa0]
push 0x41f7e0
push eax
call fcn.00404e20
push dword [esi + 0x424ff4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404e20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ce67
add esp, 0x2c
pop edi
jmp 0x409e81
lea eax, [ebp + 8]
lea esi, [esi + 0x424ff4]
push 0
push eax
push dword [esi]
call fcn.004063b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x412100
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00405760
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4121cb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4121cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41217e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x412189
or bh, 8
and edi, 0x8000000
je 0x4121a4
mov eax, dword [0x42b1fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4121cb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4125a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4125cb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4125ef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41260a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41579d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4157d5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00413dcb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00413da3
jmp 0x4157e1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x416cf3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x416d35
call fcn.0041a76b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x416d35
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x416d2c
xor eax, eax
jmp 0x416d3d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00416d43
pop edi
pop esi
pop ebx
ret 4

Function at 0x41afd4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41b002
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41b020
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041af3a
jmp 0x41b020
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41b020
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041af3a
test edi, edi
mov eax, edi
jne 0x41b00a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x3d9a4edc
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x7a306dbd
nop
nop
nop
nop
test eax, eax
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push edi
lea eax, [ebp - 0x1a4]
xor edi, edi
push str.SOFTWAREClassesKOOPLAYER.CCTVPlayerCtrl.1CLSID
push eax
mov dword [ebp - 0x14], edi
call fcn.004099a0
pop ecx
pop ecx
call fcn.00403f71
test eax, eax
jne 0x401033
push str.SOFTWAREClassesCLSID_
jmp 0x401038
push str.SOFTWAREClassesWow6432NodeCLSID_
lea eax, [ebp - 0xdc]
push eax
call fcn.004099a0
pop ecx
lea eax, [ebp - 4]
pop ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
lea eax, [ebp - 0x1a4]
push edi
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x401140
lea eax, [ebp - 8]
push esi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push edi
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
push dword [ebp - 8]
call fcn.00409a90
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.004099b0
lea eax, [ebp - 0xdc]
push str.InprocServer32_
push eax
call fcn.004099b0
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0xdc]
push edi
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x401136
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call fcn.00409631
push dword [ebp - 8]
call fcn.00409a90
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x401136
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.00409631
pop ecx
pop esi
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
leave
ret
Function at 0x401147
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
push ebx
lea eax, [ebp - 0x390]
push str.SOFTWAREClasses_
push eax
call fcn.004099a0
push dword [ebp + 0xc]
lea eax, [ebp - 0x390]
push eax
call fcn.004099b0
lea eax, [ebp - 0x390]
push str.CLSID
push eax
call fcn.004099b0
lea eax, [ebp - 0x264]
push str.SoftwareMicrosoftWindowsCurrentVersionExtStats_
push eax
call fcn.004099a0
add esp, 0x20
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x390]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012fe
push esi
lea eax, [ebp + 0xc]
push edi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
mov dword [ebp + 0xc], ebx
call esi
push dword [ebp + 0xc]
call fcn.00409a90
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push dword [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
lea eax, [ebp - 0x264]
push eax
call fcn.004099b0
lea eax, [ebp - 0x264]
push str.iexploreAllowedDomains
push eax
call fcn.004099b0
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x264]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 4]
call esi
push 0x4a
xor eax, eax
pop ecx
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004099a0
lea eax, [ebp - 0x138]
push str.cntv.cn
push eax
call fcn.004099b0
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004099a0
lea eax, [ebp - 0x138]
push str.cctv.com
push eax
call fcn.004099b0
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push dword [ebp + 8]
call edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call fcn.00409631
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401301
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
push 0x31
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a3]
mov byte [ebp - 0x1a4], bl
push 0x31
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xdb]
mov byte [ebp - 0xdc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1a4]
push str.SOFTWAREClassesKOOPLAYER.CCTVPlayerCtrl.1CLSID
push eax
mov dword [ebp - 0x14], ebx
call fcn.004099a0
pop ecx
pop ecx
call fcn.00403f71
test eax, eax
je 0x401361
push str.SOFTWAREClassesWow6432NodeCLSID_
jmp 0x401366
push str.SOFTWAREClassesCLSID_
lea eax, [ebp - 0xdc]
push eax
call fcn.004099a0
pop ecx
lea eax, [ebp - 4]
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
lea eax, [ebp - 0x1a4]
push ebx
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401470
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
call edi
push dword [ebp - 8]
call fcn.00409a90
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0x26b]
mov byte [ebp - 0x26c], bl
push dword [ebp - 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xdc]
push eax
call fcn.004099b0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004099a0
lea eax, [ebp - 0xdc]
push str.InprocServer32_
push eax
call fcn.004099b0
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0xdc]
push ebx
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401467
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x401467
mov dword [ebp - 0x14], 1
push dword [ebp - 0xc]
call fcn.00409631
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401478
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push str.RC_BINARYTYPE
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor esi, esi
mov dword [ebp + 8], eax
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp + 0xc]
push esi
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4014eb
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
push str.SelfClear.dll
push 0xdd
push dword [ebp + 8]
call fcn.00401478
add esp, 0xc
mov ebx, 0x30c
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, str._rundll32.exe
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40155e
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push str._SelfClear.dll__MagicDel_16
push eax
call esi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x464]
push eax
call esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00409aa0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x80
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x464]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40194b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov word [ebp - 0x10], 0x10
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
leave
ret