joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402630
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push edi
push 5
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40270a
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.00402720
add esp, 0xc
test eax, eax
jne 0x40270a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.00402720
add esp, 0xc
test eax, eax
jne 0x40270a
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.00419490
mov esi, eax
add esp, 8
test esi, esi
jne 0x4026ed
lea eax, [esp + 0xc]
push 0x42434c
push eax
call fcn.00419490
mov esi, eax
add esp, 8
test esi, esi
jne 0x4026ed
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x4026f0
mov byte [esi], 0
push 0x424348
push esi
call edi
push ebx
push esi
call edi
lea edx, [esp + 0xc]
push 5
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
pop ebx
add esp, 0x208
ret

Function at 0x402720
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402769
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x402770
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x218]
push 0x208
push eax
push edi
call fcn.00402840
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
mov al, byte [esp + 0xc]
test al, al
je 0x40281a
push 0x5c
push edi
call fcn.00418f90
mov esi, eax
add esp, 8
test esi, esi
je 0x4027b5
inc esi
jmp 0x4027b7
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x4296fc]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x4027db
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40281a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x402a60
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push 0x208
push eax
push esi
call fcn.00402840
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov al, byte [esp + 8]
test al, al
je 0x402aef
push 0x5c
push esi
call fcn.00418f90
add esp, 8
lea ecx, [esp + 8]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x4296fc]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402abf
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 4]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402aef
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x20c
ret
Function at 0x402b90
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0x208
call fcn.004190e0
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402bb6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push str.__s_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, ebx
je 0x402c0f
cmp byte [edx], bl
je 0x402c0f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x424348]
mov word [edi - 1], cx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x208
call fcn.004190e0
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402c35
push ebp
call fcn.00419243
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x68]
lea edi, [esi + 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402c51
push 0x5c
push edi
call fcn.00418f90
add esp, 8
cmp eax, ebx
je 0x402c73
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [eax], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00419243
push ebp
call fcn.00419243
add esp, 8
cmp edi, ebx
jne 0x402cda
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret
Function at 0x4050d0
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, 1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call fcn.00402070
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
add ecx, esi
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push esi
call fcn.004010a0
add esp, 0x18
cmp eax, 0xffffffff
je 0x405128
push eax
call fcn.00401320
add esp, 4
or eax, 0xffffffff
jmp 0x405136
push esi
call fcn.004010f0
add esp, 4
cmp eax, 0xffffffff
jne 0x40513f
inc ebx
cmp ebx, 0x3e7
jl 0x4050e1
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405260
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
xor bl, bl
test edi, edi
jbe 0x40528a
mov eax, dword [esi]
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov al, byte [ecx]
xor al, dl
xor al, 0x6a
inc word [ecx]
add bl, al
dec edi
jne 0x405275
mov edi, dword [esi]
mov dl, byte [edi]
inc edi
mov dword [esi], edi
mov al, byte [ecx]
xor al, dl
pop edi
xor al, 0x6a
inc word [ecx]
xor ecx, ecx
cmp bl, al
sete cl
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x4052b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
and edx, 0xffff
xor esi, esi
mov byte [esp + 0x13], 0
lea eax, [eax + eax*4]
mov ebp, 8
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1e]
and ecx, 0xffff
xor edi, edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea esi, [esi + esi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea esi, [ebx + esi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x40530b
mov ebp, 8
mov bl, byte [ecx]
mov al, dl
xor al, bl
lea edi, [edi + edi*4]
xor al, 0x6a
inc ecx
mov byte [esp + 0x2c], al
inc edx
mov ebx, dword [esp + 0x2c]
and ebx, 0xff
lea edi, [ebx + edi*2 - 0x41]
mov bl, byte [esp + 0x13]
add bl, al
dec ebp
mov byte [esp + 0x13], bl
jne 0x40533c
mov al, byte [ecx]
mov cl, bl
xor al, dl
xor al, 0x6a
cmp cl, al
jne 0x40538d
mov eax, dword [esp + 0x14]
cmp eax, esi
jb 0x40538d
cmp eax, edi
jae 0x40538d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x408780
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x429328]
push esi
push edi
cmp byte [eax], 0
jne 0x408912
mov ecx, dword [0x429690]
mov edx, dword [0x4292bc]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40879c
mov ecx, dword [0x4292bc]
push 0x5c
push ecx
call fcn.00418f90
add esp, 8
test eax, eax
je 0x4087be
inc eax
jmp 0x4087c3
mov eax, dword [0x4292bc]
mov byte [eax], 0x72
inc eax
push ebx
push 0
mov byte [eax], 0x65
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x6e
inc eax
mov byte [eax], 0x66
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x74
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x74
mov byte [eax + 1], 0
mov edx, dword [0x4292bc]
push edx
call fcn.004010a0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x408881
push ebx
call fcn.00401220
mov esi, eax
add esp, 4
test esi, esi
jbe 0x408878
cmp esi, 0x186a0
jae 0x408878
lea eax, [esi + 1]
push eax
call fcn.004190e0
mov edi, eax
add esp, 4
test edi, edi
je 0x408878
push esi
push edi
push ebx
call fcn.00401120
mov byte [edi + esi], 0
mov ecx, dword [0x429650]
add esp, 0xc
mov eax, dword [ecx + 8]
test eax, eax
jne 0x40885c
push esi
push edi
call fcn.00408570
add esp, 8
jmp 0x40886f
xor edx, edx
cmp eax, 4
sete dl
push edx
push esi
push edi
call fcn.00409340
add esp, 0xc
push edi
call fcn.00419243
add esp, 4
push ebx
call fcn.00401320
add esp, 4
mov eax, dword [0x429328]
pop ebx
cmp byte [eax], 0
jne 0x408912
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408912
mov ecx, dword [0x429740]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408912
push ebp
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x408909
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x408902
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x429650]
not ecx
mov eax, dword [eax + 8]
dec ecx
test eax, eax
mov esi, ecx
jne 0x4088ef
push esi
push edx
call fcn.00408570
add esp, 8
jmp 0x408902
xor ecx, ecx
cmp eax, 4
sete cl
push ecx
push esi
push edx
call fcn.00409340
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebp
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
ret
Function at 0x408bb0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x429328]
cmp byte [eax], 0
jne 0x408c6b
mov ecx, dword [0x429690]
mov edx, dword [0x4292bc]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x408bca
mov ecx, dword [0x4292bc]
push 0x5c
push ecx
call fcn.00418f90
add esp, 8
test eax, eax
je 0x408bec
inc eax
jmp 0x408bf1
mov eax, dword [0x4292bc]
mov ecx, str.reginfo.txt
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x408bfa
mov edx, dword [0x4292bc]
push edx
call fcn.00408b00
mov eax, dword [0x429328]
add esp, 4
cmp byte [eax], 0
jne 0x408c6b
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408c6b
mov ecx, dword [0x429740]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408c6b
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x408c64
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x408c5d
push eax
call fcn.00408a70
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x40aa20
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov eax, dword [0x429754]
sub esp, 0x190
push ebx
xor ebx, ebx
test eax, eax
jle 0x40abb8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
cmp ebx, dword [0x429758]
je 0x40aba7
mov eax, dword [ebx*4 + 0x429610]
test eax, eax
je 0x40aba7
cmp dword [eax], 0
je 0x40aba7
test byte [eax + 6], 2
je 0x40aba7
mov eax, dword [ebx*4 + 0x4295d0]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x40aba7
cmp byte [edi], 0
je 0x40aba7
xor eax, eax
mov cl, byte [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov byte [esp + eax + 0x38], cl
inc eax
test cl, cl
jne 0x40aa8a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
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]
lea ecx, [esp + 0x3c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40aba7
mov ecx, 0x5a
lea edi, [esp + 0x38]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.UninstallString
push edx
mov dword [esp + 0x2c], 0x168
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ab2c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40aba7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x38]
push 0
push edx
call fcn.004010a0
add esp, 8
cmp eax, 0xffffffff
je 0x40aba7
push eax
call fcn.00401320
push 1
lea eax, [esp + 0x40]
push 0x424440
push eax
call fcn.00402b20
add esp, 0x10
test eax, eax
je 0x40aba7
call ebp
mov esi, eax
call ebp
sub eax, esi
cmp eax, 0xbb8
jae 0x40aba7
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
lea edx, [esp + 0x38]
push edx
call fcn.00419510
add esp, 4
test eax, eax
je 0x40aba7
call ebp
sub eax, esi
cmp eax, 0xbb8
jb 0x40ab78
mov eax, dword [0x429754]
inc ebx
cmp ebx, eax
jl 0x40aa3f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
Function at 0x40c3b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov byte [ebp], 0
je 0x40c434
mov eax, dword [0x429650]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40c3f9
mov cl, byte [esi]
push edi
mov byte [esp + 0x10], cl
mov edi, ebp
mov eax, dword [esp + 0x10]
and eax, 0xff
inc esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [eax + ebp], 0
pop esi
pop ebp
ret
mov edx, dword [0x429324]
mov eax, esi
sub eax, edx
mov dl, byte [esi]
mov cl, al
inc esi
xor cl, dl
xor cl, 0x6a
inc eax
test cl, cl
mov byte [esp + 0xc], cl
jbe 0x40c430
mov ecx, dword [esp + 0xc]
and ecx, 0xff
mov dl, byte [esi]
xor dl, al
xor dl, 0x6a
mov byte [ebp], dl
inc ebp
inc esi
inc eax
dec ecx
jne 0x40c420
mov byte [ebp], 0
pop esi
pop ebp
ret

Function at 0x40c610
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
mov ecx, dword [0x429758]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx*4 + 0x429550]
test esi, esi
je 0x40c765
mov edx, dword [ecx*4 + 0x429490]
xor eax, eax
test edx, edx
jbe 0x40c654
mov bl, byte [eax + esi]
mov cl, al
add cl, 0x40
xor bl, cl
mov byte [eax + esi], bl
mov edx, dword [0x429758]
inc eax
cmp eax, dword [edx*4 + 0x429490]
jb 0x40c637
xor eax, eax
mov ax, word [esi]
add esi, 2
test eax, eax
jbe 0x40c765
push ebp
mov dword [esp + 0x14], eax
push edi
mov al, byte [esi]
inc esi
mov byte [esp + 0x13], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
lea edx, [esi + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebp, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x14], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 1]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x4292bc]
push ecx
push edx
call fcn.0040c580
mov al, byte [esp + 0x1b]
add esp, 8
test al, 1
je 0x40c6f6
mov eax, dword [0x4292bc]
lea ecx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x4297a0
push ebx
push ebp
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40c754
mov edx, dword [esp + 0x14]
push 0xffdc
push edx
push 0
call fcn.0040c440
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 1]
push eax
call fcn.004190e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, eax
push ecx
push edx
push edi
call fcn.0040c440
mov eax, dword [0x4292bc]
add esp, 0x1c
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
call ebx
mov ecx, dword [0x4292bc]
push ecx
push 0
push 0
push 0
call ebx
push edi
call fcn.00419243
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40c66a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40c770
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x408
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
je 0x40c848
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40c848
mov ecx, dword [esp + 0x410]
lea eax, [esp + 4]
push eax
push 0x10008
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c84d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x400
call edi
mov esi, eax
cmp esi, 0x103
je 0x40c820
test esi, esi
jne 0x40c831
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0040c770
mov esi, eax
add esp, 8
test esi, esi
je 0x40c7c0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov ecx, dword [esp + 0x418]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov eax, 0x3f2
pop ebp
add esp, 0x408
ret
Function at 0x40cea0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1b0
mov ecx, dword [esp + 0x1b4]
mov dword [esp], 1
mov dword [esp + 8], str.regsvr32__s
mov eax, dword [ecx + 0x1e]
test ah, 0x20
je 0x40cf19
cmp word [ecx + 2], 0x1f4
jne 0x40cedf
mov eax, dword [0x4292b8]
lea ecx, [esp + 0x48]
push eax
push str._s___s_
push ecx
jmp 0x40cef0
mov edx, dword [0x4292bc]
lea eax, [esp + 0x48]
push edx
push str._s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x48]
push 1
push ecx
push str.regedit
call fcn.00402b20
add esp, 0xc
mov eax, 1
add esp, 0x1b0
ret
test ah, 0x40
je 0x40cf65
cmp word [ecx + 2], 0x1f4
je 0x40cf5d
mov edx, dword [0x4292bc]
lea eax, [esp + 0x48]
push edx
push str._q___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x54]
push 1
push ecx
push str.regtlib
call fcn.00402b20
add esp, 0x18
mov eax, 1
add esp, 0x1b0
ret
mov dword [esp + 8], str.regtlib__q
mov ax, word [ecx + 2]
cmp ax, 0x1f4
jne 0x40d0c9
lea edx, [esp + 4]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40d0b6
mov eax, dword [0x4292a8]
push esi
cmp eax, 0x64
push edi
jge 0x40d09e
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push str.ICLaunch
lea eax, [esp + 0x24]
push str._s_3.3d
push eax
call esi
mov eax, dword [0x4292a8]
add esp, 0x10
inc eax
lea ecx, [esp + 0x14]
mov dword [0x4292a8], eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x168
call edi
test eax, eax
jne 0x40d01f
mov eax, dword [0x4292a8]
cmp eax, 0x64
jl 0x40cfac
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov eax, dword [0x4292bc]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x58]
push 0x424608
push edx
call esi
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x50]
not ecx
dec ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40d096
mov eax, dword [esp + 0x1bc]
mov ecx, dword [eax + 0x1e]
test ch, 0x60
jne 0x40d09e
push 0
call fcn.0040ce00
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov dword [esp + 8], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x1b0
ret
mov dword [esp], 0
mov eax, dword [esp]
add esp, 0x1b0
ret
cmp ax, 0x17
je 0x40d0d5
cmp ax, 0x19
jne 0x40d0df
push 1
call fcn.0040ce00
add esp, 4
mov eax, dword [esp]
add esp, 0x1b0
ret