joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b013
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
jne 0x49b02f
mov eax, 0x80070057
jmp 0x49b0bb
mov esi, dword [ebp + 8]
lea eax, [esi + 0x44]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
lea ebx, [esi + 0x5c]
push eax
mov edi, ebx
call fcn.0049bb6e
test eax, eax
jne 0x49b06c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea edi, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.0049ba50
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x1c], edi
jne 0x49b0aa
push edi
push edi
push esi
push 0x49b11e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x49b0aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x49b0a8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call esi
push dword [esp + 0x14]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x49cdcd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, eax
mov ecx, 0x5438cc
call fcn.0040121e
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0040127c
mov eax, esi
pop esi
leave
ret

Function at 0x49ce25
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, eax
mov ecx, 0x5438cc
call fcn.0040121e
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0040127c
push esi
call fcn.00496e9b
pop ecx
mov eax, esi
pop esi
leave
ret
Function at 0x49dc5e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.00415bf7
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x49dd0b
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x49dd0a
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.0042483c
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49dd0a
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x49dd0a
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x49dcbb
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x49dcf5
xor eax, eax
jmp 0x49dcfc
push eax
call sub.MSVCR80.dll_strlen
pop ecx
mov edx, esi
call fcn.0042481c
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x49dd1b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x49e202
Capabilities:
Terminate thread

Disassembly:
push ebx
mov eax, edi
mov dword [edi], vtable.KToolboxItem.0
call fcn.0049e2ed
lea ebx, [edi + 0xc]
mov eax, ebx
call fcn.00444abf
test eax, eax
je 0x49e22a
push 0x7d0
mov eax, ebx
call fcn.00444ae6
mov eax, ebx
call fcn.00444abf
test eax, eax
je 0x49e244
mov eax, dword [ebx]
test eax, eax
je 0x49e244
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 0x18]
test eax, eax
je 0x49e255
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [edi + 0x18], 0
push esi
lea esi, [edi + 0x1c]
call fcn.00431434
mov eax, dword [edi + 0x14]
sub eax, 0x10
call fcn.00401239
mov eax, dword [edi + 0x10]
sub eax, 0x10
call fcn.00401239
mov eax, dword [ebx]
test eax, eax
pop esi
je 0x49e285
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop ebx
ret

Function at 0x49e287
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
push str.indexkcom_kwifitool
lea eax, [esi + 0x10]
push eax
call fcn.0040127c
push 0x50edd8
lea eax, [esi + 0x14]
push eax
call fcn.0040127c
push esi
call fcn.0049e352
push 0xc
mov dword [esi + 0x18], eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
xor ecx, ecx
cmp eax, ecx
jne 0x49e2c1
xor eax, eax
jmp 0x49e2e0
push ecx
push ecx
push eax
push 0x45681e
push ecx
push ecx
mov dword [eax], esi
mov dword [eax + 8], ecx
mov dword [eax + 4], 0x49e303
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push eax
add esi, 0xc
call fcn.00444aa9
xor eax, eax
pop esi
ret
Function at 0x49ebdc
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [esp + 0x24], edi
push 2
pop esi
je 0x49ed1e
push 4
pop esi
push str.Global4AD5C1B1_C922_46dc_87EB_EEEEA805350C
push edi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x49ed1e
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 5
pop esi
push 0x1388
push eax
call ebp
cmp eax, 0x102
je 0x49ed0a
push 4
pop esi
push str.Global9911015F_D698_48d7_BB1B_040EA452E003
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ebx, 0x1f0003
push ebx
call edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x49ed0a
push str.Global689DC529_FC99_42cc_9ADD_E879C5B7B9DE
push 0
push ebx
call edi
mov ebx, eax
test ebx, ebx
je 0x49ed00
push str.Global25290102_9898_4d43_8199_61F3DF41832E
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x49ecf9
mov edi, 0x1000
push edi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x10], eax
je 0x49ecef
push 3
pop esi
push dword [esp + 0x24]
mov ecx, eax
call fcn.0049ea82
cmp eax, edi
ja 0x49ece5
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 5
pop esi
push 0x1388
push ebx
call ebp
cmp eax, 0x102
je 0x49ece5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
xor esi, esi
inc esi
call fcn.0049e9d7
test eax, eax
jne 0x49ece5
push ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor esi, esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x49f1eb
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
push edi
jne 0x49f20b
xor eax, eax
jmp 0x49f2ce
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x49f204
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x254]
cmp edi, ebx
je 0x49f204
mov eax, dword [esi + 4]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x49f204
lea eax, [ebp - 5]
push eax
lea eax, [ebp - 0x24]
lea ecx, [edi + 2]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 5], bl
call fcn.00463ee0
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
lea esi, [ebp - 0x24]
call fcn.00463cd9
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f2bb
cmp dword [ebp - 0x10], edi
jne 0x49f2bb
cmp edi, ebx
mov dword [ebp - 0xc], ebx
jbe 0x49f2a6
push dword [ebp - 0xc]
lea esi, [ebp - 0x24]
call fcn.00463cd9
xor byte [eax], 0x4e
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jb 0x49f290
push ebx
lea esi, [ebp - 0x24]
call fcn.00463cd9
push eax
push dword [ebp + 8]
call fcn.00415b64
xor ebx, ebx
inc ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x24]
call fcn.00463f9a
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x49f5b3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push 0x206
lea eax, [ebp - 0x206]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.se.dat
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49f637
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.0040127c
xor eax, eax
inc eax
leave
ret 4

Function at 0x49fafd
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push edi
mov esi, eax
push 0xffffffffffffffff
call fcn.0049fb6e
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x49fb22
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push eax
push edi
push esi
push 0x49fb91
push edi
push edi
mov dword [esi + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi], eax
pop edi
pop esi
mov eax, ecx
ret 4
Function at 0x49fb4f
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x49fb6d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
or dword [esi + 0xc], 0xffffffff
ret
Function at 0x4a2ba6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov edi, eax
jne 0x4a2bc8
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.004a3fac
xor al, al
jmp 0x4a2c5a
push esi
call fcn.004a25a4
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.MSVCR80.dll_ftell]
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov eax, dword [ebp - 4]
add esp, 0x1c
cmp eax, ebx
jne 0x4a2c07
push ebx
push ebx
push 0xd
jmp 0x4a2c34
inc eax
push eax
call fcn.004ce6ea
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x4a2c40
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.004a3fac
xor al, al
jmp 0x4a2c59
push dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp - 4]
call fcn.004a2c60
push esi
mov bl, al
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
mov al, bl
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x4a5372
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push edi
xor edi, edi
push 0x228
lea eax, [ebp - 0x244]
push edi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x248], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 2
mov dword [ebp - 0x14], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x4a53bc
xor eax, eax
jmp 0x4a54ec
push esi
lea ecx, [ebp - 0x248]
push ecx
push eax
mov dword [ebp - 0x248], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4a54d6
push ebx
cmp dword [ebp - 8], edi
je 0x4a53f0
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 4], edi
je 0x4a53fd
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x224]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4a5499
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4a5499
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x4a5499
push dword [ebp - 0x240]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x4a5499
lea eax, [ebp - 4]
push eax
push 0xf01ff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4a5499
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp - 4]
lea ebx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], edi
call fcn.004a50c3
add esp, 0xc
test eax, eax
je 0x4a5499
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call fcn.004a5032
test eax, eax
pop ecx
push ebx
je 0x4a54b2
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4a53e3
jmp 0x4a54cb
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
cmp dword [ebp - 8], edi
pop ebx
je 0x4a54d6
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], edi
je 0x4a54e3
push dword [ebp - 4]
call esi
mov dword [ebp - 4], edi
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
pop esi
pop edi
leave
ret
Function at 0x4a562e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
or esi, 0xffffffff
cmp dword [ebp + 8], 0
je 0x4a56ee
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x54]
push eax
call fcn.004a54ef
test eax, eax
pop ecx
je 0x4a56e5
mov esi, 0x510ad8
push esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str._aurl:
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [ebp - 0x20], 8
mov ecx, dword [ebp - 0x34]
jae 0x4a56a9
lea ecx, [ebp - 0x34]
cmp dword [ebp - 4], 8
mov eax, dword [ebp - 0x18]
jae 0x4a56b5
lea eax, [ebp - 0x18]
push 1
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
dec ecx
mov esi, ecx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
pop esi
leave
ret
Function at 0x4a5b35
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x4a5bb0
push ebx
push edi
push 2
push str.seclogon
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
je 0x4a5ba9
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x4a5b8f
cmp dword [ebp - 0x2c], 3
je 0x4a5ba6
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 4], eax
push edi
call ebx
push dword [ebp - 0xc]
call ebx
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x4a5dbb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
push edi
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esp, 0xc
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4a5df2
xor eax, eax
jmp 0x4a5e49
cmp word [ebp - 0x44], 0x5a4d
jne 0x4a5dee
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x13c]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
push esi
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp - 8]
add eax, ebx
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4a5dee
cmp dword [ebp - 0x13c], 0x4550
jne 0x4a5dee
mov ax, word [ebp - 0x126]
not ax
movzx eax, ax
shr eax, 0xd
and eax, 1
pop edi
pop esi
leave
ret
Function at 0x4a6434
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
xor esi, esi
push esi
push esi
push 4
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4a645d
xor eax, eax
jmp 0x4a649d
xor eax, eax
cmp edi, esi
je 0x4a6467
mov dword [ebp - 0xc], edi
inc eax
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
call fcn.004a5ec2
add esp, 0xc
test eax, eax
je 0x4a6459
cmp dword [ebp + 0x10], esi
je 0x4a6491
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop esi
leave
ret 0xc
Function at 0x4a64a2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
push ebx
push esi
push edi
push 4
push 0x1000
push 0x308
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0xc], esi
je 0x4a669d
push 0x40
pop edi
push edi
lea eax, [ebp - 0xd0]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xd0]
push eax
push esi
push dword [ebp + 8]
mov word [ebp - 0xd0], 0x5a4d
mov dword [ebp - 0x94], edi
call ebx
test eax, eax
je 0x4a669d
cmp dword [ebp - 4], edi
jne 0x4a669d
add esi, edi
mov dword [ebp - 8], esi
mov esi, pe_nt_image_headers32
push esi
lea eax, [ebp - 0x1c8]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x1c8]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x1c8], 0x4550
push dword [ebp + 8]
mov word [ebp - 0x1b4], 0xe0
mov word [ebp - 0x1b2], 0x2000
mov word [ebp - 0x1c2], 1
call ebx
test eax, eax
je 0x4a669d
cmp dword [ebp - 4], esi
jne 0x4a669d
add dword [ebp - 8], esi
push 0x28
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.MSVCR80.dll_memset
push 8
lea eax, [ebp - 0x4c]
push str..detour
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
add esp, 0x18
add eax, 0x28
mov dword [ebp - 0x40], eax
lea eax, [ebp - 4]
push eax
push 0x28
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 8]
mov esi, 0x1a8
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
call ebx
test eax, eax
je 0x4a669d
cmp dword [ebp - 4], 0x28
jne 0x4a669d
add dword [ebp - 8], 0x28
push edi
lea eax, [ebp - 0x90]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x90], edi
push dword [ebp + 8]
mov dword [ebp - 0x8c], 0x727444
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], esi
call ebx
test eax, eax
je 0x4a669d
cmp dword [ebp - 4], edi
jne 0x4a669d
add dword [ebp - 8], edi
push 0x18
lea eax, [ebp - 0x24]
push 0
push eax
call sub.MSVCR80.dll_memset
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x168
mov esi, 0x4e2770
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 8]
push eax
push edi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x4a669d
cmp dword [ebp - 4], 0x18
jne 0x4a669d
lea eax, [ebp - 4]
push eax
mov esi, 0x150
push esi
push dword [ebp + 0xc]
add edi, 0x18
push edi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x4a669d
cmp dword [ebp - 4], esi
jne 0x4a669d
xor eax, eax
inc eax
jmp 0x4a669f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a66a6
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x531920
call fcn.004d5f64
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp word [edx], 0x5a4d
jne 0x4a6708
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x4a6708
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x4a6708
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4a6708
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x4a670e
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.004d5f9f
ret