joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f8ca
Capabilities:
Get common file path

Disassembly:
mov eax, 0x44d260
call fcn.0042c4cc
sub esp, 0x160
push ebx
xor ebx, ebx
cmp byte [0x47b110], bl
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, 0x47b110
jne 0x41f907
cmp esi, ebx
je 0x41f935
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [0x47b110], bl
je 0x41f935
cmp esi, ebx
je 0x41f935
push edi
call fcn.0042cc10
push eax
push esi
push edi
call fcn.0042d377
add esp, 0x10
test eax, eax
je 0x41f935
push esi
push str.Writing_to_a_file_outside_of_the_Windows_folder:__s
push 8
push 0x46abb8
call fcn.0040121a
add esp, 0x10
call fcn.0041566d
test eax, eax
je 0x41fab0
cmp esi, ebx
je 0x41f958
push esi
call fcn.00402af4
test eax, eax
pop ecx
mov dword [ebp + 0x14], 1
jne 0x41f95b
mov dword [ebp + 0x14], ebx
cmp dword [ebp + 8], ebx
mov edi, 0xffdc
je 0x41f99a
cmp dword [ebp + 0xc], ebx
je 0x41f99a
cmp dword [ebp + 0x10], ebx
je 0x41f99a
push dword [ebp + 8]
call fcn.0042cc10
push dword [ebp + 0xc]
add edi, 0xfffffffa
sub edi, eax
call fcn.0042cc10
push 0xfffffffffffffffd
pop ebx
push dword [ebp + 0x10]
sub ebx, eax
call fcn.0042cc10
sub ebx, eax
add esp, 0xc
add edi, ebx
xor ebx, ebx
cmp esi, ebx
je 0x41fa9c
cmp dword [ebp + 0x14], ebx
je 0x41f9d5
lea eax, [ebp - 0x16c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x41f9f8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41f9f8
cmp dword [ebp - 0x150], ebx
jne 0x41f9f8
cmp dword [ebp - 0x14c], edi
jae 0x41f9f8
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push esi
push ebx
push ebx
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, edi
jmp 0x41fac0
cmp dword [ebp + 0x14], ebx
je 0x41f9d5
cmp dword [0x47b214], ebx
je 0x41fa9c
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.004151e3
push esi
call fcn.0042cc10
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401879
mov ecx, dword [0x47b214]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.004216f0
mov edi, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.004151e3
mov eax, dword [0x47b214]
cmp edi, dword [eax + 4]
je 0x41fa9c
mov al, byte [ebp + 0x13]
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.004151e3
push esi
call fcn.0042cc10
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401879
mov ecx, dword [0x47b214]
push 1
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], edi
call fcn.0042169f
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x1c]
call fcn.004151e3
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041e37b
add esp, 0x10
jmp 0x41fac0
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42339b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, eax
push esi
shr eax, 4
and ebx, 0xf
inc eax
push edi
push dword [esp + 0x18]
movzx eax, ax
push eax
push 6
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x4233ff
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4233ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4233ff
mov edi, eax
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x4233f7
inc edi
inc edi
cmp ecx, ebx
movzx esi, ax
je 0x423405
lea edi, [edi + esi*2]
jmp 0x4233f9
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x4233e1
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea eax, [esi + esi + 2]
push eax
call fcn.0044332e
pop ecx
mov ebx, eax
test ebx, ebx
je 0x423426
push esi
push edi
push ebx
call fcn.0042f1c5
add esp, 0xc
and word [ebx + esi*2], 0
mov eax, ebx
jmp 0x423401

Function at 0x434827
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x467710
cmp edx, dword [eax]
je 0x434849
add eax, 8
inc ecx
cmp eax, 0x4677a0
jl 0x43483a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x467710]
jne 0x434977
mov eax, dword [0x47d41c]
cmp eax, 1
je 0x434951
test eax, eax
jne 0x43487a
cmp dword [0x466ff4], 1
je 0x434951
cmp edx, 0xfc
je 0x434977
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4348b1
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042cc90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042cc10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4348f4
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042cc10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45290c
push edi
call fcn.004324f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042cc90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042cca0
lea eax, [ebp - 0xa0]
push 0x4528ec
push eax
call fcn.0042cca0
push dword [esi + 0x467714]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042cca0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00437d9d
add esp, 0x2c
pop edi
jmp 0x434977
lea eax, [ebp + 8]
lea esi, [esi + 0x467714]
push 0
push eax
push dword [esi]
call fcn.0042cc10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x43e820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43e840
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042fd3a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43e863
test byte [esp + 8], 2
je 0x43e863
call fcn.0042fdad
mov dword [eax], 0xd
call fcn.0042fdb6
mov dword [eax], 5
jmp 0x43e83c
xor eax, eax
ret
Function at 0x44244e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x442490
call fcn.00447f26
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x442490
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x442487
xor eax, eax
jmp 0x442498
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044249e
pop edi
pop esi
pop ebx
ret 4
Function at 0x4010f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4034d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
mov dword [esp + 0x238], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x12c]
push 0x104
push ecx
mov edx, dword [eax + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea eax, [esp + 0x30]
push ebx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x138]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString
mov esi, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 1
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push esi
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x244], 2
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x23c], 3
call fcn.00402fa2
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], 2
call fcn.00402f9c
lea ecx, [esp + 0xc]
mov byte [esp + 0x238], 1
call fcn.00402f9c
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], bl
call fcn.00402f9c
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x240]
mov byte [esp + 0x238], 4
sub eax, ebx
je 0x4012b0
dec eax
je 0x401276
dec eax
je 0x40123c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], bl
call fcn.00402f90
lea ecx, [esp + 8]
mov dword [esp + 0x238], 0xffffffff
call fcn.00402f9c
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
add esp, 0x234
ret
lea eax, [esp + 8]
push str.winwpp.exe
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 7
call sub.MFC42.DLL_CFile::Open
mov esi, eax
mov byte [esp + 0x238], 4
lea ecx, [esp + 0x10]
jmp 0x4012e8
lea edx, [esp + 8]
push str.winwps.exe
lea eax, [esp + 0x10]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 6
call sub.MFC42.DLL_CFile::Open
mov esi, eax
mov byte [esp + 0x238], 4
lea ecx, [esp + 0xc]
jmp 0x4012e8
lea ecx, [esp + 8]
push str.et.exe
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 5
call sub.MFC42.DLL_CFile::Open
mov esi, eax
mov byte [esp + 0x238], 4
lea ecx, [esp + 0x14]
call fcn.00402f9c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], bl
call fcn.00402f90
lea ecx, [esp + 8]
mov dword [esp + 0x238], 0xffffffff
call fcn.00402f9c
mov ecx, dword [esp + 0x230]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret
Function at 0x4026d0
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push 1
push 0x208
call fcn.004133d2
push 1
push 0x208
mov edi, eax
call fcn.004133d2
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x40280b
test ebp, ebp
je 0x40280b
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov edx, ebp
xor esi, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40270f
push 7
push str.http:__
push ebp
call fcn.00413850
add esp, 0xc
test eax, eax
je 0x402755
push 8
push str.https:__
push ebp
call fcn.00413850
add esp, 0xc
test eax, eax
je 0x402755
push 0x5c
push ebp
call fcn.004131d0
add esp, 8
test eax, eax
je 0x402755
mov byte [eax], 0
mov esi, ebp
push 5
push esi
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4027fa
mov eax, dword [esp + 0x18]
push edi
push eax
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
push edi
call ebx
push edi
push edi
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
push 0x41a610
push edi
call fcn.004136d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push 0x41a60c
push edi
call fcn.004136d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + edi - 1]
jmp 0x4027e1
mov byte [esi], 0
push 0x41a608
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebp
call fcn.00413483
push edi
call fcn.00413483
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402810
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
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 0x402859
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x40331c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45000c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403394
xor eax, eax
push ebp
push 0x40338d
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 0x4033d0
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 0x403394
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45000c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45000c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404094
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x451048], 0
je 0x4040f5
cmp word [0x45121c], 0xd7b2
jne 0x4040bd
cmp dword [0x451224], 0
jbe 0x4040bd
mov eax, 0x451218
call dword [0x451234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x450054
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 0x40411c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45001c], 0
jne 0x404111
push 0
push 0x450074
push 0x450054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4094cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409505
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404300
jmp 0x40950e
mov eax, ebx
mov edx, esi
call fcn.00404264
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409518
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409539
mov al, byte [esp]
jmp 0x40953b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409bc0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409a38
mov eax, dword [0x450e34]
cmp byte [eax], 0
je 0x409c28
mov eax, dword [0x450c94]
call fcn.00402c38
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408704
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409c70
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409c5e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x450c54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x451714]
call fcn.004058fc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40a754
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a7b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404478
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004083fc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7bf
lea eax, [ebp - 0xc]
call fcn.00404210
ret
Function at 0x41c35c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x451a20
cmp dword [edi], 0
jne 0x41c3d8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x451a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4504bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c334
lea eax, [esi + 5]
call fcn.0041c354
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c354
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41c3ad
mov dword [0x451a1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41d7d4
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 0x41d7da
ret

Function at 0x41fbe8
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 0x41fc39
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fc20
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fc10
jmp 0x41fc39
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 0x41fc21
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427e5c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x427f2e
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x427f00
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x427eef
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004028c0
mov eax, dword [ebp - 4]
call fcn.00427d98
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427ef6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret

Function at 0x427f68
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x42800a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x427fdd
mov edx, ebx
mov eax, dword [0x41d298]
call fcn.004210a8
test al, al
je 0x427fcd
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.00420fb8
call fcn.00403d1c
jmp 0x428011
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x427f98
mov ecx, dword [0x450c4c]
mov dl, 1
mov eax, dword [0x407444]
call fcn.00409d30
call fcn.00403c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428011
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x428018
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x428070
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428077
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x428080
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4280d5
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4280dc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x42814c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4281c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00427d98
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0042107c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4281ab
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4281c8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4281d0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x428245
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00427d98
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x42822f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42824c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x428f64
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x428eb0
call sub.user32.dll_EnumWindows
ret