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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x48b084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4212f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446d97
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42132c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42132c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446d97
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x421413
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x421354
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x421387
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0044cb40
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446d97
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x28], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x421413
cmp eax, 1
jle 0x4213e6
cmp eax, 3
jne 0x421413
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00420900
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446d97
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x421403
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044d47a
add esp, 0x10
cmp edi, eax
jne 0x421413
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x421317
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00446d97
mov esp, ebp
pop ebp
ret 4
Function at 0x4215b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48b084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x421653
cmp byte [esi + 0x3d], 0
je 0x421653
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x421609
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x42161b
sub eax, 1
je 0x42161f
sub eax, 2
je 0x421653
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446d97
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42163c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044d47a
add esp, 0x10
cmp edi, eax
jne 0x421609
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446d97
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00446d97
mov esp, ebp
pop ebp
ret
Function at 0x424620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47009f
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x48b084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x18], 0
call fcn.00423b10
push eax
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00423a80
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xcc]
cmp edx, 8
jb 0x4246c7
mov ecx, dword [ebp - 0xe0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4246bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42497f
push edx
push ecx
call fcn.004473e5
add esp, 8
xor eax, eax
mov dword [ebp - 0xd0], 0
cmp dword [esi + 0x14], 8
mov word [ebp - 0xe0], ax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xcc], 7
lea eax, [eax*2 + 2]
jb 0x4246f6
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4246fe
mov edi, dword [edi]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x424984
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x424763
cmp eax, 0x80000001
je 0x424763
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x424763
cmp eax, 0x80000000
je 0x424763
cmp eax, 0x80000005
je 0x424763
cmp eax, 0x80000007
je 0x424763
cmp eax, 0x80000004
je 0x424763
cmp eax, 0x80000060
je 0x424763
cmp eax, 0x80000050
je 0x424763
cmp eax, 0x80000003
je 0x424763
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00446d97
mov esp, ebp
pop ebp
ret 0xc
call fcn.0044c2c9
push eax
push str.Cannot_write_string_value:_RegSetValueEx_failed.
lea ecx, [ebp - 0x124]
call fcn.00415250
push 0x489c9c
lea eax, [ebp - 0x124]
push eax
call fcn.00448855
int3

Function at 0x424b60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
xor edx, edx
push esi
lea esi, [ecx + 4]
test eax, eax
je 0x424b7e
nop dword [eax]
lea eax, [edx + 0x36]
xor word [esi + edx*2], ax
inc edx
mov eax, dword [ecx]
cmp edx, eax
jb 0x424b70
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
pop esi
ret
Function at 0x426570
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4703ab
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x48b084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x42674d
mov eax, dword [edi]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447808
xor ebx, ebx
mov dword [edi + 4], eax
add esp, 4
cmp dword [edi], ebx
jle 0x426718
nop
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov edx, dword [eax + ebx*4]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x48], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426632
sub eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.0040c170
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00416630
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
mov eax, dword [edi + 0xc]
push ecx
cmp dword [edi + 0x10], eax
je 0x42667d
mov ecx, eax
call fcn.0040aee0
add dword [edi + 0xc], 0x18
jmp 0x426686
push eax
lea ecx, [edi + 8]
call fcn.0040fbe0
mov ecx, dword [edi + 0xc]
add ecx, 0xffffffe8
cmp dword [ecx + 0x14], 0x10
jb 0x426694
mov ecx, dword [ecx]
mov eax, dword [edi + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov dword [eax + ebx*4], ecx
cmp edx, 0x10
jb 0x4266d2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4266c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426748
push edx
push ecx
call fcn.004473e5
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42670c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x426702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426748
push edx
push ecx
call fcn.004473e5
add esp, 8
inc ebx
cmp ebx, dword [edi]
jl 0x426610
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push dword [ebp - 0x44]
mov dword [eax + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446d97
mov esp, ebp
pop ebp
ret
call fcn.0044c2c9
push str.Failed_to_parse_command_line_arguments
lea ecx, [ebp - 0x1c]
call fcn.00401270
push 0x489adc
lea eax, [ebp - 0x1c]
push eax
call fcn.00448855
int3
Function at 0x427360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x14
push esi
sub eax, 1
je 0x42743d
sub eax, 1
je 0x4273e3
mov dword [ebp - 0x14], 7
xor ecx, ecx
mov dword [ebp - 0x10], 0x590043
mov dword [ebp - 0xc], 0x570053
mov dword [ebp - 8], 0x4c0055
mov dword [ebp - 4], 0x3d0052
nop dword [eax]
lea eax, [ecx + 0x36]
xor word [ebp + ecx*2 - 0x10], ax
inc ecx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jb 0x4273a0
mov esi, dword [ebp + 8]
xor ecx, ecx
mov word [ebp + eax*2 - 0x10], cx
xor eax, eax
mov dword [esi + 0x10], ecx
lea ecx, [ebp - 0x10]
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4273d0
lea eax, [ebp - 0x10]
jmp 0x42749e
mov dword [ebp - 0x10], 5
xor ecx, ecx
mov dword [ebp - 0xc], 0x43005e
mov dword [ebp - 8], 0x49004c
mov dword [ebp - 4], 0x3b0049
lea eax, [ecx + 0x36]
xor word [ebp + ecx*2 - 0xc], ax
inc ecx
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jb 0x427401
mov esi, dword [ebp + 8]
xor ecx, ecx
mov word [ebp + eax*2 - 0xc], cx
xor eax, eax
mov dword [esi + 0x10], ecx
lea ecx, [ebp - 0xc]
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427430
jmp 0x42749b
mov eax, 4
mov dword [ebp - 0xc], 0x43005e
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 8], 0x49004c
mov dword [ebp - 4], 0x3a
nop dword [eax]
lea eax, [ecx + 0x36]
xor word [ebp + ecx*2 - 0xc], ax
inc ecx
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jb 0x427460
mov esi, dword [ebp + 8]
xor ecx, ecx
mov word [ebp + eax*2 - 0xc], cx
xor eax, eax
mov dword [esi + 0x10], ecx
lea ecx, [ebp - 0xc]
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427490
lea eax, [ebp - 0xc]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040c170
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x443e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x48b084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x14], 0x520062
mov dword [ebp - 0x10], 0x580054
mov dword [ebp - 0xc], 0x540057
mov dword [ebp - 8], 0x3d0052
nop dword [eax]
lea ecx, [eax + 0x36]
xor word [ebp + eax*2 - 0x14], cx
inc eax
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x443e40
xor eax, eax
mov word [ebp + ecx*2 - 0x14], ax
lea ecx, [ebp - 0x14]
mov dword [esi + 0x10], eax
lea edx, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443e70
sub ecx, edx
lea eax, [ebp - 0x14]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040c170
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00446d97
mov esp, ebp
pop ebp
ret

Function at 0x443ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x48b084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x71]
mov dword [ebp - 0x78], edi
call fcn.00441ab0
mov esi, eax
xor eax, eax
mov ecx, dword [esi]
lea edx, [esi + 4]
test ecx, ecx
je 0x443edf
lea ecx, [eax + 0x36]
xor word [edx + eax*2], cx
inc eax
mov ecx, dword [esi]
cmp eax, ecx
jb 0x443ed1
xor eax, eax
mov word [edx + ecx*2], ax
mov ecx, edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443ef7
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040c170
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00446d97
mov esp, ebp
pop ebp
ret
Function at 0x45e7cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045e643

Function at 0x4650fb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046507d
Function at 0x403ab4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x404678
call fcn.00403d78
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x403b14
cmp eax, 0xffffffff
je 0x403b14
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x403b0d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x403b0d
cmp edx, 0x10000000
jae 0x403b0d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x403b0a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403b80
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x403bbe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403bb6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403bc0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x403ba6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403c90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403cc1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403cc1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x403cc1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
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.004099e0
pop ecx
pop ecx
call fcn.00403fb9
test eax, eax
jne 0x401033
push str.SOFTWAREClassesCLSID_
jmp 0x401038
push str.SOFTWAREClassesWow6432NodeCLSID_
lea eax, [ebp - 0xdc]
push eax
call fcn.004099e0
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.00409ad0
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.004099f0
lea eax, [ebp - 0xdc]
push str.InprocServer32_
push eax
call fcn.004099f0
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.00409671
push dword [ebp - 8]
call fcn.00409ad0
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.00409671
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.004099e0
push dword [ebp + 0xc]
lea eax, [ebp - 0x390]
push eax
call fcn.004099f0
lea eax, [ebp - 0x390]
push str.CLSID
push eax
call fcn.004099f0
lea eax, [ebp - 0x264]
push str.SoftwareMicrosoftWindowsCurrentVersionExtStats_
push eax
call fcn.004099e0
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.00409ad0
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.004099f0
lea eax, [ebp - 0x264]
push str.iexploreAllowedDomains
push eax
call fcn.004099f0
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.004099e0
lea eax, [ebp - 0x138]
push str.cntv.cn
push eax
call fcn.004099f0
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.004099e0
lea eax, [ebp - 0x138]
push str.cctv.com
push eax
call fcn.004099f0
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.00409671
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.004099e0
pop ecx
pop ecx
call fcn.00403fb9
test eax, eax
je 0x401361
push str.SOFTWAREClassesWow6432NodeCLSID_
jmp 0x401366
push str.SOFTWAREClassesCLSID_
lea eax, [ebp - 0xdc]
push eax
call fcn.004099e0
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.00409ad0
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.004099f0
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004099e0
lea eax, [ebp - 0xdc]
push str.InprocServer32_
push eax
call fcn.004099f0
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.00409671
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret