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

Disassembly:
push ebp
lea ebp, [esp - 0x814]
sub esp, 0x894
mov eax, dword [0x4e7384]
mov dword [ebp + 0x810], eax
lea eax, [ebp - 0x80]
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_GetWindowLongW]
test eax, 0x10000
je 0x40c88c
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
jne 0x40c88c
mov dword [ebp - 0x58], 1
jmp 0x40c890
and dword [ebp - 0x58], 0
push 0x400
lea eax, [ebp - 0x4c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x3c]
cmp eax, 1
mov dword [ebp - 0x54], ecx
je 0x40c8c1
cmp eax, 2
je 0x40c8c1
test eax, eax
jne 0x40c8e8
cmp dword [ebx + 0x28], eax
jne 0x40c8e8
lea eax, [ebp + 0x7b4]
push eax
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp + 0x7b4]
push eax
mov byte [ebp + 0x7c9], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
push dword [ebp + 0x81c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x40c91c
jbe 0x40c92d
cmp eax, 2
jbe 0x40c917
cmp eax, 3
jne 0x40c92d
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x40c92a
mov eax, dword [ebx + 0x30]
jmp 0x40c92a
cmp dword [ebx + 0x38], 0
je 0x40c927
mov eax, dword [ebx + 0x34]
jmp 0x40c92a
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x50], eax
push esi
push edi
lea esi, [ebp - 0x80]
lea edi, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
push 0x420
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 0x81c]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_DrawTextW]
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
sub esi, dword [ebp - 0x70]
sub edi, dword [ebp - 0x6c]
push 1
push dword [ebp + 0x81c]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebp - 0x50]
push dword [ebp + 0x81c]
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 + 0x81c]
push esi
xor esi, esi
push esi
push esi
push dword [ebp - 0x60]
lea eax, [ebp - 0x4c]
push eax
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_DrawStateW]
cmp dword [ebp - 0x58], esi
je 0x40c9c8
push esi
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x70]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebx + 0x24]
pop edi
pop esi
je 0x40c9e3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0x810]
call fcn.004c2215
add ebp, 0x814
leave
ret 4
Function at 0x40cf4c
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 0x40cffc
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 4]
jne 0x40cf70
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
cmp dword [esi + 0x3c], eax
je 0x40cf8a
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 0x40cfd5
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40cfd5
xor edi, edi
inc edi
push edi
push 0
push 0
push eax
push 0x4ceec8
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x40cfd5
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_SendMessageW]
xor eax, eax
pop edi
leave
ret

Function at 0x40d62c
Capabilities:
Resume thread

Disassembly:
push edi
lea edi, [esi + 0x65c]
mov eax, dword [edi]
test eax, eax
je 0x40d65d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 0x660]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi]
call fcn.0040aef3
mov dword [esi + 0x664], 1
pop edi
ret

Function at 0x40d8d9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [esi + 0x660]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [esi + 0x668]
push ecx
push 0x40d46c
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x65c], eax
xor eax, eax
leave
ret

Function at 0x40d914
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [esi + 0x65c]
test eax, eax
jne 0x40d934
movzx eax, word [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40d9a6
cmp dword [esi + 0x458], 0
je 0x40d9a6
push edi
lea edi, [esi + 0x45c]
cmp word [edi], 0
mov dword [ebp + 8], 1
je 0x40d9a0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esi + 0x458]
and dword [esi + 0x458], 0
push 0x24
lea eax, [esi + 0x258]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x40d982
and dword [ebp + 8], 0
mov eax, dword [esi + 0x65c]
test eax, eax
mov dword [esi + 0x458], ebx
pop ebx
je 0x40d99a
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 8], 0
je 0x40d9a5
call fcn.0040d62c
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x40da56
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 0x40da79
mov eax, edx
jmp 0x40daaa
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 0x40daaa
cmp dword [esi + 0x14], edi
je 0x40daaa
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x40daaa
jb 0x40daa6
cmp eax, ecx
ja 0x40daaa
mov eax, ecx
mov edx, edi
pop edi
leave
ret

Function at 0x40db70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40dbc9
cmp dword [esi + 0x14], edi
je 0x40dbc6
cmp dword [esi + 0x1c], edi
je 0x40dbc6
push dword [esi + 0xc]
push dword [esi + 8]
push esi
call fcn.0040daad
and eax, edx
cmp eax, 0xffffffff
je 0x40dbb3
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 0x40dbb7
xor eax, eax
jmp 0x40dbcc
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 0x40dc07
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.0040d9ce
test eax, eax
je 0x40dc83
test byte [ebp + 0xf], 0x40
push ebx
jne 0x40dc7f
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_CreateFileMappingW]
cmp eax, edi
mov dword [ebp + 0x18], eax
je 0x40dc71
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 0x40dc88
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.0040dc91
xor eax, eax
jmp 0x40dc82
Function at 0x40e913
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 0x40e930
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 SysReAllocString
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e955
xor eax, eax
jmp 0x40e9b6
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_CreateFileMappingW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call esi
cmp ebx, edi
jne 0x40e982
xor eax, eax
jmp 0x40e9b5
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.0040ea36
test eax, eax
je 0x40e9aa
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 0x410621
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x41063c
cmp dword [edi + 0xd8], esi
je 0x41063f
cmp dword [edi + 0xe0], esi
jne 0x41063f
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 0x41067e
cmp dword [edi + 0xe0], eax
jg 0x410674
cmp dword [edi + 0xf0], eax
jle 0x41067e
mov dword [esp + 0x10], 1
jmp 0x410682
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 0x4107d3
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.0045a3eb
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, 0x4e9178
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.00414e2c
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.0040afde
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.00403a68
push 0x42a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
lea eax, [esi + 0x84]
call fcn.0040c6b8
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 1
push 0x658
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4
Function at 0x4151f3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov ebx, ecx
mov esi, eax
lea eax, [ebx - 0x20]
neg ebx
sbb ebx, ebx
and ebx, eax
cmp dword [ebp + 0xc], 0
push edi
mov dword [ebp - 4], 1
je 0x415261
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
or dword [ebp - 8], 0xffffffff
mov edi, eax
call fcn.004153eb
test eax, eax
je 0x415256
lea ecx, [edi + 1]
push ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 8], eax
or eax, 0xffffffff
mov ecx, esi
call fcn.00402f7b
cmp dword [ebp - 8], edi
jge 0x415286
and dword [ebp - 4], 0
jmp 0x415276
push dword [esi]
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4152c4
push dword [ebp + 0xc]
lea esi, [ebx + 0x20]
push dword [ebp + 8]
call fcn.0046c19c
jmp 0x4152c4
cmp dword [ebp + 0x10], 0
je 0x4152c4
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov esi, dword [ebp + 0x14]
cmp edx, esi
jle 0x4152c4
push 6
pop ecx
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 8]
mov dword [ebp - 0x2c], 1
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], edx
add ebx, 0x20
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x20], esi
call fcn.0044cd34
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x41583f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 0xc], 0
mov eax, dword [0x4e7384]
push ebx
mov ebx, dword [0x4ea818]
push esi
mov dword [ebp - 4], eax
push edi
mov esi, ecx
jne 0x415880
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
lea eax, [ebp - 0x20c]
push eax
jmp 0x415890
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edi, [esi + 0x24]
mov eax, edi
call fcn.0040e9bc
call fcn.004157e6
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi], eax
pop edi
pop esi
setne al
pop ebx
call fcn.004c2215
leave
ret 0xc
Function at 0x417567
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 0x4175a5
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 0x417671
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], edi
jmp 0x417671
mov ecx, dword [esi + 0x18]
lea edi, [esi + 0x1c]
mov eax, dword [edi]
sub eax, ecx
cmp eax, dword [ebp + 0xc]
jl 0x4175b7
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x4175d9
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 0x41766d
cmp dword [esi + 0x20], ebx
je 0x4175ef
call fcn.0040db70
push esi
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
call fcn.004174e3
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 0x41764d
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 0x417631
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 0x41766a
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 0x41766d
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 0x4176d8
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_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x417739
push 0x3f
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x417739
push eax
add esi, 0x1486
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x417886
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
push ebx
mov ebx, eax
je 0x4178a0
cmp word [ecx], dx
je 0x4178a0
xor eax, eax
jmp 0x4178a3
xor eax, eax
inc eax
cmp ebx, edx
mov dword [esi + 4], eax
je 0x417965
cmp dword [ebx], 0x18
jne 0x417965
push edi
push dword [ebx + 8]
lea edi, [ebp - 4]
call fcn.00402e10
mov eax, dword [ebx + 4]
xor edi, edi
cmp eax, edi
jne 0x4178d3
push edi
push edi
push edi
push 1
jmp 0x417943
cmp eax, 1
je 0x41793f
mov eax, dword [ebp - 4]
cmp dword [eax - 8], edi
je 0x41793f
push dword [ebx + 0x10]
lea eax, [esi + 0x10]
call fcn.00402ec3
push dword [ebx + 0x14]
lea eax, [esi + 0x14]
call fcn.00402ec3
push dword [ebx + 0xc]
mov eax, dword [0x4e9150]
push dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push str.httphttp:___s:_d
push eax
call fcn.00405c38
mov ebx, dword [ebp - 8]
add esp, 0x10
push edi
push str._local_
push ebx
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e9154]
je 0x41794e
push eax
call fcn.004013aa
jmp 0x41794e
push edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
pop edi
je 0x417972
push eax
call fcn.004013aa
jmp 0x417972
push edx
push edx
push edx
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
xor eax, eax
cmp dword [esi], eax
pop ebx
setne al
leave
ret 4
Function at 0x417e1c
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov eax, 0x1018
lea ebp, [esp - 0xf98]
call fcn.004c2440
mov eax, dword [0x4e7384]
and dword [ebp - 0x7c], 0
push esi
push 0
mov dword [ebp + 0xf94], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x20000005
push dword [ebp + 0xfa4]
mov esi, SysReAllocString
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x417e6f
mov dword [ebp - 0x78], esi
mov eax, dword [0x4e9150]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
cmp eax, esi
je 0x417e81
inc eax
jmp 0x417e86
mov eax, 0x2000
lea ecx, [ebp - 0x74]
call fcn.004030ee
or eax, 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0040311a
and dword [ebp - 0x7c], 0
mov esi, 0x1000
mov eax, dword [ebp - 0x80]
cmp eax, esi
jb 0x417eab
mov eax, esi
lea ecx, [ebp - 0x7c]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0xfa4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x417ee8
mov eax, dword [ebp - 0x7c]
test eax, eax
jbe 0x417ee8
mov byte [ebp + eax - 0x70], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0041a2fd
mov eax, dword [ebp - 0x74]
mov eax, dword [eax - 8]
cmp eax, dword [ebp - 0x78]
jl 0x417ea2
mov esi, dword [ebp + 0xfa0]
lea ecx, [ebp - 0x74]
call fcn.0040308d
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
pop esi
je 0x417f0b
push eax
call fcn.004013aa
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp + 0xfa0]
call fcn.004c2215
add ebp, 0xf98
leave
ret

Function at 0x41c53d
Capabilities:
Create process on windows

Disassembly:
push edi
mov edi, dword [esi + 0x1d8]
cmp dword [edi - 8], 0
je 0x41c584
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_SendMessageW]
test eax, eax
jne 0x41c584
push 1
push eax
push eax
push dword [esi + 0x1d8]
push 0x4ceec8
push dword [esi + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.0049bf52
xor eax, eax
pop edi
ret
Function at 0x41d71e
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 0x41d75a
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 0x41d810
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
jmp 0x41d810
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0x18]
cmp eax, dword [ebp + 8]
jl 0x41d768
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
test eax, eax
mov dword [ebp - 8], eax
jle 0x41d79d
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 0x41d794
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 0x41d80d
cmp dword [esi + 0x20], 0
je 0x41d7b0
call fcn.0040db70
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 0x41d7e5
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 0x41d80d
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 0x41d801
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
push esi
call fcn.004174e3
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4