joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cda0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7bb3
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x656770]
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 esi, ecx
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0
push 7
push str.0_0_0_0
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
call fcn.004066b0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
jne 0x40ce88
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 0x414]
cmp ecx, 0x10
jae 0x40ce65
mov eax, dword [ebp - 0x418]
inc eax
je 0x40ce77
push eax
lea eax, [ebp - 0x428]
push eax
push esi
call fcn.00525a60
mov ecx, dword [ebp - 0x414]
mov eax, dword [ebp - 0x418]
add esp, 0xc
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x40cfd7
mov eax, dword [ebp - 0x428]
mov dword [esi], eax
mov dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x418]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x40cfd7
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406300
call fcn.0040c5b0
add esp, 0x18
test al, al
je 0x40cfb2
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00527890
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
jae 0x40cee4
lea eax, [ebp + 8]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
jne 0x40cf04
push 0x633040
mov ecx, esi
call fcn.004067b0
jmp 0x40cfc0
push ebx
call fcn.00411629
mov edi, eax
add esp, 4
test edi, edi
je 0x40cfb2
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x40cf23
lea eax, [ebp + 8]
push edi
push ebx
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x40cfa9
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
push 0x632cf8
push edi
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x40cfa9
mov ecx, dword [ebp - 0x430]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d__d__d__d
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.00529b71
add esp, 0x1c
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.00402840
push edi
call fcn.00411632
add esp, 4
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
call fcn.00406090
cmp dword [ebp - 0x414], 0x10
jb 0x40cfd7
push dword [ebp - 0x428]
call fcn.00411632
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
jb 0x40d003
push dword [ebp + 8]
call fcn.00411632
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.005259c3
mov esp, ebp
pop ebp
ret
Function at 0x40d030
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x408], 0
mov byte [ebp - 0x404], 0
call fcn.00527890
add esp, 0xc
lea eax, [ebp - 0x404]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x404], 0
jne 0x40d09e
xor ecx, ecx
jmp 0x40d0b0
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d0a7
sub ecx, edx
push ecx
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call fcn.004066b0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005259c3
mov esp, ebp
pop ebp
ret

Function at 0x40d6d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7beb
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x656770]
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
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d732
lea eax, [ebp - 0x138]
push eax
push esi
mov dword [ebp - 0x138], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40d739
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40d7ec
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
mov dword [ebp - 0x140], 0
or edi, 0xffffffff
lea esp, [esp]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00405fe0
push str.explorer.exe
push dword [ebp - 0x13c]
call fcn.00526807
add esp, 8
test eax, eax
je 0x40d7af
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x13c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d79f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x138]
push eax
push esi
call ebx
test eax, eax
jne 0x40d750
jmp 0x40d7df
mov eax, dword [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x13c]
add ebx, 0xfffffff0
mov dword [ebp - 0x140], eax
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40d7df
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x140]
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.005259c3
mov esp, ebp
pop ebp
ret
Function at 0x40fcd0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8057
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.00527890
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.nxTS_Process_Manager_Service
push 0x6332f4
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x40ff00
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
jne 0x40fe79
sub esp, 0x18
mov ecx, esp
push 0x21
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.SYSTEMCurrentControlSetServices
mov byte [ecx], 0
call fcn.004066b0
push ecx
lea ecx, [ebp - 0x150]
call fcn.004110a0
sub esp, 0x18
mov ecx, esp
push 0x6332f4
mov dword [ebp - 4], 0
call fcn.004067b0
lea ecx, [ebp - 0x150]
call fcn.004111f0
mov eax, dword [ebp - 0x150]
sub esp, 0x18
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x118]
mov ecx, esp
mov dword [ebp - 0x214], esp
push eax
call fcn.004067b0
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 1
push 9
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.ImagePath
mov byte [ecx], 0
call fcn.004066b0
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0
call fcn.00411580
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x210], esp
push str.nxTS_Process_Manager_Service
call fcn.004067b0
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 2
push 0xb
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.DisplayName
mov byte [ecx], 0
call fcn.004066b0
lea ecx, [ebp - 0x20c]
mov byte [ebp - 4], 0
call fcn.00411580
lea ecx, [ebp - 0x150]
call fcn.00411180
jmp 0x40ff07
call esi
sub esp, 0x18
mov ecx, esp
push 0x13
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.ServiceUtil::Create
mov edi, eax
mov byte [ecx], 0
call fcn.004066b0
lea ecx, [ebp - 0x208]
call fcn.00401000
lea esi, [eax + 0x18]
mov edx, str.CreateService_Fail_:
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00403a40
mov edx, edi
lea ecx, [ebp - 0x130]
call fcn.0040b4e0
mov edx, eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00403d60
cmp dword [ebp - 0x11c], 0x10
jb 0x40fef1
push dword [ebp - 0x130]
call fcn.00411632
add esp, 4
lea ecx, [ebp - 0x208]
call fcn.00401130
xor al, al
jmp 0x40ff09
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005259c3
mov esp, ebp
pop ebp
ret
Function at 0x40ff30
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c80a6
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x656770]
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 esi, ecx
call fcn.004101a0
push 0x10000
push 0x6332f4
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x40fff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov ecx, esp
push 0x13
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.ServiceUtil::Delete
mov edi, eax
mov byte [ecx], bl
call fcn.004066b0
lea ecx, [ebp - 0x198]
call fcn.00401000
lea esi, [eax + 0x18]
mov edx, str.Service_Open_Fail_for_DELETE_:
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00403a40
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0040b4e0
mov edx, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403d60
cmp dword [ebp - 0x14], 0x10
jb 0x40ffe6
push dword [ebp - 0x28]
call fcn.00411632
add esp, 4
lea ecx, [ebp - 0x198]
call fcn.00401130
xor al, al
jmp 0x410098
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x19c], eax
test eax, eax
jne 0x410087
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov ecx, esp
push 0x13
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.ServiceUtil::Delete
mov edi, eax
mov byte [ecx], 0
call fcn.004066b0
lea ecx, [ebp - 0xe0]
call fcn.00401000
lea esi, [eax + 0x18]
mov edx, str.Service_Delete_Fail_:
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00403a40
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0040b4e0
mov edx, eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00403d60
cmp dword [ebp - 0x14], 0x10
jb 0x41007c
push dword [ebp - 0x28]
call fcn.00411632
add esp, 4
lea ecx, [ebp - 0xe0]
call fcn.00401130
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x19c], 1
sete al
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.005259c3
mov esp, ebp
pop ebp
ret
Function at 0x4100c0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
mov ebx, ecx
push 0
push ebx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [ebp - 0x24], 1
jne 0x410104
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005259c3
mov esp, ebp
pop ebp
ret
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
push esi
mov esi, edx
shr esi, 3
cmp esi, 0x3e8
ja 0x410121
mov esi, 0x3e8
jmp 0x41012e
cmp esi, 0x2710
jb 0x41012e
mov esi, 0x2710
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x24], 1
mov dword [ebp - 0x30], eax
je 0x410172
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [ebp - 0x24], 1
je 0x410172
call edi
sub eax, dword [ebp - 0x30]
cmp eax, 0x2710
ja 0x410185
cmp dword [ebp - 0x24], 1
jne 0x410140
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005259c3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.005259c3
mov esp, ebp
pop ebp
ret

Function at 0x4101a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c80e3
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x656770]
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
push 0xf01ff
push 0x6332f4
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x41025f
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov ecx, esp
push 0x11
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push str.ServiceUtil::Stop
mov edi, eax
mov byte [ecx], 0
call fcn.004066b0
lea ecx, [ebp - 0x100]
call fcn.00401000
mov dword [ebp - 4], esi
lea esi, [eax + 0x18]
mov edx, str.Service_Open_Fail_for_Stop_:
mov ecx, esi
call fcn.00403a40
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.0040b4e0
mov edx, eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403d60
cmp dword [ebp - 0x14], 0x10
jb 0x410250
push dword [ebp - 0x28]
call fcn.00411632
add esp, 4
lea ecx, [ebp - 0x100]
call fcn.00401130
xor al, al
jmp 0x410294
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call edi
mov ecx, esi
call fcn.004100c0
test al, al
jne 0x410282
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call edi
mov ecx, esi
call fcn.004100c0
push esi
mov bl, al
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
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.005259c3
mov esp, ebp
pop ebp
ret
Function at 0x4102b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x408], 0
mov byte [ebp - 0x404], 0
call fcn.00527890
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x404]
push eax
push 0x633574
push str.Util::Sys::GetWorkDir
call fcn.004059f0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
add esp, 0xc
mov byte [esi], 0
cmp byte [ebp - 0x404], 0
jne 0x410336
xor ecx, ecx
jmp 0x410349
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410340
sub ecx, edx
push ecx
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call fcn.004066b0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005259c3
mov esp, ebp
pop ebp
ret

Function at 0x410370
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7b08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ebp - 4], 0
push 0
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406300
lea ecx, [ebp - 0x28]
call fcn.0040c680
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
jb 0x4103de
push dword [ebp - 0x28]
call fcn.00411632
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x4103ea
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x1c], 0x10
jb 0x410402
push dword [ebp + 8]
call fcn.00411632
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005259c3
mov esp, ebp
pop ebp
ret

Function at 0x410820
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x134]
push eax
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x410886
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
cmp dword [ebp - 0x12c], edi
je 0x4108a0
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
jne 0x410870
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005259c3
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x110]
push eax
push 0x208
push dword [ebp - 0x138]
call fcn.0052998f
mov ecx, dword [ebp - 8]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.005259c3
mov esp, ebp
pop ebp
ret
Function at 0x410bd0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c815b
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x144], esi
push esi
push 2
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x13c]
push ecx
push eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x13c], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x410c80
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x154]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
jmp 0x410dca
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x150], eax
cmp ecx, edi
jae 0x410d28
cmp ebx, ecx
ja 0x410d28
mov eax, ecx
sub eax, ebx
sar eax, 2
mov dword [ebp - 0x140], eax
cmp edi, esi
jne 0x410d1f
mov eax, esi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x410d19
sub edi, ebx
sar edi, 2
mov eax, 0x3fffffff
sub eax, edi
cmp eax, 1
jb 0x410de8
sub esi, ebx
sar esi, 2
mov ecx, esi
shr ecx, 1
mov eax, 0x3fffffff
sub eax, ecx
inc edi
cmp eax, esi
jae 0x410cf3
xor esi, esi
jmp 0x410cf5
add esi, ecx
cmp esi, edi
jae 0x410cfb
mov esi, edi
push esi
lea ecx, [ebp - 0x14c]
call fcn.00410920
mov esi, dword [ebp - 0x144]
mov edi, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x140]
test edi, edi
je 0x410d98
mov eax, dword [ebx + eax*4]
jmp 0x410d96
cmp edi, esi
jne 0x410d92
mov eax, esi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x410d8c
sub edi, ebx
sar edi, 2
mov eax, 0x3fffffff
sub eax, edi
cmp eax, 1
jb 0x410de8
sub esi, ebx
sar esi, 2
mov ecx, esi
shr ecx, 1
mov eax, 0x3fffffff
sub eax, ecx
inc edi
cmp eax, esi
jae 0x410d66
xor esi, esi
jmp 0x410d68
add esi, ecx
cmp esi, edi
jae 0x410d6e
mov esi, edi
push esi
lea ecx, [ebp - 0x14c]
call fcn.00410920
mov esi, dword [ebp - 0x144]
mov edi, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x140]
test edi, edi
je 0x410d98
mov dword [edi], eax
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x158]
add edi, 4
mov dword [ebp - 0x148], edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x410c80
mov eax, dword [ebp - 0x154]
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005259c3
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.005454b4
int3
Function at 0x410e00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x94
lea eax, [ebp - 0xa0]
push 0
push eax
mov dword [ebp - 0xa4], 0
call fcn.00527890
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
push esi
jl 0x410e70
call fcn.004109a0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005259c3
mov esp, ebp
pop ebp
ret 4
call fcn.00410bd0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005259c3
mov esp, ebp
pop ebp
ret 4

Function at 0x411580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
push ebx
test edx, edx
je 0x4115ba
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x411596
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x1c], 0x10
mov ecx, dword [ebp + 8]
jae 0x4115a2
lea ecx, [ebp + 8]
push dword [ebp + 0x30]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4115ba
mov bl, 1
jmp 0x4115bc
xor bl, bl
cmp dword [ebp + 0x1c], 0x10
jb 0x4115cd
push dword [ebp + 8]
call fcn.00411632
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x4115f0
push dword [ebp + 0x20]
call fcn.00411632
add esp, 4
mov al, bl
pop ebx
pop ebp
ret 0x30

Function at 0x417939
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x656770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x65fb94]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x417985
push 0x5cb810
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4179a2
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x65fb94], eax
jmp 0x41798e
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4179a2
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x417a0f
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4179bd
xor eax, eax
jmp 0x417a0f
lea eax, [ebp - 0x210]
push eax
call fcn.00526ee2
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4179ee
push 0x5cb848
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00529c8b
add esp, 0xc
test eax, eax
jne 0x4179b9
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00529c8b
add esp, 0xc
test eax, eax
jne 0x4179b9
lea eax, [ebp - 0x210]
push eax
call fcn.0041c753
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005259c3
leave
ret
Function at 0x4181f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x418239
call fcn.004153f8
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418239
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x418255
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004256d7
mov ebx, eax
test edi, edi
je 0x418253
test esi, esi
je 0x418253
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ccef
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5c43a7
call fcn.0052719c
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x41cd15
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41cd69
call fcn.00413c07
push eax
lea ecx, [ebp - 0x10]
call fcn.00405ad0
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00526efb
push eax
call fcn.0040a980
add esp, 0x14
test edi, edi
je 0x41cd5c
push edi
call fcn.00526de0
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406960
mov eax, esi
call fcn.0052716a
ret 8