joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409180
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4127e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
mov byte [esp + 0x120], 2
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x12001c4]
call fcn.00411290
lea edx, [esp + 0x10]
push str..configAppSetAppSet.ini
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0xc]
push 0xef34
call sub.MFC42.DLL_CString::LoadStringA
push 0xef35
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push ecx
push edx
call edi
push 0xef36
lea ecx, [esp + 0xc]
mov byte [esi + 0x12001bc], al
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call edi
push 0xef37
lea ecx, [esp + 0xc]
mov byte [esi + 0x12001bd], al
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call edi
push 0xef38
lea ecx, [esp + 0xc]
mov dword [esi + 0x12001be], eax
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call edi
mov byte [esi + 0x12001c2], al
push 0xef39
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call edi
lea ecx, [esp + 8]
mov byte [esi + 0x12001c3], al
mov byte [esp + 0x120], 1
call fcn.0041128a
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 0
call fcn.0041128a
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.0041128a
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x409330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x412810
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
push str..configAppSetAppSet.ini
push eax
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::Format
lea ecx, [esp + 0x10]
push str.PROKIT_ERASE_FLASH
push ecx
call sub.MFC42.DLL_CString::Format
lea edx, [esp + 0x14]
push str.eraseflash
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
and eax, 0xff
push eax
push 0x4189b0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0x24
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp]
mov byte [esp + 0x18], 2
call fcn.0041128a
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.0041128a
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.0041128a
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041128a
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40b5e0
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x412980
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
push str.configAppSetAppSet.ini
lea eax, [esp + 0x18]
push 0x161ae0c
push eax
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.0041128a
lea ecx, [esp + 0xc]
push str.PROKIT_ERASE_FLASH
push ecx
call sub.MFC42.DLL_CString::Format
lea edx, [esp + 0x10]
push str.eraseflash
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 0x10
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [esp + 0x18], al
mov esi, dword [esp + 0x18]
push esi
call dword [0x161ae88]
mov eax, esi
and eax, 0xff
cmp eax, 4
ja case.default.0x40b6ac
jmp dword [eax*4 + 0x40b790]
mov dword [0x161ae24], 1
mov dword [0x161ae20], ebx
jmp 0x40b6d5
mov dword [0x161ae24], ebx
mov dword [0x161ae20], 1
mov dword [0x161ae1c], ebx
mov dword [0x161ae18], ebx
mov dword [0x161ae60], ebx
jmp case.default.0x40b6ac
mov dword [0x161ae24], ebx
mov dword [0x161ae20], ebx
mov dword [0x161ae1c], 1
mov dword [0x161ae18], ebx
mov dword [0x161ae60], ebx
jmp case.default.0x40b6ac
mov dword [0x161ae24], ebx
mov dword [0x161ae20], ebx
mov dword [0x161ae1c], ebx
mov dword [0x161ae18], 1
mov dword [0x161ae60], ebx
jmp case.default.0x40b6ac
mov dword [0x161ae24], ebx
mov dword [0x161ae20], ebx
mov dword [0x161ae1c], ebx
mov dword [0x161ae18], ebx
mov dword [0x161ae60], 1
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.0041128a
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.0041128a
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041128a
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40c55d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x412aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x64], ebx
cdq
and edx, 0xf
mov dword [esi + 0x68], ebx
add eax, edx
mov dword [esi + 0x6c], ebx
sar eax, 4
mov dword [esi + 0x50], eax
mov eax, 1
mov dword [esi + 0x60], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x54], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x413ab4
push ebx
push 0x31
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push 0x190
push ebx
push ebx
push ebx
push 0x10
mov dword [esp + 0x5c], ebx
mov dword [esi + 0x84], 0x10
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDC]
push ecx
call edi
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call dword [edx + 0x30]
push 0x41a6b0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esi + 0x20]
mov byte [esp + 0x24], 1
push edx
call edi
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 8]
lea edi, [esp + 0x14]
mov edx, dword [ecx - 8]
push edi
push edx
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call fcn.0041128a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], edx
mov ecx, esi
call fcn.0040c690
mov ecx, esi
call fcn.0040c6e0
mov ecx, esi
call fcn.0040c760
mov dword [esp + 0xc], 0x413adc
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 2
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 8
Function at 0x40e820
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x412cb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
lea edx, [eax + 0xb]
mov eax, dword [edi]
lea esi, [ecx + 0xb]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x40]
test eax, eax
je 0x40e87b
push 0x14
call ebx
push eax
push 0x10
call ebx
push eax
lea eax, [esp + 0x28]
push eax
jmp 0x40e891
mov eax, dword [edi + 4]
test eax, eax
je 0x40e898
push 0x10
call ebx
push eax
push 0x14
call ebx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esi]
push 0x12
mov ebp, eax
mov dword [esp + 0x44], edx
call ebx
push eax
mov eax, dword [esp + 0x44]
mov ecx, esi
call dword [eax + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 0x413ab4
mov ecx, dword [esi + 8]
push 0x58
push ecx
mov dword [esp + 0x40], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x60
push 0x3c
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebx
push str.Marlett
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFont::CreatePointFont
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0x30]
push 0x41a8e4
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ebx, dword [esi]
mov edi, dword [eax - 8]
add ecx, 2
push edi
add edx, 2
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x48], 1
call dword [ebx + 0x64]
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0041128a
mov eax, dword [esp + 0x40]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x38]
mov dword [esp + 0x18], 0x413adc
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x40a790
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b3cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045fa60
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a812
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d80d
mov eax, dword [eax]
push 0x4881d0
push eax
call fcn.0044fc94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045fceb
test bl, bl
je 0x40a812
push 0x4881d0
lea ecx, [esp + 0xc]
call fcn.0046007b
push 0x48bd4c
lea ecx, [esp + 0xc]
call fcn.0046007b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a84e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045fceb
jmp 0x40a919
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a8d2
lea edx, [esp + 0x7c]
push 0x48bd48
push edx
call fcn.0044fc94
add esp, 8
test eax, eax
je 0x40a8d2
lea eax, [esp + 0x7c]
push 0x48bd44
push eax
call fcn.0044fc94
add esp, 8
test eax, eax
je 0x40a8d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a862
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045fceb
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b110
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b172
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40b180
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b44b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4926d0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40b2b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b1e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fceb
xor eax, eax
jmp 0x40b32f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045fe28
push esi
lea ecx, [esp + 0xc]
call fcn.004600b7
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b30d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040b110
test eax, eax
jne 0x40b30d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040b110
test eax, eax
jne 0x40b30d
lea eax, [esp + 0x14]
push 0x48bd60
push eax
call fcn.00450cd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b2ec
lea ecx, [esp + 0x14]
push 0x48bd5c
push ecx
call fcn.00450c50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b2ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b2ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045fdd8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b1fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045fceb
xor eax, eax
jmp 0x40b32f
mov byte [esi], 0
push 0x48bd58
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045fceb
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41c800
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41c86e
cmp si, 0x69
ja 0x41c86e
add esi, 0xffd0
cmp si, 0x11
je 0x41c83e
push 0x11
call edi
test ax, ax
jge 0x41c83e
or esi, 0x2000
cmp si, 0x10
je 0x41c853
push 0x10
call edi
test ax, ax
jge 0x41c853
or esi, 0x4000
cmp si, 0x12
je 0x41c868
push 0x12
call edi
test ax, ax
jge 0x41c868
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41c87b
mov esi, 0xbd
jmp 0x41c82f
cmp si, 0x6e
jne 0x41c888
mov esi, 0xbe
jmp 0x41c82f
cmp si, 0x6f
jne 0x41c829
mov esi, 0xbf
jmp 0x41c82f

Function at 0x41df20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a2dc8]
xor edx, edx
cmp eax, edx
jne 0x41df46
xor eax, eax
mov byte [eax + 0x4a2cc8], al
inc eax
cmp eax, 0x100
jl 0x41df2e
mov dword [0x4a2dc8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a2cc8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41dfd7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41dfaa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41df78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41e0a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41e08a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fc50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d478
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042a550
test eax, eax
je 0x42fd58
lea ecx, [esp + 0xc]
call fcn.00401760
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042a550
mov ecx, eax
call fcn.00427bf0
test eax, eax
je 0x42fd3f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42fd3f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42fd3f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401960
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42fd21
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42fd3f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4a3218]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x4781a8
call fcn.00401960
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42fda0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042a550
test eax, eax
je 0x42fe8f
mov ecx, edi
call fcn.0042a550
mov ecx, eax
call fcn.00427aa0
test eax, eax
jne 0x42fe8f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42fe8f
mov eax, dword [0x4a3218]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42fe02
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042a550
mov ecx, eax
call fcn.00427cd0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42fe8f
cmp ebx, eax
jne 0x42fe8f
cmp dword [esp + 0x10], eax
jne 0x42fe75
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc