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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42f726
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push edi
mov edi, ecx
push eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ebx, eax
test ebx, ebx
je 0x4203fc
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x10]
push esi
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x432750
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xc8], 0
test eax, eax
je 0x4202f2
push 0xff
jmp 0x420331
mov eax, dword [edi + 0x94]
test eax, eax
je 0x420300
push 0
jmp 0x420331
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x30], 5
jne 0x42032c
cmp dword [esp + 0x34], 1
jne 0x42032c
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
jmp 0x420331
push 0xc0c0c0
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x10]
mov edx, dword [esi + 4]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edx
call edi
mov dword [0x43934c], eax
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x420392
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
push ecx
jmp 0x4203b4
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
dec eax
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
dec eax
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [0x43934c]
mov edx, dword [esi + 4]
push ecx
push edx
call edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov eax, dword [esi + 4]
mov ecx, dword [ebx + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 0xc], 0x431dc8
lea ecx, [esp + 0xc]
mov dword [esp + 0xc8], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
pop esi
mov ecx, dword [esp + 0xbc]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 0xc
Function at 0x420dc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x42f94b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
push edi
lea eax, [esp + 0x15c]
lea ecx, [esp + 0x158]
push eax
lea edx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x15c], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 4]
mov edi, eax
call fcn.0042d5b2
cmp edi, 0xffffffff
je 0x420e7f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
mov esi, dword [esp + 0x168]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x160]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator_1
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x160], 2
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x158], 1
call fcn.0042d5b2
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
jne 0x420e2e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebp
lea ecx, [esp + 0x158]
mov byte [esp + 0x150], 0
call fcn.0042d5b2
lea ecx, [esp + 0x15c]
mov dword [esp + 0x150], 0xffffffff
call fcn.0042d5b2
mov ecx, dword [esp + 0x148]
pop edi
mov dword fs:[0], ecx
add esp, 0x150
ret 0xc
Function at 0x425310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42fff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_1
push str.Palette.map
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push 0x90
push 0x90
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
cmp ax, 2
jl 0x4253d5
movsx eax, ax
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0042d5b2
mov edx, dword [esp + 8]
mov eax, dword [edx - 8]
test eax, eax
je 0x42541c
push 0x5c
lea ecx, [esp + 0xc]
call fcn.0042da98
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0042d5b2
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x425479
mov eax, dword [edi + 0x6c]
cmp eax, 1
jne 0x425441
mov eax, 0x6000
jmp 0x425452
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xfffff000
add eax, 0x5000
push 0
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Seek
mov ecx, dword [edi + 0x28]
push 0x1000
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 1
call fcn.0042d5b2
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0042d5b2
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042d69c
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x42ce40
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
add eax, 0xfffffef0
mov ecx, 0x41
push ebx
push esi
mov ebx, dword [eax]
push edi
lea esi, [eax + 4]
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e55
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c98
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c98
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e3f
inc ebx
jmp 0x402e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e5c
lea eax, [ebp - 8]
call fcn.004044e0
ret

Function at 0x402e64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044e0
test esi, esi
jne 0x402e9b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004045d0
jmp 0x402ebc
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402ebc
cmp dword [ebx], 0
je 0x402ebc
dec esi
jmp 0x402ea3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403544
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035bc
xor eax, eax
push ebp
push 0x4035b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035bc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c048], 0
je 0x404339
cmp word [0x46c21c], 0xd7b2
jne 0x404301
cmp dword [0x46c224], 0
jbe 0x404301
mov eax, 0x46c218
call dword [0x46c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46a06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404360
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46a030], 0
jne 0x404355
push 0
push 0x46a064
push 0x46a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404494
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46c049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40445c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40616c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4061d2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404750
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403108
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061bc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061d9
lea eax, [ebp - 0x10]
call fcn.004044e0
ret

Function at 0x408ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x408bd1
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x408bd8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x408c09
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40ba8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40bad4
mov ecx, dword [ebp - 0x10]
dec ecx
lea edx, [ebp - 0x110]
mov eax, dword [ebp + 8]
call fcn.004045d0
jmp 0x40badf
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00404534
mov esp, ebp
pop ebp
ret 4

Function at 0x40bae8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bb16
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40bb1c
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret
Function at 0x40c2a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c0ec
mov eax, dword [0x46b878]
cmp byte [eax], 0
je 0x40c337
mov eax, dword [0x46b5d0]
call fcn.00402f74
call fcn.00402bc4
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00408e84
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40c37c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c36d
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x46b568]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c664]
call fcn.004055d8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40cd44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40ce22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404578
lea eax, [ebp - 0xc]
call fcn.004049f0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004049a0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ce0c
mov eax, dword [ebp - 0x10]
call fcn.00402a38
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40ce05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004049a0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cdef
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40ce30
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cdef
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce0c
mov eax, dword [ebp - 0x18]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce29
lea eax, [ebp - 0xc]
call fcn.004044e0
ret
Function at 0x40d5e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d652
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404750
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408894
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d659
lea eax, [ebp - 0x14]
call fcn.004044e0
ret

Function at 0x4196f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindResourceA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x419726
push ebp
call fcn.00419680
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LoadResource
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x41974c
push ebp
call fcn.00419680
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.004192b4
mov esp, ebp
pop ebp
ret 4

Function at 0x41d5dc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41d629
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041d3e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41d641
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41d648
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
setge dl
mov eax, dword [ebp - 4]
call fcn.0041d3e4
cmp dword [ebp - 8], 1
jne 0x41d67c
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 0
pop ecx
pop ecx
pop ebp
ret
Function at 0x41f63c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x46c888], 0
jne 0x41f6e9
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [0x46c884]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x46a3ec
mov ecx, 2
call fcn.00402c58
mov edx, 0x41f5f8
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041f618
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0041f618
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [0x46c888]
mov edx, dword [ebp - 0xc]
mov dword [edx + 5], eax
mov eax, dword [ebp - 0xc]
mov dword [0x46c888], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41f6a3
mov eax, dword [ebp - 8]
mov dword [0x46c884], eax
mov eax, dword [0x46c888]
mov dword [ebp - 4], eax
mov eax, dword [0x46c888]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x46c888], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x420d8c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420d92
ret

Function at 0x423a08
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x423a59
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423a40
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423a30
jmp 0x423a59
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x423a41
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42dd88
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404990
xor eax, eax
push ebp
push 0x42debb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42de8e
xor eax, eax
push ebp
push 0x42de87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004047a0
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42de5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42de4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004047a0
inc eax
push eax
mov eax, dword [ebp - 8]
call fcn.004049a0
mov edx, dword [ebp - 0x10]
pop ecx
call fcn.00402c58
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0xc]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42de52
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x46b4f0]
mov dl, 1
mov eax, dword [0x407614]
call fcn.0040c458
call fcn.00403e70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dec2
lea eax, [ebp - 8]
call fcn.004044e0
ret