joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4400a4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x497dee
call fcn.004694dd
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4400c9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x44010f
lea ecx, [ebp - 0x10]
call fcn.00405420
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004361de
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403230
mov eax, esi
call fcn.004695b5
ret 8

Function at 0x44639d
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4463c8
call fcn.00438a65
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4463eb
push eax
push dword [esi + 4]
call fcn.004462fe
push esi
push eax
mov ecx, 0x4c09bc
call fcn.00445d3a
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x447a85
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4988a3
call fcn.004694dd
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0044775f
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00405420
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x447aeb
push eax
push dword [esi + 8]
call fcn.004462fe
push dword [esi + 0xc]
mov ecx, 0x4c09bc
push eax
call fcn.00445d3a
mov eax, esi
call fcn.004695b5
ret 0x18

Function at 0x44fe8c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x49937f
call fcn.004694dd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00408110
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44feee
call fcn.00437e74
cmp eax, 1
jne 0x44feee
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00409ff0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405bd0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403230
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403230
mov eax, esi
call fcn.004695b5
ret 0x10
Function at 0x44ff17
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4993aa
call fcn.004694dd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00408110
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44ff79
call fcn.00437e74
cmp eax, 1
jne 0x44ff79
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00409ff0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405bd0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403230
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403230
mov eax, esi
call fcn.004695b5
ret 0x14

Function at 0x44ffa5
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x4993d5
call fcn.004694dd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00408110
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x450007
call fcn.00437e74
cmp eax, 1
jne 0x450007
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00409ff0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00405bd0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403230
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00403230
mov eax, esi
call fcn.004695b5
ret 8

Function at 0x466555
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bc4a0]
jne 0x46655f
repz ret
jmp fcn.0047167c
Function at 0x489fc4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00470fb8
and dword [ebp - 4], 0
cmp dword [0x4c1818], 0
mov ebx, eax
jne 0x48a075
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x48a126
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a83e0
push edi
call esi
test eax, eax
je 0x48a126
push eax
call fcn.00470f46
mov dword [esp], 0x4a83d0
push edi
mov dword [0x4c1818], eax
call esi
push eax
call fcn.00470f46
mov dword [esp], 0x4a83bc
push edi
mov dword [0x4c181c], eax
call esi
push eax
call fcn.00470f46
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c1820], eax
call esi
push eax
call fcn.00470f46
pop ecx
mov dword [0x4c1828], eax
test eax, eax
je 0x48a075
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00470f46
pop ecx
mov dword [0x4c1824], eax
mov eax, dword [0x4c1824]
cmp eax, ebx
je 0x48a0cd
cmp dword [0x4c1828], ebx
je 0x48a0cd
push eax
call fcn.00470fc1
push dword [0x4c1828]
mov esi, eax
call fcn.00470fc1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48a0cd
test edi, edi
je 0x48a0cd
call esi
test eax, eax
je 0x48a0c4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48a0c4
test byte [ebp - 0xc], 1
jne 0x48a0cd
or dword [ebp + 0x10], 0x200000
jmp 0x48a106
mov eax, dword [0x4c181c]
cmp eax, ebx
je 0x48a106
push eax
call fcn.00470fc1
pop ecx
test eax, eax
je 0x48a106
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x48a106
mov eax, dword [0x4c1820]
cmp eax, ebx
je 0x48a106
push eax
call fcn.00470fc1
pop ecx
test eax, eax
je 0x48a106
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c1818]
call fcn.00470fc1
pop ecx
test eax, eax
je 0x48a126
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48a128
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100070b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100018e0]
jne 0x1000745e
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x100099a8], eax
mov dword [0x100099a4], ecx
mov dword [0x100099a0], edx
mov dword [0x1000999c], ebx
mov dword [0x10009998], esi
mov dword [0x10009994], edi
mov word [0x100099c0], ss
mov word [0x100099b4], cs
mov word [0x10009990], ds
mov word [0x1000998c], es
mov word [0x10009988], fs
mov word [0x10009984], gs
pushfd
pop dword [0x100099b8]
mov eax, dword [ebp]
mov dword [0x100099ac], eax
mov eax, dword [ebp + 4]
mov dword [0x100099b0], eax
lea eax, [ebp + 8]
mov dword [0x100099bc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100098f8], 0x10001
mov eax, dword [0x100099b0]
mov dword [0x100098ac], eax
mov dword [0x100098a0], 0xc0000409
mov dword [0x100098a4], 1
mov eax, dword [0x100018e0]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000942c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x100098f0], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10001920
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x100098f0], 0
jne 0x1000754e
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x100079c7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x100079d6
pop dword [ebp - 0x2c]
mov eax, 0x57d691b2
sub eax, 0x47d617dc
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x6d09647e
add dword [ebp - 0x3c], 0xe148e0cd
mov dword [ebp - 0x38], 0xeb23c862
sub dword [ebp - 0x38], 0xb8f07c1d
mov dword [ebp - 0x34], 0x65747462
add dword [ebp - 0x34], 0xe6d7cfcc
mov dword [ebp - 0x30], 0x918906e1
sub dword [ebp - 0x30], 0x918906e1
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x4cf27031
sub dword [ebp - 0x3c], 0xd88006db
mov dword [ebp - 0x38], 0x29072150
add dword [ebp - 0x38], 0x18654025
mov dword [ebp - 0x34], 0x3a244e7b
add dword [ebp - 0x34], 0x294b1df1
mov dword [ebp - 0x30], 0xecee71c0
sub dword [ebp - 0x30], 0xecee71c0
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x4650201b
add eax, 0xc9aff121
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x36a88
push 0
call eax
mov ecx, 0x489b
xor edx, edx
add edx, eax
mov edi, 0x1000c000
add edi, dword [ebp - 0x2c]
mov esi, 0xfbdec049
add esi, 0xcda8ab63
sub dword [ebp - 8], 0x4cfbe430
mov ebx, dword [edi]
sub dword [ebp - 0x14], 0xd362c0bf
sub ebx, esi
sub dword [ebp - 0x20], ebx
mov dword [edx], ebx
add edx, 4
add edi, 0x6177e9f6
sub edi, 0x6177e9f2
loop 0x10007ae9
add eax, 0x8a41ecdc
sub eax, 0x8a40d79d
xor ebx, ebx
add ebx, eax
add eax, 0xf8429557
sub eax, 0xf8429552
mov ecx, 0x85c6ca33
add ecx, 0x8a3935cd
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4010b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push 0x400
push esi
push ebx
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x401160
cmp dword [esp + 0x10], 0x400
jne 0x401160
push edi
push esi
call fcn.00401170
mov edi, eax
add esp, 4
cmp edi, 0x400
jbe 0x401144
push edi
push esi
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov esi, eax
lea ecx, [esp + 0x14]
add edi, 0xfffffc00
push 0
push ecx
lea edx, [esi + 0x400]
push edi
push edx
push ebx
call ebp
push esi
call fcn.00401170
add esp, 4
mov edi, eax
push esi
call fcn.004039c0
push esi
mov dword [0x412a38], eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
ret

Function at 0x401170
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40117e
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x40118e
xor eax, eax
ret
mov eax, dword [eax + 0x54]
ret
Function at 0x4015a0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x308
lea eax, [esp + 0x108]
lea ecx, [esp + 0x208]
lea edx, [esp + 8]
push eax
push ecx
lea eax, [esp + 8]
push edx
push eax
push 0x412928
call dword [sym.imp.MSVCRT.dll__splitpath]
mov al, byte [0x40870c]
add esp, 0x14
test al, 8
je 0x4015f6
mov al, byte [0x411b10]
test al, al
je 0x4015f6
push 0x412a4c
lea ecx, [esp + 0xc]
push 0x411b10
lea edx, [esp + 8]
push ecx
push edx
jmp 0x40160a
push str..bin
lea eax, [esp + 0xc]
push str.main
lea ecx, [esp + 8]
push eax
push ecx
push 0x412820
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x14
push ebx
push ebp
push esi
push edi
call fcn.00401070
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
call fcn.004011a0
mov esi, eax
add esi, 0x10000
sub ebx, esi
mov ebp, ebx
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
je 0x401684
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SetFilePointer_for_input.
call fcn.004038d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
lea edx, [esp + 0x14]
push 0
push edx
push ebp
push ebx
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4016ca
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ReadFile_for_input.
call fcn.004038d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push 0x412820
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401718
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Cannot_open_output_file.
call fcn.004038d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40175b
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
push str.WriteFile_for_output_file.
call fcn.004038d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x308
ret
push str.Copy_succeeded.
call fcn.004038d0
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 0x412820
pop ebx
add esp, 0x308
ret
Function at 0x401840
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x408]
push esi
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4018d2
lea ecx, [esp + 4]
push 0
push ecx
lea edx, [esp + 0x10]
push 0x400
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4018cb
cmp dword [esp + 4], 0x400
jne 0x4018cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esp + 8], 0x5a4d
jne 0x4018d2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + eax + 8]
lea eax, [esp + eax + 8]
cmp ecx, 0x4550
jne 0x4018d2
mov eax, dword [eax + 0x34]
pop esi
add esp, 0x404
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x404
ret

Function at 0x4018e0
Capabilities:
Read file on windows
Timestomp file
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x20]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401922
push str.UnPatchFile._cannnot_open_the_file.
call fcn.004038d0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push ebp
push ebp
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [edi + 0x88]
cmp ebx, ebp
jne 0x401947
mov ebx, 4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40196d
push str.UnPatchFile._cannnot_allocate_buffer.
call fcn.004038d0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi + 0x80]
push 0
push 0
push ecx
push esi
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [edi + 0x80]
jne 0x4019ff
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019ff
cmp dword [esp + 0x10], ebx
jne 0x4019ff
mov eax, dword [esp + 0x24]
push eax
push edi
push ebp
call fcn.00403a10
mov ecx, dword [edi + 0x80]
add esp, 0xc
mov byte [esp + 0x20], al
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [esp + 0x20]
test al, al
je 0x4019ff
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019ff
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x401a20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov ebx, dword [edi + 0x88]
test ebx, ebx
jne 0x401a3a
mov ebx, 4
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401a60
push str.PatchProcess._cannnot_allocate_buffer.
call fcn.004038d0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [edi + 0x80]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
add esi, edx
push ebx
push ebp
push esi
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x401a9e
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x40]
push edx
push edi
push ebp
call fcn.00403a10
add esp, 0xc
mov byte [esp + 0x3c], al
test al, al
je 0x401b11
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x14]
push 0x1c
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push 0x40
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x401b0c
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401b11
mov byte [esp + 0x3c], 0
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov al, byte [esp + 0x40]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x401bd0
Capabilities:
Create process on windows
Create thread
Get common file path
Resume thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14c
mov dword [0x412a34], eax
push ebx
push esi
call fcn.004015a0
mov esi, eax
test esi, esi
jne 0x401bf7
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
push edi
mov edi, dword [esp + 0x160]
test edi, edi
je 0x401c08
cmp byte [edi], 0
jne 0x401c0d
mov edi, 0x411b10
push esi
call fcn.00401840
mov ebx, eax
mov al, byte [0x40870c]
add esp, 4
test al, 8
je 0x401c26
mov edi, 0x412a4c
test al, 1
je 0x401c48
lea ecx, [esp + 0x50]
push 0x104
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x50]
push edi
push edx
push str._s__s
jmp 0x401c4f
push edi
push esi
push str.__s___s
push 0x4085b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 0x10
rep stosd dword es:[edi], eax
mov dword [0x412810], eax
lea ecx, [esp + 0xc]
mov dword [0x412814], eax
push 0x412810
mov dword [0x412818], eax
push ecx
push eax
push eax
push 0x24
push eax
push eax
push eax
push 0x4085b8
push esi
mov dword [esp + 0x34], 0x44
mov dword [0x41281c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x401cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcess_failed.
call fcn.004038d0
add esp, 4
xor al, al
pop esi
pop ebx
add esp, 0x14c
ret
lea edx, [esp + 0x4c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x4c]
push eax
call fcn.004038d0
push esi
call fcn.004038d0
push 0x4085b8
call fcn.004038d0
mov ecx, dword [0x412818]
add esp, 0xc
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x401d3c
push str.OpenProcess_failed.
call fcn.004038d0
mov edx, dword [0x412814]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call esi
mov eax, dword [0x412810]
push eax
call esi
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
push ebx
push esi
call fcn.00401b30
add esp, 8
test al, al
jne 0x401d7a
push str.unpatch_failed.
call fcn.004038d0
mov ecx, dword [0x412814]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [0x412810]
push edx
call esi
pop esi
xor al, al
pop ebx
add esp, 0x14c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x412814]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [0x412810]
push ecx
push 0
push 0x401790
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov al, 1
pop esi
pop ebx
add esp, 0x14c
ret
Function at 0x401db0
Capabilities:
Delete file
Terminate process

Disassembly:
mov eax, dword [0x412810]
sub esp, 0x400
push ebx
xor bl, bl
test eax, eax
je 0x401de3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov bl, 1
mov dword [0x412810], eax
mov dword [0x412814], eax
mov dword [0x412818], eax
mov dword [0x41281c], eax
mov al, byte [0x412820]
test al, al
je 0x401e3b
push esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x412820
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x412820
lea ecx, [esp + 0x14]
push str.DeleteFile__s__d___d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x1c]
push edx
call fcn.004038d0
add esp, 0x18
test esi, esi
pop esi
je 0x401e3b
mov byte [0x412820], 0
mov al, bl
pop ebx
add esp, 0x400
ret

Function at 0x401fc0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x412a44]
sub esp, 0x100
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push eax
push str.c_nCount_d
push ecx
call ebx
lea edx, [esp + 0x14]
push edx
call fcn.004038d0
mov eax, dword [0x412a44]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x40202d
push edi
mov edi, 0x4083b8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push esi
lea edx, [esp + 0x18]
push str.__d____X___X
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call fcn.004038d0
mov eax, dword [0x412a44]
add esp, 0x18
inc esi
add edi, 8
cmp esi, eax
jl 0x401ffe
pop edi
push 0
push 0x401e70
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x402050
Capabilities:
Enumerate gui resources

Disassembly:
push 2
push 0x401e70
call dword [sym.imp.USER32.dll_EnumWindows]
ret

Function at 0x402060
Capabilities:
Create process on windows

Disassembly:
push esi
push 0x4086d0
call fcn.00404130
add esp, 4
mov ecx, dword [0x4086d0]
mov edx, dword [0x4086d4]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x4086d8]
mov dword [eax + 4], edx
mov edx, dword [0x4086dc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00403f90
add esp, 0x14
test eax, eax
jne 0x4020a7
xor al, al
pop esi
ret
mov eax, dword [esp + 8]
push 0x3080000
push 0
push eax
push 0
call fcn.00403c70
mov esi, eax
add esp, 0x10
cmp esi, 1
je 0x4020c9
cmp esi, 0xa
jne 0x4020fa
push 4
push 0x4081bc
push 0x411c10
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4020fa
push 1
push 0
push 0
push 0x412010
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
sete al
pop esi
ret