joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412210
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x459420
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x41232b
push esi
push edi
or edi, 0xffffffff
mov edi, edi
mov eax, dword [section..data]
inc edi
mov ecx, section..data
mov dword [ebp - 0x14], edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x40
or eax, ecx
jge 0x41229d
push 0x40
lea ecx, [ebp + 8]
call fcn.00401e30
mov esi, dword [ebp + 8]
push 0x40
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.0043cf47
add esp, 8
test eax, eax
js 0x412344
cmp eax, dword [esi - 8]
jg 0x412344
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], 0xa
jbe 0x4122f4
push 0xa
push str.bfappstore
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4122f4
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00401530
mov esi, dword [ebp + 8]
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 0x412315
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
mov edi, dword [ebp - 0x14]
je 0x412260
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
mov ecx, dword [ebp - 0xc]
sar eax, 2
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401fd0
int3
Function at 0x412ac0
Capabilities:
Check if file exists
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsBFVKanDianYing.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x412c27
cmp dword [ebp - 8], 1
jne 0x412c27
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x224]
push eax
call esi
test eax, eax
je 0x412c27
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x459c50
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x224]
push eax
call esi
test eax, eax
je 0x412c27
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412c27
push 0
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 8
jbe 0x412bdd
push 0
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412bd5
cmp dword [ebp - 8], 8
je 0x412bdd
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, edi
sar eax, 0x1f
mov ecx, edi
sar ecx, 0x10
mov eax, edi
sar eax, 0x1f
mov word [esi], cx
mov ecx, edx
mov eax, edi
shrd ecx, eax, 0x10
sar eax, 0x10
mov word [esi + 6], dx
or edx, edi
mov word [esi + 2], di
mov word [esi + 4], cx
je 0x412c27
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x412c40
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.0043da70
add esp, 0xc
cmp dword [0x467194], 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 0x412cba
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x412caf
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 0x412ea0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x412ed4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412ed2
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret

Function at 0x413020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov ebx, edx
mov dword [ebp - 4], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x413034
sub esi, edx
sar esi, 1
lea eax, [esi*2 + 2]
push eax
push edi
push 1
push dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
cmp esi, 5
jne 0x4130a9
sub esp, 8
push ebx
push dword [ebp - 4]
call fcn.004139f0
test eax, eax
je 0x4130a9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413075
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
mov edi, dword [ebp - 4]
push 1
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub esp, 8
mov esi, eax
push ebx
push edi
call fcn.00413aa0
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4130c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push edi
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41313f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41313f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41313f
sub esp, 8
mov edx, 0x40000000
push 0
push 2
push ecx
mov ecx, dword [ebp - 4]
push 0
call fcn.00412d90
mov esi, eax
cmp esi, 0xffffffff
je 0x41313f
push 0
lea eax, [ebp + 8]
push eax
push ebx
push edi
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4131c0
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 0x4131e5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
call fcn.0043b0fb
mov esi, eax
add esp, 4
test esi, esi
jne 0x4131fe
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 0x413254
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x458470
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edi, eax
test edi, edi
je 0x413254
cmp dword [ebp + 8], 0x34
jne 0x413254
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.0043b668
add esp, 4
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413270
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450308
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.0043da70
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.0040a530
mov esi, dword [ebp - 0x10]
add esp, 0xc
test esi, esi
je 0x41334f
cmp word [esi], 0
je 0x41334f
xorps xmm0, xmm0
push esi
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.004131c0
test eax, eax
je 0x41334f
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.0043c377
add esp, 0x20
mov edi, 1
jmp 0x413351
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 0x413372
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 0x413390
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.0043da70
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0043da70
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.0043c377
add esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 4]
push eax
push 0x457cf0
lea eax, [ebp - 0x420]
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x218], 0
je 0x41348a
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 8]
movq qword [ebp - 8], xmm0
call fcn.004131c0
test eax, eax
je 0x41348a
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.0043c377
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 0x4139f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xa0c
add eax, 0x80000000
push esi
cmp eax, 3
ja case.default.0x413a07
jmp dword [eax*4 + 0x413a88]
mov esi, str.CLASSES_ROOT
jmp 0x413a28
mov esi, str.CURRENT_USER
jmp 0x413a28
mov esi, str.MACHINE
jmp 0x413a28
mov esi, str.USERS
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp + 8], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [ebp + 0xc]
lea eax, [ebp - 0xa08]
push esi
push str._s_s
push 0x800
push eax
call fcn.0043d354
add esp, 0x14
lea eax, [ebp - 0x208]
push 0xf003f
push eax
push 2
push ecx
lea eax, [ebp - 0xa08]
push eax
call fcn.00413900
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x413aa0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xa0c
add eax, 0x80000000
push esi
cmp eax, 3
ja case.default.0x413ab7
jmp dword [eax*4 + 0x413b38]
mov esi, str.CLASSES_ROOT
jmp 0x413ad8
mov esi, str.CURRENT_USER
jmp 0x413ad8
mov esi, str.MACHINE
jmp 0x413ad8
mov esi, str.USERS
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x208]
push eax
mov dword [ebp + 8], 0x202
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [ebp + 0xc]
lea eax, [ebp - 0xa08]
push esi
push str._s_s
push 0x800
push eax
call fcn.0043d354
add esp, 0x14
lea eax, [ebp - 0x208]
push 2
push eax
push 3
push ecx
lea eax, [ebp - 0xa08]
push eax
call fcn.00413900
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416190
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x450648
push eax
mov eax, 0x123c
mov dword fs:[0], esp
call fcn.00445360
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x1c]
call fcn.00401d00
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4161dc
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.0043da70
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1248], ax
lea eax, [ebp - 0x1246]
push eax
call fcn.0043da70
push 0x3c
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0043da70
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 0x4161c5
xor eax, eax
cmp ax, word [ebp - 0x1248]
jne 0x41627b
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.00416bd0
mov esi, dword [ebp + 8]
push 0
push 0
test al, al
je 0x4162ae
push esi
push 3
jmp 0x4162b2
push 0
push 0
push str.Mozilla_4.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [edi + 8], eax
test ecx, ecx
je 0x4162d5
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 0x4162f7
cmp eax, 1
jne 0x4162e9
lea ecx, [eax + 0x4f]
jmp 0x4162f3
cmp eax, 2
jne 0x4162f7
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 0x416308
xor ecx, ecx
jmp 0x416323
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416310
sub ecx, ebx
sar ecx, 1
lea eax, [edi + 0x14]
pop ebx
push ecx
push edx
mov ecx, eax
call fcn.00401ea0
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 0x416364
push dword [ebp - 0x1c]
lea ecx, [edi + 0x18]
call fcn.00401f60
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 0x416369
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 0x41638a
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 0x416450
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x416463
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 0x416500
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 0x41651b
mov eax, 0x80070006
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x416530
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 0x416588
push 0x20000000
push 0xffffffffffffffff
push ecx
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x4165a9
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 0x416632
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f8f
jne 0x41665c
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 0x41661b
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 0x41665c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x41665c
push 0
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x41665c
mov ecx, esi
call fcn.004167b0
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 0x416670
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 0x416720
mov eax, dword [esi + 0x10]
test eax, eax
je 0x416696
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 0x416720
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 0x4166e8
push 0x20000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x416720
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 0x416720
push 0
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x416720
mov ecx, esi
call fcn.004167b0
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 0x4167b0
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.0043da70
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 0x416811
lea eax, [ebp - 0x108]
push eax
call fcn.0043cd6b
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.0043da70
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 0x416853
lea eax, [ebp - 0x48]
push eax
call fcn.0043cd6b
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.0043da70
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 0x4168ac
push str.gzip
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4168ac
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.0043da70
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 0x416940
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00445360
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4169b8
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 0x4169b8
cmp word [ebp - 0x1004], 0x2f
lea eax, [ebp - 0x1004]
push eax
jne 0x4169a7
push dword [esi + 0x14]
push str.http:___s_s
push dword [ebp + 8]
call fcn.0040a530
add esp, 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
call fcn.00401f60
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 0x416a30
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 0x416aa9
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
mov dword [ebp - 4], 0x40
call fcn.0043da70
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 0x416aa7
push str.chunked
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x416aa7
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret