joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c694
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x42c6d7
mov eax, dword [ebp - 0x10c]
mov dword [0x6fb950], eax
mov eax, 0x6fb954
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040a8ac
mov eax, 0x6fb958
call fcn.00409c34
xor eax, eax
mov dword [0x6fb95c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x6fb814], 0xa
jl 0x42c82d
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x42c838
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x42c82d
xor eax, eax
push ebp
push 0x42c826
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42c894
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42c786
cmp dword [ebp - 8], 2
jle 0x42c786
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42c759
adc edx, 0
mov eax, 0x6fb958
call fcn.0040a984
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6fb958]
call fcn.0040a7f8
push eax
push 0
push 0
push 0x42c894
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x42c7e0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x42c8b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x42c7e0
cmp dword [ebp - 8], 2
jle 0x42c7e0
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x42c7b5
adc edx, 0
mov eax, 0x6fb958
call fcn.0040a984
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6fb958]
call fcn.0040a7f8
push eax
push 0
push 0
push 0x42c8b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x6fb95c
push 0
push 0
push 0x42c8c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42c80d
xor eax, eax
mov dword [0x6fb95c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c82d
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x6e6710], 1
mov esp, ebp
pop ebp
ret
Function at 0x42c970
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 0x42ca4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a06c
lea eax, [ebp - 4]
call fcn.0040a1d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a7f8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42ca32
mov eax, ebx
call fcn.00407044
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42ca2b
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.0040a7f8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42ca13
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ca5c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42ca13
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 0x42ca32
mov eax, dword [ebp - 0x10]
call fcn.00407060
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ca51
lea eax, [ebp - 4]
call fcn.00409c34
pop eax
jmp eax

Function at 0x42dd3c
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.0040a118
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fe20
mov edi, eax
cmp edi, 0x104
jbe 0x42dce7
mov eax, edi
add eax, eax
call fcn.00407044
mov esi, eax
jmp 0x42dce9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fe20
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42dd22
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 0x42dd0c
mov eax, esp
cmp esi, eax
je 0x42dd2f
mov eax, esi
call fcn.00407060
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 0x42dd68
cmp bl, 0
je 0x42dd64
cmp bl, 0x41
jl 0x42dd5f
cmp bl, 0x5a
jg 0x42dd5f
or bl, 0x20
xor al, bl
inc esi
jmp 0x42dd43
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42dca8
Function at 0x42f1d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42f1f0
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42f20a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42f205
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42f20f
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42f27d
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42f2c6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42f23b
inc dword [ebp - 0xc]
jmp 0x42f253
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42f253
cmp dword [ebp - 0xc], 0
jle 0x42f253
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42f275
xor eax, eax
jmp 0x42f271
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42f270
mov eax, esi
jmp 0x42f2c9
inc eax
cmp eax, ecx
jle 0x42f25d
inc esi
cmp esi, dword [ebp - 8]
jl 0x42f227
jmp 0x42f2c6
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42f2c6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42f29e
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42f2c0
xor eax, eax
jmp 0x42f2bc
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42f2bb
mov eax, esi
jmp 0x42f2c9
inc eax
cmp eax, ecx
jle 0x42f2a8
inc esi
cmp esi, dword [ebp - 8]
jl 0x42f286
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42f67c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42f69b
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42f6ab
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42f7cd
test ebx, ebx
jl 0x42f7cd
test esi, esi
jle 0x42f7cd
mov eax, dword [ebp - 8]
call fcn.0040a7f8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a7f8
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42f76a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42f7cd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42f74f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42f71e
inc dword [ebp - 0x14]
jmp 0x42f72e
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42f72e
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42f739
or eax, 0xffffffff
jmp 0x42f74f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42f74c
inc eax
jmp 0x42f74f
or eax, 0xffffffff
test eax, eax
jl 0x42f757
cmp esi, eax
jg 0x42f70c
cmp esi, eax
jg 0x42f762
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42f7d0
inc edx
dec dword [ebp - 0x1c]
jne 0x42f708
jmp 0x42f7cd
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42f7cd
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42f7b4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42f793
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42f79e
or eax, 0xffffffff
jmp 0x42f7b4
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42f7b1
inc eax
jmp 0x42f7b4
or eax, 0xffffffff
test eax, eax
jl 0x42f7bc
cmp esi, eax
jg 0x42f77c
cmp esi, eax
jg 0x42f7c7
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42f7d0
inc edx
dec dword [ebp - 0x1c]
jne 0x42f778
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43dc00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43dc08
mov eax, edx
pop esi
pop ebx
ret
Function at 0x44d628
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x44d63c
add esp, 0xfffffff0
call fcn.00408414
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x4476c4]
call fcn.00468164
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x44c664]
call fcn.004697c0
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x44c664]
call fcn.004697c0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x44d691
call fcn.0040846c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ab3a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4ab3ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004aaab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ab407
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4ab410
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004aaab4
dec esi
jne 0x4ab432
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4add0c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6fe904
cmp dword [edi], 0
jne 0x4add88
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x6fe900]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6e7484
mov ecx, 2
call fcn.00407358
mov edx, 0x4adce4
lea eax, [esi + 5]
call fcn.004add04
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004add04
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 0x4add5d
mov dword [0x6fe900], 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 0x4b7c24
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4b7c3b
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4b7c2b
mov eax, ecx
pop ebx
ret
Function at 0x4e3990
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e3b4f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a06c
mov eax, dword [ebp - 4]
call fcn.004e32dc
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4e39e2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040ac74
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004e44f8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e3ac3
xor eax, eax
push ebp
push 0x4e3abc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004e357c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004e3b84
test al, al
je 0x4e3a98
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409dcc
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4e3a98
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040a7f8
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004e34dc
test al, al
je 0x4e3a92
mov eax, dword [ebp - 8]
call fcn.0040a7f8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040a858
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004e3990
dec ebx
cmp ebx, 0xffffffff
jne 0x4e3a41
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3ac3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004e357c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
cmp byte [0x6fe960], 0
je 0x4e3b03
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040a7f8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004e3568
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004e34dc
mov ebx, eax
jmp 0x4e3b2a
mov eax, dword [ebp - 4]
call fcn.0040a7f8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004e3568
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004e34dc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3b56
lea eax, [ebp - 0x3c]
call fcn.00409c34
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409c94
pop eax
jmp eax
Function at 0x4e3bf4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e3cae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004e3b84
test al, al
je 0x4e3c8e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409dcc
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4e3c8e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a7f8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040a7f8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040a858
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4e3c47
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3cb5
lea eax, [ebp - 0x2c]
call fcn.00409c34
lea eax, [ebp - 4]
call fcn.00409c34
pop eax
jmp eax

Function at 0x4e3e68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e3f22
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004e3b84
test al, al
je 0x4e3f02
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409dcc
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4e3f02
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a7f8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040a7f8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040a858
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4e3ebb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3f29
lea eax, [ebp - 0x2c]
call fcn.00409c34
lea eax, [ebp - 4]
call fcn.00409c34
pop eax
jmp eax
Function at 0x4e43f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004e32f4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040a7f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004e34dc
test al, al
jne 0x4e4460
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6f6bac]
mov dl, 1
mov eax, dword [0x4e1138]
call fcn.0042b874
call fcn.004092a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e446c
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.0040a7f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004e34dc
test al, al
jne 0x4e44cd
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6f7100]
mov dl, 1
mov eax, dword [0x4e1138]
call fcn.0042b874
call fcn.004092a8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004e3324
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 0x4eeae0
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 0x4eeae6
ret
Function at 0x4f51b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, esi
call fcn.004f5044
lea edx, [ebp - 0x22]
mov ecx, 0x16
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x22], 0x9ac6cdd7
jne 0x4f51f6
lea eax, [ebp - 0x22]
call fcn.004f272c
cmp ax, word [ebp - 0xe]
je 0x4f51fb
call fcn.004f16c4
sub dword [ebp - 8], 0x16
mov eax, dword [ebp - 8]
call fcn.00407044
mov dword [ebp - 0xc], eax
mov ebx, dword [esi + 0x30]
xor eax, eax
push ebp
push 0x4f5325
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x30]
movzx edx, word [ebp - 0x14]
mov word [eax + 0x18], dx
cmp word [ebp - 0x14], 0
jne 0x4f5241
mov word [ebp - 0x14], 0x60
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x18]
movsx edx, word [ebp - 0x1c]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0xc], eax
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x16]
movsx edx, word [ebp - 0x1a]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x34], 8
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4f52b2
call fcn.004f16c4
lea eax, [ebp - 0xa0]
push eax
push 0x6c
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_GetEnhMetaFileHeader
mov dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_DeleteEnhMetaFile
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4f5306
call fcn.004f16c4
mov byte [esi + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f532c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00407060
pop eax
jmp eax
Function at 0x50cb9c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
and eax, 0xff
shr ecx, 8
inc edx
xor ecx, dword [eax*4 + 0x6e9d24]
cmp edx, 4
mov eax, ecx
jl 0x50cba4
pop ebp
ret

Function at 0x50cbc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
inc edx
shr eax, 0x18
and eax, 0xff
shl ecx, 8
xor ecx, dword [eax*4 + 0x6ea124]
cmp edx, 4
mov eax, ecx
jl 0x50cbc8
pop ebp
ret
Function at 0x51b008
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x6feb48], 0
je 0x51b149
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6f6d04]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x51b149
mov eax, dword [0x6feb4c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6feb48]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x51b118
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6feb48]
call fcn.00499468
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x51b110
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x21d], 0
je 0x51b110
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x7c]
test al, al
je 0x51b110
mov eax, dword [ebp - 0x14]
call fcn.005276cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x51b110
push ebp
call fcn.0051afc4
pop ecx
test al, al
jne 0x51b110
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.004081f8
test al, al
je 0x51b110
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.004081f8
cmp byte [ebp - 1], 0
je 0x51b110
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.004121d4
test al, al
je 0x51b110
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6feb4c]
call fcn.0051a744
inc edi
dec ebx
jne 0x51b06d
mov eax, dword [0x6feb4c]
cmp dword [eax + 8], 0
jle 0x51b130
mov eax, dword [0x6feb4c]
call fcn.0051a7f8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51b149
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0051ae2c
pop ecx
test al, al
jne 0x51b149
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret