joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65a88163
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
sub esp, 0x1a4
cmp dword [0x65a8e104], 0
jne 0x65a881b1
mov dword [esp], 0x65a8e0a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edx
mov dword [esp], 0x65a8e104
call dbg.assuan_new
test eax, eax
mov ebx, eax
jne 0x65a881b1
lea eax, [ebp - 0x198]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x65a884c8
Capabilities:
Create pipe

Disassembly:
push ebp
xor eax, eax
mov ecx, 2
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x20]
push ebx
lea esi, [ebp - 0x24]
mov edi, edx
sub esp, 0x5c
mov dword [ebp - 0x24], 0xc
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
jne 0x65a88557
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dbg._assuan_w32_strerror
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x65a8d5d0
mov dword [esp + 0xc], str.__assuan_pipe
mov dword [esp + 8], str._s___s_p_:_call:_CreatePipe_failed:__s_n
mov dword [esp + 4], 5
mov dword [esp], ebx
call dbg._assuan_debug
jmp 0x65a88606
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
cmp dword [ebp + 0x10], 0
mov edx, eax
jne 0x65a8856c
mov esi, dword [ebp - 0x30]
jmp 0x65a8856f
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], edx
call edi
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
mov dword [esp + 4], esi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x65a88617
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
call dbg._assuan_w32_strerror
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp], ebx
mov dword [esp + 0x10], 0x65a8d5d0
mov dword [esp + 0xc], str.__assuan_pipe
mov dword [esp + 8], str._s___s_p_:_call:_DuplicateHandle_failed:__s_n
mov dword [esp + 4], 5
call dbg._assuan_debug
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x2c]
push ecx
mov dword [esp], eax
call esi
push ebx
mov dword [esp], 5
call sym._gpg_err_set_errno
or eax, 0xffffffff
jmp 0x65a8864d
cmp dword [ebp + 0x10], 0
jne 0x65a8862e
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x28]
push edx
mov dword [ebp - 0x30], eax
jmp 0x65a8863d
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call esi
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x65a88a1f
Capabilities:
Get socket status
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x11c]
sub esp, 0x13c
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
push edx
jne 0x65a88b06
lea eax, [ebp - 0x120]
mov dword [esp + 0x10], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x124]
mov dword [esp + 8], eax
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
sub esp, 0x14
test eax, eax
jne 0x65a88b06
mov edi, 4
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x65a88b9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x65a88b56
dec edi
je 0x65a88b82
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
jmp 0x65a88a82
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x65a88b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x65a88b56
jmp 0x65a88b82
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffffffff
jne 0x65a88b9a
jmp 0x65a88b8b
cmp eax, 0x2733
jg 0x65a88b62
cmp eax, 0x6d
jmp 0x65a88b6e
cmp eax, 0x2736
je 0x65a88b79
cmp eax, 0x2746
jne 0x65a88b8b
mov dword [esp], 0x20
jmp 0x65a88b92
mov dword [esp], 9
jmp 0x65a88b92
mov dword [esp], 0xb
jmp 0x65a88b92
mov dword [esp], 5
call sym._gpg_err_set_errno
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x65a88bf5
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
test eax, eax
jns 0x65a88c27
mov dword [ebp - 0xc], eax
call sym.___assuan_socket.part.2
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x65a88c40
Capabilities:
Get socket status
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x11c]
sub esp, 0x13c
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
push edx
jne 0x65a88d27
lea eax, [ebp - 0x120]
mov dword [esp + 0x10], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x124]
mov dword [esp + 8], eax
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
sub esp, 0x14
test eax, eax
jne 0x65a88d27
mov edi, 4
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x65a88dae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x65a88d66
dec edi
je 0x65a88d8d
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
jmp 0x65a88ca3
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x65a88d59
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x65a88d66
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffffffff
jne 0x65a88dae
jmp 0x65a88d9f
cmp eax, 0xe8
je 0x65a88d96
jg 0x65a88d76
cmp eax, 0x6d
je 0x65a88d96
jmp 0x65a88d9f
cmp eax, 0x2733
je 0x65a88d8d
cmp eax, 0x2736
jne 0x65a88d9f
mov dword [esp], 9
jmp 0x65a88da6
mov dword [esp], 0xb
jmp 0x65a88da6
mov dword [esp], 0x20
jmp 0x65a88da6
mov dword [esp], 5
call sym._gpg_err_set_errno
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x65a88e3c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
leave
ret

Function at 0x65a895a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x65a8d6c8
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable
Function at 0x65a89600
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x65a8e498]
test esi, esi
jle 0x65a896f3
mov edi, dword [0x65a8e49c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x65a89634
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x65a896ec
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x65a89620
mov dword [esp], eax
mov esi, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x65a89730
mov esi, dword [0x65a8e49c]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x65a8e49c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x65a89710
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x65a896e5
sub eax, 4
and eax, 0xfffffffb
je 0x65a896e5
add ebx, dword [0x65a8e49c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x65a896fa
add dword [0x65a8e498], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x65a8963e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x65a8e49c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error

Function at 0x65a899c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x65a8e4a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x65a8e4a0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x65a89a15
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x65a89a0e
test esi, esi
je 0x65a89a0e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x65a899f0
mov dword [esp], 0x65a8e4a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402f40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dffb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 4]
mov esi, dword [ebx]
cmp esi, edi
je 0x402f8e
nop dword [eax]
mov ecx, esi
call fcn.00402d90
add esi, 0x24
cmp esi, edi
jne 0x402f80
mov eax, dword [ebx]
mov dword [ebx + 4], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call edi
mov esi, eax
test esi, esi
je 0x40309f
nop
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403090
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x403090
call fcn.00405bf0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x402fe9
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x402fed
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push esi
mov dword [ebp - 0x23c], esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403040
sub eax, edx
lea ecx, [ebp - 0x238]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004041e0
lea eax, [ebp - 0x234]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x23c]
mov ecx, ebx
push eax
call fcn.00403510
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402d90
push 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x402fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004388ef
mov esp, ebp
pop ebp
ret
Function at 0x4032e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e03b
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [edi]
call ebx
mov esi, eax
test esi, esi
je 0x403425
nop dword [eax]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403416
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x403416
call fcn.00405bf0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x403369
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x40336d
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push esi
mov dword [ebp - 0x23c], esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4033c0
sub eax, edx
lea ecx, [ebp - 0x238]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004041e0
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x23c]
push eax
lea ecx, [edi + 0x18]
call fcn.00403510
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402d90
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x403330
mov esi, dword [edi + 0x18]
cmp esi, dword [edi + 0x1c]
je 0x403443
mov ebx, dword [ebp - 0x240]
push esi
mov ecx, ebx
call fcn.004032e0
add esi, 0x24
cmp esi, dword [edi + 0x1c]
jne 0x403433
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004388ef
mov esp, ebp
pop ebp
ret 4
Function at 0x409f40
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.CMainDlg::OnComposition_n
mov edi, ecx
call fcn.0040e4e0
mov eax, dword [edi + 0x3e8]
add esp, 4
cmp dword [eax + 0x208], 5
jne 0x40a028
test dword [ebp + 0x10], 0x800
je 0x40a013
push dword [edi + 0x25c]
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov ebx, eax
test ebx, ebx
je 0x40a028
push 0
push 0
push 0x800
push ebx
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
test eax, eax
je 0x40a006
add eax, 2
xor ecx, ecx
mov dword [ebp + 0x10], eax
mov edx, 2
shr eax, 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00438ff0
add esp, 4
mov esi, eax
push dword [ebp + 0x10]
push 0
push esi
call fcn.0043b770
add esp, 0xc
push dword [ebp + 0x10]
push esi
push 0x800
push ebx
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00406740
mov ecx, dword [edi + 0x3e8]
add ecx, 0x23c
call fcn.00408ab0
push esi
call fcn.00438feb
add esp, 4
push ebx
push dword [edi + 0x25c]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov ecx, dword [edi + 0x3e8]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::Invalidate_void_]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret 0x10

Function at 0x40a040
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0xd
mov esi, ecx
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x40a080
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x40a080
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a066
sub ecx, edi
sar ecx, 1
pop edi
je 0x40a080
push edx
mov ecx, esi
call fcn.0040e440
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a090
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e720
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.CMainDlg::OnChar
call fcn.0040e4e0
mov ebx, dword [ebp + 0xc]
add esp, 4
movsx eax, bl
push eax
push str.xxxxxxxxxxxxxxxxxxxxxxxxx:_c_n
call fcn.0040e4e0
mov ecx, dword [esi + 0x3e8]
add esp, 8
cmp dword [ecx + 0x208], 5
jne 0x40a1cc
cmp ebx, 8
jne 0x40a105
add ecx, 0x23c
call fcn.00408c20
jmp 0x40a1c0
cmp ebx, 0xd
jne 0x40a12d
push 0x4b616c
call fcn.0040e4e0
mov ecx, dword [esi + 0x3e8]
add esp, 4
add ecx, 0x23c
call fcn.00409290
jmp 0x40a1c0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ebx, 0x16
jne 0x40a15e
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40a170
lea ecx, [ebp - 0x28]
call fcn.0040a040
jmp 0x40a170
push ebx
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.0040e380
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40a18d
mov eax, dword [ecx]
jmp 0x40a18f
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00407470
mov ecx, dword [esi + 0x3e8]
add ecx, 0x23c
call fcn.00408ab0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004029f0
mov ecx, dword [esi + 0x3e8]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::Invalidate_void_]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004388ef
mov esp, ebp
pop ebp
ret 0x10

Function at 0x412300
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_DestroyCaret]
push dword [edi + 0x2a8]
call dword [sym.imp.USER32.dll_DestroyCursor]
lea eax, [edi + 0x194]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ebx, dword [edi + 0x234]
mov esi, dword [edi + 0x230]
cmp esi, ebx
je 0x412342
mov ecx, esi
call fcn.00412190
add esi, 0x6c
cmp esi, ebx
jne 0x412334
mov eax, dword [edi + 0x230]
mov dword [edi + 0x234], eax
mov eax, dword [edi + 0x1f8]
mov dword [edi + 0x1fc], eax
push dword [edi + 0x1e0]
mov dword [edi + 0x1dc], 0
mov word [edi + 0x1d8], 0
mov dword [edi + 0x208], 6
mov dword [edi + 0x204], 0xa
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [edi + 0x1e4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [edi + 0x1e8]
call esi
mov esi, dword [sym.imp.soui.dll_public:_struct_SOUI::ISwndContainer____thiscall_SOUI::SWindow::GetContainer_void_]
mov ecx, edi
call esi
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call esi
push 0
push 0
push 0x10
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
ret
Function at 0x415940
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
cmp byte [edi + 0x1db], 0
je 0x41595f
call fcn.00414c90
push 0
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x1e4]
lea esi, [edi + 0x1e0]
mov dword [esp + 0x18], eax
push dword [esi]
call dword [sym.imp.GDI32.dll_SelectObject]
movups xmm0, xmmword [edi + 0x194]
push esi
mov ecx, edi
movaps xmmword [esp + 0x34], xmm0
call fcn.00414cf0
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
movaps xmm1, xmmword [esp + 0x30]
mov esi, eax
movaps xmm0, xmm1
movd edi, xmm1
psrldq xmm0, 0xc
movd ecx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
mov dword [esp + 0x10], esi
sub ecx, eax
mov dword [esp + 0x28], eax
movd eax, xmm0
push ecx
mov dword [esp + 0x20], ecx
sub eax, edi
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x1c]
mov esi, eax
mov ecx, dword [esp + 0x20]
push 0xcc0020
push edx
push ecx
push dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x40]
push dword [edi + 0x1e0]
push edx
push ecx
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
push esi
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, edi
call dword [sym.imp.soui.dll_public:_struct_SOUI::ISwndContainer____thiscall_SOUI::SWindow::GetContainer_void_]
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x415a6a
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x18]
push esi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x415a6e
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [esp + 0x14]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret