joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d95
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405532], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Magnetick
push str.Charge_Window_App
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402ddc
xor eax, eax
jmp 0x402df3
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret

Function at 0x403212
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404488
push 0x403374
push eax
mov eax, dword [0x4055b0]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x4055ac]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.0040336a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x4055a8]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d0
push 0x4040cc
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4032ad
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x4032a5
cmp al, 0x22
jne 0x40329a
cmp byte [esi], 0x22
jne 0x4032b7
inc esi
jmp 0x4032b7
cmp al, 0x20
jbe 0x4032b7
inc esi
cmp byte [esi], 0x20
ja 0x4032b1
cmp byte [esi], 0
je 0x4032c7
cmp byte [esi], 0x20
ja 0x4032c7
inc esi
cmp byte [esi], 0
jne 0x4032bc
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4032e7
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x403323
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4222db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push 5
push dword [esp + 0x10]
mov ebx, ecx
call sub.MFC71U.DLL_AfxFindMessageEntry
mov esi, eax
test esi, esi
je 0x422360
push ebp
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.vsansi.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
jne 0x422308
xor eax, eax
jmp 0x42235f
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx + 4], eax
add eax, 0x40
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebx + 8], eax
je 0x422304
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebx + 4]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
inc eax
pop edi
pop ebp
pop esi
pop ebx
ret 4

Function at 0x4386c8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x45845b
call fcn.00457d90
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov edi, 0x401b50
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
lea ecx, [esi + 0x18]
mov dword [ebp - 4], ebx
call sub.MFC71U.DLL_CDBVariant::CDBVariant
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call sub.MFC71U.DLL_CDBVariant::CDBVariant
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43d3a6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x43cc56
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
mov edi, str.SpyxxProcessPacket
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
call dword [sym.imp.vsansi.dll_RegisterClassW]
test ax, ax
jne 0x43d3f2
xor eax, eax
jmp 0x43d45b
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov eax, dword [eax + 8]
push esi
push eax
mov eax, dword [0x46e1c0]
push esi
push dword [eax + 0x20]
push esi
push esi
push esi
push esi
push 0x40000000
push esi
push edi
push esi
call dword [sym.imp.vsansi.dll_CreateWindowExW]
cmp eax, esi
mov dword [0x46dba0], eax
je 0x43d3ee
push esi
push esi
push esi
push esi
call dword [sym.imp.vsansi.dll_CreateEventW]
cmp eax, esi
mov dword [0x46dce8], eax
je 0x43d3ee
push dword [0x46dba0]
push 0x10000
push 0x43d109
call dword [sym.imp.MSVCR71.dll__beginthread]
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
setne cl
mov dword [0x46dcec], eax
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x43e7b7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
lea ecx, [esi + 0x58]
call fcn.0043e355
mov esi, dword [esi + 0x54]
cmp dword [esi + 0x85c], 0
je 0x43e81b
cmp dword [esi + 0x86c], 0xffffffff
je 0x43e81b
push edi
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll_wcslen]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
shl eax, 1
push eax
push dword [ebp + 8]
push dword [esi + 0x86c]
call edi
push 0
lea eax, [ebp + 0xc]
push eax
push 2
push 0x412724
push dword [esi + 0x86c]
call edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x43ee36
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0xc]
push eax
push 0x412738
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x43ee68
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43ee6c
xor eax, eax
jmp 0x43eea4
and dword [ebp - 0x10], 0
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push esi
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4
Function at 0x43eea8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0xc]
push eax
push 0x412738
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x43ef2a
push esi
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
test esi, esi
je 0x43ef29
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
neg eax
push 0
sbb eax, eax
push 0
and eax, 2
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43ef1e
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4

Function at 0x43f01b
Capabilities:
Get token privileges

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x46b3b8]
push ebx
push esi
push edi
mov dword [ebp + 0x39c], eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x3a8]
xor esi, esi
push esi
push 0x400
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x70], esi
call fcn.0043ef2e
cmp eax, esi
mov dword [ebp - 0x7c], eax
je 0x43f16b
lea ecx, [ebp - 0x6c]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x43f15b
lea eax, [ebp + 0x3a8]
push eax
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ebx, ebx
inc ebx
push ebx
push dword [ebp - 0x6c]
call esi
mov eax, dword [ebp + 0x3a8]
add eax, 3
and eax, 0xfffffffc
call fcn.00457e00
mov edi, esp
lea eax, [ebp + 0x3a8]
push eax
push dword [ebp + 0x3a8]
push edi
push ebx
push dword [ebp - 0x6c]
call esi
test eax, eax
je 0x43f14e
mov eax, 0x100
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x19c]
push eax
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x43f14e
mov ax, word [ebp + 0x19c]
test ax, ax
je 0x43f14e
cmp ax, 0x53
je 0x43f109
cmp ax, 0x4c
je 0x43f109
cmp ax, 0x4e
jne 0x43f14e
mov esi, dword [sym.imp.MSVCR71.dll__wcsicmp]
lea eax, [ebp + 0x19c]
push 0x412798
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x43f14b
lea eax, [ebp + 0x19c]
push 0x41277c
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x43f14b
lea eax, [ebp + 0x19c]
push 0x41275c
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x43f14e
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x43f162
mov dword [ebp - 0x68], 1
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], esi
je 0x43f176
push esi
call fcn.0043eea8
mov eax, dword [ebp - 0x68]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x39c]
call fcn.00457d27
pop edi
pop esi
pop ebx
add ebp, 0x3a0
leave
ret 4
Function at 0x43fd38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
push edi
jne 0x43fd64
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [0x465ed8]
mov dword [0x46dd60], eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 4], eax
push dword [esi + 4]
push ebx
push dword [0x46dd60]
call dword [sym.imp.KERNEL32.dll_HeapSize]
mov edi, 0x46dd20
push edi
mov dword [0x465ed8], eax
call dword [sym.imp.MSVCR71.dll_wcslen]
test eax, eax
pop ecx
jne 0x43fda3
push dword [ebp + 8]
call fcn.0043fa6e
test eax, eax
jne 0x43fda3
push 0x4128bc
push 0x20
push edi
call fcn.004354cd
mov eax, dword [0x465ed8]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
lea eax, [ebp - 4]
push eax
push ebx
mov ebx, dword [sym.imp.vsansi.dll_RegQueryValueExW]
jmp 0x43fe03
push dword [esi + 4]
push 0
push dword [0x46dd60]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x465ed8]
add eax, eax
push eax
push 0
push dword [0x46dd60]
mov dword [0x465ed8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 4], eax
mov eax, dword [0x465ed8]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x80000004
call ebx
cmp eax, 0xea
je 0x43fdbf
push 4
mov dword [0x46e384], 1
call sub.MFC71U.DLL_CWordArray::CWordArray
test eax, eax
pop ecx
je 0x43fe2f
mov ecx, dword [esi + 4]
mov dword [eax], ecx
jmp 0x43fe31
xor eax, eax
pop edi
mov dword [esi], eax
pop esi
pop ebx
leave
ret 4

Function at 0x4493a2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push esi
lea eax, [edi - 1]
push eax
push 0xd
push dword [ebp + 8]
call dword [sym.imp.vsansi.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4493dc
dec edi
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.vsansi.dll_GetWindowTextW]
jmp 0x4493fe
lea eax, [edi - 1]
cmp dword [ebp - 4], eax
jge 0x4493e9
mov eax, dword [ebp - 4]
jmp 0x4493fe
mov word [esi + eax*2 - 2], 0x2e
mov word [esi + eax*2 - 4], 0x2e
mov word [esi + eax*2 - 6], 0x2e
and word [esi + eax*2], 0
pop edi
pop esi
leave
ret 0xc
Function at 0x456c11
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x46b3b8]
push ebx
push esi
mov dword [ebp + 0x94], eax
lea eax, [ebp - 0x78]
push eax
push 1
xor ebx, ebx
push ebx
push 0x41f178
push 0x80000002
xor esi, esi
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x456cab
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x41f194
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0xfa
mov byte [ebp - 0x74], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x456c96
push 0x105
lea eax, [ebp - 0x74]
push 0x41f16c
push eax
call sub.MSVCR71.dll_strncpy
add esp, 0xc
mov byte [ebp + 0x90], bl
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [ebp - 0x78]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
mov eax, esi
pop esi
pop ebx
call fcn.00457d27
add ebp, 0x98
leave
ret
Function at 0x457ad0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x420250
call fcn.00457fe4
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x457b10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x457b10
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x457b28
cmp eax, 0x20b
je 0x457b15
mov dword [ebp - 0x1c], edi
jmp 0x457b3c
cmp dword [ecx + 0x84], 0xe
jbe 0x457b10
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x457b36
cmp dword [ecx + 0x74], 0xe
jbe 0x457b10
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], edi
je 0x457b58
mov eax, dword [0x46e568]
cmp eax, edi
je 0x457b58
call eax
test eax, eax
jne 0x457b58
push 0x1d
call sub.MSVCR71.dll__amsg_exit
pop ecx
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x46e560], 0xffffffff
or dword [0x46e564], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x46e518]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x46e514]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x46e55c], eax
call fcn.0045803c
call fcn.00445c34
cmp dword [0x46b3e0], edi
jne 0x457bb8
push fcn.00445c34
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004580ca
push 0x45d038
push 0x45d034
call sub.MSVCR71.dll__initterm
push 0x458080
call fcn.00457ddc
mov eax, dword [0x46e510]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x46e50c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x457c0c
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x45d030
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x457c36
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x457cf0
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x457ca5
cmp ax, di
je 0x457c4c
cmp dword [ebp - 0x20], edi
jne 0x457ca5
mov ax, word [esi]
cmp ax, di
je 0x457c61
cmp ax, 0x20
ja 0x457c61
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x457c4c
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.vsansi.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x457c7d
movzx eax, word [ebp - 0x54]
jmp 0x457c80
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004582b0
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x457c9d
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x457cea
cmp ax, 0x22
jne 0x457cb6
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x457c36
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0045801f
ret
Function at 0x40b430
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f6ab
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.00463cc3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b4b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00461a70
mov eax, dword [eax]
push 0x4dd200
push eax
call fcn.00453d24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463f4e
test bl, bl
je 0x40b4b2
push 0x4dd200
lea ecx, [esp + 0xc]
call fcn.004642de
push 0x4e0d90
lea ecx, [esp + 0xc]
call fcn.004642de
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 0x40b4ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463f4e
jmp 0x40b5b9
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 0x40b572
lea edx, [esp + 0x7c]
push 0x4e0d8c
push edx
call fcn.00453d24
add esp, 8
test eax, eax
je 0x40b572
lea eax, [esp + 0x7c]
push 0x4e0d88
push eax
call fcn.00453d24
add esp, 8
test eax, eax
je 0x40b572
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 0x40b502
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.00463f4e
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 0x40bdb0
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 0x40be12
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 0x40be20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e777c]
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 0x40bf58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40be86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463f4e
xor eax, eax
jmp 0x40bfcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046408b
push esi
lea ecx, [esp + 0xc]
call fcn.0046431a
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 0x40bfad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040bdb0
test eax, eax
jne 0x40bfad
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.0040bdb0
test eax, eax
jne 0x40bfad
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00454d60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bf8c
lea ecx, [esp + 0x14]
push 0x4e0da0
push ecx
call fcn.00454ce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bf8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bf8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046403b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40be9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463f4e
xor eax, eax
jmp 0x40bfcf
mov byte [esi], 0
push 0x4e0d9c
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.00463f4e
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 0x420750
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 0x4207be
cmp si, 0x69
ja 0x4207be
add esi, 0xffd0
cmp si, 0x11
je 0x42078e
push 0x11
call edi
test ax, ax
jge 0x42078e
or esi, 0x2000
cmp si, 0x10
je 0x4207a3
push 0x10
call edi
test ax, ax
jge 0x4207a3
or esi, 0x4000
cmp si, 0x12
je 0x4207b8
push 0x12
call edi
test ax, ax
jge 0x4207b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4207cb
mov esi, 0xbd
jmp 0x42077f
cmp si, 0x6e
jne 0x4207d8
mov esi, 0xbe
jmp 0x42077f
cmp si, 0x6f
jne 0x420779
mov esi, 0xbf
jmp 0x42077f

Function at 0x421e70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f7e80]
xor edx, edx
cmp eax, edx
jne 0x421e96
xor eax, eax
mov byte [eax + 0x4f7d80], al
inc eax
cmp eax, 0x100
jl 0x421e7e
mov dword [0x4f7e80], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f7d80
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421f27
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 0x421efa
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 0x421ec8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421fa0
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 0x421ff3
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 0x421fda
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