joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
push 0x4a34a8
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x44b5b9
mov dword [ebp - 0x24], 0x80004003
jmp 0x44b67d
lea ecx, [ebp - 0x30]
push ecx
push 0x4987ac
lea edx, [ebp - 0x20]
push edx
call eax
mov dword [ebp - 0x24], eax
cmp eax, ebx
jl 0x44b67d
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
push 0x49874c
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x24], eax
cmp eax, ebx
jl 0x44b67d
mov ecx, dword [ebp - 0x34]
mov esi, dword [ecx]
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x28]
push ecx
lea edi, [esi + 0xc]
push 0x40
add esi, 0x34
push 4
mov dword [ebp - 0x28], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov dword [0x4e1758], edx
mov dword [0x4e175c], eax
call ebx
test eax, eax
jne 0x44b630
mov dword [ebp - 0x24], 0x80004005
jmp 0x44b67d
mov dword [esi], 0x44b3c0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
push edx
push eax
push 4
push esi
mov dword [ebp - 0x2c], 0
call ebx
lea ecx, [ebp - 0x28]
push ecx
push 0x40
push 4
xor esi, esi
push edi
mov dword [ebp - 0x28], esi
call ebx
cmp eax, esi
jne 0x44b667
mov dword [ebp - 0x24], 0x80004005
jmp 0x44b67d
mov dword [edi], 0x44b480
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
push edx
push eax
push 4
push edi
mov dword [ebp - 0x2c], esi
call ebx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x44b690
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x44b6a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret
Function at 0x44c870
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fdc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004739eb
add esp, 4
cmp eax, ebx
je 0x44c954
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004739eb
add esp, 4
cmp eax, ebx
je 0x44c930
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004737c3
push 0x4ac5d0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0047854f
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004737c3
push 0x4ac5d0
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.0047854f
int3
Function at 0x4565f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x456652
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.004563b0
mov ecx, esi
call fcn.00456460
push edi
mov eax, esi
push eax
call fcn.00456540
cmp dword [ebp + 0x1c], 0x10
jb 0x456680
mov ecx, dword [ebp + 8]
push ecx
call fcn.004736d0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret

Function at 0x456b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x4e1798]
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 4], eax
cmp dword [0x4dff28], ebx
jne 0x456bb6
mov dword [0x4dff28], ebx
mov eax, dword [ebp - 4]
push eax
lea ecx, [esi + 0x24]
push ecx
push 0x4dfef8
call fcn.00414f00
mov edx, dword [ebp - 4]
add esp, 0xc
movzx eax, ax
push eax
push ebx
push 0
push 0xcf0000
push 0
xor eax, eax
push eax
push edx
lea eax, [esi + 4]
call fcn.00415180
push 0
push 0
push esi
push 0x456b70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456c10
Capabilities:
Get number of processors
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48fc3b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4b6798]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
mov ecx, ebx
call edx
xor edi, edi
push edi
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push edi
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], 0x12c
mov dword [esp + 0x44], 0xa
mov dword [esp + 0x48], 0x32
mov dword [esp + 0x4c], 0x64
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], 0x1f4
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 0x3e8
xor esi, esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x456dc3
mov edx, dword [ebx + 0x28]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x456dc3
cmp dword [esp + 0x20], 0
je 0x456d81
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456dc3
cmp dword [esp + 0x14], 0
je 0x456dc3
push 0x1c
call fcn.004739eb
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
xor eax, eax
mov dword [esp + 0x58], eax
cmp esi, eax
je 0x456d31
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
inc edi
push eax
mov byte [esi], al
call fcn.004521a0
jmp 0x456d33
xor esi, esi
mov dword [esp + 0x58], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x456d45
mov eax, dword [esi]
jmp 0x456d47
mov eax, esi
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x456dc3
cmp dword [esp + 0x14], 0
je 0x456dc3
mov ecx, dword [ebx + 8]
push esi
push ebx
push 0x8064
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
xor esi, esi
jmp 0x456da3
mov edx, dword [esp + esi*8 + 0x2c]
mov eax, dword [ebx + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x456dc3
cmp esi, 3
je 0x456da3
inc edi
cmp edi, dword [esp + esi*8 + 0x28]
jl 0x456da3
inc esi
xor edi, edi
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x456cb3
mov eax, dword [ebx + 8]
push 0
push ebx
push 0x8065
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004736db
mov esp, ebp
pop ebp
ret 4
Function at 0x456e00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4906ae
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x114
xor edi, edi
lea eax, [ebp - 0x124]
push edi
push eax
mov ebx, ecx
call fcn.0047cc30
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
jae 0x456e72
push ebx
call fcn.00456c10
jmp 0x456f7b
mov edx, dword [ebx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x128]
push eax
push 4
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, ebx
call edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
je 0x456f6a
jmp 0x456ea0
cmp dword [ebp - 0x128], edi
je 0x456f6a
mov eax, dword [ebx + 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x456f6a
push 0x1c
call fcn.004739eb
mov esi, eax
add esp, 4
mov dword [ebp - 0x130], esi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x456ef7
mov eax, dword [ebp - 0x12c]
mov dword [esi + 0x10], edi
push edi
mov dword [esi + 0x14], 0xf
mov edi, eax
mov byte [esi], 0
call fcn.004521a0
xor edi, edi
jmp 0x456ef9
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x456f0a
mov eax, dword [esi]
jmp 0x456f0c
mov eax, esi
mov edx, dword [ebx]
mov edx, dword [edx + 8]
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
mov ecx, ebx
call edx
test eax, eax
je 0x456f6a
cmp dword [ebp - 0x128], edi
je 0x456f6a
mov eax, dword [ebx + 8]
push esi
push ebx
push 0x8064
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x128]
push eax
push 4
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, ebx
call edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jne 0x456ea0
mov eax, dword [ebx + 8]
push edi
push ebx
push 0x8065
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret
Function at 0x4573c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
xor eax, eax
push ebx
push esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x44]
xor ebx, ebx
push eax
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x28]
cmp edi, 0x1000
ja 0x457402
mov edi, 0x1000
mov eax, dword [ebp + 8]
xor edx, edx
div edi
mov dword [ebp - 4], ebx
mov esi, eax
imul esi, edi
cmp dword [ebp + 0xc], esi
jae 0x4574e1
lea ebx, [ebx]
cmp esi, dword [ebp + 0x10]
jae 0x4574e1
push 0x1c
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4574e1
cmp dword [ebp - 0x10], 0x10000
jne 0x457461
cmp dword [ebp - 0x14], edi
jb 0x457461
push 0x40
push 0x3000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x457495
mov ecx, dword [ebp - 4]
lea eax, [ecx + 1]
and ecx, 0x80000001
jns 0x457474
dec ecx
or ecx, 0xfffffffe
inc ecx
neg ecx
sbb ecx, ecx
and ecx, 2
dec ecx
imul ecx, eax
imul ecx, edi
add esi, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
jb 0x457420
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x8d3dcb09
mul edi
shr edx, 6
lea eax, [ebx + 0x74]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], eax
cmp edx, 1
jbe 0x4574d4
lea eax, [ebx + 0xe0]
lea ecx, [edx - 1]
lea ebx, [ebx]
lea esi, [eax - 0xe0]
mov dword [eax], esi
lea esi, [eax + 8]
mov dword [eax + 4], esi
add eax, 0x74
dec ecx
jne 0x4574c0
mov ecx, dword [0x4e176c]
imul edx, edx, 0x74
mov dword [edx + ebx - 4], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4575e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x457694
test esi, esi
je 0x457694
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4576bd
push edi
lea eax, [ebp - 0x2d0]
push eax
push esi
mov dword [ebp - 0x2d0], 0x10001
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4576d5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jb 0x457690
add ecx, dword [ebp + 0x10]
cmp eax, ecx
jae 0x457690
push esi
call ebx
cmp edi, 3
jge 0x4576a3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
push eax
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x457652
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004736db
mov esp, ebp
pop ebp
ret

Function at 0x4576f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x4e1778], esi
jbe 0x457749
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4e1774]
mov ecx, dword [eax + esi*4]
push ecx
call ebx
mov edx, dword [0x4e1774]
mov eax, dword [edx + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x4e1778]
jb 0x457724
pop ebx
mov ecx, dword [0x4e1774]
push ecx
call fcn.00473eae
mov edx, dword [ebp - 4]
add esp, 4
xor eax, eax
push edx
mov dword [0x4e1774], eax
mov dword [0x4e1778], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x457ee0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x78], ax
mov edi, 2
xor ebx, ebx
push 0xa
mov eax, str.localhost:
lea esi, [ebp - 0x78]
mov byte [0x4e1a4d], 1
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x68], ebx
call fcn.00409bc0
mov edx, dword [ebp + 8]
push 0xa
push 0x14
lea ecx, [ebp - 0x38]
push ecx
push edx
mov dword [ebp - 4], ebx
call fcn.004779d1
lea eax, [ebp - 0x38]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x457f62
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x78]
call fcn.004046f0
cmp dword [ebp - 0x64], 8
mov dword [ebp - 0x50], edi
jb 0x457f8e
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x4c], ecx
jmp 0x457f94
lea edx, [ebp - 0x78]
mov dword [ebp - 0x4c], edx
push ebx
push ebx
mov eax, 3
push ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x84], eax
push 1
lea eax, [ebp - 0x5c]
push str.IETAB
mov dword [ebp - 0x40], str.__loopback_
mov dword [ebp - 0x8c], 0x14
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x14
lea ecx, [ebp - 0x8c]
push ecx
mov esi, eax
push 0x4b
push esi
call edi
push ebx
push ebx
push 0x27
push esi
call edi
push ebx
push ebx
push 0x5f
push esi
call edi
push ebx
push ebx
push 0x25
push esi
call edi
cmp dword [ebp - 0x64], 8
jb 0x45800f
mov edx, dword [ebp - 0x78]
push edx
call fcn.004736d0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret 4
Function at 0x4582b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x495613
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [0x4e1794]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
inc dword [edi + 0xc]
push 0x28
call fcn.004739eb
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov dword [esp + 0x38], ebx
cmp esi, ebx
je 0x458377
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [esi], vtable.CTab.0
push 0x18
mov dword [esp + 0x18], eax
mov dword [esi + 0x20], ebx
call fcn.004739eb
add esp, 4
cmp eax, ebx
je 0x45834e
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov dword [esi + 4], edi
mov dword [esi + 0x18], ebx
mov dword [esi + 8], ecx
mov word [esi + 0xc], 0x100
mov dword [esi + 0x10], ebx
mov word [esi + 0x14], bx
jmp 0x458379
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebx
call fcn.004737c3
push 0x4ac5d0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call fcn.0047854f
xor esi, esi
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], 0xffffffff
mov dword [ecx], esi
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x458396
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x38], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, esi
call fcn.0046c820
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x4583f1
mov edx, dword [ebp + 0xc]
add edi, 0x10
push edi
call fcn.0045dd90
mov edi, eax
cmp dword [edi], esi
je 0x4583e2
cmp esi, ebx
je 0x4583d2
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi]
cmp eax, ebx
je 0x4583e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
jmp 0x4583f6
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov dword [esp + 0x38], 0xffffffff
cmp esi, ebx
je 0x45840a
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x458d30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492e28
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.0047f210
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x103c], esi
mov byte [ebx + 8], 0
and dword [ebx + 8], 0xfffffeff
mov dword [ebp - 0x1030], ebx
mov edi, ecx
mov dword [ebx + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x103c], 1
mov dword [ebp - 0x1040], 0x800
mov dword [ebp - 0x1034], esi
cmp edi, esi
jne 0x458da8
xor eax, eax
jmp 0x458de4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + eax + 2]
mov eax, ebx
call fcn.00486070
mov esi, esp
xor eax, eax
test esi, esi
je 0x458ddc
push ebx
push esi
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov ebx, dword [ebp - 0x1030]
xor esi, esi
xor ecx, ecx
mov word [ebp - 0x102c], cx
mov ecx, eax
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x458e02
sub ecx, edi
sar ecx, 1
push ecx
lea esi, [ebp - 0x102c]
call fcn.00409bc0
mov dword [ebp - 4], 2
cmp dword [ebp - 0x1018], 8
mov eax, dword [ebp - 0x102c]
jae 0x458e35
mov eax, esi
push 0
lea edx, [ebp - 0x1040]
push edx
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
js 0x458f00
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x1038], edi
test edi, edi
je 0x458f00
cmp edi, 0xffffffff
je 0x458ef9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00472e2e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x458ef3
push 0
lea ecx, [ebp - 0x1034]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x458eea
push ebx
lea edi, [ebp - 0x1050]
mov byte [esi + ebx], 0
call fcn.0044ed00
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x1030]
mov eax, edi
call fcn.0044ef80
mov eax, edi
mov byte [ebp - 4], 2
call fcn.0044ef10
mov edi, dword [ebp - 0x1038]
push ebx
call fcn.004736d0
add esp, 4
mov ebx, dword [ebp - 0x1030]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1018], 8
jb 0x458f18
mov edx, dword [ebp - 0x102c]
push edx
call fcn.004736d0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0x1060]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret 4