joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f54f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x516ad4]
push edi
push 0x44
mov dword [ebp + 0x94], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x40f59f
cmp dword [ebp - 0x7c], 5
jae 0x40f59b
cmp dword [ebp - 0x7c], 4
jne 0x40f59f
cmp dword [ebp - 0x78], 0x5a
jb 0x40f59f
xor eax, eax
jmp 0x40f5a2
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
call fcn.004eae3c
add ebp, 0x98
leave
ret

Function at 0x40f5f0
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x5042f0
call fcn.004eb254
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 0x40f692
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 0x40f692
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x40f694
xor eax, eax
call fcn.004eb28f
ret
Function at 0x4118d7
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 [0x52064c]
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 0x411919
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x411919
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x411920
xor eax, eax
jmp 0x411ab6
movzx esi, word [edi + 6]
lea eax, [esi + esi*4]
shl eax, 2
add eax, 3
and eax, 0xfffffffc
call fcn.004eae50
mov eax, esp
xor ecx, ecx
cmp esi, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x41198a
add eax, 8
cmp word [edi + ecx*2 + 8], bx
je 0x411967
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 0x411978
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 0x411946
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.0041a8c1
movzx eax, word [edi + 4]
push eax
movzx eax, word [edi + 2]
push eax
push ebx
call fcn.0041a7dd
movzx eax, word [edi + 4]
add eax, 7
push eax
movzx eax, word [edi + 2]
add eax, 7
push eax
push ebx
call fcn.0041a7b7
cmp dword [ebp + 0x10], 0
movzx eax, word [ebp + 0x10]
jne 0x4119e0
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.00411af1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
push eax
lea esi, [ebp + 0x10]
mov eax, ebx
call fcn.0041a803
push dword [0x52064c]
mov ebx, dword [ebp + 8]
call fcn.00411b3d
xor esi, esi
push esi
push esi
push 0x439
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
test ah, 0x10
je 0x411a2d
push 1
jmp 0x411a2e
push esi
call fcn.00411e19
cmp dword [ebp + 0x14], 0
je 0x411a69
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.00411af1
test eax, eax
mov dword [ebx + 0x6c], eax
je 0x411a69
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x10]
add eax, 4
call fcn.0041a837
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0x18], 0
je 0x411a9f
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.00411af1
test eax, eax
mov dword [ebx + 0x70], eax
je 0x411a9f
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x1c]
add eax, 4
call fcn.0041a81d
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.0041aba6
xor eax, eax
inc eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x412681
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x7a4]
sub esp, 0x824
mov eax, dword [0x516ad4]
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.00403ebb
lea esi, [ebp - 0x6c]
call fcn.004111d4
mov ecx, dword [ebp + 0x7a0]
pop edi
pop esi
pop ebx
call fcn.004eae3c
add ebp, 0x7a4
leave
ret

Function at 0x41276c
Capabilities:
Create process on windows

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

Disassembly:
push ebp
lea ebp, [esp - 0x814]
sub esp, 0x894
mov eax, dword [0x516ad4]
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 0x412828
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [ebx + 4]
jne 0x412828
mov dword [ebp - 0x58], 1
jmp 0x41282c
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 0x41285d
cmp eax, 2
je 0x41285d
test eax, eax
jne 0x412884
cmp dword [ebx + 0x28], eax
jne 0x412884
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 0x4128b8
jbe 0x4128c9
cmp eax, 2
jbe 0x4128b3
cmp eax, 3
jne 0x4128c9
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x4128c6
mov eax, dword [ebx + 0x30]
jmp 0x4128c6
cmp dword [ebx + 0x38], 0
je 0x4128c3
mov eax, dword [ebx + 0x34]
jmp 0x4128c6
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 0x412964
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 0x41297f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0x810]
call fcn.004eae3c
add ebp, 0x814
leave
ret 4
Function at 0x412ee8
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 0x412f98
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 4]
jne 0x412f0c
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
cmp dword [esi + 0x3c], eax
je 0x412f26
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 0x412f71
mov eax, dword [esi + 0x44]
test eax, eax
je 0x412f71
xor edi, edi
inc edi
push edi
push 0
push 0
push eax
push 0x4fa5a0
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x412f71
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 0x413042
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [0x52064c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetACP]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0xc]
push 0x43ebfb
push eax
mov esi, 0xf0
push esi
xor edi, edi
push ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 8], 0x804
jne 0x41308b
mov dword [ebp - 4], 0x3a8
jmp 0x41309a
cmp word [ebp - 8], 0x404
jne 0x41309a
mov dword [ebp - 4], 0x3b6
movzx eax, word [ebp + 0xc]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4130ba
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x4130c1
xor eax, eax
jmp 0x41319d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x413191
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov ax, word [ebx]
cmp ax, di
mov dword [ebp - 0xc], eax
je 0x413191
inc ebx
inc ebx
mov ax, word [ebx]
inc ebx
inc ebx
mov ecx, dword [ebx]
add ebx, 4
cmp ax, 0x180
mov dword [ebp - 0x14], ecx
je 0x413146
cmp ax, 0x401
je 0x413146
cmp ax, 0x143
je 0x413110
cmp ax, 0x403
jne 0x413188
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0x10], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004eae50
mov dword [ebp + 0xc], esp
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push edi
push 0x143
jmp 0x41317a
push edi
push edi
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
mov dword [ebp - 0x10], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004eae50
mov dword [ebp + 0xc], esp
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push edi
push 0x180
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
add ebx, dword [ebp - 0x14]
jne 0x4130d8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413754
Capabilities:
Resume thread

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

Function at 0x413a01
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 0x413594
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 0x413a3c
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 0x413a5c
movzx eax, word [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x413ace
cmp dword [esi + 0x458], 0
je 0x413ace
push edi
lea edi, [esi + 0x45c]
cmp word [edi], 0
mov dword [ebp + 8], 1
je 0x413ac8
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 0x413aaa
and dword [ebp + 8], 0
mov eax, dword [esi + 0x65c]
test eax, eax
mov dword [esi + 0x458], ebx
pop ebx
je 0x413ac2
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp + 8], 0
je 0x413acd
call fcn.00413754
pop edi
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x413b7e
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 0x413ba1
mov eax, edx
jmp 0x413bd2
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 0x413bd2
cmp dword [esi + 0x14], edi
je 0x413bd2
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x413bd2
jb 0x413bce
cmp eax, ecx
ja 0x413bd2
mov eax, ecx
mov edx, edi
pop edi
leave
ret

Function at 0x413c98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x413cf1
cmp dword [esi + 0x14], edi
je 0x413cee
cmp dword [esi + 0x1c], edi
je 0x413cee
push dword [esi + 0xc]
push dword [esi + 8]
push esi
call fcn.00413bd5
and eax, edx
cmp eax, 0xffffffff
je 0x413cdb
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 0x413cdf
xor eax, eax
jmp 0x413cf4
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 0x413d2f
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.00413af6
test eax, eax
je 0x413dab
test byte [ebp + 0xf], 0x40
push ebx
jne 0x413da7
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 0x413d99
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 0x413db0
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.00413db9
xor eax, eax
jmp 0x413daa

Function at 0x414a0f
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 0x414a2c
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 0x414a51
xor eax, eax
jmp 0x414ab2
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 0x414a7e
xor eax, eax
jmp 0x414ab1
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.00414b32
test eax, eax
je 0x414aa6
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 0x41670d
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x416728
cmp dword [edi + 0xd8], esi
je 0x41672b
cmp dword [edi + 0xe0], esi
jne 0x41672b
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 0x41676a
cmp dword [edi + 0xe0], eax
jg 0x416760
cmp dword [edi + 0xf0], eax
jle 0x41676a
mov dword [esp + 0x10], 1
jmp 0x41676e
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 0x4168bf
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.00413042
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, 0x51a460
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.0041af53
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.00407c79
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.00403ebb
push 0x42a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
lea eax, [esi + 0x84]
call fcn.00412654
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 0x41b87b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 0xc], 0
mov eax, dword [0x516ad4]
push ebx
mov ebx, dword [0x52064c]
push esi
mov dword [ebp - 4], eax
push edi
mov esi, ecx
jne 0x41b8bc
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 0x41b8cc
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.00414ab8
call fcn.0041b822
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [edi], eax
pop edi
pop esi
setne al
pop ebx
call fcn.004eae3c
leave
ret 0xc

Function at 0x41e5cd
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 0x41e60b
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 0x41e6d7
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], edi
jmp 0x41e6d7
mov ecx, dword [esi + 0x18]
lea edi, [esi + 0x1c]
mov eax, dword [edi]
sub eax, ecx
cmp eax, dword [ebp + 0xc]
jl 0x41e61d
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x41e63f
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 0x41e6d3
cmp dword [esi + 0x20], ebx
je 0x41e655
call fcn.00413c98
push esi
mov dword [esi + 0x18], ebx
mov dword [edi], ebx
call fcn.0041e549
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 0x41e6b3
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 0x41e697
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 0x41e6d0
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 0x41e6d3
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 8