joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aec3
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x411f75
call fcn.00410660
sub esp, 0x2c
mov dword [ebp - 0x38], ecx
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40af2c
push 0x43a2b8
lea ecx, [ebp - 0x30]
call fcn.004059c7
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.0040b20e
push 0x418960
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40afb7
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x411f9d
call fcn.00410660
sub esp, 0x2c
mov dword [ebp - 0x38], ecx
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b020
push 0x43a2b8
lea ecx, [ebp - 0x30]
call fcn.004059c7
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.0040b20e
push 0x418960
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40b064
Capabilities:
Get file size

Disassembly:
mov eax, 0x411fb1
call fcn.00410660
sub esp, 0x28
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40b0bf
push 0x43a2b8
lea ecx, [ebp - 0x2c]
call fcn.004059c7
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
call fcn.0040b20e
push 0x418960
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40b0ce
Capabilities:
Check if file exists
Set file attributes

Disassembly:
mov eax, 0x411fc5
call fcn.00410660
sub esp, 0x20
mov ecx, dword [ebp + 8]
call fcn.00405ee3
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x40b0f1
jmp 0x40b14b
push 0x80
mov ecx, dword [ebp + 8]
call fcn.00405dcd
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b14b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
je 0x40b14b
push 0x43a2b8
lea ecx, [ebp - 0x2c]
call fcn.004059c7
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.0040b20e
push 0x418960
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40b189
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
je 0x40b1a5
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
cmp dword [ebp + 0x10], 0
je 0x40b1b8
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
cmp dword [ebp + 0xc], 0
je 0x40b1cb
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x18]
and eax, ecx
push eax
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
lea ecx, [ebp - 8]
and eax, ecx
push eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x10]
and eax, ecx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
neg eax
sbb eax, eax
neg eax
leave
ret 0xc

Function at 0x40b50c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
je 0x40b53b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40bc3b
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
mov eax, 0x4120ed
call fcn.00410660
sub esp, 0x4c
mov dword [ebp - 0x58], ecx
push dword [ebp - 0x58]
push 0x40be34
call dword [sym.imp.USER32.dll_EnumWindowStationsW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
inc eax
movzx eax, al
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x40bdb9
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40bd51
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
push eax
push 0
push dword [ebp - 0x18]
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40bd3c
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.0040599d
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.00405f54
lea ecx, [ebp - 0x3c]
call fcn.00405f05
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00405f05
cmp dword [ebp - 0x18], 0
je 0x40bd51
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
call fcn.0041064d
pop ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
cmp eax, dword [0x43a2c4]
je 0x40bd87
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
cmp eax, dword [0x43a2c4]
je 0x40bd7f
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
jmp 0x40bd68
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
jmp 0x40bdb4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 8]
jne 0x40bda3
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
jmp 0x40bd87
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x50]
je 0x40bdb4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
jmp 0x40bc73
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40ca10
Capabilities:
Create http request

Disassembly:
mov eax, 0x4121b1
call fcn.00410660
sub esp, 0x38
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x24
call fcn.00405ee3
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x40ca74
lea eax, [ebp - 0x1c]
push eax
call fcn.00407fd8
pop ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
and dword [ebp - 4], 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x24
call fcn.00405f54
lea ecx, [ebp - 0x28]
call fcn.00405f05
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00405f05
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x24
call fcn.00405dcd
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40caad
lea ecx, [ebp - 0x38]
call fcn.004068d8
push 0x4170c8
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x40cae7
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push 1
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0x30]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax + 0xc]
mov eax, dword [ebp - 0x18]
push dword [eax + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cb33
lea ecx, [ebp - 0x14]
call fcn.004068d8
push 0x4170c8
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
leave
ret 4
Function at 0x40f578
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
mov eax, dword [ebp + 8]
and dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x411265
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
jne 0x41129e
xor eax, eax
jmp 0x411335
push esi
call fcn.00411a1a
mov edi, eax
cmp edi, ebx
jne 0x4112b3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411297
push edi
lea ebx, [ebp - 0x30]
call fcn.004113f9
mov ecx, ebx
call fcn.0041177b
movzx eax, ax
add eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jb 0x4112d6
add eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x1c]
jae 0x4112df
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x411297
push 0x42
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
test esi, esi
jne 0x4112f8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41132a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
call fcn.0041177b
movzx edx, word [ecx]
movzx eax, ax
add eax, ecx
add edx, eax
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41251c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x210], esi
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push 0x408aa8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4125d3
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x408924
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
lea eax, [ebp - 0x20c]
jne 0x4125d9
push 0x408bb4
push 0x104
push eax
call fcn.0043efc4
add esp, 0xc
jmp 0x4125e0
lea eax, [ebp - 0x20c]
push eax
call fcn.00414dbd
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043dff7
leave
ret
Function at 0x4125ff
Capabilities:
Check os version

Disassembly:
push 0x138
mov eax, 0x46e8c3
call fcn.0045f3fe
mov ecx, dword [0x481200]
push 0x408bd8
call fcn.0042d4e5
mov esi, 0x114
push esi
lea eax, [ebp - 0x124]
push 0
push eax
mov byte [ebp - 0x125], 0
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41267e
cmp dword [ebp - 0x114], 2
jne 0x41267e
cmp dword [ebp - 0x120], 5
jne 0x412675
cmp dword [ebp - 0x11c], 1
jae 0x412677
cmp dword [ebp - 0x120], 5
jbe 0x41267e
mov byte [ebp - 0x125], 1
call fcn.0041251c
mov ecx, dword [0x481200]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x41279c
push 0x408c24
call fcn.0042d4e5
push 0x409388
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x41278b
xor eax, eax
lea edi, [ebp - 0x140]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], 0x14
call ecx
mov edi, dword [ebp + 8]
mov esi, dword [0x481200]
push ebx
push dword [ebp + 0xc]
push edi
push 0x408c48
call fcn.0042d7c5
push dword [ebp - 0x134]
mov esi, dword [0x481200]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push 0x408c74
call fcn.0042d7c5
mov eax, dword [ebp - 0x138]
add esp, 0x20
cmp dword [ebp - 0x13c], edi
setb dl
cmp dword [ebp - 0x13c], edi
jne 0x412739
cmp eax, dword [ebp + 0xc]
jae 0x412739
mov cl, 1
jmp 0x41273b
xor cl, cl
cmp dword [ebp - 0x13c], edi
jne 0x412754
cmp eax, dword [ebp + 0xc]
jne 0x412754
cmp dword [ebp - 0x134], ebx
jae 0x412754
mov al, 1
jmp 0x412756
xor al, al
test dl, dl
jne 0x412776
test cl, cl
jne 0x412776
test al, al
jne 0x412776
mov ecx, dword [0x481200]
push 0x408cd4
call fcn.0042d4e5
xor edi, edi
jmp 0x41278e
mov ecx, dword [0x481200]
push 0x408c94
call fcn.0042d4e5
xor edi, edi
inc edi
jmp 0x41278e
push 2
pop edi
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4127a9
push 0x408d10
call fcn.0042d4e5
push 2
pop edi
cmp byte [ebp - 0x125], 0
je 0x41280e
test edi, edi
je 0x41280e
cmp dword [ebp + 8], 2
jne 0x41280e
push 0x828
call fcn.0043e537
pop ecx
mov dword [ebp - 0x12c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4127f1
push 0x408d50
mov eax, 0x1003
push eax
push eax
push dword [ebp - 0x12c]
call fcn.00411c0e
add esp, 0x10
jmp 0x4127f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x144], eax
push 0x4737e4
lea eax, [ebp - 0x144]
push eax
call fcn.00443a0e
mov esi, dword [0x481200]
push edi
push 0x408e68
call fcn.0042d7c5
pop ecx
pop ecx
mov eax, edi
call fcn.0045f490
ret 8
Function at 0x412a23
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x46b8aa
call fcn.0045f38b
push 0x44
xor esi, esi
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004433d0
add esp, 0xc
push 0xc
pop eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push 8
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x84], 0x44
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
je 0x412abf
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x40]
call esi
mov eax, dword [ebp - 0x10]
call fcn.0045f477
ret 4
push 0x828
call fcn.0043e537
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x412af0
push dword [ebp + 8]
mov eax, 0x1fff
push 0x408f60
push eax
push eax
push dword [ebp - 0x14]
call fcn.00411c0e
add esp, 0x14
jmp 0x412af2
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
push 0x4737e4
lea eax, [ebp - 0x18]
push eax
call fcn.00443a0e
int3
Function at 0x415475
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
add edi, 0x3a98
jmp 0x41550c
cmp dword [esi + 4], 1
je 0x41552f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, eax
jb 0x41551b
mov eax, dword [esi + 4]
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
je 0x4154cd
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x4154e2
cmp dword [ebp - 0xc], eax
je 0x4154da
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
jmp 0x4154e2
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 4]
jb 0x41552c
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x4154fa
mov eax, ecx
mov ecx, 0x2710
cmp eax, ecx
jbe 0x415505
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp + 8]
call ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x4154a4
jmp 0x41552f
and dword [ebp - 8], 0
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41552f
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 4
Function at 0x41553d
Capabilities:
Query service status
Stop service

Disassembly:
push 0x15c
mov eax, 0x46c465
call fcn.0045f3fe
mov edi, dword [0x481200]
xor ebx, ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a278
call fcn.004132cd
mov dword [ebp - 4], ebx
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
mov esi, 0x114
push esi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.004433d0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4155dc
cmp dword [ebp - 0x114], 2
je 0x4155dc
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a2d0
call fcn.004132cd
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
mov eax, esi
jmp 0x415770
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x128], esi
cmp esi, ebx
jne 0x415621
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a368
call fcn.004132cd
mov dword [ebp - 4], 2
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
xor eax, eax
jmp 0x415770
push 0x24
push 0x40a3e0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x130], eax
cmp eax, ebx
jne 0x41565f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a3f8
call fcn.004132cd
mov dword [ebp - 4], 3
jmp 0x41560f
lea ecx, [ebp - 0x168]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
jne 0x41569e
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a478
call fcn.004132cd
mov dword [ebp - 4], 4
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
jmp 0x415758
cmp dword [ebp - 0x164], 1
je 0x41572d
lea eax, [ebp - 0x14c]
push eax
push 1
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
jne 0x4156e3
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a4f8
call fcn.004132cd
mov dword [ebp - 4], 5
jmp 0x41568e
push dword [ebp - 0x130]
lea esi, [ebp - 0x14c]
call fcn.00415475
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
test eax, eax
jne 0x41571a
push 0x40a570
call fcn.004132cd
mov dword [ebp - 4], 6
jmp 0x41568e
push 0x40a5f0
call fcn.004132cd
mov dword [ebp - 4], 7
jmp 0x41574a
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a660
call fcn.004132cd
mov dword [ebp - 4], 8
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
xor ebx, ebx
inc ebx
push dword [ebp - 0x130]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x128]
call esi
mov eax, ebx
call fcn.0045f490
ret
Function at 0x415e9f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [0x481200]
push 0x40a928
call fcn.0042d4e5
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x418730
push 0
push 0
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x6c], eax
test eax, eax
jne 0x415eed
push esi
mov esi, dword [0x481200]
push 0x40a970
call fcn.0042d729
mov byte [ebp - 1], 0
pop esi
mov eax, dword [ebp - 8]
mov ecx, dword [0x481200]
push 0x40a9b0
mov dword [edi + 0x70], eax
call fcn.0042d4e5
mov al, byte [ebp - 1]
leave
ret

Function at 0x41753c
Capabilities:
Reference sql statements

Disassembly:
push 0x4c
mov eax, 0x46cf9a
call fcn.0045f439
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
xor ebx, ebx
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
lea esi, [eax + 0xcc]
push dword [eax + 0xbc]
mov eax, esi
call fcn.004130fc
mov dword [ebp - 0x3c], eax
push 0x40b618
lea ecx, [ebp - 0x30]
call fcn.004132cd
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x417595
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x3c]
mov eax, esi
call fcn.00413115
mov edi, eax
cmp edi, ebx
je 0x417608
push 0x828
call fcn.0043e537
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4175f1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4175cc
lea eax, [ebp - 0x2c]
push edi
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x3c]
push 0x40aa48
push 0x654
push 0x19dc
push dword [ebp - 0x40]
call fcn.00411c0e
add esp, 0x20
jmp 0x4175f3
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], eax
push 0x4737e4
lea eax, [ebp - 0x50]
push eax
call fcn.00443a0e
push ebx
push dword [ebp - 0x38]
mov eax, esi
call fcn.00413131
mov edi, eax
cmp edi, ebx
je 0x417661
push 0x828
call fcn.0043e537
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x41764e
push edi
push ebx
push dword [ebp - 0x38]
push 0x40aaf8
push 0x654
push 0x19dc
push eax
call fcn.00411c0e
add esp, 0x1c
jmp 0x417650
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], eax
push 0x4737e4
lea eax, [ebp - 0x54]
jmp 0x417602
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
mov eax, esi
call fcn.00413174
test eax, eax
jne 0x4176a9
push 1
push dword [ebp - 0x44]
mov eax, esi
call fcn.00413190
cmp eax, ebx
je 0x41769d
mov byte [ebp - 0x31], 1
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00413343
push 0x409d00
mov ecx, dword [ebp - 0x40]
call fcn.00413343
push dword [ebp - 0x44]
mov eax, esi
call fcn.00413052
jmp 0x417661
cmp dword [ebp - 0x38], ebx
je 0x4176b8
push dword [ebp - 0x38]
mov eax, esi
call fcn.00413052
cmp dword [ebp - 0x3c], ebx
je 0x4176c7
push dword [ebp - 0x3c]
mov eax, esi
call fcn.00413052
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00411dad
mov al, byte [ebp - 0x31]
call fcn.0045f4a4
ret 4