joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f1bc
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.004127c0
xor eax, eax
push esi
mov word [esp + 0x24], ax
lea eax, [esp + 0x26]
push ebp
push eax
call fcn.004127c0
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.0040bb27
push ecx
push ecx
mov ecx, ebx
call fcn.0040b9a2
push 5
push dword [ebx + 4]
call fcn.004224ac
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.0040abf2
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.0040abf2
add esp, 0x10
lea eax, [esp + 0x414]
push eax
push dword [ebx + 0x80]
call edi
push dword [0x44922c]
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 0x42f406
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.004127c0
xor eax, eax
push esi
push eax
mov word [esp + 0x430], ax
lea eax, [esp + 0x432]
push eax
call fcn.004127c0
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.0040abf2
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 0x42f4a3
dec eax
je 0x42f49c
dec eax
dec eax
je 0x42f4a3
dec eax
jne 0x42f4e6
push 0x29
pop eax
push 0x2a
jmp 0x42f4a8
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.00422830
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x88]
call ebx
test esi, esi
je 0x42f4e5
push ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00422830
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 0x4304ef
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.004127c0
push 0x24c
lea eax, [ebp - 0x65c]
push esi
push eax
mov dword [ebp - 0x660], esi
call fcn.004127c0
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 0x4305ff
lea eax, [ebp - 0x410]
push eax
push str._sMetaQuotesWebInstall.png
mov ebx, 0x104
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00409cf6
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 0x4305ff
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.00409cf6
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4305e6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x4305e6
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 0x430588
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
pop ebx
leave
ret
Function at 0x4311ab
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.004127c0
or dword [ebp - 0xc], 0xffffffff
add esp, 0xc
mov dword [ebp - 0x10], 0x43e504
mov dword [ebp - 8], ebx
cmp dword [ebp + 8], ebx
je 0x43125c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4311f1
mov bl, 1
jmp 0x43125c
push ecx
push 3
push ecx
push SysReAllocStringLen
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00409509
test al, al
je 0x43125c
push 0x40
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x10]
call fcn.004094a8
cmp eax, 0x40
jne 0x43125c
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.00409458
and eax, edx
cmp eax, 0xffffffff
je 0x43125c
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0040c622
test al, al
je 0x431255
cmp dword [edi + 0x14], 1
jne 0x431240
cmp dword [edi + 0x14], 1
sete bl
cmp dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0x43e504
je 0x431272
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov al, bl
pop ebx
leave
ret 4

Function at 0x43155e
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 0x43158c
xor al, al
jmp 0x431624
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 0x4315c9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4315eb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004059e7
cmp dword [ebp - 8], 1
je 0x4315ef
mov eax, dword [esi + 4]
mov dword [esi + 8], edi
test eax, eax
je 0x4315eb
xor ecx, ecx
mov word [eax], cx
xor al, al
jmp 0x431623
push 0x441650
mov ecx, esi
call fcn.0040a8d4
test eax, eax
js 0x431609
inc eax
push eax
push ecx
mov ecx, esi
call fcn.0040a64c
push 0x441654
mov ecx, esi
call fcn.0040a8d4
test eax, eax
js 0x431621
push eax
mov ecx, esi
call fcn.0040599c
mov al, 1
pop esi
pop edi
leave
ret 4
Function at 0x431a62
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x431ab1
cmp dword [ebp + 0xc], 1
jb 0x431ab1
cmp dword [esi + 0x10], 0
je 0x431ab1
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 0x431aad
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [esi + 0x360]
push str.read_failed___d_
push eax
call fcn.0040940c
add esp, 0xc
jmp 0x431ab7
mov al, 1
jmp 0x431ab9
mov eax, dword [ebp + 0x10]
and dword [eax], 0
xor al, al
pop esi
pop ebp
ret 0xc

Function at 0x431b04
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 0x431b20
xor edx, edx
mov word [eax], dx
cmp dword [ecx + 0x10], 0
je 0x431b6f
cmp dword [ebp + 8], 0
je 0x431b6f
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 0x431b77
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.get_header_failed___d_
push esi
call fcn.0040940c
add esp, 0xc
xor al, al
pop edi
pop esi
leave
ret 8
mov ecx, edi
call fcn.004059e7
mov al, 1
jmp 0x431b71
Function at 0x431cb4
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 0x431cd7
xor eax, eax
jmp 0x431e60
push eax
call fcn.00411211
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.0040cd4f
push 0xa0000000
push esi
push dword [ebx]
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x431d4d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [edi + 0x360]
push str.cannot_add_header___u_
push eax
call fcn.0040940c
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x431d47
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x431d47
mov byte [eax], 0
inc eax
dec ecx
jne 0x431d40
and dword [ebx + 4], 0
jmp 0x431cd0
mov eax, dword [ebx]
test eax, eax
je 0x431d61
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x431d61
mov byte [eax], 0
inc eax
dec ecx
jne 0x431d5a
and dword [ebx + 4], 0
mov esi, 0x1bb
cmp dword [edi + 0x224], esi
jne 0x431dae
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 0x431dae
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.set_security_options_failed___d_
lea eax, [edi + 0x360]
push eax
call fcn.0040940c
add esp, 0xc
jmp 0x431cd0
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 0x431dd7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_send_request___d_
jmp 0x431d9a
cmp byte [edi + 0x359], bl
jne 0x431e11
cmp dword [edi + 0x224], esi
jne 0x431e11
mov ecx, edi
call fcn.0043171b
test al, al
jne 0x431e0a
lea eax, [edi + 0x360]
push str.send_request_failed__invalid_certificate_
push eax
call fcn.0040940c
pop ecx
pop ecx
jmp 0x431cd0
mov byte [edi + 0x359], 1
push ebx
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x431e30
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_receive_response___d_
jmp 0x431d9a
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 0x431e5d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.cannot_query_status___d_
jmp 0x431d9a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x431e67
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.004320a3
cmp dword [ebp + 8], 0
je 0x431ee3
cmp dword [ebp + 0xc], 0
je 0x431ee3
cmp dword [esi + 0xc], 0
je 0x431ee3
cmp dword [esi + 0x224], 0x1bb
mov ecx, 0x800100
mov eax, pe_nt_image_headers32
cmove eax, ecx
push eax
push 0x449be8
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 0x431eee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.request_opening_failed___d_
lea eax, [esi + 0x360]
push eax
call fcn.0040940c
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 0x431f33
mov ecx, dword [esi + 0x340]
test ecx, ecx
je 0x431f33
mov edx, dword [esi + 0x344]
test edx, edx
je 0x431f33
mov edi, dword [esi + 0x348]
test edi, edi
je 0x431f33
push edi
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x431f33
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.timeout_setting_failed___d_
jmp 0x431ed4
cmp byte [esi + 0x228], 0
je 0x431fde
mov ebx, 0x449550
mov ecx, ebx
call fcn.00409673
test al, al
jne 0x431fde
lea ecx, [esp + 0x10]
call fcn.0040afcb
lea ecx, [esp + 0x120]
call fcn.0040afcb
push ebx
lea ecx, [esp + 0x14]
call fcn.00409c80
push 0x43d6b4
lea ecx, [esp + 0x14]
call fcn.0040a8d4
mov edi, eax
test edi, edi
jle 0x431faf
push ebx
lea ecx, [esp + 0x124]
call fcn.00409c80
lea ecx, [edi + 1]
push ecx
push ecx
lea ecx, [esp + 0x128]
call fcn.0040a64c
push edi
lea ecx, [esp + 0x14]
call fcn.0040599c
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 0x431fde
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting_credentials_for_proxy_failed___d_
jmp 0x431ed4
cmp dword [esi + 0x224], 0x1bb
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jne 0x43201b
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 0x43201b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting_ignore_unknown_CA_failed___d_
jmp 0x431ed4
cmp byte [esi + 0x358], 0
jne 0x43204f
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 0x43204f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.setting_disable_redirects_failed___d_
jmp 0x431ed4
mov eax, dword [esi + 0x35c]
test eax, eax
je 0x432078
push 0x14
push eax
push 0x2f
push dword [esi + 0x10]
call edi
test eax, eax
jne 0x432078
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.failed_to_set_client_certificate_context___d_
jmp 0x431ed4
mov al, 1
jmp 0x431ee5
Function at 0x432195
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 0x4321b2
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x14], ebp
je 0x432250
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x432250
mov ecx, esi
call fcn.004320bb
mov ecx, 0x449660
call fcn.00409673
test al, al
je 0x4321e9
push ecx
mov ecx, str.MetaTrader_5
call fcn.00432441
pop ecx
xor eax, eax
mov byte [esp + 0x1c], al
cmp word [ebx], ax
je 0x432221
push ebx
lea ecx, [esi + 0x22c]
mov byte [esi + 0x228], 1
mov byte [esp + 0x20], 1
call fcn.0040968b
xor ebp, ebp
push ebp
push ebp
push ebx
push 3
push dword [0x449664]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
jmp 0x432234
push eax
push eax
push eax
push 1
push dword [0x449664]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
xor ebp, ebp
mov dword [esi + 8], eax
cmp eax, ebp
jne 0x432259
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.HTTP_session_creation_failed___d_
push edi
call fcn.0040940c
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.0040968b
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 0x432299
mov ecx, esi
call fcn.00431863
test al, al
jne 0x432299
mov ecx, esi
call fcn.004320bb
cmp dword [esi + 0xc], ebp
jne 0x4322db
cmp byte [esp + 0x1c], 0
je 0x4322bf
push ebx
push dword [esi + 0x224]
push dword [esi + 0x18]
push str._s:_d_via_proxy__s_failed
push edi
call fcn.0040940c
add esp, 0x14
jmp 0x432250
push dword [esi + 0x224]
push dword [esi + 0x18]
push str._s:_d_failed
push edi
call fcn.0040940c
add esp, 0x10
jmp 0x432250
push ebp
call fcn.00411211
mov dword [esi + 0x350], eax
pop ecx
mov dword [esi + 0x354], edx
mov al, 1
jmp 0x432252
Function at 0x432197
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 0x4321b2
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x14], ebp
je 0x432250
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x432250
mov ecx, esi
call fcn.004320bb
mov ecx, 0x449660
call fcn.00409673
test al, al
je 0x4321e9
push ecx
mov ecx, str.MetaTrader_5
call fcn.00432441
pop ecx
xor eax, eax
mov byte [esp + 0x1c], al
cmp word [ebx], ax
je 0x432221
push ebx
lea ecx, [esi + 0x22c]
mov byte [esi + 0x228], 1
mov byte [esp + 0x20], 1
call fcn.0040968b
xor ebp, ebp
push ebp
push ebp
push ebx
push 3
push dword [0x449664]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
jmp 0x432234
push eax
push eax
push eax
push 1
push dword [0x449664]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
xor ebp, ebp
mov dword [esi + 8], eax
cmp eax, ebp
jne 0x432259
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.HTTP_session_creation_failed___d_
push edi
call fcn.0040940c
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.0040968b
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 0x432299
mov ecx, esi
call fcn.00431863
test al, al
jne 0x432299
mov ecx, esi
call fcn.004320bb
cmp dword [esi + 0xc], ebp
jne 0x4322db
cmp byte [esp + 0x1c], 0
je 0x4322bf
push ebx
push dword [esi + 0x224]
push dword [esi + 0x18]
push str._s:_d_via_proxy__s_failed
push edi
call fcn.0040940c
add esp, 0x14
jmp 0x432250
push dword [esi + 0x224]
push dword [esi + 0x18]
push str._s:_d_failed
push edi
call fcn.0040940c
add esp, 0x10
jmp 0x432250
push ebp
call fcn.00411211
mov dword [esi + 0x350], eax
pop ecx
mov dword [esi + 0x354], edx
mov al, 1
jmp 0x432252

Function at 0x432803
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 0x43281a
xor al, al
jmp 0x432882
push edi
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x432832
xor al, al
jmp 0x432881
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x432851
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43286c
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 0x432870
call esi
push edi
call esi
xor al, al
jmp 0x432880
call esi
push edi
call esi
cmp dword [ebp - 0x18], 1
jne 0x43287e
mov byte [ebx], 1
mov al, 1
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x432887
Capabilities:
Delete service

Disassembly:
cmp dword [esp + 4], 0
jne 0x43289a
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor al, al
jmp 0x4328f5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x432896
push edi
push 0x10024
push dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4328f2
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4328da
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x4328f4
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 0x4328f8
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 0x432936
xor al, al
jmp 0x432a68
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x43292f
push esi
push 0xf01ff
push dword [esp + 0x5c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x432969
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43298d
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 0x432994
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor al, al
jmp 0x432a67
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 0x4329ed
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4329ed
push 0x449d68
push dword [esp + 0x14]
call fcn.004100a8
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x4329ed
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 0x4329ed
push ebp
call fcn.004100a3
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 0x432a3f
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 0x432a54
push ebp
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebp
call fcn.004100a3
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 0x432a9f
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [esp + 0x24], ebx
jne 0x432ab2
xor al, al
jmp 0x432b6e
push ebp
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x432acd
xor al, al
jmp 0x432b6d
push edi
push 0xf01ff
push dword [esp + 0x30]
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x432b63
push esi
mov esi, ebx
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x432b5b
cmp dword [esp + 0x14], 1
je 0x432b59
cmp dword [esp + 0x14], 4
je 0x432b1f
cmp dword [esp + 0x14], 7
je 0x432b1f
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x3c
jb 0x432ae7
jmp 0x432b5b
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x432b52
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x432b5b
cmp dword [esp + 0x14], 1
je 0x432b59
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x3c
jb 0x432b2f
jmp 0x432b5b
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