joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4452b0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x48412f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x48d118
lea edi, [esi + 0x120]
mov dword [esp + 0x14], 3
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x138]
test eax, eax
je 0x445328
push 0
mov eax, dword [esi + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [esi + 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x138], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0x148]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xe0]
mov byte [esp + 0x14], 2
call sub.MFC42u.DLL_CListCtrl::CListCtrl
lea ecx, [esi + 0xa0]
mov byte [esp + 0x14], 1
call sub.MFC42u.DLL_CListCtrl::CListCtrl
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CStatic::CStatic
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], 0x488cdc
call fcn.0047dd48
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x446a62
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x120]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0xc]
push eax
push ebx
push esi
push 0x446830
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x138]
test eax, eax
je 0x446a9e
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x446ac6
mov eax, dword [0x513e5c]
push ebx
mov ecx, dword [eax*4 + 0x4beb98]
mov edx, dword [eax*4 + 0x4beb8c]
push ecx
push edx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MessageBoxW
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x44cd10
Capabilities:
Hash data with md5

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x16
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
pop edi
ret
Function at 0x4502c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x450370
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x450335
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x450335
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x450335
cmp eax, 0x103
jae 0x450335
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x450370
cmp eax, 0x103
jae 0x450370
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4
Function at 0x453f70
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x484d8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x48e988
lea edi, [esi + 0x360]
mov dword [esp + 0x1c], 0xd
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0x35c]
cmp eax, ebx
je 0x453fe8
push ebx
mov eax, dword [esi + 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov ecx, dword [esi + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x35c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x35c], ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call edi
lea eax, [esi + 0x388]
push eax
call edi
call fcn.0044d170
lea ecx, [esi + 0x3b8]
mov byte [esp + 0x1c], 0xc
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esi + 0x37c]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0x2e0]
mov dword [esi + 0x37c], ebx
mov dword [esi + 0x380], ebx
mov dword [esi + 0x384], ebx
mov byte [esp + 0x1c], 0xa
call fcn.0040b8a0
lea ecx, [esi + 0x2a0]
mov byte [esp + 0x1c], 9
call sub.MFC42u.DLL_CStatic::CStatic
lea ecx, [esi + 0x260]
mov byte [esp + 0x1c], 8
call fcn.0047df88
lea ecx, [esi + 0x220]
mov byte [esp + 0x1c], 7
call fcn.0047df88
lea ecx, [esi + 0x1e0]
mov byte [esp + 0x1c], 6
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x1c], 5
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x160]
mov byte [esp + 0x1c], 4
call sub.MFC42u.DLL_CStatic::CStatic
lea ecx, [esi + 0x120]
mov byte [esp + 0x1c], 3
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0xe0]
mov byte [esp + 0x1c], 2
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0xa0]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CStatic::CStatic
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], bl
call fcn.0047df88
mov ecx, esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi], 0x488cdc
call fcn.0047dd48
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x456c00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x456cb0
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x456c75
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x456c75
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x456c75
cmp eax, 0x103
jae 0x456c75
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x456cb0
cmp eax, 0x103
jae 0x456cb0
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x49e1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4

Function at 0x457d10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2ac
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2bc]
mov ebp, dword [esp + 0x2c4]
xor ebx, ebx
mov ax, word [esi]
push edi
mov dword [esp + 0x1c], 0x3a0000
mov word [esp + 0x1c], ax
push ebx
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x28]
push ebx
push 3
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x2d0]
mov ecx, dword [esp + 0x2d8]
push ebx
push 3
lea edx, [esp + 0x28]
push 0x80000000
push edx
mov dword [esp + 0x30], 0x5c005c
mov dword [esp + 0x34], 0x5c002e
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
mov dword [esp + 0x24], eax
je 0x457e18
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0xc4]
push 0x200
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 0x200
jne 0x457e0d
lea eax, [esp + 0xbf]
push 8
push eax
push str.NTFS
call dword [sym.imp.MSVCRT.dll_strncmp]
mov ecx, dword [esp + 0x2d8]
add esp, 0xc
test eax, eax
push ecx
push ebp
push edi
lea edx, [esp + 0x30]
push esi
lea eax, [esp + 0xcc]
push edx
push eax
jne 0x457e03
call fcn.0045a830
jmp 0x457e08
call fcn.00458cc0
add esp, 0x18
mov ebx, eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2ac
ret
Function at 0x457e30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, esi
pop esi
sete al
add esp, 0x14
ret

Function at 0x458fd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, esi
pop esi
sete al
add esp, 0x14
ret

Function at 0x45c970
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esi + 0xe8], 0
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x45c2f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xcc], eax
jne 0x45c9b6
mov ecx, dword [0x513e5c]
push eax
push eax
mov edx, dword [ecx*4 + 0x4e2860]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CWnd::MessageBoxW
pop esi
pop ecx
ret
Function at 0x462e59
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x485d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.0040bfe0
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xd0]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.0041e8e0
add esp, 0xc
cmp al, 1
jne 0x462fa4
push ebp
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x28], esi
mov ebp, dword [eax]
lea edi, [eax + 4]
cmp ebp, esi
jbe 0x462f83
push 0
push 0
push 0
push 0
push edi
push esi
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::InsertItem
lea eax, [edi + 0x28]
mov ecx, ebx
push eax
push 1
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x234]
lea edx, [esp + 0x10]
push ecx
push str.0x_04X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 2
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x238]
lea edx, [esp + 0x10]
push ecx
push str.0x_08X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 3
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x230]
lea edx, [esp + 0x10]
push ecx
push 0x49f3f0
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 4
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x23c]
lea edx, [esp + 0x10]
push ecx
push 0x49f3f0
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 5
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc esi
add edi, 0x240
cmp esi, ebp
jb 0x462eaf
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x1c]
pop edi
pop ebp
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [esi + 0x80]
push 0
push 0
push 0x1004
push ecx
mov dword [esp + 0x30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x513e5c]
mov ecx, dword [esi + 0xcc]
push eax
mov eax, dword [edx*4 + 0x4e3550]
lea edx, [esp + 0x10]
push eax
push ecx
push str.__s__s__d_
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
push 0
mov ecx, ebx
call fcn.0040c3d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4650d0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x485f6c
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
push ebp
mov ebp, dword [esp + 0x370]
xor bl, bl
push edi
mov edi, ecx
test ebp, ebp
jbe 0x465290
push 0
push str.All_Files__._.
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x20]
mov dword [esp + 0x368], 0
call sub.MFC42u.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x465265
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CFileDialog::GetPathName
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x36c], 1
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x465184
mov eax, dword [0x513e5c]
push 0x34
mov ecx, edi
mov edx, dword [eax*4 + 0x4e3f78]
mov eax, dword [eax*4 + 0x4e3f6c]
push edx
push eax
call sub.MFC42u.DLL_CWnd::MessageBoxW
cmp eax, 6
jne 0x465253
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x465235
mov ecx, dword [esp + 0x374]
mov edx, dword [edi + 0x214]
mov eax, dword [edi + 0x210]
push esi
push ebp
push ecx
push edx
push eax
call fcn.0041f750
add esp, 0x14
cmp al, 1
jne 0x46520d
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [esp + 0x10]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x378], 2
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x4651fc
push ebp
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CFile::Write
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::Close
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 1
call fcn.0047de14
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp bl, 1
jne 0x465235
mov eax, dword [0x513e5c]
push 0
mov edx, dword [eax*4 + 0x4e3f78]
mov eax, dword [eax*4 + 0x4e3f84]
push edx
push eax
jmp 0x46524c
mov eax, dword [0x513e5c]
push 0
mov ecx, dword [eax*4 + 0x4e3f78]
mov edx, dword [eax*4 + 0x4e3f90]
push ecx
push edx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x10]
mov byte [esp + 0x36c], 0
call sub.MFC42u.DLL_CString::CString
pop esi
lea ecx, [esp + 0xd0]
mov dword [esp + 0x368], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x368], 0xffffffff
call fcn.0047dd48
mov ecx, dword [esp + 0x360]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 8
Function at 0x469506
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x4864f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.0040bfe0
mov ecx, esi
call fcn.00469290
test eax, eax
jne 0x46952b
push esi
push 0x4690b0
call dword [sym.imp.USER32.dll_EnumWindows]
push 3
mov ecx, edi
call fcn.0040c3d0
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi + 0xd0]
push 0
test eax, eax
push 0
mov dword [esp + 0x1c], 0
push 0x1004
jne 0x46958f
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x513e5c]
push eax
mov eax, dword [esi + 0xcc]
mov edx, dword [ecx*4 + 0x4e4b08]
lea ecx, [esp + 0xc]
push edx
push eax
push str.__s__s__d_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
jmp 0x4695bc
mov edx, dword [esi + 0x80]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [0x513e5c]
lea edx, [esp + 0xc]
mov ecx, dword [eax*4 + 0x4e4b08]
push ecx
push str._s__d_
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x46a9d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x554028]
push ebx
cmp eax, 1
push ebp
jne 0x46aa37
mov ebx, dword [esp + 0xc]
push 1
lea eax, [ebx + 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46aa37
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x10
mov edi, ebp
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x46aa0c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46aa37
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp]
mov dword [ebx], edx
mov eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebx + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
pop ebp
pop ebx
ret

Function at 0x46aa40
Capabilities:
Continue service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x46aac1
push ebx
push esi
push 0x54
push str.CryptSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x46aabc
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46aab9
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x46aaa6
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
cmp eax, 7
jne 0x46aab9
lea ecx, [esp + 0xc]
push ecx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x46adf0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4908a0
push 0x47e2ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
je 0x46aef7
call fcn.0046aa40
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46aee4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x28]
push eax
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x46adc0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x46aef0
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46ae99
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0x20100607
jne 0x46aec3
mov ebx, 1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x46aef0
push edi
push esi
call fcn.0046aad0
add esp, 8
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4867f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
mov ebx, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edi
mov word [esp + 0x14], di
mov dword [esp + 0x16], ebx
mov word [esp + 0x1a], ax
call sub.MFC42u.DLL_CString::CString_4
push 0x4e4ebc
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.0047dde4
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 8]
cmp eax, edi
mov dword [esp + 0x10], eax
jle 0x46c15c
push ebp
lea ebp, [esp + 0x18]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
mov si, word [edx + edi*2]
push esi
call sub.MFC42u.DLL_CString::operator_2
cmp si, 0x2e
jne 0x46c152
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
lea ecx, [esp + 0x10]
mov word [ebp], ax
push 0x513d78
call sub.MFC42u.DLL_CString::operator
mov ebx, dword [esp + 0x1a]
add ebp, 2
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x46c113
pop ebp
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
and esi, 0xffff
mov edx, dword [esp + 0x1a]
shl esi, 8
and ebx, 0xffff
and ecx, 0xffff
add esi, ebx
and edx, 0xffff
shl esi, 8
add esi, ecx
lea ecx, [esp + 0xc]
shl esi, 8
add esi, edx
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4