joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4879d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
jne 0x4879ec
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x4879fd
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x487a0b
push edi
call fcn.00487df0
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push edi
call fcn.004877d0
add esp, 0x10
test eax, eax
je 0x487a33
pop edi
pop esi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push 0x84
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x487a52
pop edi
pop esi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call sub.MFC42.DLL_operatornew
mov dword [esi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x487a8b
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x487ad9
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00486550
add esp, 4
test eax, eax
jne 0x487ad9
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x487b06
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x487b12
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
neg cl
sbb ecx, ecx
mov dword [ebx], 0x12345678
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], 0x34567890
je 0x487b53
mov al, byte [ebp]
test al, al
je 0x487b53
push eax
push ebx
call fcn.004862a0
add esp, 8
inc ebp
jne 0x487b3f
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
pop ebp
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x487f30
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x488012
cmp dword [ebp + 4], 0xffffffff
jne 0x488012
push ebx
lea ebx, [ebp + 0x13c]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13b]
cmp cl, 0x5c
je 0x487fa2
cmp cl, 0x2f
je 0x487fa2
mov edi, 0x519238
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x487fce
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x487fce
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.00486a70
add esp, 0x10
test eax, eax
jne 0x487ff1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00487040
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x488610
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [esp + 0x214]
mov al, byte [esi]
test al, al
je 0x4886e2
push ebx
push ebp
push edi
mov ebx, esi
mov ecx, esi
cmp al, 0x2f
je 0x488637
cmp al, 0x5c
jne 0x488639
mov ebx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x48862f
mov ebp, dword [esp + 0x21c]
cmp ebx, esi
mov edx, ebx
je 0x48867c
mov eax, ebx
lea edi, [esp + 0x10]
sub eax, esi
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00488610
add esp, 8
lea edx, [ebx + 1]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x208
ret
Function at 0x48a970
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6fd1
push eax
mov eax, 0x1090
mov dword fs:[0], esp
call fcn.00460380
push ebx
push esi
xor esi, esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x10b0]
lea ecx, [esp + 0xc]
push eax
mov ebx, 1
push 0x5191dc
push ecx
mov dword [esp + 0x10b0], ebx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
push reloc.OLEAUT32.dll_SysReAllocString
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x539050
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x1c]
mov edi, esp
mov dword [esp + 0x2c], esp
push ecx
mov byte [esp + 0x10b8], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_4
push edi
call fcn.0048a5e0
add esp, 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x10b4], bl
call fcn.00460a60
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x10a8], 3
call fcn.00460dd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x10a4], 4
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x14]
mov byte [esp + 0x10a4], 6
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0x539050
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x48aa84
mov esi, dword [esp + 0x10ac]
push 0x539050
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], ebx
jmp 0x48aad6
mov eax, dword [0x56e86c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
push ecx
push eax
push esi
mov ecx, 0x56e86c
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x50]
call fcn.0046fc80
push esi
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x10b4]
lea ecx, [esp + 0x4c]
push esi
call fcn.00470fa0
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x10a4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x10a4], bl
call fcn.00460be0
lea ecx, [esp + 0xc]
mov byte [esp + 0x10a4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x109c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x109c
ret
Function at 0x48da10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x56e7fc]
test al, 1
jne 0x48da58
mov dl, al
mov eax, dword [0x56e88c]
or dl, 1
test eax, eax
mov byte [0x56e7fc], dl
jne 0x48da53
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x48da44
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
jne 0x48da50
mov dword [0x56e7f8], 0
jmp 0x48da58
mov eax, dword [eax + 0x20]
mov dword [0x56e7f8], eax
jmp 0x48da6a
cmp dword [0x5329ec], 0x63
jne 0x48daac
mov ecx, dword [0x56e7f8]
push esi
mov esi, dword [ebp + 8]
mov dword [0x5329ec], 0
push esi
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [0x56e7f8]
push 0
push 0x36ee80
push esi
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
pop esi
pop ebp
ret
push 0
call fcn.0048dba0
mov eax, dword [0x56e88c]
add esp, 4
test eax, eax
je 0x48dad6
mov ecx, dword [0x56e834]
push ecx
push 0xfffffffffffffffc
push 0x5f5
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x48db1f
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x48db10
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
je 0x48db10
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x48dafc
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x48dafe
xor eax, eax
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x48db1f
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x48db2f
xor eax, eax
pop ebp
ret

Function at 0x492ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b781b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4fc3c0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x492b70
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x492b37
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x492b61
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x492b76
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x492b76
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4babf4
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4ba6e8
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045f9b2
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x494650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b79a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x539050
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ebx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4946cf
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x539050
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x40]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x40], 1
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x494725
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov edi, dword [ecx + 0xbc]
lea esi, [ecx + 0xb8]
mov ecx, esi
mov edx, dword [edi + 4]
push edx
push edi
call fcn.00496560
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x14]
mov dword [ecx], eax
add eax, 8
push edx
push eax
call fcn.00496590
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 8
inc edx
mov dword [esi + 8], edx
mov esi, dword [eax + 0xc0]
dec esi
cmp ecx, ebx
je 0x49479c
mov al, byte [ecx - 1]
cmp al, bl
je 0x494792
cmp al, 0xff
je 0x494792
dec al
mov byte [ecx - 1], al
jmp 0x49479c
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x4a23a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8231
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push ecx
push ebx
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004a31f0
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], edx
je 0x4a244b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a2442
cmp al, 0xff
je 0x4a2442
dec al
mov byte [ecx], al
jmp 0x4a244b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4a247c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4a2473
cmp al, 0xff
je 0x4a2473
dec al
mov byte [ecx], al
jmp 0x4a247c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x402790
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4027bd
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [esi + 4], 0
xor eax, eax
pop esi
ret
Function at 0x4043a4
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 8]
push esi
mov ebx, ecx
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4044b6
push dword [ebp + 8]
lea ecx, [ebx + 8]
call fcn.004147e0
cmp dword [ebx + 0x14], esi
mov dword [ebp - 4], esi
jne 0x4044ad
jmp 0x4043e5
xor esi, esi
push esi
push esi
push esi
push esi
push str.StubInstaller
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, esi
mov dword [ebx], eax
je 0x4044b6
cmp byte [ebx + 0xf], 0xff
lea ecx, [ebx + 8]
jne 0x404409
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
push esi
neg edx
sbb edx, edx
and edx, 0xffe00000
add edx, 0x200000
or edx, 0x80000000
push edx
push esi
push esi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edx, eax
cmp edx, esi
mov dword [ebx + 4], edx
je 0x4044b6
cmp dword [ebp + 0xc], esi
jne 0x4044ad
mov esi, str.Location
lea edi, [ebp - 0x408]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xfd
xor eax, eax
lea edi, [ebp - 0x3ff]
mov dword [ebp - 4], 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x408]
push eax
push 0xffff
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x4044ad
lea eax, [ebp - 0x408]
lea ecx, [ebx + 8]
push eax
call fcn.004147e0
push dword [ebx + 4]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebx]
mov dword [ebx + 4], edi
call esi
cmp dword [ebx + 0x14], edi
mov dword [ebx], edi
je 0x4043e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, 0x80004005
jmp 0x4044af
Function at 0x405055
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc60
push ebx
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [ebp - 8]
push 4
push eax
xor esi, esi
push 2
mov dword [ebp - 0x1c], ecx
push esi
mov dword [ebp - 8], 0x7530
call edi
lea eax, [ebp - 8]
push 4
push eax
push 6
push esi
call edi
lea eax, [ebp - 8]
push 4
push eax
push 5
push esi
call edi
push 0x3c
lea eax, [ebp - 0x60]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x860]
mov dword [ebp - 0x50], eax
mov eax, 0x400
add esp, 0xc
cmp byte [ebx + 7], 0xff
lea ecx, [ebp - 0xc60]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x34], ecx
mov eax, ebx
jne 0x4050d2
mov eax, dword [ebx]
lea ecx, [ebp - 0x60]
push ecx
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push esi
push esi
push str.StubInstaller
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x4051a3
push esi
push esi
push 3
push esi
push esi
lea ecx, [ebp - 0x860]
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, esi
mov dword [ebp - 0x24], eax
je 0x40519e
push esi
lea ecx, [ebp - 0x14]
push esi
push ecx
push esi
lea ecx, [ebp - 0xc60]
push esi
push ecx
push str.HEAD
push eax
mov dword [ebp - 0x14], 0x43e3fc
mov dword [ebp - 0x10], esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x405199
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x405194
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 4]
push eax
push 0x20000013
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 4], 0xc8
jae 0x40518d
cmp dword [ebp - 4], 0x190
jae 0x405194
mov dword [ebp - 0xc], 1
push dword [ebp + 0xc]
call edi
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x18]
call edi
mov al, byte [0x441880]
mov ecx, 0xff
mov byte [ebp - 0x460], al
xor eax, eax
lea edi, [ebp - 0x45f]
cmp byte [ebx + 7], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x4051c8
mov ebx, dword [ebx]
mov eax, dword [ebp + 8]
cmp byte [eax + 7], 0xff
jne 0x4051d3
mov eax, dword [eax]
push dword [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x460]
push str.Package_URL___s____s__Status_Code___d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x460]
lea ecx, [ebp - 0x14]
push eax
call fcn.004146d0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
call fcn.0040521a
lea ecx, [ebp - 0x14]
call fcn.004146c0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405253
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x405290
cmp byte [edi + 7], 0xff
mov ecx, edi
jne 0x405277
mov ecx, dword [edi]
push ecx
push str._s_r_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
push dword [esi + 8]
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x10
cmp dword [esi + 0x24], 6
je 0x405392
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [ebp + 8]
push 4
push eax
push 2
push ebx
mov dword [ebp + 8], 0x7530
call esi
lea eax, [ebp + 8]
push 4
push eax
push 6
push ebx
call esi
lea eax, [ebp + 8]
push 4
push eax
push 5
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
push str.StubInstaller
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x405392
cmp byte [edi + 7], 0xff
jne 0x4052ea
mov edi, dword [edi]
push ebx
push SysReAllocStringLen
push ebx
push ebx
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x40530e
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x405392
push 4
lea eax, [ebp - 0x10]
pop edi
mov dword [ebp - 4], ebx
push ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], edi
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x405347
cmp dword [ebp - 0x10], edi
jne 0x405392
cmp dword [ebp - 4], 0xc8
jb 0x405392
cmp dword [ebp - 4], 0x190
jae 0x405392
mov al, byte [0x441880]
mov ecx, 0x100
mov byte [ebp - 0x414], al
xor eax, eax
lea edi, [ebp - 0x413]
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x414]
push 0x400
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x405384
cmp dword [ebp - 8], ebx
jne 0x405347
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call edi
push dword [ebp - 0xc]
call edi
pop edi
pop esi
pop ebx
leave
ret 4