joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, 1
push esi
mov esi, ecx
mov eax, dword [esi]
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x208
or edx, eax
jge 0x40eb49
push 0x208
call fcn.00401740
push edi
mov edi, dword [esi]
push 0x410
push 0
push edi
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push str.Path
push 0x45e470
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x410
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40ebbc
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push str.Path
push 0x45e470
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40ebc3
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [esi]
pop edi
test eax, eax
jne 0x40ebce
xor ecx, ecx
jmp 0x40ebe0
push dword [eax - 8]
push eax
call fcn.0043e3ad
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40ec0a
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40ec0a
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x40ec05
mov ecx, esi
call fcn.00401610
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004018e0
int3

Function at 0x40ec50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x40ec75
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
call fcn.0043c71a
mov esi, eax
add esp, 4
test esi, esi
jne 0x40ec8e
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov edi, eax
test edi, edi
je 0x40ece4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x45bf80
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edi, eax
test edi, edi
je 0x40ece4
cmp dword [ebp + 8], 0x34
jne 0x40ece4
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + 0xa]
mov word [ebx], ax
movzx eax, word [ecx + 8]
mov word [ebx + 2], ax
movzx eax, word [ecx + 0xe]
mov word [ebx + 4], ax
movzx eax, word [ecx + 0xc]
mov word [ebx + 6], ax
push esi
call fcn.0043ca9f
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed00
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
mov edi, ecx
call fcn.0043f760
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10]
push str._sInternet_Exploreriexplore.exe
push eax
call fcn.004012e0
mov esi, dword [ebp - 0x10]
add esp, 0xc
test esi, esi
je 0x40eddf
cmp word [esi], 0
je 0x40eddf
xorps xmm0, xmm0
push esi
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.0040ec50
test eax, eax
je 0x40eddf
mov ecx, dword [ebp - 0x14]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
mov ecx, dword [ebp - 0x18]
push eax
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
push str._d._d._d._d
push 0xffffffffffffffff
push 0x103
push edi
call fcn.0043d649
add esp, 0x20
mov edi, 1
jmp 0x40ede1
xor edi, edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ee02
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ee20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov esi, ecx
call fcn.0043f760
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x420]
push str.D27CDB6E_AE6D_11cf_96B8_444553540000
push str.CLSID_sInprocServer32
push 0xffffffffffffffff
push 0x104
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], 0x104
call fcn.0043d649
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 4]
push eax
push 0x45bf7c
lea eax, [ebp - 0x420]
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x218], 0
je 0x40ef1a
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 8]
movq qword [ebp - 8], xmm0
call fcn.0040ec50
test eax, eax
je 0x40ef1a
mov ecx, dword [ebp - 4]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
mov ecx, dword [ebp - 8]
push eax
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
push str._d._d._d._d
push 0xffffffffffffffff
push 0x103
push esi
call fcn.0043d649
add esp, 0x20
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40efb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40f014
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40f020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.0043f760
add esp, 0xc
cmp dword [0x46fb8c], 6
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x40f09a
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40f08f
push ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x411e30
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x454998
push eax
mov eax, 0x123c
mov dword fs:[0], esp
call fcn.00447f00
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x1c]
call fcn.00401610
mov esi, dword [ebp + 8]
test esi, esi
jne 0x411e7c
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x246]
push eax
call fcn.0043f760
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1248], ax
lea eax, [ebp - 0x1246]
push eax
call fcn.0043f760
push 0x3c
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0043f760
lea eax, [ebp - 0x248]
mov dword [ebp - 0x38], eax
add esp, 0x24
lea eax, [ebp - 0x1248]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x48]
push eax
push 0
push esi
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x34], 0x100
mov dword [ebp - 0x18], 0x800
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x411e65
xor eax, eax
cmp ax, word [ebp - 0x1248]
jne 0x411f1b
mov dword [ebp - 0x1248], 0x2f
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 0
call fcn.00412c10
mov esi, dword [ebp + 8]
push 0
push 0
test al, al
je 0x411f4e
push esi
push 3
jmp 0x411f52
push 0
push 0
push 0x45ea04
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [edi + 8], eax
test ecx, ecx
je 0x411f75
push 4
lea eax, [edi + 4]
push eax
push 3
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp word [ebp - 0x30], 0
mov eax, dword [ebp - 0x3c]
jne 0x411f97
cmp eax, 1
jne 0x411f89
lea ecx, [eax + 0x4f]
jmp 0x411f93
cmp eax, 2
jne 0x411f97
mov ecx, 0x1bb
mov word [ebp - 0x30], cx
mov edx, dword [ebp - 0x38]
mov dword [edi + 0x34], eax
lea eax, [edi + 0x14]
test edx, edx
jne 0x411fa8
xor ecx, ecx
jmp 0x411fc3
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411fb0
sub ecx, ebx
sar ecx, 1
lea eax, [edi + 0x14]
pop ebx
push ecx
push edx
mov ecx, eax
call fcn.004017b0
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x38]
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 0xc], eax
test eax, eax
je 0x412004
push dword [ebp - 0x1c]
lea ecx, [edi + 0x18]
call fcn.00401870
mov eax, dword [edi + 4]
push eax
push eax
push eax
push 0
push dword [edi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
xor edi, edi
jmp 0x412009
mov edi, 0x80004005
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41202a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4120f0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x412103
mov eax, 0x80004005
pop ebp
ret 0xc
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffff
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop ebp
ret 0xc

Function at 0x4121a0
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x4121bb
mov eax, 0x80070006
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4121d0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x10], 0
push edi
push 0x800040
push 0
push 0
push 0
push dword [esi + 0x18]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push 4
lea ecx, [ebp - 8]
push ecx
push 0x58
push eax
mov dword [esi + 0x10], eax
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp dword [ecx - 0xc], 0
je 0x412228
push 0x20000000
push 0xffffffffffffffff
push ecx
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x412249
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x10]
call edi
mov edi, eax
test edi, edi
jne 0x4122d2
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f8f
jne 0x4122fc
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x800040
push 0
push 0
push 0
push dword [esi + 0x18]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x1f
push eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x4122bb
or dword [ebp - 4], 0x3300
push 4
lea eax, [ebp - 4]
push eax
push 0x1f
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x10]
call edi
mov edi, eax
test edi, edi
je 0x4122fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4122fc
push 0
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4122fc
mov ecx, esi
call fcn.00412450
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 0x80070006
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x412310
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4123c0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x412336
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x10], 0
push 0x40
push 0
push 0
push 0
push dword [esi + 0x18]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x10], eax
test eax, eax
je 0x4123c0
push 4
lea ecx, [ebp - 4]
push ecx
push 0x58
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [esi + 0x1c]
cmp dword [eax - 0xc], 0
je 0x412388
push 0x20000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x4123c0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4123c0
push 0
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4123c0
mov ecx, esi
call fcn.00412450
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x412450
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push esi
push edi
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x108], ax
lea eax, [ebp - 0x106]
push eax
mov esi, ecx
mov dword [ebp - 8], 0x40
call fcn.0043f760
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 5
push dword [esi + 0x10]
call edi
test eax, eax
je 0x4124b1
lea eax, [ebp - 0x108]
push eax
call fcn.0043e3cc
add esp, 4
mov dword [esi + 0x20], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x13
push dword [esi + 0x10]
mov dword [ebp - 4], 0x20
call edi
test eax, eax
je 0x4124f3
lea eax, [ebp - 0x48]
push eax
call fcn.0043e3cc
add esp, 4
mov dword [esi + 0x24], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x88]
push eax
push 0
push 0x1d
push dword [esi + 0x10]
mov dword [ebp - 4], 0x20
call edi
test eax, eax
je 0x41254c
push str.gzip
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x41254c
mov dword [esi + 0x2c], 1
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x188], ax
lea eax, [ebp - 0x186]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x188]
push eax
push 0
push 1
push dword [esi + 0x10]
mov dword [ebp - 4], 0x40
call edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4125e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00447f00
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x412658
push 0
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
push 0
push 0x21
push eax
mov dword [ebp - 4], 0x800
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x412658
cmp word [ebp - 0x1004], 0x2f
lea eax, [ebp - 0x1004]
push eax
jne 0x412647
push dword [esi + 0x14]
push str.http:___s_s
push dword [ebp + 8]
call fcn.004012e0
add esp, 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
call fcn.00401870
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4126c0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x412830
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x4000000a
push eax
mov dword [esp + 0x24], 0x10
call edi
test eax, eax
je 0x412723
push dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x412830
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 0xfe
push eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push eax
call fcn.0043f760
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x31
push dword [esi + 0x10]
mov dword [esp + 0x24], 0x100
call edi
test eax, eax
je 0x412830
push str.max_age
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x41277b
add eax, 0x10
jne 0x41279c
push str.s_maxage
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x412830
add eax, 0x12
je 0x412830
lea ecx, [esp + 0x10]
push ecx
xorps xmm0, xmm0
push str._lld
push eax
movlpd qword [esp + 0x1c], xmm0
call fcn.0043e3e9
add esp, 0xc
test eax, eax
je 0x412830
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
je 0x412830
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x40000009
push dword [esi + 0x10]
mov dword [esp + 0x24], 0x10
call edi
test eax, eax
je 0x412830
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
push 0
push 0x989680
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0044d9c0
add esi, eax
mov eax, dword [ebp + 8]
adc edi, edx
test eax, eax
je 0x412830
mov dword [eax], esi
mov dword [eax + 4], edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x412840
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
xor eax, eax
push esi
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x4128b9
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
mov dword [ebp - 4], 0x40
call fcn.0043f760
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 0x3f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4128b7
push str.chunked
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4128b7
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push str.ProxyEnable
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
mov dword [ebp - 4], 4
call edi
cmp dword [ebp - 0xc], 0
jne 0x412c5e
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0x208
mov eax, dword [esi]
mov dword [ebp - 8], 1
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x412c92
push 0x104
mov ecx, esi
call fcn.00401740
mov ecx, dword [esi]
cmp dword [ecx - 8], 0x104
jl 0x412d1b
mov dword [ecx - 0xc], 0x104
mov eax, dword [esi]
xor edx, edx
mov word [eax + 0x208], dx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push str.ProxyServer
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call edi
mov edi, eax
mov eax, dword [esi]
test eax, eax
jne 0x412cd5
xor ecx, ecx
jmp 0x412ce7
push dword [eax - 8]
push eax
call fcn.0043e3ad
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x412d1b
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x412d1b
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
test edi, edi
jne 0x412d10
mov eax, dword [esi]
cmp dword [eax - 0xc], edx
jne 0x412d0e
pop esi
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
test edi, edi
pop esi
sete al
pop edi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004018e0
int3

Function at 0x412f00
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x412f0e
mov eax, dword [esi]
call dword [eax + 0x10]
push 0
push 1
push 2
mov word [esi + 0x14], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x412f2f
mov eax, 0x80004005
pop esi
ret
mov eax, dword [esi]
push 0x2710
mov ecx, esi
call dword [eax + 0x34]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
ret