joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402730
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x42a008]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x10]
push esi
test eax, eax
je 0x402799
mov ecx, str._EnableDH
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402777
test dx, dx
je 0x402773
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402777
add eax, 4
add ecx, 4
test dx, dx
jne 0x402751
xor eax, eax
jmp 0x40277c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402799
call fcn.00405310
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 0x10
push str.GlobalDevice_Health_AutoUpdate_Mutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x402815
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40280e
push 0x40
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00411350
add esp, 0xc
lea ecx, [esp + 8]
call fcn.00402dc0
lea ecx, [esp + 8]
call fcn.00403af0
lea ecx, [esp + 8]
call fcn.004040d0
lea ecx, [esp + 8]
call fcn.004033e0
mov edx, dword [esp + 0x40]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40280e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4028d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4028e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402924
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402920
lea ebx, [ebx]
cmp esi, edx
jae 0x402924
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402910
cmp esi, edx
jb 0x40292b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x41c], eax
mov edi, ecx
xor eax, eax
mov esi, 0x80004005
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.00411350
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push eax
lea eax, [ebp - 0x20e]
push eax
call fcn.00411350
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
jae 0x4031fc
lea eax, [ebp - 0x418]
push eax
push str._sDhInstaller.exe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004029c0
mov esi, eax
add esp, 0x10
test esi, esi
js 0x4031f4
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x41c]
call fcn.00403800
mov esi, eax
test esi, esi
js 0x4031ec
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.004021e0
jmp 0x403220
push esi
push str.DLInstaller:_x
jmp 0x403214
push esi
push str.InstallerTempFile:_x
jmp 0x403214
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40320e
movzx eax, ax
or eax, 0x80070000
push eax
push str.InstallerTempFolder:_x
lea eax, [edi + 0x38]
push eax
call fcn.00404ee0
add esp, 0xc
xor ecx, ecx
mov eax, 2
test esi, esi
pop edi
cmovns eax, ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 8
Function at 0x403240
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4033ba
test esi, esi
je 0x4033a4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4033a4
sub esp, 8
push esi
call fcn.0040d6c0
test al, al
je 0x4033a4
push 1
push esi
call fcn.0040db10
test al, al
je 0x4033a4
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00411350
add esp, 0xc
lea eax, [ebp - 0x41c]
push esi
push str._s__quiet
push 0x208
push eax
call fcn.004029c0
add esp, 0x10
test eax, eax
js 0x403390
push 0x44
lea eax, [ebp - 0x464]
push 0
push eax
call fcn.00411350
add esp, 0xc
mov dword [ebp - 0x464], 0x44
lea eax, [ebp - 0x474]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x474], xmm0
push eax
lea eax, [ebp - 0x464]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x41c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403367
mov ecx, edi
call fcn.00404480
push dword [ebp - 0x474]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x470]
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x40337c
movzx ecx, cx
or ecx, 0x80070000
push ecx
lea ecx, [edi + 0x38]
push str.CreateProc:_x
push ecx
call fcn.00404ee0
add esp, 0xc
jmp 0x4033ba
push eax
lea eax, [edi + 0x38]
push str.InvalidCmd:_x
push eax
call fcn.00404ee0
add esp, 0xc
jmp 0x4033ba
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xb
push str.InvalidSign
lea ecx, [edi + 0x38]
call fcn.004048f0
mov ecx, dword [ebp - 8]
mov eax, 2
pop edi
xor ecx, ebp
pop esi
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
Function at 0x4055c0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
xor ebx, ebx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push ebx
push ebx
push dword [eax + 8]
xor edi, edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405614
call esi
cmp eax, 0x7a
jne 0x405664
mov ebx, dword [ebp - 8]
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 8]
push eax
push ebx
mov ebx, dword [ebp - 0xc]
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x405651
cmp dword [edi + 4], 2
je 0x405685
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x405685
call esi
mov esi, eax
test esi, esi
jle 0x405687
movzx esi, si
or esi, 0x80070000
jmp 0x405687
call esi
test eax, eax
jle 0x40569d
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
xor esi, esi
test edi, edi
je 0x40569b
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
Function at 0x4056b0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x30], eax
push ecx
push 0x24
lea ecx, [ebp - 0x2c]
mov dword [ebp - 8], 0
push ecx
push 0
push dword [eax + 8]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x2c], xmm0
movdqu xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4056fd
xor eax, eax
jmp 0x40570f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x405711
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4057d4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, dword [ebp - 0x18]
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x28], eax
je 0x4057cf
mov ecx, 0x2710
jmp 0x405740
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x40575a
mov edx, 0x3e8
jmp 0x405763
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push 0
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x405791
xor eax, eax
jmp 0x4057a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4057a5
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x4057d1
cmp dword [ebp - 0x18], edi
jbe 0x4057b5
call esi
mov edi, dword [ebp - 0x18]
mov ebx, eax
jmp 0x4057be
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x14]
ja 0x4057e4
mov eax, dword [ebp + 8]
mov ecx, 0x2710
cmp dword [ebp - 0x28], eax
jne 0x405740
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
Function at 0x406590
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
push 0xf0000000
push 0x18
push 0
push 0
push eax
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x406645
cmp eax, 1
jne 0x406645
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x800c
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x406645
push 0
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x406625
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x20
push eax
push esi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x406625
push dword [ebp - 8]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40665a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40663a
movzx esi, si
or esi, 0x80070000
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x40665a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40665a
movzx esi, si
or esi, 0x80070000
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40666a
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret

Function at 0x406ab0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406ad2
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x406ad2
cmp eax, 0x80010106
jne 0x406b73
push 0
push 0
push 0
push 3
push 1
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [esi + 0x10], 1
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x406afc
cmp eax, 0x80010119
jne 0x406b73
mov ecx, dword [esi]
test ecx, ecx
je 0x406b0e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
push esi
push 0x425778
push 1
push 0
push 0x425848
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x406b73
mov ecx, dword [esi + 4]
push edi
lea edi, [esi + 4]
test ecx, ecx
je 0x406b3e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], 0
mov eax, dword [esi]
push edi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push str.rootCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x406b72
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
pop edi
pop esi
ret 4
Function at 0x4074e0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov edi, ecx
lea eax, [ebp - 8]
xor esi, esi
push eax
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call ebx
test eax, eax
jne 0x407525
cmp dword [ebp - 0x10], esi
jne 0x407525
mov esi, 0x800704c6
jmp 0x4075cc
mov ecx, edi
call fcn.004073e0
push 0
push 0
push 0
push 0
push str.DeviceHealth_HttpUtil_
mov dword [edi + 0x240], esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 4], eax
test eax, eax
jne 0x40755f
call ebx
mov esi, eax
test esi, esi
jle 0x4075cc
movzx esi, si
or esi, 0x80070000
jmp 0x4075cc
lea eax, [edi + 0x1a]
push eax
lea ecx, [edi + 0x18]
push ecx
mov ecx, dword [ebp - 0xc]
lea eax, [edi + 0x14]
lea edx, [edi + 0x10]
push eax
call fcn.00406e50
add esp, 0xc
test al, al
je 0x4075cc
movzx eax, word [edi + 0x18]
push 0
push eax
push dword [edi + 0x10]
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 8], eax
test eax, eax
je 0x4075ad
cmp byte [edi + 0x1a], 0
mov dword [edi + 0x1c], 0x148
je 0x4075c2
mov dword [edi + 0x1c], 0x800148
jmp 0x4075c2
call ebx
mov esi, eax
test esi, esi
jle 0x4075c0
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4075cc
push dword [ebp - 0xc]
mov ecx, edi
call fcn.00408170
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
Function at 0x4076b0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x4077cb
push esi
call fcn.004077e0
mov esi, eax
test esi, esi
js 0x40776c
push ebx
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x16
push dword [edi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40771c
call ebx
cmp eax, 0x7a
je 0x40771c
call ebx
mov esi, eax
test esi, esi
jle 0x40771e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4077ac
mov eax, dword [ebp - 8]
mov dword [edi + 0x20], eax
test eax, eax
je 0x407799
push eax
call fcn.0040f9c1
add esp, 4
mov dword [edi + 0x24], eax
test eax, eax
je 0x40777c
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push 0x16
push dword [edi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x407799
call ebx
test eax, eax
jle 0x407764
movzx eax, ax
or eax, 0x80070000
mov dword [edi + 0x20], 0
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
pop ebx
pop esi
mov dword [edi + 0x20], 0
mov eax, 0x8007000e
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
pop ebx
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
call ebx
test eax, eax
jle 0x40776b
pop ebx
movzx eax, ax
pop esi
or eax, 0x80070000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret

Function at 0x4077e0
Capabilities:
Check http status code
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 8]
mov dword [ecx + 0x244], 0x190
push eax
lea esi, [ecx + 0x244]
mov dword [ebp - 8], 4
push esi
push 0
push 0x20000013
push dword [ecx + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x407851
mov eax, dword [esi]
cmp eax, 0x190
jae 0x40783d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
or eax, 0x80190000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407863
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
Function at 0x407880
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0xc], eax
lea ebx, [esi + 0x2c]
lea ecx, [ecx]
push ebx
push dword [esi + 0xc]
mov dword [ebx], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4079e5
mov eax, dword [ebx]
test eax, eax
je 0x4079d1
inc eax
push eax
call fcn.0040f9c1
mov edi, eax
add esp, 4
test edi, edi
je 0x4079bb
mov eax, dword [ebx]
inc eax
push eax
push 0
push edi
call fcn.00411350
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebx]
push edi
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4079e5
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4079d1
mov edx, dword [esi + 0x30]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x407922
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], ecx
jmp 0x40799d
mov eax, dword [esi + 0x28]
inc eax
add eax, ecx
push eax
call fcn.0040f9c1
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
test edx, edx
je 0x40797b
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x28]
inc ecx
add eax, ecx
push eax
push 0
push edx
call fcn.00411350
push dword [esi + 0x28]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.004113e0
push dword [ebp - 0x14]
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x10]
push edi
push eax
call fcn.004113e0
mov eax, dword [ebp - 0x14]
add esp, 0x24
add dword [esi + 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x30], eax
jmp 0x407989
mov dword [ebp - 0xc], 0x8007000e
mov dword [esi + 0x28], 0
push dword [ebp - 0x18]
call fcn.0041089a
push edi
call fcn.0041089a
mov eax, dword [ebp - 0xc]
add esp, 8
cmp dword [ebx], 0
jbe 0x4079ea
test eax, eax
jns 0x4078a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret
Function at 0x407a00
Capabilities:
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0041c500
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov esi, ecx
jmp 0x407a30
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2008], 0
push eax
push dword [esi + 0xc]
call edi
test eax, eax
je 0x407ab2
cmp dword [ebp - 0x2008], 0
jbe 0x407a9d
lea eax, [ebp - 0x2008]
push eax
push 0x2000
lea eax, [ebp - 0x2004]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x407ab2
push 0
lea eax, [ebp - 0x2008]
push eax
push dword [ebp - 0x2008]
lea ecx, [ebp - 0x2004]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407ab2
cmp dword [ebp - 0x2008], 0
ja 0x407a30
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 4
Function at 0x407ad0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [edi + 4], 0
je 0x407aee
cmp dword [edi + 8], 0
jne 0x407af4
push eax
call fcn.004074e0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x407bec
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x407b38
call esi
test eax, eax
jle 0x407b30
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x407bec
jmp 0x407b3b
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x38]
xor esi, esi
mov edx, 0x104
sub ebx, ecx
jmp 0x407b50
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x407b6e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x407b6e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x407b50
jmp 0x407b72
test edx, edx
jne 0x407b7a
sub ecx, 2
mov esi, 0x8007007a
xor eax, eax
mov word [ecx], ax
test esi, esi
js 0x407be3
xor ebx, ebx
cmp dword [edi + 0x24c], eax
jbe 0x407bcf
cmp ebx, dword [edi + 0x24c]
jae 0x407c41
cmp dword [edi + 4], 0
mov eax, dword [edi + 0x248]
je 0x407c2d
push 0
push 0
push 0
push dword [eax + ebx*4]
mov ecx, edi
call fcn.00408420
mov esi, eax
test esi, esi
js 0x407c32
push dword [edi + 0x34]
mov ecx, edi
call fcn.00407a00
mov esi, eax
test esi, esi
js 0x407c32
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x34], 0xffffffff
test esi, esi
jns 0x407c22
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
call esi
mov esi, eax
mov dword [edi + 0x240], esi
test esi, esi
jle 0x407c03
movzx esi, si
or esi, 0x80070000
test ebx, ebx
je 0x407c18
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, 0x80004005
inc ebx
cmp ebx, dword [edi + 0x24c]
jb 0x407b99
jmp 0x407bcf
push 0x80070057
call fcn.00401070
int3
Function at 0x407c50
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x10]
test al, 2
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0
movdqu xmmword [ebp - 0x1c], xmm0
push 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
push 0
push 1
cmovne eax, ecx
movq qword [ebp - 0xc], xmm0
push str.DeviceHealth_HttpUtil_
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x407cea
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
push esi
call ebx
test eax, eax
jne 0x407cf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2eef
jne 0x407cea
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 1
push eax
push dword [ebp - 0x20]
push esi
call ebx
test eax, eax
jne 0x407cf8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test esi, esi
je 0x407d03
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret 0x10