joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b84c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, word [ebp + 0xc]
push ebx
push esi
mov esi, dword [0x4f20a8]
push edi
push 0xf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40b88e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40b88e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x40b895
xor eax, eax
jmp 0x40ba2b
movzx esi, word [edi + 6]
lea eax, [esi + esi*4]
shl eax, 2
add eax, 3
and eax, 0xfffffffc
call fcn.004c7d30
mov eax, esp
xor ecx, ecx
cmp esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x40b8ff
add eax, 8
cmp word [edi + ecx*2 + 8], bx
je 0x40b8dc
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [eax - 8], edx
movzx edx, word [edi + ecx*2 + 8]
mov dword [eax - 4], edx
mov byte [eax], 4
mov byte [eax + 1], 0
jmp 0x40b8ed
mov dword [eax - 8], 8
mov dword [eax - 4], ebx
mov byte [eax], 0
mov byte [eax + 1], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
movzx edx, word [edi + 6]
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x40b8bb
mov ebx, dword [ebp + 8]
push 0
push 0x14
push 0x41e
add ebx, 4
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 8]
mov eax, ebx
push esi
call fcn.0041465d
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
push ebx
call fcn.00414579
movzx eax, word [edi + 4]
add eax, 7
push eax
movzx eax, word [edi + 2]
add eax, 7
push eax
push ebx
call fcn.00414553
cmp dword [ebp + 0x10], 0
movzx eax, word [ebp + 0x10]
jne 0x40b955
movzx eax, word [ebp + 0xc]
push dword [ebp + 0x1c]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040ba66
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
push eax
lea esi, [ebp + 0x10]
mov eax, ebx
call fcn.0041459f
push dword [0x4f20a8]
mov ebx, dword [ebp + 8]
call fcn.0040bab2
xor esi, esi
push esi
push esi
push 0x439
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test ah, 0x10
je 0x40b9a2
push 1
jmp 0x40b9a3
push esi
call fcn.0040bd8e
cmp dword [ebp + 0x14], 0
je 0x40b9de
push dword [ebp + 0x1c]
movzx eax, word [ebp + 0x14]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040ba66
test eax, eax
mov dword [ebx + 0x6c], eax
je 0x40b9de
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x10]
add eax, 4
call fcn.004145d3
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0x18], 0
je 0x40ba14
push dword [ebp + 0x1c]
movzx eax, word [ebp + 0x18]
push eax
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
call fcn.0040ba66
test eax, eax
mov dword [ebx + 0x70], eax
je 0x40ba14
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x1c]
add eax, 4
call fcn.004145b9
mov ebx, dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
lea esi, [ebx + 0x24]
inc eax
call fcn.00414942
xor eax, eax
inc eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x40c5f6
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x4ed384]
push ebx
push esi
push edi
mov dword [ebp + 0x7a0], eax
push 0x400
mov edi, ecx
lea eax, [ebp - 0x60]
push eax
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0x80], eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x24]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov dword [ebp - 0x6c], eax
call edi
push 0x420
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x60]
xor ebx, ebx
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0x64]
add dword [ebp - 0x70], 2
push dword [ebp - 0x6c]
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
push 2
lea ecx, [ebp - 0x7c]
push ecx
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esi]
call edi
push 0xffffffffffffffec
push dword [esi]
mov dword [ebp - 0x64], eax
call edi
push eax
push ebx
push dword [ebp - 0x64]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0x16
push ebx
push esi
lea eax, [ebp - 0x7c]
call fcn.00403c25
lea esi, [ebp - 0x6c]
call fcn.00433990
mov ecx, dword [ebp + 0x7a0]
pop edi
pop esi
pop ebx
call fcn.004c7b01
add ebp, 0x7a4
leave
ret

Function at 0x40c6e1
Capabilities:
Create process on windows

Disassembly:
test eax, eax
jne 0x40c6ec
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40c711
push 1
push 0
push 0
push eax
push 0x4d4218
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x40c711
xor eax, eax
mov dword [esi + 0x38], 1
inc eax
ret
xor eax, eax
ret
Function at 0x40c751
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x814]
sub esp, 0x894
mov eax, dword [0x4ed384]
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 0x40c79d
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
jne 0x40c79d
mov dword [ebp - 0x58], 1
jmp 0x40c7a1
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 0x40c7d2
cmp eax, 2
je 0x40c7d2
test eax, eax
jne 0x40c7f9
cmp dword [ebx + 0x28], eax
jne 0x40c7f9
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 0x40c82d
jbe 0x40c83e
cmp eax, 2
jbe 0x40c828
cmp eax, 3
jne 0x40c83e
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x40c83b
mov eax, dword [ebx + 0x30]
jmp 0x40c83b
cmp dword [ebx + 0x38], 0
je 0x40c838
mov eax, dword [ebx + 0x34]
jmp 0x40c83b
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 0x40c8d9
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 0x40c8f4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0x810]
call fcn.004c7b01
add ebp, 0x814
leave
ret 4
Function at 0x40ce5d
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 0x40cf0d
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 4]
jne 0x40ce81
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
cmp dword [esi + 0x3c], eax
je 0x40ce9b
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 0x40cee6
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40cee6
xor edi, edi
inc edi
push edi
push 0
push 0
push eax
push 0x4d4218
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x40cee6
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 0x40d53d
Capabilities:
Resume thread

Disassembly:
push edi
lea edi, [esi + 0x65c]
mov eax, dword [edi]
test eax, eax
je 0x40d56e
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.0040ae15
mov dword [esi + 0x664], 1
pop edi
ret

Function at 0x40d7ea
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 0x40d37d
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 0x40d825
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 0x40d845
movzx eax, word [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40d8b7
cmp dword [esi + 0x458], 0
je 0x40d8b7
push edi
lea edi, [esi + 0x45c]
cmp word [edi], 0
mov dword [ebp + 8], 1
je 0x40d8b1
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 0x40d893
and dword [ebp + 8], 0
mov eax, dword [esi + 0x65c]
test eax, eax
mov dword [esi + 0x458], ebx
pop ebx
je 0x40d8ab
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 8], 0
je 0x40d8b6
call fcn.0040d53d
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x40d967
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 0x40d98a
mov eax, edx
jmp 0x40d9bb
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 0x40d9bb
cmp dword [esi + 0x14], edi
je 0x40d9bb
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x40d9bb
jb 0x40d9b7
cmp eax, ecx
ja 0x40d9bb
mov eax, ecx
mov edx, edi
pop edi
leave
ret

Function at 0x40da81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40dada
cmp dword [esi + 0x14], edi
je 0x40dad7
cmp dword [esi + 0x1c], edi
je 0x40dad7
push dword [esi + 0xc]
push dword [esi + 8]
push esi
call fcn.0040d9be
and eax, edx
cmp eax, 0xffffffff
je 0x40dac4
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 0x40dac8
xor eax, eax
jmp 0x40dadd
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 0x40db18
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.0040d8df
test eax, eax
je 0x40db94
test byte [ebp + 0xf], 0x40
push ebx
jne 0x40db90
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 0x40db82
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 0x40db99
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.0040dba2
xor eax, eax
jmp 0x40db93
Function at 0x40e7ea
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 0x40e807
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 SysReAllocStringLen
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e82c
xor eax, eax
jmp 0x40e88d
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 0x40e859
xor eax, eax
jmp 0x40e88c
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.0040e90d
test eax, eax
je 0x40e881
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 0x410508
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x410523
cmp dword [edi + 0xd8], esi
je 0x410526
cmp dword [edi + 0xe0], esi
jne 0x410526
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 0x410565
cmp dword [edi + 0xe0], eax
jg 0x41055b
cmp dword [edi + 0xf0], eax
jle 0x410565
mov dword [esp + 0x10], 1
jmp 0x410569
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 0x4106ba
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.0042977e
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, 0x4f09a8
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.00414ce6
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.0040af00
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.00403c25
push 0x42a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
lea eax, [esi + 0x84]
call fcn.0040c5c9
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 0x4156ac
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 0xc], 0
mov eax, dword [0x4ed384]
push ebx
mov ebx, dword [0x4f20a8]
push esi
mov dword [ebp - 4], eax
push edi
mov esi, ecx
jne 0x4156ed
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 0x4156fd
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.0040e893
call fcn.00415653
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi], eax
pop edi
pop esi
setne al
pop ebx
call fcn.004c7b01
leave
ret 0xc

Function at 0x41741a
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 0x417458
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 0x417524
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], edi
jmp 0x417524
mov ecx, dword [esi + 0x18]
lea edi, [esi + 0x1c]
mov eax, dword [edi]
sub eax, ecx
cmp eax, dword [ebp + 0xc]
jl 0x41746a
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x41748c
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 0x417520
cmp dword [esi + 0x20], ebx
je 0x4174a2
call fcn.0040da81
push esi
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
call fcn.00417396
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 0x417500
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 0x4174e4
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 0x41751d
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 0x417520
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 0x41758b
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 0x4175ec
push 0x3f
push dword [esp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x4175ec
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 0x417739
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 0x417753
cmp word [ecx], dx
je 0x417753
xor eax, eax
jmp 0x417756
xor eax, eax
inc eax
cmp ebx, edx
mov dword [esi + 4], eax
je 0x417818
cmp dword [ebx], 0x18
jne 0x417818
push edi
push dword [ebx + 8]
lea edi, [ebp - 4]
call fcn.00402f03
mov eax, dword [ebx + 4]
xor edi, edi
cmp eax, edi
jne 0x417786
push edi
push edi
push edi
push 1
jmp 0x4177f6
cmp eax, 1
je 0x4177f2
mov eax, dword [ebp - 4]
cmp dword [eax - 8], edi
je 0x4177f2
push dword [ebx + 0x10]
lea eax, [esi + 0x10]
call fcn.00402fb6
push dword [ebx + 0x14]
lea eax, [esi + 0x14]
call fcn.00402fb6
push dword [ebx + 0xc]
mov eax, dword [0x4f0980]
push dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push str.httphttp:___s:_d
push eax
call fcn.00405986
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 [0x4f0984]
je 0x417801
push eax
call fcn.004013aa
jmp 0x417801
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 [0x4f0984]
pop edi
je 0x417825
push eax
call fcn.004013aa
jmp 0x417825
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