joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e604
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
call fcn.00409da8
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040a9b0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42e649
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00409f40
jmp 0x42e662
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040ab3c
push ebx
mov eax, dword [esi]
call fcn.0040a9b0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42ed80
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 0x42eda0
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42edba
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42edb5
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42edbf
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42ee2d
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42ee76
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42edeb
inc dword [ebp - 0xc]
jmp 0x42ee03
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42ee03
cmp dword [ebp - 0xc], 0
jle 0x42ee03
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42ee25
xor eax, eax
jmp 0x42ee21
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ee20
mov eax, esi
jmp 0x42ee79
inc eax
cmp eax, ecx
jle 0x42ee0d
inc esi
cmp esi, dword [ebp - 8]
jl 0x42edd7
jmp 0x42ee76
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42ee76
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42ee4e
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42ee70
xor eax, eax
jmp 0x42ee6c
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42ee6b
mov eax, esi
jmp 0x42ee79
inc eax
cmp eax, ecx
jle 0x42ee58
inc esi
cmp esi, dword [ebp - 8]
jl 0x42ee36
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42f088
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 0x42f0a7
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42f0b7
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 0x42f1d9
test ebx, ebx
jl 0x42f1d9
test esi, esi
jle 0x42f1d9
mov eax, dword [ebp - 8]
call fcn.0040a9b0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040a9b0
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 0x42f176
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42f1d9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42f15b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42f12a
inc dword [ebp - 0x14]
jmp 0x42f13a
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42f13a
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42f145
or eax, 0xffffffff
jmp 0x42f15b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42f158
inc eax
jmp 0x42f15b
or eax, 0xffffffff
test eax, eax
jl 0x42f163
cmp esi, eax
jg 0x42f118
cmp esi, eax
jg 0x42f16e
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42f1dc
inc edx
dec dword [ebp - 0x1c]
jne 0x42f114
jmp 0x42f1d9
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42f1d9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42f1c0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42f19f
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42f1aa
or eax, 0xffffffff
jmp 0x42f1c0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42f1bd
inc eax
jmp 0x42f1c0
or eax, 0xffffffff
test eax, eax
jl 0x42f1c8
cmp esi, eax
jg 0x42f188
cmp esi, eax
jg 0x42f1d3
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42f1dc
inc edx
dec dword [ebp - 0x1c]
jne 0x42f184
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43c770
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 0x43c778
mov eax, edx
pop esi
pop ebx
ret
Function at 0x44c344
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x44c358
add esp, 0xfffffff0
call fcn.00408610
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x4463a8]
call fcn.00467520
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x44b380]
call fcn.00468b7c
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x44b380]
call fcn.00468b7c
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 0x44c3ad
call fcn.00408668
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ab4c8
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4ab50b
cmp byte [ebx + 0x11], 0
jne 0x4ab50b
cmp byte [ebx + 0x24], 0
jne 0x4ab50b
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4ab522
mov ecx, dword [0x6b8b94]
mov dl, 1
mov eax, dword [0x47a748]
call fcn.0042b5ec
call fcn.004094a0
pop ebx
ret
mov ecx, dword [0x6b8b94]
mov dl, 1
mov eax, dword [0x47a748]
call fcn.0042b5ec
call fcn.004094a0
pop ebx
ret

Function at 0x4abb54
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 0x4abba2
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.004ab440
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4abbbb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4abbc4
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.004ab440
dec esi
jne 0x4abbe6
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4ae484
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6bf914
cmp dword [edi], 0
jne 0x4ae500
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x6bf910]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6b22ec
mov ecx, 2
call fcn.00407420
mov edx, 0x4ae45c
lea eax, [esi + 5]
call fcn.004ae47c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004ae47c
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 0x4ae4d5
mov dword [0x6bf910], 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 0x4b81e4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4b81fb
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4b81eb
mov eax, ecx
pop ebx
ret
Function at 0x4dc694
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 0x4dc853
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a1e0
mov eax, dword [ebp - 4]
call fcn.004dc1b8
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4dc6e6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040ae2c
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.004dce84
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4dc7c7
xor eax, eax
push ebp
push 0x4dc7c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004dc374
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004dc888
test al, al
je 0x4dc79c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409f40
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4dc79c
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.0040a9b0
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.004dc2d4
test al, al
je 0x4dc796
mov eax, dword [ebp - 8]
call fcn.0040a9b0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040aa10
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004dc694
dec ebx
cmp ebx, 0xffffffff
jne 0x4dc745
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc7c7
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004dc374
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
cmp byte [0x6bf968], 0
je 0x4dc807
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040a9b0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004dc360
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004dc2d4
mov ebx, eax
jmp 0x4dc82e
mov eax, dword [ebp - 4]
call fcn.0040a9b0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004dc360
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004dc2d4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc85a
lea eax, [ebp - 0x3c]
call fcn.00409da8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409e08
pop eax
jmp eax
Function at 0x4dc8f8
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 0x4dc9b2
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.004dc888
test al, al
je 0x4dc992
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409f40
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4dc992
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.0040a9b0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040a9b0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040aa10
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4dc94b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc9b9
lea eax, [ebp - 0x2c]
call fcn.00409da8
lea eax, [ebp - 4]
call fcn.00409da8
pop eax
jmp eax

Function at 0x4dcd60
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.004dc1d0
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.0040a9b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004dc2d4
test al, al
jne 0x4dcdc8
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6b8a30]
mov dl, 1
mov eax, dword [0x4daf9c]
call fcn.0042b628
call fcn.004094a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4dcdd4
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.0040a9b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004dc2d4
test al, al
jne 0x4dce35
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6b8ea4]
mov dl, 1
mov eax, dword [0x4daf9c]
call fcn.0042b628
call fcn.004094a0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004dc200
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 0x4e6268
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 0x4e626e
ret
Function at 0x4ec95c
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.004ec7ec
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 0x4ec99e
lea eax, [ebp - 0x22]
call fcn.004e9ec0
cmp ax, word [ebp - 0xe]
je 0x4ec9a3
call fcn.004e8e58
sub dword [ebp - 8], 0x16
mov eax, dword [ebp - 8]
call fcn.00406ff0
mov dword [ebp - 0xc], eax
mov ebx, dword [esi + 0x30]
xor eax, eax
push ebp
push 0x4ecacd
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 0x4ec9e9
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 0x4eca5a
call fcn.004e8e58
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 0x4ecaae
call fcn.004e8e58
mov byte [esi + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecad4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0040700c
pop eax
jmp eax
Function at 0x503374
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 + 0x6b4af8]
cmp edx, 4
mov eax, ecx
jl 0x50337c
pop ebp
ret

Function at 0x503398
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 + 0x6b4ef8]
cmp edx, 4
mov eax, ecx
jl 0x5033a0
pop ebp
ret
Function at 0x504230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, edx
mov ebp, eax
mov eax, ebp
call fcn.004eedac
cmp al, 7
jne 0x5042ca
mov eax, ebp
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
test eax, eax
jl 0x5042ca
inc eax
mov dword [esp + 4], eax
mov dword [esp], 0
mov edx, dword [esp]
mov eax, ebp
call fcn.004eee3c
mov esi, eax
mov eax, ebp
mov edx, dword [eax]
call dword [edx + 0x30]
mov edi, eax
dec edi
test edi, edi
jl 0x5042c1
inc edi
mov byte [esi + 3], bl
movzx eax, byte [esi + 2]
movzx ecx, bl
imul ecx
push ecx
mov ecx, 0xff
xor edx, edx
div ecx
pop ecx
mov byte [esi + 2], al
movzx eax, byte [esi + 1]
imul ecx
push ecx
mov ecx, 0xff
xor edx, edx
div ecx
pop ecx
mov byte [esi + 1], al
movzx eax, byte [esi]
imul ecx
mov ecx, 0xff
xor edx, edx
div ecx
mov byte [esi], al
add esi, 4
dec edi
jne 0x50427d
inc dword [esp]
dec dword [esp + 4]
jne 0x504262
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5113a4
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 [0x6bfb50], 0
je 0x5114e5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x6b8b4c]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x5114e5
mov eax, dword [0x6bfb54]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x6bfb50]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x5114b4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x6bfb50]
call fcn.00498a74
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x5114ac
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x21d], 0
je 0x5114ac
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x7c]
test al, al
je 0x5114ac
mov eax, dword [ebp - 0x14]
call fcn.0051db10
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5114ac
push ebp
call fcn.00511360
pop ecx
test al, al
jne 0x5114ac
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.004083f4
test al, al
je 0x5114ac
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.004083f4
cmp byte [ebp - 1], 0
je 0x5114ac
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00412244
test al, al
je 0x5114ac
mov edx, dword [ebp - 0x14]
mov eax, dword [0x6bfb54]
call fcn.00510ae0
inc edi
dec ebx
jne 0x511409
mov eax, dword [0x6bfb54]
cmp dword [eax + 8], 0
jle 0x5114cc
mov eax, dword [0x6bfb54]
call fcn.00510b94
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5114e5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.005111c8
pop ecx
test al, al
jne 0x5114e5
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
Function at 0x51a264
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.004124ec
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00513a98
test ebx, ebx
jne 0x51a2b7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0051a114
mov ebx, eax
test ebx, ebx
je 0x51a3ad
cmp esi, ebx
je 0x51a2e0
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x51a2f5
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x51a32d
add eax, 0xffffff5f
sub eax, 2
jb 0x51a345
dec eax
sub eax, 2
jb 0x51a359
dec eax
sub eax, 2
jb 0x51a34f
jmp 0x51a363
add eax, 0xfffffdff
sub eax, 2
jb 0x51a345
dec eax
sub eax, 2
jb 0x51a359
dec eax
sub eax, 2
jb 0x51a34f
jmp 0x51a363
mov byte [esp + 0x120], 0
jmp 0x51a36b
mov byte [esp + 0x120], 2
jmp 0x51a36b
mov byte [esp + 0x120], 1
jmp 0x51a36b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00594944
mov esi, eax
call fcn.00510164
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0051558c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x51a3af
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x538f44
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x539035
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x539005
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
xor edx, edx
push ebp
push 0x538ff4
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.00407420
mov eax, dword [ebp - 4]
call fcn.00538e20
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.user32.dll_SetClipboardData
test eax, eax
jne 0x538fdb
mov ecx, dword [0x6b8648]
mov dl, 1
mov eax, dword [0x46e4a4]
call fcn.0042b5ec
call fcn.004094a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538ffb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
pop eax
jmp eax