joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b479
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [esp + 0x24]
push ebx
push eax
mov edi, ecx
call fcn.0041cce0
or dword [esp + 0x28], 0xffffffff
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], 0x4679a8
test esi, esi
je 0x45b59e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45b4c4
mov bl, 1
jmp 0x45b59e
push ecx
push 3
push 3
push closesocket
push esi
lea ecx, [esp + 0x2c]
call fcn.00401442
test al, al
je 0x45b59e
cmp dword [esp + 0x1c], 0xffffffff
je 0x45b59e
mov esi, ebx
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [esp + 0x2c]
add eax, esi
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45b521
cmp dword [esp + 0x10], ebx
je 0x45b521
add esi, dword [esp + 0x10]
cmp esi, 0x40
jb 0x45b4ed
cmp esi, 0x40
jne 0x45b59e
mov ax, word [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x10], ax
mov ax, word [esp + 0x46]
mov word [esp + 0x12], ax
cmp ecx, 0xffffffff
je 0x45b59e
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x45b574
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45b59e
mov eax, dword [esp + 0x10]
and eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x45b59e
lea esi, [edi + 0x14]
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00418dc5
test al, al
je 0x45b598
lea esi, [edi + 0x14]
cmp dword [esi], 1
jne 0x45b580
cmp dword [esi], 1
sete bl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0x4679a8
cmp ecx, 0xffffffff
je 0x45b5b6
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45bb3d
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x414
lea eax, [esp + 0x208]
push ebx
push ebp
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.0041cce0
add esp, 0xc
cmp dword [edi + 0x23c], esi
ja 0x45bb79
cmp dword [edi + 0x238], 0x400
jb 0x45bce9
lea eax, [esp + 0x218]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x45bce9
lea eax, [esp + 0x218]
push eax
push str._sMetaQuotes
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00403c67
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x20]
add esp, 0x10
push eax
call ebx
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x45bbde
push ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.0045c15b
pop ecx
lea eax, [esp + 0x10]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
jne 0x45bbf1
push esi
lea eax, [esp + 0x14]
push eax
call ebp
lea eax, [esp + 0x218]
push eax
push str._sMetaQuotesWebInstall
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00403c67
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call ebx
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x45bc35
push ecx
xor edx, edx
lea ecx, [esp + 0x14]
call fcn.0045c15b
pop ecx
lea eax, [esp + 0x10]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x45bc42
push esi
lea eax, [esp + 0x14]
push eax
call ebp
push edi
lea eax, [esp + 0x14]
push eax
push str._s_S
lea eax, [esp + 0x224]
push 0x104
push eax
call fcn.00403c67
add esp, 0x14
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
push ecx
lea ecx, [esp + 0x220]
push ecx
lea ecx, [edi + 0x230]
call fcn.0040427c
test al, al
jne 0x45bce5
lea esi, [edi + 0x20]
xor eax, eax
cmp word [esi], ax
je 0x45bce9
push esi
call ebx
cmp eax, 0xffffffff
jne 0x45bca3
xor eax, eax
push eax
push esi
call ebp
jmp 0x45bcaf
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push esi
push str._s_S
lea eax, [esp + 0x224]
push 0x104
push eax
call fcn.00403c67
add esp, 0xc
lea eax, [esp + 0x220]
lea ecx, [edi + 0x230]
push eax
call fcn.0040427c
test al, al
setne al
jmp 0x45bceb
mov al, 1
jmp 0x45bceb
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x45bcf6
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x438
lea eax, [esp + 0x22c]
push ebp
push esi
push edi
push 0x208
xor ebp, ebp
mov esi, ecx
push ebp
push eax
call fcn.0041cce0
add esp, 0xc
lea edi, [esp + 0xc]
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x238]
push eax
push ebp
push ebp
push 0x1a
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x45bde7
push esi
lea eax, [esp + 0x23c]
push eax
push str._sMetaQuotesWebInstall_S
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.00403c67
add esp, 0x14
lea eax, [esp + 0xc]
push eax
push ebp
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x45bdb6
lea edi, [esi + 0x20]
cmp word [edi], bp
je 0x45bde7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45bde7
push esi
push edi
push str._s_S
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.00403c67
add esp, 0x14
lea eax, [esp + 0xc]
push eax
push ebp
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x45bde7
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x228]
jne 0x45bddc
push ecx
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esi + 0x230]
call fcn.0040e55f
test al, al
je 0x45bddc
mov al, 1
jmp 0x45bde9
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x438
ret

Function at 0x45c066
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x304
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x230]
mov dword [esi + 0x228], eax
call fcn.00403ac5
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x258], eax
je 0x45c0a6
push dword [ebp + 8]
mov ecx, esi
push 0x20
pop edx
call fcn.00404254
jmp 0x45c0a9
mov byte [esi], 0
xor eax, eax
lea edi, [esi + 0x20]
mov word [edi], ax
mov ebx, 0x103
lea eax, [ebp - 0x304]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45c152
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45c152
lea ecx, [ebp - 0x7c]
call fcn.0044cb31
lea ecx, [ebp - 0x10]
call fcn.00409110
push 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0044cb7c
push 7
push str.install
lea ecx, [ebp - 0x7c]
call fcn.0044cb7c
lea ecx, [ebp - 0x7c]
call fcn.0044cc34
push 0x3f
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0044cca4
xor eax, eax
mov word [ebp - 0xdc], ax
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x304]
push eax
push str._s_s
push ebx
push edi
call fcn.00403c67
add esp, 0x14
lea ecx, [ebp - 0x7c]
call fcn.0044cb50
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45c15b
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x45c2f3
xor eax, eax
cmp word [esi], ax
je 0x45c2f3
cmp ebx, 0xf
jg 0x45c2f3
push 0x250
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0041cce0
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.00403638
push esi
mov eax, ecx
push str._s.
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45c2f3
lea eax, [ebp - 0x440]
push eax
push esi
lea eax, [ebp - 0x21c]
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
test byte [ebp - 0x46c], 0x10
je 0x45c2b0
mov ecx, 0x46fdec
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45c230
test dx, dx
je 0x45c22c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45c230
add eax, 4
add ecx, 4
test dx, dx
jne 0x45c20a
xor eax, eax
jmp 0x45c235
sbb eax, eax
or eax, 1
test eax, eax
je 0x45c2d6
mov ecx, 0x470fa0
lea eax, [ebp - 0x440]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45c26e
test dx, dx
je 0x45c26a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45c26e
add eax, 4
add ecx, 4
test dx, dx
jne 0x45c248
xor eax, eax
jmp 0x45c273
sbb eax, eax
or eax, 1
test eax, eax
je 0x45c2d6
test byte [ebp - 0x46c], 1
je 0x45c291
push 0x80
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x218]
lea edx, [ebx + 1]
push 0
call fcn.0045c15b
pop ecx
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45c2d6
test byte [ebp - 0x46c], 1
je 0x45c2ca
push 0x80
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45c1d6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45c2f8
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push ebx
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x45c397
push 0x424
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.0041cce0
add esp, 0xc
mov dword [ebp - 0x428], 0x428
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x45c388
lea eax, [ebp - 0x408]
push str.prxdrvpe.dll
push eax
call fcn.0042aae9
pop ecx
pop ecx
test eax, eax
je 0x45c38e
lea eax, [ebp - 0x408]
push str.prxdrvpe64.dll
push eax
call fcn.0042aae9
pop ecx
pop ecx
test eax, eax
je 0x45c38e
lea eax, [ebp - 0x428]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x45c34c
jmp 0x45c390
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x45cba3
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x404
lea eax, [esp + 4]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push ebx
push ebp
push 0x100
push 0x3fe
push eax
mov ebp, str.Email
mov ebx, closesocket
push ebp
mov ecx, ebx
call fcn.00403dd1
add esp, 0x10
test al, al
je 0x45cbe4
cmp word [esp + 0xc], 0
jne 0x45cc7b
push esi
push edi
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftIdentityCRLUserExtendedProperties
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
mov dword [esp + 0x10], edi
test edi, edi
je 0x45cc79
xor eax, eax
push 0x1ff
mov word [esp + 0x18], ax
lea eax, [esp + 0x18]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x45cc72
lea eax, [esp + 0x14]
push 0x200
push eax
call fcn.0042ad83
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
call fcn.0045cb20
cmp eax, 6
ja 0x45cc5b
inc esi
cmp esi, 0xa
jb 0x45cc16
jmp 0x45cc72
push ecx
lea eax, [esp + 0x18]
mov edx, str.SOFTWAREMetaQuotes_SoftwareSettings
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.00403d10
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret

Function at 0x45d64e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x210]
push esi
push edi
push eax
xor eax, eax
mov edi, ecx
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x45d6d8
lea eax, [ebp - 4]
mov esi, 0x104
push eax
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.0043c8dd
test eax, eax
js 0x45d6a9
mov eax, dword [ebp - 4]
sub esi, eax
push ecx
push str.MetaQuotesWebInstall
push ecx
lea ecx, [ebp - 0x210]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.0043c81b
push ecx
xor edx, edx
lea ecx, [ebp - 0x210]
call fcn.0045c15b
pop ecx
mov ecx, dword [edi + 0x3d7c]
test ecx, ecx
je 0x45d6d8
mov ecx, dword [ecx + 0x3d70]
test ecx, ecx
je 0x45d6d8
push ecx
add ecx, 0x20
xor edx, edx
call fcn.0045c15b
pop ecx
pop edi
pop esi
leave
ret
Function at 0x45d796
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0xf4
mov eax, 0x5a4d
push ebx
push ebp
push esi
push edi
cmp word [edx], ax
jne 0x45d88c
mov eax, dword [esp + 0x114]
mov ebx, dword [edx + 0x3c]
mov ebp, dword [eax]
cmp ebx, ebp
jge 0x45d88c
cmp dword [ebx + edx], 0x4550
jne 0x45d88c
movzx eax, word [ebx + edx + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x45d81c
mov ecx, 0x8664
cmp ax, cx
jne 0x45d88c
lea esi, [edx + 0x18]
push 0x3c
add esi, ebx
lea edi, [esp + 0x14]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x108]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esi], eax
mov eax, 0xa8
jmp 0x45d846
lea esi, [edx + 0x18]
push 0x38
add esi, ebx
lea edi, [esp + 0x14]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x108]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x94]
mov dword [esi], eax
mov eax, 0x98
mov dword [esi + 4], ecx
lea edi, [ebx + eax]
mov ecx, dword [esp + 0x10c]
test ecx, ecx
je 0x45d888
test edi, edi
je 0x45d888
cmp dword [esi], 0
je 0x45d888
mov eax, dword [esi + 4]
test eax, eax
je 0x45d888
cmp edi, ebp
jae 0x45d88c
add eax, ecx
mov dword [esi + 4], eax
lea eax, [ecx + ebp]
mov ecx, dword [esp + 0x114]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edi + edx], eax
mov dword [edi + edx + 4], ecx
mov al, 1
jmp 0x45d88e
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0x10
Function at 0x45d89b
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
xor ebx, ebx
push 0x40
mov esi, ecx
mov dword [esp + 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004014fb
cmp eax, 0x40
jne 0x45d9ff
mov eax, 0x5a4d
cmp word [esp + 0x28], ax
jne 0x45d9ff
mov eax, dword [esp + 0x64]
mov ecx, esi
push ebx
cdq
push edx
push eax
call fcn.004014af
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x64]
cdq
cmp ecx, eax
jne 0x45d9ff
cmp edi, edx
jne 0x45d9ff
push 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.004014fb
cmp eax, 4
jne 0x45d9ff
cmp dword [esp + 0x10], 0x4550
jne 0x45d9ff
push 0x14
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.004014fb
cmp eax, 0x14
jne 0x45d9ff
mov eax, 0x14c
cmp word [esp + 0x14], ax
je 0x45d95d
mov eax, 0x8664
cmp word [esp + 0x14], ax
jne 0x45d9ff
mov edi, 0xe0
lea eax, [esp + 0x68]
push edi
push ebx
push eax
call fcn.0041cce0
add esp, 0xc
lea ebp, [edi + 0x10]
lea eax, [esp + 0x148]
push ebp
push ebx
push eax
call fcn.0041cce0
add esp, 0xc
lea eax, [edi + 0x6c]
mov ecx, esi
push 1
push ebx
push ebx
cmp word [esp + 0x20], ax
jne 0x45d9c8
call fcn.004014af
push edi
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.004014fb
cmp eax, edi
jne 0x45d9ff
mov eax, dword [esp + 0x240]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x45d9fb
call fcn.004014af
push ebp
lea eax, [esp + 0x14c]
mov ecx, esi
push eax
call fcn.004014fb
cmp eax, ebp
jne 0x45d9ff
mov ecx, dword [esp + 0x240]
mov edx, dword [esp + 0x1d8]
mov esi, dword [esp + 0x1dc]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov al, 1
jmp 0x45da01
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret 8
Function at 0x45ddcf
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esp + 0x2c], ebx
je 0x45de0d
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x45de0d
push 0xf01ff
push dword [esp + 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
jne 0x45de18
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 4
push esi
mov esi, ebx
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45de8f
cmp dword [esp + 0x14], 1
je 0x45de8d
cmp dword [esp + 0x14], 4
je 0x45de53
cmp dword [esp + 0x14], 7
je 0x45de53
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jb 0x45de1b
jmp 0x45de8f
lea eax, [esp + 0x10]
push eax
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x45de86
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45de8f
cmp dword [esp + 0x14], 1
je 0x45de8d
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jb 0x45de63
jmp 0x45de8f
mov bl, 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push edi
call esi
mov al, bl
pop esi
jmp 0x45de0f
Function at 0x45dea3
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
cmp dword [ebp + 8], esi
je 0x45dff2
push 4
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x45dff2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 3
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x45df08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45dfeb
mov eax, dword [ebp - 8]
xor edx, edx
push 0x45f8cc
push 0x24
pop edi
div edi
xor ecx, ecx
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041ae2d
mov edi, eax
mov dword [ebp - 0x18], edi
pop ecx
pop ecx
test edi, edi
je 0x45dfeb
mov eax, dword [ebp - 8]
xor edx, edx
push 0x24
pop ecx
div ecx
inc eax
imul eax, eax, 0x24
push eax
push esi
push edi
call fcn.0041cce0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push 0x30
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
je 0x45dfe4
cmp dword [ebp - 0xc], esi
jbe 0x45dfe4
push 0x24
pop ebx
lea ecx, [ebp - 0x234]
call fcn.00403638
cmp dword [edi], 0
je 0x45dfd6
mov eax, ecx
push eax
push dword [edi]
call fcn.0045dc70
test al, al
je 0x45dfd6
mov ecx, dword [ebp + 8]
call fcn.004095cd
cmp dword [ebp - 0x230], 0
je 0x45dfbb
push eax
push dword [ebp + 8]
push dword [ebp - 0x230]
call fcn.0042c380
add esp, 0xc
jmp 0x45dfc5
cmp dword [ebp - 0x22c], 1
sbb eax, eax
inc eax
test eax, eax
jne 0x45dfd6
cmp dword [edi + 0xc], 1
je 0x45dfd6
push dword [edi]
call fcn.0045ddcf
inc esi
add edi, ebx
cmp esi, dword [ebp - 0xc]
jb 0x45df78
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push edi
call fcn.0041ae36
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45dff9
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
sub esp, 0x438
lea eax, [esp + 8]
push 0x228
push 0
push eax
call fcn.0041cce0
add esp, 0xc
cmp dword [esp + 0x43c], 0
je 0x45e118
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x45e117
lea eax, [esp + 8]
mov dword [esp + 8], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45e110
push ebp
push edi
push dword [esp + 0x18]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x45e0fa
push 0x104
lea eax, [esp + 0x240]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x45e0f3
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push dword [esp + 0x448]
lea eax, [esp + 0x240]
push eax
call fcn.0041bfde
pop ecx
pop ecx
test eax, eax
je 0x45e0f3
push 0
call dword [sym.imp.USER32.dll_GetTopWindow]
jmp 0x45e0de
and dword [esp + 0xc], 0
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x18]
je 0x45e0e6
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x45e0ba
jmp 0x45e0f3
push 0
push 0
push 0x12
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45e055
pop edi
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x438
ret 4
Function at 0x45e127
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
lea ecx, [esp + 4]
push ebx
push esi
push edi
call fcn.00403638
lea ecx, [esp + 0x680]
call fcn.00403638
push 0x208
xor ebx, ebx
lea eax, [esp + 0x22c]
push ebx
push eax
call fcn.0041cce0
add esp, 0xc
lea eax, [esp + 0x228]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x45e28f
cmp word [esi], bx
je 0x45e28f
push esi
lea eax, [esp + 0x684]
push 0x47810c
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [esp + 0x430]
push eax
push dword [esp + 0x688]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45e28f
test byte [esp + 0x430], 0x10
jne 0x45e271
lea eax, [esp + 0x45c]
push eax
push esi
lea eax, [esp + 0x18]
push 0x470fa8
push eax
call fcn.004011fb
mov ecx, dword [esp + 0x24]
add esp, 0x10
test ecx, ecx
je 0x45e24c
mov eax, dword [esp + 0x18]
inc eax
push eax
push ecx
call fcn.0042ad83
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45e24c
lea edx, [esp + 0x228]
mov eax, ecx
mov bx, word [eax]
cmp bx, word [edx]
jne 0x45e245
test bx, bx
je 0x45e241
mov bx, word [eax + 2]
cmp bx, word [edx + 2]
jne 0x45e245
add eax, 4
add edx, 4
test bx, bx
jne 0x45e21f
xor eax, eax
jmp 0x45e254
sbb eax, eax
or eax, 1
jmp 0x45e254
cmp dword [esp + 0x18], 1
sbb eax, eax
inc eax
test eax, eax
je 0x45e271
push 0x46cfbc
push ecx
call fcn.0041bfde
pop ecx
pop ecx
push eax
call fcn.0045dff9
push esi
call fcn.0045dea3
lea eax, [esp + 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45e1cf
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4