joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459260
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x294]
test eax, eax
jle 0x45927d
mov dword [esp + 0x230], eax
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x14]
push 4
push ecx
mov ecx, esi
mov byte [esp + 0x1c], 5
mov byte [esp + 0x1d], 2
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 2
call dword [eax + 0x20]
test eax, eax
jne 0x4592b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea edx, [esp + 0x1a]
push 2
push edx
mov ecx, esi
call fcn.0045a9d0
test eax, eax
jne 0x4592d3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov ax, word [esp + 0x16]
test ah, ah
je 0x4592f0
cmp ah, 2
je 0x4592f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 8
cmp al, 2
jne 0x4593ac
lea edx, [esi + 0x1ac]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [esi + 0x1ec]
mov ebx, ecx
mov edi, ebp
or ecx, 0xffffffff
push ebx
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
lea eax, [esp + 0x2e]
not ecx
dec ecx
push edx
push eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x34], 1
mov byte [esp + 0x35], bl
call edi
mov eax, dword [esp + 0x24]
lea ecx, [esp + ebx + 0x37]
push eax
push ebp
push ecx
mov byte [esp + ebx + 0x42], al
call edi
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
add esp, 0x18
lea ecx, [eax + ebx + 3]
lea eax, [esp + 0x28]
push 0
push ecx
push eax
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x459374
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea ecx, [esp + 0x18]
push 2
push ecx
mov ecx, esi
call fcn.0045a9d0
test eax, eax
jne 0x459395
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov al, byte [esp + 0x15]
test al, al
je 0x4593ac
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 8
mov ebp, dword [esp + 0x22c]
mov byte [esp + 0x28], 5
push ebp
mov byte [esp + 0x2d], 1
mov byte [esp + 0x2e], 0
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x4593dc
mov byte [esp + 0x2b], 1
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x30]
jmp 0x459407
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2d]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x2b], 3
mov ebx, ecx
push ebx
push ebp
push edx
mov byte [esp + 0x38], bl
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
lea edi, [esp + ebx + 0x2d]
mov eax, dword [esp + 0x230]
push eax
call sub.WSOCK32.dll_htons
mov word [edi], ax
mov edx, dword [esi]
lea eax, [esp + 0x28]
push 0
sub edi, eax
lea ecx, [esp + 0x2c]
add edi, 2
push edi
push ecx
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x459440
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea edx, [esp + 0x20]
push 0xa
push edx
mov ecx, esi
call fcn.0045a9d0
test eax, eax
jne 0x459461
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov cl, byte [esp + 0x1d]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
sete al
add esp, 0x218
ret 8
Function at 0x459570
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x459680
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x45970b
xor eax, eax
push ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call sub.WSOCK32.dll_htonl
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x1a], bx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x4596fa
mov edx, dword [esi + 0x84]
push edx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x459725
mov eax, dword [esi + 0x84]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x45971a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esi + 0x8c], eax
push edi
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x80], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov cx, word [esi + 0x88]
push ecx
call sub.WSOCK32.dll_htons
lea edx, [esp + 0xc]
push 0x10
push edx
push edi
mov word [esp + 0x1a], ax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x45975a
cmp dword [esi + 0x1c], ebx
je 0x4596fa
mov dword [esi + 0x8c], 0x27d9
jmp 0x459705
mov dword [esi + 0x6c], edi
mov dword [esi + 0x80], 2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x459ac0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x459aee
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x68], 0
mov dword [esi + 0x80], 0
pop esi
ret
Function at 0x45b980
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareGlobalLinkGameShareSettingsMPID
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x45b9eb
cmp esi, 1
jne 0x45b9d0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x45b9e0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.switch_window
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x45ba0b
push 0
push esi
push 0x1212
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x45bca0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
test edi, edi
je 0x45bcc9
cmp byte [edi], 0
jne 0x45bce5
mov ecx, ebp
call fcn.0045c000
lea ecx, [esp + 0x18]
push 0x103
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x18]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x45bd00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x45bd1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push esi
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push edx
push eax
push 0x4d6160
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
push esi
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov word [ebp + 0x104], cx
mov dx, word [eax + 8]
mov word [ebp + 0x106], dx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov word [ebp + 0x108], cx
mov dx, word [eax + 0xc]
mov word [ebp + 0x10a], dx
call sub.MFC42.DLL_operatordelete
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x45bec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push str.SoftwareGloballinkGame_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
lea eax, [esp + 0x14]
mov dword [esp + 8], 0
push edx
push 1
push 0
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x45bf57
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.path
push ecx
mov dword [esp + 0x24], 0x103
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x10c
ret 8
Function at 0x4672c0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test edi, edi
jne 0x46738c
mov eax, dword [esp + 0x1c]
push edi
push 0x80
push 3
push edi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x467303
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call ebp
mov ebx, eax
push ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
jne 0x467329
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push esi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467355
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
cmp eax, ebx
je 0x46736c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call fcn.00466fe0
push edi
mov esi, eax
call sub.MFC42.DLL_operatordelete
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x4673ae
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4673ca
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4673db
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push eax
call fcn.00466fe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x46b430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b83d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_CopyRect]
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0xa0]
push eax
mov ecx, edi
mov ebx, dword [esi]
call fcn.00479c50
push eax
mov ecx, esi
call dword [ebx + 0x30]
mov ecx, dword [edi + 0x84]
lea edx, [esp + 0xc]
push ecx
push 0x4d6364
push edx
mov ebx, eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x50]
mov eax, dword [esi]
add esp, 0xc
push ecx
mov ecx, esi
call dword [eax + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
lea edi, [esp + 0x10]
push 0x25
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18

Function at 0x46ec60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b84d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 4]
mov ecx, esi
push edx
mov dword [esp + 0xc], eax
call fcn.00459790
push eax
mov ecx, esi
call fcn.0046f540
lea ecx, [esp + 0x30]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x46fc00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b852c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00454e2e
mov dword [esi], 0x4bdbd0
xor ebx, ebx
lea ecx, [esi + 0x14c]
mov dword [esp + 0x1c], ebx
call fcn.00481140
lea ecx, [esi + 0x1ac]
mov byte [esp + 0x1c], 1
call fcn.00479720
push 0x46fde0
push 0x46fd70
push 2
lea eax, [esi + 0x620]
push 0x10
push eax
mov byte [esp + 0x30], 2
call fcn.00455808
push ebx
mov ecx, esi
mov byte [esp + 0x20], 3
mov dword [esi], 0x4c3470
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x44], ebx
call fcn.0046ff10
mov ebp, 1
push ebx
push ebx
mov ecx, esi
mov dword [esi + 0x40], ebp
mov dword [esi + 0x4f4], ebp
mov dword [esi + 0x68], ebp
mov byte [esi + 0x64], bl
call fcn.00471950
lea edi, [esi + 0xac]
mov ecx, 0xf
xor eax, eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x4fc], 0x1f
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x4f8], ebx
push ebx
rep stosd dword es:[edi], eax
push ebx
mov ecx, esi
call fcn.00471a30
push ebx
mov ecx, esi
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x500], ebx
mov dword [esi + 0x48], ebx
call fcn.00471b50
mov eax, 3
lea edx, [esi + 0x640]
xor ecx, ecx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x12c], ebp
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], eax
mov dword [edx], ecx
xor eax, eax
lea edi, [esi + 0x650]
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, 0x88
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x4ec], ebp
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x148], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x473a50
Capabilities:
Encode data using add xor sub operations

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0x243c]
test eax, eax
je 0x473ab9
mov ecx, dword [esi + 0x2434]
test ecx, ecx
jl 0x473ab9
cdq
xor eax, edx
push edi
sub eax, edx
xor edi, edi
test eax, eax
jle 0x473aae
mov eax, dword [esi + 0xa2c]
mov ecx, dword [esi + 0x2434]
add eax, edi
mov dl, byte [eax + ecx]
mov eax, dword [ebx]
push edx
mov ecx, dword [eax - 8]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Insert_1
mov eax, dword [esi + 0x243c]
inc edi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jl 0x473a7f
mov edx, dword [ebx]
pop edi
pop esi
pop ebx
mov eax, dword [edx - 8]
ret 4
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x473a55
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0x243c]
test eax, eax
je 0x473ab9
mov ecx, dword [esi + 0x2434]
test ecx, ecx
jl 0x473ab9
cdq
xor eax, edx
push edi
sub eax, edx
xor edi, edi
test eax, eax
jle 0x473aae
mov eax, dword [esi + 0xa2c]
mov ecx, dword [esi + 0x2434]
add eax, edi
mov dl, byte [eax + ecx]
mov eax, dword [ebx]
push edx
mov ecx, dword [eax - 8]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Insert_1
mov eax, dword [esi + 0x243c]
inc edi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jl 0x473a7f
mov edx, dword [ebx]
pop edi
pop esi
pop ebx
mov eax, dword [edx - 8]
ret 4
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x475560
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax - 8]
test edx, edx
je 0x4755db
mov ecx, dword [ecx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4755db
mov edx, dword [esi]
mov eax, dword [edx - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4755db
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esi]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 4
Function at 0x4792d0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8db8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, dword [esp + 0x44]
test esi, esi
je 0x47944c
push ebx
push ebp
push edi
lea ecx, [esp + 0x10]
call fcn.00454da4
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x40], 0
test ebp, ebp
jne 0x479315
xor eax, eax
jmp 0x479318
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CDC::Attach
lea eax, [esp + 0x20]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
cmp eax, 3
jne 0x4793a8
mov esi, dword [esp + 0x4c]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [esi]
sub edx, eax
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
push edx
mov edx, dword [ebp + 4]
push ebx
push edi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
add edi, ecx
cmp edi, edx
jl 0x47935c
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0xc]
add ebx, ecx
cmp ebx, eax
jl 0x479357
jmp 0x47941f
dec eax
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 4]
mov ecx, dword [eax + 0xc]
je 0x4793f0
mov edi, dword [eax]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
mov ebx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
push 0
push 0
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x47941f
mov edi, dword [eax]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push 0
push 0
push eax
push ecx
mov ecx, dword [ebp + 4]
push edx
push esi
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x47b4e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b9248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x60], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CWindowDC::CWindowDC
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 1
call fcn.00454da4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4bd52c
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
mov byte [esp + 0x58], 3
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
sub eax, ecx
mov ecx, dword [esp + 0x24]
sub ecx, edi
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esp + 0x34]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
push 1
push ecx
lea edx, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov edi, eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x2c]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.0047ba30
test edi, edi
je 0x47b5f1
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x30]
push edi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], 0x4bd504
mov dword [esi], eax
mov dword [esi + 4], ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], 0x4bd4f0
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x3c]
mov byte [esp + 0x58], 0
call fcn.00455470
lea ecx, [esp + 0x64]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x54
ret 8
Function at 0x47d800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b9440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
push eax
push 1
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CPen::CPen
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov edi, eax
push ebx
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esp + 0x34]
push ebx
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0xc], 0x4bd504
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10