joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f3ad
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x804
push ebx
push ebp
push esi
push edi
xor eax, eax
mov esi, 0x3fe
push esi
mov word [esp + 0x418], ax
xor ebp, ebp
lea eax, [esp + 0x41a]
push ebp
push eax
mov ebx, ecx
call fcn.004127f0
xor eax, eax
push esi
mov word [esp + 0x24], ax
lea eax, [esp + 0x26]
push ebp
push eax
call fcn.004127f0
add esp, 0x18
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.0040bb49
push ecx
push ecx
mov ecx, ebx
call fcn.0040b9c4
push 5
push dword [ebx + 4]
call fcn.004224fd
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, 0x200
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x5c]
call esi
mov eax, dword [ebx + 0x54]
mov ebp, 0x848
add eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push edi
push eax
call fcn.0040ac14
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
add esp, 0x10
lea eax, [esp + 0x414]
push eax
push dword [ebx + 0x5c]
call edi
push 0x200
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x80]
call esi
mov eax, dword [ebx + 0x54]
add eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push 0x200
push eax
call fcn.0040ac14
add esp, 0x10
lea eax, [esp + 0x414]
push eax
push dword [ebx + 0x80]
call edi
push dword [0x44d22c]
push dword [ebx + 0xa4]
call edi
push 0
push 0
push 0xf1
push dword [ebx + 0xc8]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x804
ret 0x10

Function at 0x42f5f7
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x820
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x40e
push esi
push eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push eax
mov edi, ecx
call fcn.004127f0
xor eax, eax
push esi
push eax
mov word [esp + 0x430], ax
lea eax, [esp + 0x432]
push eax
call fcn.004127f0
add esp, 0x18
mov esi, 0x208
push esi
lea eax, [esp + 0x420]
push eax
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 0x54]
add eax, 0xe
push eax
lea eax, [esp + 0x420]
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0040ac14
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push dword [edi + 0x64]
call ebx
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 8]
dec eax
je 0x42f694
dec eax
je 0x42f68d
dec eax
dec eax
je 0x42f694
dec eax
jne 0x42f6d7
push 0x29
pop eax
push 0x2a
jmp 0x42f699
push 0x2b
pop eax
push 0x2c
pop esi
push ebp
mov ebp, 0x207
push ebp
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00422888
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x88]
call ebx
test esi, esi
je 0x42f6d6
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00422888
lea eax, [esp + 0x10]
push eax
push dword [edi + 0xac]
call ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x820
ret
Function at 0x4306cc
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x410], ax
xor esi, esi
lea eax, [ebp - 0x40e]
push esi
push eax
call fcn.004127f0
push 0x24c
lea eax, [ebp - 0x65c]
push esi
push eax
mov dword [ebp - 0x660], esi
call fcn.004127f0
add esp, 0x18
lea eax, [ebp - 0x410]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4307dc
lea eax, [ebp - 0x410]
push eax
push str._sMetaQuotesWebInstall.png
mov ebx, 0x104
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00409cfd
add esp, 0x10
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4307dc
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x410]
push eax
push str._sMetaQuotesWebInstall_s
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00409cfd
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4307c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4307c3
push 0x80
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x430765
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
leave
ret

Function at 0x431388
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x54], ax
xor ebx, ebx
lea eax, [ebp - 0x52]
push ebx
push eax
mov edi, ecx
call fcn.004127f0
or dword [ebp - 0xc], 0xffffffff
add esp, 0xc
mov dword [ebp - 0x10], 0x442514
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x431439
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4313ce
mov bl, 1
jmp 0x431439
push ecx
push 3
push ecx
push SysReAllocStringLen
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00409510
test al, al
je 0x431439
push 0x40
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x10]
call fcn.004094af
cmp eax, 0x40
jne 0x431439
mov ax, word [ebp - 0x30]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x2e]
push ebx
push ebx
mov word [ebp - 6], ax
push dword [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.0040945f
and eax, edx
cmp eax, 0xffffffff
je 0x431439
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0040c644
test al, al
je 0x431432
cmp dword [edi + 0x14], 1
jne 0x43141d
cmp dword [edi + 0x14], 1
sete bl
cmp dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0x442514
je 0x43144f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, bl
pop ebx
leave
ret 4
Function at 0x43173d
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43176b
xor al, al
jmp 0x431803
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], edi
mov eax, dword [esi + 0xc]
lea eax, [eax*2 - 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
lea eax, [ebp - 8]
push eax
push edi
push str.ProxyServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x4317a8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4317ca
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004059ee
cmp dword [ebp - 8], 1
je 0x4317ce
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
test eax, eax
je 0x4317ca
xor ecx, ecx
mov word [eax], cx
xor al, al
jmp 0x431802
push 0x445680
mov ecx, esi
call fcn.0040a8f6
test eax, eax
js 0x4317e8
inc eax
push eax
push ecx
mov ecx, esi
call fcn.0040a66e
push 0x445684
mov ecx, esi
call fcn.0040a8f6
test eax, eax
js 0x431800
push eax
mov ecx, esi
call fcn.004059a3
mov al, 1
pop esi
pop edi
leave
ret 4

Function at 0x431c41
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x431c90
cmp dword [ebp + 0xc], 1
jb 0x431c90
cmp dword [esi + 0x10], 0
je 0x431c90
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x431c8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x360]
push str.read_failed___d_
push eax
call fcn.00409413
add esp, 0xc
jmp 0x431c96
mov al, 1
jmp 0x431c98
mov eax, dword [ebp + 0x10]
and dword [eax], 0
xor al, al
pop esi
pop ebp
ret 0xc

Function at 0x431ce3
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 0x360]
push edi
mov eax, dword [esi + 4]
and dword [esi + 8], 0
test eax, eax
je 0x431cff
xor edx, edx
mov word [eax], dx
cmp dword [ecx + 0x10], 0
je 0x431d4e
cmp dword [ebp + 8], 0
je 0x431d4e
mov edi, dword [ebp + 0xc]
push 0
mov eax, dword [edi + 0xc]
lea eax, [eax*2 - 2]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [ebp + 8]
push 0xffff
push dword [ecx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x431d56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_header_failed___d_
push esi
call fcn.00409413
add esp, 0xc
xor al, al
pop edi
pop esi
leave
ret 8
mov ecx, edi
call fcn.004059ee
mov al, 1
jmp 0x431d50
Function at 0x431e93
Capabilities:
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 4
cmp dword [edi + 0x10], eax
jne 0x431eb6
xor eax, eax
jmp 0x43203f
push eax
call fcn.00411241
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
pop ecx
mov dword [edi + 0x350], eax
mov dword [edi + 0x354], edx
mov esi, dword [ebx + 4]
push 2
lea eax, [ebp + 8]
push eax
mov ecx, ebx
shr esi, 1
call fcn.0040cd75
push 0xa0000000
push esi
push dword [ebx]
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x431f2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x360]
push str.cannot_add_header___u_
push eax
call fcn.00409413
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x431f26
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x431f26
mov byte [eax], 0
inc eax
dec ecx
jne 0x431f1f
and dword [ebx + 4], 0
jmp 0x431eaf
mov eax, dword [ebx]
test eax, eax
je 0x431f40
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x431f40
mov byte [eax], 0
inc eax
dec ecx
jne 0x431f39
and dword [ebx + 4], 0
mov esi, 0x1bb
cmp dword [edi + 0x224], esi
jne 0x431f8d
push 4
lea eax, [ebp - 8]
push eax
push 0x1f
push dword [edi + 0x10]
mov dword [ebp - 8], pe_nt_image_headers32
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x431f8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.set_security_options_failed___d_
lea eax, [edi + 0x360]
push eax
call fcn.00409413
add esp, 0xc
jmp 0x431eaf
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push ebx
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x431fb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_send_request___d_
jmp 0x431f79
cmp byte [edi + 0x359], bl
jne 0x431ff0
cmp dword [edi + 0x224], esi
jne 0x431ff0
mov ecx, edi
call fcn.004318fa
test al, al
jne 0x431fe9
lea eax, [edi + 0x360]
push str.send_request_failed__invalid_certificate_
push eax
call fcn.00409413
pop ecx
pop ecx
jmp 0x431eaf
mov byte [edi + 0x359], 1
push ebx
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x43200f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_receive_response___d_
jmp 0x431f79
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20000013
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x43203c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_query_status___d_
jmp 0x431f79
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x432046
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
push ebx
push esi
push edi
mov esi, ecx
call fcn.00432282
cmp dword [ebp + 8], 0
je 0x4320c2
cmp dword [ebp + 0xc], 0
je 0x4320c2
cmp dword [esi + 0xc], 0
je 0x4320c2
cmp dword [esi + 0x224], 0x1bb
mov ecx, 0x800100
mov eax, pe_nt_image_headers32
cmove eax, ecx
push eax
push 0x44dbe8
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [esi + 0x10], ebx
test ebx, ebx
jne 0x4320cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.request_opening_failed___d_
lea eax, [esi + 0x360]
push eax
call fcn.00409413
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x33c]
test eax, eax
je 0x432112
mov ecx, dword [esi + 0x340]
test ecx, ecx
je 0x432112
mov edx, dword [esi + 0x344]
test edx, edx
je 0x432112
mov edi, dword [esi + 0x348]
test edi, edi
je 0x432112
push edi
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x432112
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.timeout_setting_failed___d_
jmp 0x4320b3
cmp byte [esi + 0x228], 0
je 0x4321bd
mov ebx, 0x44d550
mov ecx, ebx
call fcn.0040967a
test al, al
jne 0x4321bd
lea ecx, [esp + 0x10]
call fcn.0040afed
lea ecx, [esp + 0x120]
call fcn.0040afed
push ebx
lea ecx, [esp + 0x14]
call fcn.00409c87
push 0x4416c4
lea ecx, [esp + 0x14]
call fcn.0040a8f6
mov edi, eax
test edi, edi
jle 0x43218e
push ebx
lea ecx, [esp + 0x124]
call fcn.00409c87
lea ecx, [edi + 1]
push ecx
push ecx
lea ecx, [esp + 0x128]
call fcn.0040a66e
push edi
lea ecx, [esp + 0x14]
call fcn.004059a3
push 0
push dword [esp + 0x128]
push dword [esp + 0x1c]
push 1
push 1
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
jne 0x4321bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.setting_credentials_for_proxy_failed___d_
jmp 0x4320b3
cmp dword [esi + 0x224], 0x1bb
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x4321fa
push 4
lea eax, [esp + 0x10]
push eax
push 0x1f
push dword [esi + 0x10]
mov dword [esp + 0x1c], pe_nt_image_headers32
call edi
test eax, eax
jne 0x4321fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.setting_ignore_unknown_CA_failed___d_
jmp 0x4320b3
cmp byte [esi + 0x358], 0
jne 0x43222e
push 4
lea eax, [esp + 0x10]
push eax
push 0x3f
push dword [esi + 0x10]
mov dword [esp + 0x1c], 2
call edi
test eax, eax
jne 0x43222e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.setting_disable_redirects_failed___d_
jmp 0x4320b3
mov eax, dword [esi + 0x35c]
test eax, eax
je 0x432257
push 0x14
push eax
push 0x2f
push dword [esi + 0x10]
call edi
test eax, eax
jne 0x432257
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_client_certificate_context___d_
jmp 0x4320b3
mov al, 1
jmp 0x4320c4
Function at 0x432374
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x360]
xor ebp, ebp
mov eax, dword [edi + 4]
mov dword [edi + 8], ebp
test eax, eax
je 0x432391
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x14], ebp
je 0x43242f
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x43242f
mov ecx, esi
call fcn.0043229a
mov ecx, 0x44d660
call fcn.0040967a
test al, al
je 0x4323c8
push ecx
mov ecx, str.MetaTrader_5
call fcn.00432620
pop ecx
xor eax, eax
mov byte [esp + 0x1c], al
cmp word [ebx], ax
je 0x432400
push ebx
lea ecx, [esi + 0x22c]
mov byte [esi + 0x228], 1
mov byte [esp + 0x20], 1
call fcn.00409692
xor ebp, ebp
push ebp
push ebp
push ebx
push 3
push dword [0x44d664]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
jmp 0x432413
push eax
push eax
push eax
push 1
push dword [0x44d664]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
xor ebp, ebp
mov dword [esi + 8], eax
cmp eax, ebp
jne 0x432438
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HTTP_session_creation_failed___d_
push edi
call fcn.00409413
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push dword [esp + 0x14]
lea ecx, [esi + 0x14]
call fcn.00409692
mov eax, dword [esp + 0x18]
mov dword [esi + 0x224], eax
push ebp
movzx eax, ax
push eax
push dword [esi + 0x18]
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 0xc], eax
test eax, eax
je 0x432478
mov ecx, esi
call fcn.00431a42
test al, al
jne 0x432478
mov ecx, esi
call fcn.0043229a
cmp dword [esi + 0xc], ebp
jne 0x4324ba
cmp byte [esp + 0x1c], 0
je 0x43249e
push ebx
push dword [esi + 0x224]
push dword [esi + 0x18]
push str._s:_d_via_proxy__s_failed
push edi
call fcn.00409413
add esp, 0x14
jmp 0x43242f
push dword [esi + 0x224]
push dword [esi + 0x18]
push str._s:_d_failed
push edi
call fcn.00409413
add esp, 0x10
jmp 0x43242f
push ebp
call fcn.00411241
mov dword [esi + 0x350], eax
pop ecx
mov dword [esi + 0x354], edx
mov al, 1
jmp 0x432431

Function at 0x4329e2
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
mov byte [ebx], al
cmp dword [ebp + 8], eax
jne 0x4329f9
xor al, al
jmp 0x432a61
push edi
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x432a11
xor al, al
jmp 0x432a60
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x432a30
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x432a4b
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x432a4f
call esi
push edi
call esi
xor al, al
jmp 0x432a5f
call esi
push edi
call esi
cmp dword [ebp - 0x18], 1
jne 0x432a5d
mov byte [ebx], 1
mov al, 1
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x432a66
Capabilities:
Delete service

Disassembly:
cmp dword [esp + 4], 0
jne 0x432a79
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x432ad4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x432a75
push edi
push 0x10024
push dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x432ad1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x432ab9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x432ad3
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop edi
ret 4
Function at 0x432ad7
Capabilities:
Modify service
Query service status
Terminate process

Disassembly:
sub esp, 0x44
push ebx
push ebp
push edi
xor ebx, ebx
xor eax, eax
push 8
pop ecx
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebp, ebx
stosd dword es:[edi], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
cmp dword [esp + 0x54], ebx
jne 0x432b15
xor al, al
jmp 0x432c47
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x432b0e
push esi
push 0xf01ff
push dword [esp + 0x5c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x432b48
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x432b6c
lea eax, [esp + 0x10]
push eax
push 0x24
lea eax, [esp + 0x38]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x432b73
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor al, al
jmp 0x432c46
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push 2
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
jne 0x432bcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x432bcc
push 0x44e088
push dword [esp + 0x14]
call fcn.004100d6
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x432bcc
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebp
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
jne 0x432bcc
push ebp
call fcn.004100d1
pop ecx
mov ebp, ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x1c]
push eax
push 2
push esi
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push dword [esp + 0x4c]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x58], eax
test eax, eax
je 0x432c1e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0x58]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
je 0x432c33
push ebp
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebp
call fcn.004100d1
pop ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
setne al
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x44
ret 4
Function at 0x432c7e
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jne 0x432c91
xor al, al
jmp 0x432d4d
push ebp
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x432cac
xor al, al
jmp 0x432d4c
push edi
push 0xf01ff
push dword [esp + 0x30]
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x432d42
push esi
mov esi, ebx
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x432d3a
cmp dword [esp + 0x14], 1
je 0x432d38
cmp dword [esp + 0x14], 4
je 0x432cfe
cmp dword [esp + 0x14], 7
je 0x432cfe
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jb 0x432cc6
jmp 0x432d3a
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x432d31
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x432d3a
cmp dword [esp + 0x14], 1
je 0x432d38
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3c
jb 0x432d0e
jmp 0x432d3a
mov bl, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 8