joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46922c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4693c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov edx, 0x4693d0
mov ecx, 0x4693e4
mov eax, ebx
call fcn.0041ae64
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405c44
call fcn.00405ddc
cmp eax, 0x14
jne 0x4693aa
cmp ebx, dword [0x619670]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x4693aa
mov eax, ebx
call fcn.0041a670
mov esi, eax
cmp word [esi + 0x18], 0x20b
jne 0x469312
lea eax, [ebp - 8]
push eax
push 0x40
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp ebx, dword [0x619670]
jne 0x4692cf
mov eax, 0x434a1c
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, ebx
mov dword [esi + 0x2c], eax
jmp 0x4692dc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x46939b
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
cmp ebx, dword [0x619670]
jne 0x46934f
mov eax, 0x434a1c
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, ebx
mov dword [esi + 0x2c], eax
mov eax, 0x6195e0
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
sub eax, ebx
mov dword [esi + 0x30], eax
jmp 0x46936a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
push 0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4693c7
lea eax, [ebp - 4]
call fcn.00405a18
ret
Function at 0x4694e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4696c7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x4696e4
call fcn.00405ac8
mov eax, dword [ebp - 4]
call fcn.004061d8
push eax
call sub.kernel32.dll_GetModuleHandleA
test eax, eax
jne 0x4696b1
xor eax, eax
push ebp
push 0x4696a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor esi, esi
jmp 0x469688
cmp dword [ebp - 0x1c], 0x1000
jne 0x469680
cmp dword [ebp - 0x18], 1
je 0x469680
cmp esi, dword [ebp - 0x28]
je 0x469680
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x469680
push 0x104
lea eax, [ebp - 0x236]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
test eax, eax
jbe 0x469680
mov eax, dword [ebp - 0x28]
call fcn.00439f44
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x469680
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x469680
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x469680
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x62f3f4]
mov esi, dword [esi]
mov eax, 0x4696f4
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x469641
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x62f3f4]
mov esi, dword [esi]
mov eax, 0x469704
mov ecx, 0x10
mov edx, dword [ebp - 0x10]
call esi
inc eax
sete dl
mov eax, dword [ebp - 0x28]
call fcn.00468bd8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x62f3f4]
mov esi, dword [esi]
mov eax, 0x469718
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x469680
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.004689f4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ebx, eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x469541
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4696b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4696ce
lea eax, [ebp - 4]
call fcn.00405a18
ret
Function at 0x46b7fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00405a18
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.004061d8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46b8c1
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004061d8
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0xc], 0
je 0x46b8b8
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46b8b2
cmp dword [ebp - 0x10], 1
jne 0x46b8a4
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.00405cfc
jmp 0x46b8b2
push 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.00405b50
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46de64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x633ddc
push 0xa
push 0x46def8
mov eax, dword [0x632b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x46de88
call fcn.00479ec0
push ebx
mov eax, dword [0x632b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x46de9f
call fcn.00479ec0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x46deb1
call fcn.00479ec0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x633de0], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x633de4], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x633de8], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x633dec], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x633df0], ecx
add edx, dword [eax + 0x14]
mov dword [0x633df4], edx
pop esi
pop ebx
ret

Function at 0x46fcb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x46fd59
test eax, edx
je 0x46fd5c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x46fcd9
push edx
mov edx, eax
mov eax, esp
call fcn.00406bcc
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x46fcef
push eax
lea eax, [esp + 8]
call fcn.00406bcc
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x46fcfe
movzx eax, word [eax]
sub eax, ecx
jmp 0x46fd25
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x46fd3f
add ecx, 4
js 0x46fd16
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x46fd3c
push eax
mov eax, ecx
mov edx, 2
call fcn.00405a3c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x46fd23
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x46fd25
xor eax, eax
ret
test eax, eax
je 0x46fd6c
test edx, edx
jne 0x46fcc0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406a3c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x470f76
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x470f97
cmp ebx, 3
je 0x470f97
cmp ebx, 0x7b
je 0x470f97
mov eax, esi
call fcn.00470f18
test al, al
jne 0x470f9b
xor eax, eax
jmp 0x470f9d
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406a3c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x470fb9
test al, 0x10
jne 0x470fbd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4710d8
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406a3c
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret
Function at 0x4710ec
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406a3c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x47110e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x476d38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x476d71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406aec
jmp 0x476d7a
mov eax, ebx
mov edx, esi
call fcn.004069b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x476d84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x476da6
movzx eax, word [esp]
jmp 0x476da8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47767c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4777a1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00477490
mov esi, eax
mov eax, dword [0x62f928]
cmp byte [eax], 0
je 0x477749
mov eax, dword [0x62f330]
call fcn.00403948
call fcn.00403244
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x477658]
call fcn.00408440
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4777bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x477785
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x62f270]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x632b50]
call fcn.00408648
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4777a8
lea eax, [ebp - 4]
mov edx, dword [0x477658]
call fcn.00408560
ret
Function at 0x4783cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4784a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406a04
lea eax, [ebp - 4]
call fcn.00407478
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406a3c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x47848c
mov eax, ebx
call fcn.004030ac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x478485
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406a3c
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x47846f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4784b4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x47846f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47848c
mov eax, dword [ebp - 0x10]
call fcn.004030c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4784a9
lea eax, [ebp - 4]
call fcn.004069a0
ret

Function at 0x479d38
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405de8
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x479ce2
mov eax, edi
add eax, eax
call fcn.004030ac
mov esi, eax
jmp 0x479ce4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x479d1d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x479d07
mov eax, esp
cmp esi, eax
je 0x479d2a
mov eax, esi
call fcn.004030c8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x479d64
cmp bl, 0
je 0x479d60
cmp bl, 0x41
jl 0x479d5b
cmp bl, 0x5a
jg 0x479d5b
or bl, 0x20
xor al, bl
inc esi
jmp 0x479d3f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x479ca4
Function at 0x47a5c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
xor edx, edx
call fcn.004069b0
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00406a3c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x47a607
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406aec
jmp 0x47a620
mov edx, ebx
dec edx
mov eax, esi
call fcn.00406d2c
push ebx
mov eax, dword [esi]
call fcn.00406a3c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x493c60
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00493964
dec esi
jne 0x493c82
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x494e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x636110
cmp dword [edi], 0
jne 0x494ebc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x63610c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x61a6dc
mov ecx, 2
call fcn.00403294
mov edx, 0x494e18
lea eax, [esi + 5]
call fcn.00494e38
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00494e38
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 0x494e91
mov dword [0x63610c], 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 0x497d38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00406a3c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x497d90
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x62fc60]
mov dl, 1
mov eax, dword [0x497660]
call fcn.004778b8
call fcn.004051f0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004977e8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x49c234
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 0x49c23a
ret
Function at 0x4a8e24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4a8e53
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4a8ed2
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004a76f4
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4a8ea0
mov cx, word [esp]
sub cx, si
jmp 0x4a8ea2
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a8e89
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4a8ec8
mov cx, word [esp]
sub cx, si
jmp 0x4a8eca
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a8eb1
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4a8f2f
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004a8af8
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4a8f1a
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4a8f2f
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4a8e2e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b8788
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406998
xor eax, eax
push ebp
push 0x4b891d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4b88eb
xor edx, edx
push ebp
push 0x4b88e4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406a04
mov eax, dword [ebp - 8]
test eax, eax
je 0x4b87f7
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4b87f7
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00405c04
test eax, eax
je 0x4b8800
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4b88b9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4b88a8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406a04
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4b8862
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4b8862
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00405c04
test eax, eax
je 0x4b886b
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00406a3c
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00403294
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b88af
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x62f134]
mov dl, 1
mov eax, dword [0x46e470]
call fcn.0047787c
call fcn.004051f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8924
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004069a8
ret

Function at 0x4bb10c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004069b0
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4bb153
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406bb0
add esp, 0x200
pop esi
pop ebx
ret