joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40251e
Capabilities:
Create process on windows
Delete file

Disassembly:
mov eax, 0x405574
call fcn.004050a0
mov eax, 0x13e8
call fcn.004050d0
push ebx
push esi
mov esi, str.vdgame.exe
push edi
push esi
lea eax, [ebp - 0x10]
mov edi, ecx
push 0x40961c
push eax
mov dword [ebp - 0x14], edi
call sub.MFC42.DLL_operator_2
mov eax, dword [0x409244]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x4026d3
cmp dword [0x4096c8], eax
jl 0x4026d3
push esi
call fcn.00404325
cmp eax, dword [0x409638]
pop ecx
je 0x4025a2
push esi
lea eax, [ebp - 0x18]
push 0x40961c
push eax
call sub.MFC42.DLL_operator_2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, edi
call fcn.00402ff3
push 0x44
lea eax, [ebp - 0x6c]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x6c], esi
push ebx
push ebx
push 0x147
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
call fcn.00404b76
mov ecx, esi
shl ecx, 3
mov esi, dword [ecx + 0x409648]
mov edi, dword [ecx + 0x40964c]
sub esi, eax
sub edi, edx
call fcn.00404254
movzx edx, byte [eax + 2]
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dh, byte [eax + 3]
mov dl, byte [eax + 4]
movzx eax, byte [eax + 5]
shl edx, 8
or eax, edx
push eax
push ecx
push edi
push esi
push dword [0x4096c0]
lea eax, [ebp - 0x13f4]
push str._s_width_d_height_d_m1_d_m2_2
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x13f4]
push dword [0x40961c]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4026fa
mov esi, dword [ebp - 0x14]
push 2
mov byte [0x4096d0], 1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x409618]
push ebx
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x28]
call edi
mov ecx, dword [0x409618]
push 5
mov byte [0x4096d0], bl
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
push ebx
push ebx
push ebx
push dword [0x409628]
lea ecx, [esi + 0xa4]
call fcn.00404c0f
mov ecx, esi
call fcn.004024c2
jmp 0x4026fa
cmp byte [0x4096d1], bl
je 0x4026fa
push dword [ebp - 0x10]
call fcn.00404422
test al, al
pop ecx
jne 0x4026fa
push ebx
push 0x4092d8
push 0x4092b8
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4043c2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x5c
push ebx
call edi
mov esi, eax
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
inc esi
push 0x5c
push esi
call edi
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4043ff
and byte [esi], 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
je 0x404411
mov byte [esi], 0x5c
jmp 0x4043ee
push ebx
call fcn.00404422
pop ecx
pop edi
test al, al
pop esi
pop ebx
setne al
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x4048f1
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x405833
call fcn.004050a0
sub esp, 0x118
and dword [ebp - 0x20], 0
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x124]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and byte [ebp - 0x121], 0
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
or dword [ebp - 0x18], 0xffffffff
push 1
pop ebx
mov edi, 0x409640
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [ebp - 0x124]
push 0
push eax
mov byte [ebp - 4], 2
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x124]
mov dword [ebp - 0x1c], 0xa
cmp byte [esi], 0
je 0x4049b3
push esi
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4049b3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4049b3
push esi
call fcn.00404a0f
cmp eax, dword [ebp - 0x18]
pop ecx
jle 0x4049b3
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_CString::operator_1
add esi, 4
dec dword [ebp - 0x1c]
jne 0x40497a
push edi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x4049d7
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00404d7c
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405ff1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42c2c4], 0
jne 0x40602f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406005
mov dword [ecx*4 + 0x42c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406000
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40605c
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42c2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40603d
not eax
pop ebp
ret 0xc

Function at 0x4eccd1
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4eca52
sub ecx, 0x86a86760
add ecx, 0x6624cee2
call fcn.004ecd11
and ecx, ebx
mov ecx, ecx
xor dword [esi], edx
dec ebx
mov ebx, ebx
add ebx, ebx
add esi, 1
add ecx, 0xfa0afdc2
sub ebx, ebx
sub ecx, 0x8526ce38
cmp esi, edi
jl fcn.004eccd1
or ecx, ebx
ret
Function at 0x403630
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0xc
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
push esi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 4]
push edx
push 1
push esi
push 0x403530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ecx
ret

Function at 0x403680
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0xc
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
push esi
mov dword [eax], edx
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 4]
push edx
push 1
push esi
push 0x4036d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ecx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405a06
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x403edf
test byte [esp + 8], 2
je 0x403edf
mov dword [0x40b174], 0xd
mov dword [0x40b178], 5
jmp 0x403eba
xor eax, eax
ret
Function at 0x403749
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4d3588], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40378e
push 0x402b50
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402b90
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x422d28]
mov ebx, dword [0x422d2c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403742
mov eax, dword [0x422d30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x422d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x4d3588], 0xc
mov dword [ebp - 4], ecx
jne 0x40382f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc44]
push eax
push esi
push 0x402c38
push 0x402c04
push 0x402cc0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push esi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x4d3588]
cmp ecx, 0xfa9
jne 0x40384d
mov dword [0x4d2b24], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x40385b
mov dword [0x4d24d8], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0x4d2b20], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4d3588], 0x213
mov dword [ebp - 0x14], ecx
jne 0x403899
push esi
push 0x402c84
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x4d3588], 0xc
jne 0x4038e2
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402d38
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4037c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x40392d
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d3588]
mov ecx, dword [0x4d24dc]
sub esp, 0x834
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403a25
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4d3588], 0x959
jne 0x403a13
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402dd4
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402e10
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e58
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403749
add ebx, 8
dec dword [ebp - 4]
jne 0x403956
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4057fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422494]
jne 0x405805
repz ret
jmp fcn.0040901c

Function at 0x40ae3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406dc6
and dword [ebp - 4], 0
cmp dword [0x424108], 0
mov ebx, eax
jne 0x40aeec
push 0x4021bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40af9d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021b0
push edi
call esi
test eax, eax
je 0x40af9d
push eax
call fcn.00406d54
mov dword [esp], 0x4021a0
push edi
mov dword [0x424108], eax
call esi
push eax
call fcn.00406d54
mov dword [esp], 0x40218c
push edi
mov dword [0x42410c], eax
call esi
push eax
call fcn.00406d54
mov dword [esp], 0x402170
push edi
mov dword [0x424110], eax
call esi
push eax
call fcn.00406d54
pop ecx
mov dword [0x424118], eax
test eax, eax
je 0x40aeec
push 0x402158
push edi
call esi
push eax
call fcn.00406d54
pop ecx
mov dword [0x424114], eax
mov eax, dword [0x424114]
cmp eax, ebx
je 0x40af44
cmp dword [0x424118], ebx
je 0x40af44
push eax
call fcn.00406dcf
push dword [0x424118]
mov esi, eax
call fcn.00406dcf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40af44
test edi, edi
je 0x40af44
call esi
test eax, eax
je 0x40af3b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40af3b
test byte [ebp - 0xc], 1
jne 0x40af44
or dword [ebp + 0x10], 0x200000
jmp 0x40af7d
mov eax, dword [0x42410c]
cmp eax, ebx
je 0x40af7d
push eax
call fcn.00406dcf
pop ecx
test eax, eax
je 0x40af7d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40af7d
mov eax, dword [0x424110]
cmp eax, ebx
je 0x40af7d
push eax
call fcn.00406dcf
pop ecx
test eax, eax
je 0x40af7d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424108]
call fcn.00406dcf
pop ecx
test eax, eax
je 0x40af9d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40af9f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407940
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x462c7b
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.004579ab
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4079c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004558fa
mov eax, dword [eax]
push 0x4771f0
push eax
call fcn.004485c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00457c36
test bl, bl
je 0x4079c2
push 0x4771f0
lea ecx, [esp + 0xc]
call fcn.00457fc6
push 0x47ad58
lea ecx, [esp + 0xc]
call fcn.00457fc6
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 0x4079fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00457c36
jmp 0x407ac9
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 0x407a82
lea edx, [esp + 0x7c]
push 0x47ad54
push edx
call fcn.004485c4
add esp, 8
test eax, eax
je 0x407a82
lea eax, [esp + 0x7c]
push 0x47ad50
push eax
call fcn.004485c4
add esp, 8
test eax, eax
je 0x407a82
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 0x407a12
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.00457c36
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 0x4082c0
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 0x408322
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 0x408330
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x462cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x481288]
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 0x408468
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408396
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457c36
xor eax, eax
jmp 0x4084df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00457d73
push esi
lea ecx, [esp + 0xc]
call fcn.00458002
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x47ad90
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4084bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004082c0
test eax, eax
jne 0x4084bd
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.004082c0
test eax, eax
jne 0x4084bd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00449600
mov esi, eax
add esp, 8
test esi, esi
jne 0x40849c
lea ecx, [esp + 0x14]
push 0x47ad68
push ecx
call fcn.00449580
mov esi, eax
add esp, 8
test esi, esi
jne 0x40849c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40849f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00457d23
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4083ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00457c36
xor eax, eax
jmp 0x4084df
mov byte [esi], 0
push 0x47ad64
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.00457c36
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 0x4189d0
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 0x418a3e
cmp si, 0x69
ja 0x418a3e
add esi, 0xffd0
cmp si, 0x11
je 0x418a0e
push 0x11
call edi
test ax, ax
jge 0x418a0e
or esi, 0x2000
cmp si, 0x10
je 0x418a23
push 0x10
call edi
test ax, ax
jge 0x418a23
or esi, 0x4000
cmp si, 0x12
je 0x418a38
push 0x12
call edi
test ax, ax
jge 0x418a38
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x418a4b
mov esi, 0xbd
jmp 0x4189ff
cmp si, 0x6e
jne 0x418a58
mov esi, 0xbe
jmp 0x4189ff
cmp si, 0x6f
jne 0x4189f9
mov esi, 0xbf
jmp 0x4189ff

Function at 0x41a0f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4918d0]
xor edx, edx
cmp eax, edx
jne 0x41a116
xor eax, eax
mov byte [eax + 0x4917d0], al
inc eax
cmp eax, 0x100
jl 0x41a0fe
mov dword [0x4918d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4917d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a1a7
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 0x41a17a
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 0x41a148
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a220
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 0x41a273
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 0x41a25a
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