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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, word [edx]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], edx
mov ebx, eax
mov ecx, esi
mov dword [ebp - 4], ebx
test ax, ax
je 0x10024f3a
inc ecx
cmp word [edx + ecx*2], si
jne 0x10024f1f
cmp ecx, 0xfd1
jbe 0x10024f3a
imul ebx, dword [0x100403dc], 0xa6c3f8a0
jmp 0x10024f40
mov ebx, dword [0x10040434]
add ebx, 0xf74673fc
mov eax, esi
mov dword [0x10040374], ebx
inc eax
cmp byte [eax + str.HKEY_CURRENT_USERSoftwareMicrosoftInternet_ExplorerMenuExt], 0
jne 0x10024f4e
cmp dword [ebp - 4], eax
jae 0x10024f71
sub eax, dword [ebp - 4]
mov ecx, dword [0x100402e0]
xor ecx, 0x997d5613
sub eax, 1
jne 0x10024f66
mov edx, dword [0x1004039c]
mov ecx, esi
push edi
mov esi, str._030B0I0
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x14], 0x62
jne 0x10024fc2
mov al, 0x62
test al, al
je 0x10024fa5
cmp byte [ebp + ecx - 0x14], 0
je 0x10024fa5
mov al, byte [ecx + 0x1003be7d]
inc ecx
cmp al, byte [ebp + ecx - 0x14]
je 0x10024f8d
mov esi, dword [ebp - 8]
jmp 0x10024fbe
cmp esi, 0x47b
jne 0x10024fbd
lea eax, [edx + 0x2211acc6]
mov dword [0x100403dc], eax
inc esi
cmp esi, ecx
jb 0x10024faa
push 9
pop ecx
mov esi, str.wxSetFocusToChild__:_invalid_window
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
cmp byte [ebp - 0x38], 0x32
pop edi
jne 0x10024ff2
mov cl, 0x32
test cl, cl
je 0x10024ff2
cmp byte [ebp + eax - 0x38], 0
je 0x10024ff2
mov cl, byte [eax + 0x1003bda1]
inc eax
cmp cl, byte [ebp + eax - 0x38]
je 0x10024fda
movzx ecx, byte [eax + str.2_292_2C2M2_2d2]
movzx eax, byte [ebp + eax - 0x38]
sub ecx, eax
cmp ecx, 0xbec
jne 0x10025016
lea ebx, [edx - 0x68e60663]
mov dword [0x10040374], ebx
jmp 0x10025022
mov eax, edx
and eax, 0x26fc7522
mov dword [0x100403dc], eax
xor esi, esi
mov eax, edx
or eax, 0xeebdce39
mov ecx, esi
mov dword [0x10040434], eax
cmp word [ebp - 4], cx
je 0x1002505f
mov eax, edx
xor eax, 0xdea87d47
mov dword [0x10040434], eax
mov eax, dword [ebp - 8]
inc ecx
cmp word [eax + ecx*2], si
jne 0x10025047
cmp dword [ebp - 8], ecx
jae 0x1002505f
or edx, 0xef447264
mov dword [0x10040434], edx
xor ebx, 0xfd1a946
pop esi
mov dword [0x100402e0], ebx
pop ebx
leave
ret
Function at 0x401280
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
mov esi, edx
push 0xf003f
mov edi, ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401396
push eax
push eax
mov edx, dword [esp + 0x1c]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x28]
push eax
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4012e0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x228]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x40135b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea ecx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
push ecx
push eax
push edx
mov dword [esp + 0x38], 0x104
call ebx
test eax, eax
jne 0x40134c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x120]
push eax
push esi
push 0x40c1e4
push ecx
call fcn.004035f0
add esp, 0x10
lea edx, [esp + 0x120]
mov ecx, edi
push ebp
call fcn.00401280
mov eax, dword [esp + 0x10]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
jne 0x4012fc
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
push edi
call ebx
test ebp, ebp
je 0x401396
mov ecx, dword [0x40c03c]
push esi
push ecx
lea edx, [esp + 0x24]
push 0x40c1e4
push edx
call fcn.004035f0
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4
Function at 0x4013b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
lea eax, [esp]
push ebx
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0
mov ebx, ecx
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4014ce
mov eax, dword [esp + 4]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 4], eax
je 0x4014ce
push edi
push esi
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, 0x104
lea edx, [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x138]
push ecx
push edx
push eax
push ebx
call ebp
test eax, eax
jne 0x4014b8
cmp dword [esp + 0x1c], 1
jne 0x4014b8
mov al, byte [esp + 0x24]
test al, al
je 0x4014b8
lea eax, [esp + 0x24]
push 0x5c
push eax
call fcn.00403660
lea ecx, [esp + 0x2c]
add esp, 8
cmp eax, ecx
jbe 0x4014b8
mov cl, byte [eax + 1]
lea edi, [eax + 1]
test cl, cl
je 0x4014b8
lea edx, [esp + 0x14]
mov byte [eax], 0
push edx
push 0xf003f
lea eax, [esp + 0x2c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4014aa
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4014b8
mov edx, ebx
lea ecx, [esp + 0x128]
call fcn.00402ad0
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x4013fd
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x21c
ret
Function at 0x4014e0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov ecx, dword [0x40c038]
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
xor ebx, ebx
push 0xf003f
push ebx
push ecx
push 0x80000002
call edi
cmp eax, ebx
jne 0x4016a7
push ebx
push ebx
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push ebx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
je 0x401547
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x10], eax
je 0x401668
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov esi, 0x104
push eax
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x401655
mov edx, dword [0x40c038]
lea ecx, [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x134]
push 0x40c1e4
push eax
call fcn.004035f0
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x12c]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000002
call edi
cmp eax, ebx
jne 0x401655
mov ecx, dword [0x40c044]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebx
push ecx
push edx
call edi
cmp eax, ebx
je 0x4015ef
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push 0x40c1ec
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x40163f
cmp esi, ebx
jne 0x40162f
call fcn.004013b0
jmp 0x401638
mov edx, ecx
xor ecx, ecx
call fcn.00402ad0
mov edx, dword [esp + 0x20]
push edx
call ebp
cmp esi, ebx
je 0x401655
push ebx
lea edx, [esp + 0x130]
mov ecx, 0x80000002
call fcn.00401280
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x10], eax
jne 0x401560
push ebx
push ebx
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push ebx
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
mov ecx, dword [esp + 0x14]
push ecx
call ebp
cmp esi, ebx
jne 0x4016a7
cmp dword [esp + 0x10], ebx
jne 0x4016a7
mov edx, dword [0x40c038]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x4016c0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
push eax
mov edi, ecx
push 0xf003f
push 0
push edi
push 0x80000001
call ebp
test eax, eax
jne 0x4017d9
push eax
push eax
mov edx, dword [esp + 0x18]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x2c]
push eax
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x401722
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
mov eax, dword [esp + 0x14]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x14], eax
je 0x401794
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, 0x104
push 0
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea ecx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov dword [esp + 0x38], ebx
call esi
test eax, eax
jne 0x401785
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x120]
push eax
push edi
push 0x40c1e4
push ecx
call fcn.004035f0
add esp, 0x10
lea ecx, [esp + 0x120]
call fcn.004016c0
mov eax, dword [esp + 0x14]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x14], eax
jne 0x40173c
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push edi
push 0x80000002
call ebp
test eax, eax
jne 0x4017cb
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
push 1
mov edx, edi
mov ecx, 0x80000001
call fcn.00401280
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
Function at 0x4017f0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov ecx, dword [0x40c038]
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call ebp
test eax, eax
jne 0x401915
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40c048]
test eax, eax
je 0x401995
mov ebx, 0x40c048
mov eax, dword [ebx + 4]
test eax, eax
je 0x4018f7
mov edi, dword [0x40c038]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x80000002
call ebp
test eax, eax
jne 0x4018bf
mov edx, dword [esp + 0x10]
push edx
jmp 0x4018f1
mov ecx, dword [0x40c040]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call ebp
test eax, eax
jne 0x4018f7
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 0x10]
add ebx, 0x10
test eax, eax
jne 0x40183f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
call fcn.00407760
test eax, eax
je 0x401995
mov eax, dword [0x40c040]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call ebp
test eax, eax
jne 0x401995
mov ecx, dword [0x40c034]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [0x40c034]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401995
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret
Function at 0x4019b0
Capabilities:
Delete file
Get common file path
Move file
Read .ini file

Disassembly:
sub esp, 0x29c
lea eax, [esp + 0x94]
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401b35
mov al, byte [esp + 0x9c]
test al, al
je 0x401b35
lea ecx, [esp + 0x9c]
push 0
push ecx
call fcn.00403530
mov edx, eax
add esp, 8
cmp byte [edx - 1], 0x5c
je 0x401a00
mov byte [edx], 0x5c
inc edx
mov edi, dword [0x40c030]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401b35
cmp dword [esp + 0x18], 2
jne 0x401a60
push 4
lea edx, [esp + 0xa0]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
add esp, 0x29c
ret
lea eax, [esp + 0x1a0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x401b35
mov al, byte [esp + 0x1a0]
test al, al
je 0x401b35
lea ecx, [esp + 0x1a0]
push 0
push ecx
call fcn.00403530
mov cl, byte [eax - 1]
add esp, 8
cmp cl, 0x5c
je 0x401aa8
mov byte [eax], 0x5c
inc eax
mov edx, dword [0x40c208]
push 0x7d00
mov dword [eax], edx
mov ecx, dword [0x40c20c]
mov dword [eax + 4], ecx
mov edx, dword [0x40c210]
mov dword [eax + 8], edx
call fcn.00403700
mov esi, eax
add esp, 4
test esi, esi
je 0x401b35
lea eax, [esp + 0x1a0]
push eax
push 0x7d00
push esi
push 0x40c200
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [eax + 0x104]
cmp ecx, 0x7d00
jge 0x401b2c
push 0
lea edx, [esp + 0xa0]
push 0
push edx
add eax, esi
push 0x40c1f4
push eax
call fcn.004035f0
add esp, 0x14
lea ecx, [esp + 0x1a0]
push ecx
push esi
push 0x40c200
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push esi
call fcn.00403690
add esp, 4
pop edi
pop esi
add esp, 0x29c
ret
Function at 0x402690
Capabilities:
Delete registry key
Delete registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
test esi, esi
mov ebp, edx
je 0x4027e6
test ebp, ebp
je 0x4027e6
mov edi, dword [esp + 0x1c]
mov eax, edi
and eax, 1
mov dword [esp + 0x14], eax
jne 0x4026f8
mov eax, dword [esi]
and eax, 3
cmp al, 1
jne 0x4026f8
mov eax, dword [esi + 8]
test eax, eax
je 0x4026f0
cmp byte [eax], 0
je 0x4026f0
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402700
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x402704
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x402704
mov eax, ebp
mov dword [esp + 0x1c], eax
jmp 0x402704
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4027e6
mov ecx, dword [esi + 0x20]
mov ebx, 1
test ecx, ecx
je 0x402757
push 0
lea edx, [esp + 0x14]
call fcn.00403160
test eax, eax
je 0x402753
and edi, 0xfffffffe
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edi
call fcn.00402690
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x10]
push 0
push 0
push edx
mov edx, dword [esp + 0x1c]
and ebx, eax
call fcn.00403220
test eax, eax
jne 0x40272a
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40279e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
and eax, 3
cmp al, 1
jne 0x4027e6
mov esi, dword [esi + 8]
test esi, esi
je 0x4027e6
cmp byte [esi], 0
je 0x4027e6
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4027e2
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4027e2
mov eax, 1
and ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ecx, dword [esi]
and ecx, 3
cmp cl, 2
jne 0x4027e6
mov esi, dword [esi + 8]
test esi, esi
je 0x4027e6
cmp byte [esi], 0
je 0x4027e6
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4027e2
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4027e2
mov eax, 1
and ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
xor eax, eax
and ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x402ad0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov ebp, edx
xor esi, esi
push edi
test ebp, ebp
mov ebx, ecx
mov dword [esp + 0x10], esi
jne 0x402afe
test ebx, ebx
je 0x402c63
cmp byte [ebx], 0
je 0x402c63
test ebp, ebp
je 0x402c24
push 0
push 0
lea eax, [esp + 0x1c]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402c4a
mov edx, dword [esp + 0x14]
add edx, 8
and edx, 0xfffffffc
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x402c4a
mov eax, dword [esp + 0x20]
lea edi, [eax - 1]
test edi, edi
mov dword [esp + 0x1c], edi
jl 0x402c12
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
inc ecx
push edx
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ecx
push 0
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push esi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x402c07
cmp byte [esi], 0
je 0x402c07
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402c07
mov ecx, dword [esp + 0x24]
mov eax, 1
cmp ecx, eax
jne 0x402c07
test ebx, ebx
je 0x402bcb
cmp byte [ebx], 0
je 0x402bcb
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push ebx
push 0x30001
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringA]
xor edx, edx
cmp eax, 2
sete dl
mov eax, edx
test eax, eax
je 0x402c07
mov ecx, esi
call fcn.00402800
mov edi, eax
test edi, edi
je 0x402bfb
push 0
mov edx, 0x80000000
mov ecx, edi
call fcn.00402690
mov ecx, dword [esp + 0x10]
or ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, edi
call fcn.00402170
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [esp + 0x1c]
dec edi
mov dword [esp + 0x1c], edi
jns 0x402b5f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x402c4a
mov ecx, ebx
call fcn.00402800
mov esi, eax
test esi, esi
je 0x402c4a
push 0
mov edx, 0x80000000
mov ecx, esi
call fcn.00402690
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.00402170
mov esi, dword [esp + 0x10]
test esi, esi
je 0x402c63
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x403850
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a138
push 0x4062b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40f7f4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40f7f0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40f7ec], ecx
shr eax, 0x10
mov dword [0x40f7e8], eax
call fcn.00404750
test eax, eax
jne 0x4038ba
push 0x1c
call fcn.00403a30
add esp, 4
call fcn.004060c0
test eax, eax
jne 0x4038cd
push 0x10
call fcn.00403a30
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405eb0
call fcn.00405ea0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410e38], eax
call fcn.00405840
mov dword [0x40f76c], eax
test eax, eax
je 0x403900
mov eax, dword [0x410e38]
test eax, eax
jne 0x40390a
push 0xffffffffffffffff
call fcn.004050b0
add esp, 4
call fcn.00405590
call fcn.004054a0
call fcn.00405080
mov esi, dword [0x410e38]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4039e9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x403951
test al, al
je 0x403951
and eax, 0xff
push eax
call fcn.00405440
add esp, 4
test eax, eax
je 0x40392b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40392b
cmp byte [esi], 0x22
jne 0x40395a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40396a
cmp al, 0x20
ja 0x40396a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40395a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40398b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x403990
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004050b0
jmp 0x4039ce
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40395a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4039e9

Function at 0x403a30
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40f774], 1
jne 0x403a3e
call fcn.00406390
mov eax, dword [esp + 4]
push eax
call fcn.004063d0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]