joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402910
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4029eb
lea ecx, [ebp - 0xc]
push ecx
push str.SeDebugPrivilege
push 0x4316a8
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4029cb
mov dword [ebp - 0x1c], 1
mov edx, 0xc
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ebp + eax - 0x18], ecx
mov dword [ebp + eax - 0x14], edx
mov eax, 0xc
imul ecx, eax, 0
mov dword [ebp + ecx - 0x10], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4029c5
push 0x406740
push str.cant_lookup_privilege_value
push 0x435fe8
call fcn.00406410
add esp, 8
mov ecx, eax
call fcn.00403240
jmp 0x4029c9
mov byte [ebp - 0x21], 1
jmp 0x4029e9
push 0x406740
push str.cant_lookup
push 0x435fe8
call fcn.00406410
add esp, 8
mov ecx, eax
call fcn.00403240
jmp 0x402a09
push 0x406740
push str.cant_open_process_current
push 0x435fe8
call fcn.00406410
add esp, 8
mov ecx, eax
call fcn.00403240
cmp dword [ebp - 0x20], 0
je 0x402a19
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409fa4
mov esp, ebp
pop ebp
ret

Function at 0x402a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4251e0
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x435014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], 0
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00403510
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.00403320
sub eax, 1
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403360
movsx edx, byte [eax]
cmp edx, 0x5c
je 0x402b02
push 0x431720
lea ecx, [ebp - 0x12c]
call fcn.004033e0
mov eax, dword [str.spy_hook_lib_x86.dll]
push eax
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00406770
add esp, 0xc
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00403400
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409fa4
mov esp, ebp
pop ebp
ret
Function at 0x418e36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418cac
Function at 0x40d7cf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408b97
mov dword [ebp - 0x14], eax
cmp dword [0x420258], esi
jne 0x40d8c2
push 0x800
push esi
push 0x41b504
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d84f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d9a2
push esi
push esi
push 0x41b504
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d9a2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d9a2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x420258], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42025c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x420260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x420268], eax
test eax, eax
je 0x40d8bf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x420264], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d8e7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d8da
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d8fc
push 4
pop eax
jmp 0x40d9a4
cmp dword [ebp - 0x14], esi
je 0x40d8fc
push dword [0x420258]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d8e1
mov eax, dword [0x420264]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d95a
cmp dword [0x420268], edi
je 0x40d95a
push eax
call ebx
push dword [0x420268]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d95a
test eax, eax
je 0x40d95a
call ecx
test eax, eax
je 0x40d94f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d94f
test byte [ebp - 8], 1
jne 0x40d95a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d98a
mov eax, dword [0x42025c]
cmp eax, edi
je 0x40d987
push eax
call ebx
test eax, eax
je 0x40d987
call eax
mov esi, eax
test esi, esi
je 0x40d987
mov eax, dword [0x420260]
cmp eax, edi
je 0x40d987
push eax
call ebx
test eax, eax
je 0x40d987
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x420258]
call ebx
test eax, eax
je 0x40d9a2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d9a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403660
mov esp, ebp
pop ebp
ret
Function at 0x411520
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e010]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x411558
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.StiSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x41158a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esi + 1]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4115ba
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x411619
cmp eax, 3
je 0x4115e4
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x411619
call ebx
sub eax, dword [ebp - 0x24]
cmp eax, 0xc350
jae 0x411619
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x411645
cmp dword [ebp - 0x1c], 1
je 0x411619
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, dword [ebp - 0x24]
cmp eax, 0xc350
jb 0x4115f0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call ebx
sub eax, dword [ebp - 0x24]
mov ecx, 0xc350
cmp ecx, eax
pop ebx
sbb eax, eax
pop esi
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.00403660
mov esp, ebp
pop ebp
ret
Function at 0x411670
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e010]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4116a8
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
push esi
push 0xf01ff
push str.StiSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4116da
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esi + 1]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41170a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
jne 0x41171b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x24], eax
call ebx
sub eax, dword [ebp - 0x24]
cmp eax, 0xc350
jae 0x41175c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x411788
cmp dword [ebp - 0x1c], 4
je 0x41175c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, dword [ebp - 0x24]
cmp eax, 0xc350
jb 0x411733
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
call ebx
sub eax, dword [ebp - 0x24]
mov ecx, 0xc350
cmp ecx, eax
pop ebx
sbb eax, eax
pop esi
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.00403660
mov esp, ebp
pop ebp
ret
Function at 0x412370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415712
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41e010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x14]
dec eax
jne 0x4123cc
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4123ed
mov ecx, dword [ebp + 8]
push 0
push 0x41b6e4
call fcn.004015c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp - 0x20]
call fcn.00401930
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
push esi
call fcn.00403cd4
mov ecx, dword [ebp + 8]
add esp, 8
push eax
push esi
call fcn.004015c0
test esi, esi
je 0x412437
push esi
call fcn.00403e5a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4149c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415abc
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x41e010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x820], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x828], ecx
lea ecx, [ebp - 0x824]
push ecx
push eax
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x824], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x414a48
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
mov dword [esi + 0x10], eax
push 0x41b6e4
mov word [esi], ax
call fcn.004015c0
jmp 0x414b48
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00401930
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x838]
push edi
push ebx
push 0
push dword [ebp - 0x820]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x414a82
push 0x41b6e4
jmp 0x414b34
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0
push 0
push eax
mov dword [ebp - 0x81c], 0
call fcn.00404bc0
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x814]
add esp, 0xc
push eax
lea eax, [ebp - 0x81c]
push eax
push str.VarFileInfoTranslation
push edi
call ebx
test eax, eax
jne 0x414ad3
push 0x41b6e4
jmp 0x414b34
mov ecx, dword [ebp - 0x81c]
push dword [ebp - 0x828]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.0040366f
add esp, 0x18
mov dword [ebp - 0x818], 0
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x810]
push eax
push edi
call ebx
test eax, eax
jne 0x414b2e
push 0x41b6e4
jmp 0x414b34
push dword [ebp - 0x818]
mov ecx, esi
call fcn.004014e0
test edi, edi
je 0x414b48
push edi
call fcn.00403e5a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret
Function at 0x459544
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x45954c
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x459722
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40d698]
call fcn.00402e28
mov esi, eax
mov dword [ebp - 0x10], 1
mov ebx, 0x43
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.00403d0c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x459738
call fcn.00403e30
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00403d0c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 0x459744
call fcn.00403e30
mov eax, dword [ebp - 4]
call fcn.00403fa8
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 3
jne 0x4596e9
mov eax, dword [0x45b9c4]
mov eax, dword [eax]
mov edx, 0x459750
call fcn.00403ef4
jne 0x45966a
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x40]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00459038
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4596e9
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4596e9
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00408cb8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x45975c
call fcn.00403e30
mov edx, dword [ebp - 0x24]
pop eax
call fcn.00459934
inc dword [ebp - 0x10]
mov eax, dword [0x45ba8c]
mov eax, dword [eax]
call fcn.004473a8
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x45961c
jmp 0x4596e9
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x40]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00459038
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4596e9
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4596e9
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.00408cb8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x45975c
call fcn.00403e30
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00459798
inc dword [ebp - 0x10]
mov eax, dword [0x45ba8c]
mov eax, dword [eax]
call fcn.004473a8
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x45969d
inc ebx
cmp ebx, 0x57
jne 0x45957f
mov eax, esi
call fcn.00402e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459729
lea eax, [ebp - 0x34]
mov edx, 8
call fcn.00403b88
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b88
ret
Function at 0x213470
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x32f584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
cmp dword [ecx + 0x50], 0x10
lea ebx, [ecx + 0x3c]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x24], eax
mov dword [ebx + 0x10], eax
jb 0x21349a
mov eax, dword [ebx]
jmp 0x21349c
mov eax, ebx
mov byte [eax], 0
call fcn.0025da70
mov esi, eax
test esi, esi
jne 0x2134c0
mov eax, 0x13ab
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00292239
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edi, [ebp - 0x20]
call fcn.00212fd0
push 1
push 0x34
push esi
call fcn.0025dab0
add esp, 0xc
push 5
push 0x4e
push esi
call fcn.0025dab0
add esp, 0xc
push 1
push 0x13
push esi
call fcn.0025dab0
add esp, 0xc
push 0x12c
push 0x14
push esi
call fcn.0025dab0
mov eax, dword [ebp - 0x20]
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0xc], edi
jae 0x213511
lea eax, [ebp - 0x20]
push eax
push 0x2712
push esi
call fcn.0025dab0
add esp, 0xc
push 0x2135d0
push 0x4e2b
push esi
call fcn.0025dab0
add esp, 0xc
push ebx
push 0x2711
push esi
call fcn.0025dab0
add esp, 0xc
push 1
push 0x63
push esi
call fcn.0025dab0
add esp, 0xc
push esi
call fcn.0025dae0
add esp, 4
test eax, eax
je 0x213565
mov dword [ebp - 0x24], 0x13ab
jmp 0x213599
lea eax, [ebp - 0x28]
push eax
push 0x200002
push esi
call fcn.0025dc40
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x28]
jne 0x213585
cmp eax, 0xc8
je 0x213599
sub eax, 0x194
neg eax
sbb eax, eax
and eax, 0xfffffff2
add eax, 0x13b9
mov dword [ebp - 0x24], eax
push esi
call fcn.0025dbe0
add esp, 4
cmp dword [ebp - 0xc], edi
jb 0x2135b3
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.002925e4
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00292239
mov esp, ebp
pop ebp
ret
Function at 0x215e10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x32f584]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x124
lea eax, [ebp - 0x130]
push 0
push eax
mov dword [ebp - 0x134], 0
call fcn.00296830
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x215ea7
lea ecx, [ebp - 0x134]
push ecx
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x215ea0
lea edx, [ebp - 0x110]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x215e8e
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x11c], eax
je 0x215eba
lea ecx, [ebp - 0x134]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x215e71
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00292239
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x12c]
push esi
mov dword [ebx], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00292239
mov esp, ebp
pop ebp
ret 4

Function at 0x216500
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.002984b0
mov eax, dword [0x32f584]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push 0x1000
push edx
call fcn.00293565
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00292239
mov esp, ebp
pop ebp
ret
Function at 0x2177c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x32f584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x2177f2
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00292239
mov esp, ebp
pop ebp
ret
push edi
mov edx, esi
call fcn.00217920
push 0x103
xor edi, edi
lea eax, [ebp - 0x107]
push edi
push eax
mov byte [ebp - 0x108], 0
call fcn.00296830
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x217820
sub eax, edx
inc eax
cmp eax, edi
je 0x217846
cmp eax, 0x7fffffff
ja 0x217846
push esi
mov edx, 0x7ffffffe
lea ecx, [ebp - 0x108]
call fcn.00216ed0
mov edx, 0x104
lea eax, [ebp - 0x108]
cmp byte [eax], 0
je 0x21785c
inc eax
dec edx
jne 0x217851
jmp 0x217884
cmp edx, edi
je 0x217884
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x31e3e0
lea ecx, [ebp + ecx - 0x108]
mov edx, 0x7fffffff
call fcn.00216ed0
mov ecx, 0x414
lea edx, [ebp - 0x108]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov word [ebp - 0x118], cx
mov dword [ebp - 0x112], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x10e], edi
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x124], 3
xor esi, esi
jmp 0x2178d0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov edi, eax
test edi, edi
je 0x2178f5
cmp edi, 0x20
jne 0x21790d
push 0x3e8
inc esi
call ebx
cmp esi, 5
jl 0x2178d0
xor eax, eax
pop ebx
test edi, edi
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00292239
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.00292239
mov esp, ebp
pop ebp
ret
Function at 0x2186e0
Capabilities:
Parse pe header

Disassembly:
test eax, eax
je 0x2186f9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x2186f9
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
je 0x2186fc
xor eax, eax
ret
add eax, 0x18
ret