joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c0f5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000
je 0x40c131
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
jne 0x40c131
mov dword [ebp - 0xc], 1
jmp 0x40c135
and dword [ebp - 0xc], 0
push 0x400
lea eax, [ebp - 0x470]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x3c]
cmp eax, 1
mov dword [ebp - 8], ecx
je 0x40c169
cmp eax, 2
je 0x40c169
test eax, eax
jne 0x40c187
cmp dword [ebx + 0x28], eax
jne 0x40c187
lea eax, [ebp - 0x70]
push eax
push 0x3c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 0x5b], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40c1b8
jbe 0x40c1c9
cmp eax, 2
jbe 0x40c1b3
cmp eax, 3
jne 0x40c1c9
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x40c1c6
mov eax, dword [ebx + 0x30]
jmp 0x40c1c6
cmp dword [ebx + 0x38], 0
je 0x40c1c3
mov eax, dword [ebx + 0x34]
jmp 0x40c1c6
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
push 0x420
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x470]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_DrawTextA]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x24]
sub edi, dword [ebp - 0x20]
push 1
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
neg eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
or eax, 2
push eax
push edi
mov edi, dword [ebp + 8]
push esi
xor esi, esi
push esi
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x470]
push eax
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_DrawStateA]
cmp dword [ebp - 0xc], esi
je 0x40c25e
push esi
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x24]
pop edi
pop esi
je 0x40c279
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
leave
ret 4
Function at 0x40c7bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [esi + 0x3c], 2
push edi
mov edi, eax
jne 0x40c86c
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 4]
jne 0x40c7e0
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
cmp dword [esi + 0x3c], eax
je 0x40c7fa
push 0x105
push eax
push eax
push dword [esi + 4]
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
movzx ebx, di
shr edi, 0x10
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
pop ebx
je 0x40c845
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c845
xor edi, edi
inc edi
push edi
push 0
push 0
push eax
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jbe 0x40c845
mov dword [esi + 0x38], edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
leave
ret

Function at 0x40ce85
Capabilities:
Resume thread

Disassembly:
push edi
lea edi, [esi + 0x35c]
mov eax, dword [edi]
test eax, eax
je 0x40ceb6
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 0x360]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi]
call fcn.0040a7e6
mov dword [esi + 0x364], 1
pop edi
ret

Function at 0x40d132
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [esi + 0x360]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [esi + 0x368]
push ecx
push 0x40ccc7
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x35c], eax
xor eax, eax
leave
ret

Function at 0x40d16d
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [esi + 0x35c]
test eax, eax
jne 0x40d18d
movzx eax, word [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40d1fe
cmp dword [esi + 0x258], 0
je 0x40d1fe
push edi
lea edi, [esi + 0x25c]
cmp byte [edi], 0
mov dword [ebp + 8], 1
je 0x40d1f8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esi + 0x258]
and dword [esi + 0x258], 0
push 0x24
lea eax, [esi + 0x158]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x40d1da
and dword [ebp + 8], 0
mov eax, dword [esi + 0x35c]
test eax, eax
mov dword [esi + 0x258], ebx
pop ebx
je 0x40d1f2
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 8], 0
je 0x40d1fd
call fcn.0040ce85
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x40d2ae
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
or edx, 0xffffffff
cmp ecx, edx
jne 0x40d2d1
mov eax, edx
jmp 0x40d302
mov edx, dword [ebp - 4]
push ebx
xor ebx, ebx
xor eax, eax
or edx, ebx
or eax, ecx
cmp dword [esi + 0x20], edi
pop ebx
je 0x40d302
cmp dword [esi + 0x14], edi
je 0x40d302
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x40d302
jb 0x40d2fe
cmp eax, ecx
ja 0x40d302
mov eax, ecx
mov edx, edi
pop edi
leave
ret

Function at 0x40d3c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40d421
cmp dword [esi + 0x14], edi
je 0x40d41e
cmp dword [esi + 0x1c], edi
je 0x40d41e
push dword [esi + 0xc]
push dword [esi + 8]
push esi
call fcn.0040d305
and eax, edx
cmp eax, 0xffffffff
je 0x40d40b
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 4], edi
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d40f
xor eax, eax
jmp 0x40d424
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
adc dword [esi + 0xc], edi
mov dword [esi + 0x20], edi
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x40d45f
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
mov esi, eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040d226
test eax, eax
je 0x40d4db
test byte [ebp + 0xf], 0x40
push ebx
jne 0x40d4d7
push edi
lea eax, [ebp + 0xc]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
push ebx
push dword [ebp + 0xc]
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp + 0x18], eax
je 0x40d4c9
push ebx
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2c]
cmp eax, edi
pop edi
je 0x40d4e0
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], ebx
xor eax, eax
inc eax
pop ebx
pop esi
pop ebp
ret 0x14
call fcn.0040d4e9
xor eax, eax
jmp 0x40d4da
Function at 0x40e130
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, dword [ebp]
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x10], edi
je 0x40e14d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp], edi
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_2
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e172
xor eax, eax
jmp 0x40e1d3
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call esi
cmp ebx, edi
jne 0x40e19f
xor eax, eax
jmp 0x40e1d2
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call esi
mov ebx, dword [esp + 0x18]
mov esi, ebp
call fcn.0040e253
test eax, eax
je 0x40e1c7
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x40fdc9
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x40fde4
cmp dword [edi + 0xd8], esi
je 0x40fde7
cmp dword [edi + 0xe0], esi
jne 0x40fde7
xor esi, esi
inc esi
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x8ac
push dword [edi + 4]
call ebx
push dword [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebp
xor eax, eax
cmp dword [esp + 0x10], eax
je 0x40fe26
cmp dword [edi + 0xe0], eax
jg 0x40fe1c
cmp dword [edi + 0xf0], eax
jle 0x40fe26
mov dword [esp + 0x10], 1
jmp 0x40fe2a
mov dword [esp + 0x10], eax
push 0x8ad
push dword [edi + 4]
call ebx
push dword [esp + 0x10]
push eax
call ebp
push 0x8ae
push dword [edi + 4]
call ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call ebx
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 5
push esi
push dword [edi + 0x5c]
call ebx
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40ff7b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
push 0x176
push dword [ebx]
call fcn.0046d2ac
pop ecx
pop ecx
push 0x8ae
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi + 0xd8]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 0x4e4178
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
xor eax, eax
push eax
movsd dword es:[edi], dword [esi]
push eax
push 0x40000001
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
lea eax, [esi + 0x58]
xor ecx, ecx
call fcn.00414570
push 0x8ae
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
mov edi, ebx
call fcn.0040a8d1
mov eax, dword [esi + 0xd8]
neg eax
sbb eax, eax
and eax, 0x40
add eax, 0x40
push eax
push 0
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x10]
call fcn.00403b98
push 0x42a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
lea eax, [esi + 0x84]
call fcn.0040bf88
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 1
push 0x658
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x414e51
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, dword [0x4e5348]
push esi
push edi
mov esi, eax
jne 0x414e8a
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
lea eax, [ebp - 0x104]
push eax
jmp 0x414e9a
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edi, [esi + 0x24]
mov eax, edi
call fcn.0040e1d9
call fcn.00414df8
xor eax, eax
cmp dword [edi], eax
pop edi
pop esi
setne al
pop ebx
leave
ret 0xc

Function at 0x416bb3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
mov edx, dword [esi + 0x14]
push edi
xor edi, edi
cmp edx, edi
mov dword [ebp - 4], edi
jne 0x416bf1
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416cbd
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], edi
jmp 0x416cbd
mov ecx, dword [esi + 0x18]
lea edi, [esi + 0x1c]
mov eax, dword [edi]
sub eax, ecx
cmp eax, dword [ebp + 0xc]
jl 0x416c03
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x416c25
push eax
add ecx, edx
push ecx
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
add dword [esi + 0x18], eax
add esp, 0xc
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x416cb9
cmp dword [esi + 0x20], ebx
je 0x416c3b
call fcn.0040d3c8
push esi
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
call fcn.00416b2f
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
sub ecx, edx
cmp ecx, eax
push ebx
jae 0x416c99
push edi
push eax
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov edi, dword [edi]
sub eax, ecx
cmp edi, eax
mov dword [ebp - 8], edi
jb 0x416c7d
mov dword [ebp - 8], eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
push dword [esi + 0x14]
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [esi + 0x18], eax
jmp 0x416cb6
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push ecx
add edx, eax
push edx
push dword [esi]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416cb9
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x416d24
Capabilities:
Parse url

Disassembly:
push esi
mov esi, eax
push edi
push esi
push dword [esp + 0x14]
mov eax, 0x81
push 0
push dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov eax, 0x801
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edi, eax
test edi, edi
je 0x416d84
push 0x3f
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll__mbschr]
test eax, eax
pop ecx
pop ecx
je 0x416d84
push eax
add esi, 0xa61
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x416ed1
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x416ee8
cmp byte [ecx], dl
je 0x416ee8
xor eax, eax
jmp 0x416eeb
xor eax, eax
inc eax
cmp ebx, edx
mov dword [esi + 4], eax
je 0x41701f
cmp dword [ebx], 0x18
jne 0x41701f
push edi
push dword [ebx + 8]
lea edi, [ebp - 4]
call fcn.00413b62
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, eax
jne 0x416f1e
push eax
push eax
push eax
push 1
jmp 0x416ffd
cmp ecx, 1
je 0x416ff9
mov ecx, dword [ebp - 4]
cmp dword [ecx - 8], eax
je 0x416ff9
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x10]
call fcn.00401721
pop ecx
mov edi, eax
pop ecx
lea eax, [esi + 0x10]
call fcn.0040301a
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x416f60
push eax
call fcn.00401377
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebx + 0x14]
call fcn.00401721
pop ecx
mov edi, eax
pop ecx
lea eax, [esi + 0x14]
call fcn.0040301a
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x416f8e
push eax
call fcn.00401377
mov eax, dword [0x4e4150]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebp - 4]
call fcn.00401721
push dword [ebx + 0xc]
push dword [eax]
lea eax, [ebp - 8]
push str.httphttp:___s:_d
push eax
call fcn.004058d5
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
add esp, 0x18
cmp eax, dword [0x4e4154]
je 0x416fce
push eax
call fcn.00401377
mov edi, dword [ebp - 8]
push 0
push str._local_
push edi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x4e4154]
je 0x417008
push eax
call fcn.00401377
jmp 0x417008
push eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
pop edi
je 0x41702c
push eax
call fcn.00401377
jmp 0x41702c
push edx
push edx
push edx
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
xor eax, eax
cmp dword [esi], eax
setne al
leave
ret 4
Function at 0x417485
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004bf900
and dword [ebp - 0xc], 0
push esi
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000005
push dword [ebp + 0xc]
mov esi, Ordinal_2
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4174c5
mov dword [ebp - 8], esi
mov eax, dword [0x4e4150]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x4174d7
inc eax
jmp 0x4174dc
mov eax, 0x2000
lea ecx, [ebp - 4]
call fcn.004030e2
or eax, 0xffffffff
lea ecx, [ebp - 4]
call fcn.0040310e
and dword [ebp - 0xc], 0
mov esi, 0x1000
mov eax, dword [ebp - 0x10]
cmp eax, esi
jb 0x417501
mov eax, esi
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x1014]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x417544
mov eax, dword [ebp - 0xc]
test eax, eax
jbe 0x417544
mov byte [ebp + eax - 0x1014], 0
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403081
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
cmp eax, dword [ebp - 8]
jl 0x4174f8
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00402f86
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
pop esi
je 0x417564
push eax
call fcn.00401377
mov eax, dword [ebp + 8]
leave
ret

Function at 0x419a46
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x4d2e10
call fcn.004bf6e4
mov ebx, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x419ae8
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x419ae8
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_vswprintf]
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x419aea
xor eax, eax
call fcn.004bf71f
ret

Function at 0x41b9fb
Capabilities:
Create process on windows

Disassembly:
push edi
mov edi, dword [esi + 0x1d8]
cmp dword [edi - 8], 0
je 0x41ba42
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 8]
push edi
push 0x7f9
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x41ba42
push 1
push eax
push eax
push dword [esi + 0x1d8]
push str.open
push dword [esi + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00499d20
xor eax, eax
pop edi
ret
Function at 0x41cd46
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 0x14]
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
jne 0x41cd82
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ce38
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
jmp 0x41ce38
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0x18]
cmp eax, dword [ebp + 8]
jl 0x41cd90
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
test eax, eax
mov dword [ebp - 8], eax
jle 0x41cdc5
push eax
mov eax, dword [esi + 0x18]
add eax, ecx
push edi
push eax
call sub.MSVCRT.dll_memcpy
mov edx, dword [ebp - 8]
add dword [esi + 0x18], edx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
cmp ecx, eax
jbe 0x41cdbc
mov eax, ecx
add dword [ebp - 4], edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ebx
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jae 0x41ce35
cmp dword [esi + 0x20], 0
je 0x41cdd8
call fcn.0040d3c8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor edx, edx
sub eax, ecx
add ecx, edi
cmp eax, dword [esi + 0x10]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
jae 0x41ce0d
push eax
push ecx
push dword [esi + 0x14]
mov dword [esi + 0x1c], eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x1c]
add dword [esi + 0x18], eax
add esp, 0xc
add dword [ebp - 4], eax
mov dword [esi + 0x20], ebx
jmp 0x41ce35
push edx
mov dword [ebp - 8], edx
lea edx, [ebp - 8]
push edx
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ce29
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
push esi
call fcn.00416b2f
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4