joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3140
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, 0x596560
push edi
mov ebx, dword [ebp + 8]
lea eax, [esi + 0xb]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
test edi, edi
je 0x4e3178
lea eax, [esi + 0x18]
push eax
push edi
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
jne 0x4e3178
invalid
push edi
call sub.KERNEL32.DLL_FreeLibrary
xor eax, eax
jmp 0x4e32d1
push edi
call sub.KERNEL32.DLL_FreeLibrary
lea edx, [ebx + 0x48]
push edx
call sub.KERNEL32.DLL_LoadLibraryA
mov edi, eax
mov dword [ebx + 0x38], edi
test edi, edi
jne 0x4e3197
xor eax, eax
jmp 0x4e32d1
lea edx, [esi + 0x26]
push edx
push edi
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx], eax
lea ecx, [esi + 0x40]
push ecx
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 4], eax
lea edx, [esi + 0x5b]
push edx
mov ecx, dword [ebx + 0x38]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 8], eax
lea eax, [esi + 0x72]
push eax
mov edx, dword [ebx + 0x38]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0xc], eax
lea ecx, [esi + 0x8b]
push ecx
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x10], eax
lea edx, [esi + 0xa8]
push edx
mov ecx, dword [ebx + 0x38]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x14], eax
lea eax, [esi + 0xbe]
push eax
mov edx, dword [ebx + 0x38]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x18], eax
lea ecx, [esi + 0xd8]
push ecx
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x1c], eax
lea edx, [esi + 0xe9]
push edx
mov ecx, dword [ebx + 0x38]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x20], eax
lea eax, [esi + 0x103]
push eax
mov edx, dword [ebx + 0x38]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x24], eax
lea ecx, [esi + 0x121]
push ecx
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x28], eax
lea edx, [esi + 0x13b]
push edx
mov ecx, dword [ebx + 0x38]
push ecx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x2c], eax
lea eax, [esi + 0x154]
push eax
mov edx, dword [ebx + 0x38]
push edx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebx + 0x30], eax
cmp dword [ebx], 0
je 0x4e32cb
cmp dword [ebx + 4], 0
je 0x4e32cb
cmp dword [ebx + 8], 0
je 0x4e32cb
cmp dword [ebx + 0xc], 0
je 0x4e32cb
cmp dword [ebx + 0x10], 0
je 0x4e32cb
cmp dword [ebx + 0x14], 0
je 0x4e32cb
cmp dword [ebx + 0x18], 0
je 0x4e32cb
cmp dword [ebx + 0x1c], 0
je 0x4e32cb
cmp dword [ebx + 0x20], 0
je 0x4e32cb
cmp dword [ebx + 0x24], 0
je 0x4e32cb
cmp dword [ebx + 0x28], 0
je 0x4e32cb
cmp dword [ebx + 0x2c], 0
je 0x4e32cb
cmp dword [ebx + 0x30], 0
jne 0x4e32cf
xor eax, eax
jmp 0x4e32d1
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4e46e8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4e46f1
mov eax, dword [ebp - 4]
add esp, 0xffffff2c
push ebx
push esi
push edi
mov dword [ebp - 0x80], edx
mov ebx, eax
lea edi, [ebp - 0x7c]
mov eax, 0x59734c
call fcn.0054c16c
cmp dword [ebx + 0x324], 0
jne 0x4e4732
mov edx, dword [edi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x4e589e
mov ecx, dword [ebx + 0x324]
cmp byte [ecx + 0x231], 0
jne 0x4e474e
mov eax, dword [edi]
mov dword fs:[0], eax
jmp 0x4e589e
call sub.KERNEL32.DLL_GetTickCount
mov edx, eax
sub edx, dword [0x5967f8]
cmp edx, 0x64
jge 0x4e4770
mov ecx, dword [edi]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x4e589e
mov dword [0x5967f8], eax
mov eax, dword [ebx + 0x30c]
call fcn.00518968
mov eax, dword [eax + 0x14]
xor edx, edx
call fcn.00503bf8
mov eax, dword [ebx + 0x30c]
call fcn.00518968
mov eax, dword [eax + 0x14]
mov edx, dword [ebx + 0x60]
call fcn.00503adc
mov esi, dword [ebx + 0x2d0]
mov eax, dword [esi + 0x38]
inc eax
push eax
mov edx, dword [esi + 0x3c]
inc edx
push edx
mov eax, dword [ebx + 0x30c]
call fcn.00518968
or ecx, 0xffffffff
or edx, 0xffffffff
call fcn.00504004
mov eax, dword [ebx + 0x328]
push eax
mov edx, dword [ebx + 0x324]
push edx
call fcn.004eb894
add esp, 8
test al, al
jne 0x4e47f0
mov ecx, dword [edi]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x4e589e
mov eax, dword [ebx + 0x2d4]
mov edx, dword [eax]
call dword [edx + 0xb4]
test al, al
je 0x4e4812
mov ecx, dword [ebx + 0x328]
push ecx
push ebx
call fcn.004e58bc
add esp, 8
mov eax, dword [ebx + 0x328]
push eax
mov eax, dword [ebx + 0x2d0]
call fcn.00518968
xor ecx, ecx
xor edx, edx
call fcn.00503dd4
mov eax, dword [ebx + 0x2d0]
call fcn.00518968
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.00503bf8
mov eax, dword [ebx + 0x2d0]
call fcn.00518968
mov eax, dword [eax + 0x10]
mov edx, 0x8000
call fcn.005037f8
mov eax, dword [ebx + 0x308]
mov edx, dword [eax]
call dword [edx + 0xb4]
test al, al
je 0x4e492b
add byte [eax], al
invalid
mov eax, dword [ebx + 0x328]
mov edx, dword [eax]
call dword [edx + 0x2c]

Function at 0x4ea108
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
lea edx, [ebp - 0x400]
push edx
push 0x8005
push eax
call fcn.004ea674
add esp, 0xc
xor eax, eax
cmp edi, eax
jbe 0x4ea15c
movzx ecx, bx
sar ecx, 8
xor edx, edx
mov dl, byte [esi]
inc esi
xor ecx, edx
inc eax
shl ebx, 8
mov cx, word [ebp + ecx*4 - 0x400]
xor cx, bx
cmp edi, eax
mov ebx, ecx
ja 0x4ea13a
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ea398
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebx + 8]
call fcn.005379f0
mov eax, dword [ebx + 8]
lea edx, [ebp - 4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 8]
lea edx, [ebp - 8]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 8]
lea edx, [ebp - 0xc]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x10]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
cmp dword [ebp + 0xc], 0
jne 0x4ea435
mov edx, 0xc
mov eax, dword [ebx + 8]
call fcn.005379f0
mov edi, dword [ebx + 8]
mov eax, edi
call fcn.005379e0
mov edx, eax
mov eax, edi
add edx, 4
call fcn.005379f0
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.00537aa4
xor edx, edx
mov eax, esi
call fcn.005379f0
jmp 0x4ea505
cmp dword [ebp + 0xc], 1
jne 0x4ea47a
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 8]
add edx, 0xc
call fcn.005379f0
mov edi, dword [ebx + 8]
mov eax, edi
call fcn.005379e0
mov edx, eax
mov eax, edi
add edx, 4
call fcn.005379f0
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.00537aa4
xor edx, edx
mov eax, esi
call fcn.005379f0
jmp 0x4ea505
cmp dword [ebp + 0xc], 2
jne 0x4ea4bf
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 8]
add edx, dword [ebp - 8]
add edx, 0xc
call fcn.005379f0
mov edi, dword [ebx + 8]
mov eax, edi
call fcn.005379e0
mov edx, eax
mov eax, edi
add edx, 4
call fcn.005379f0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.00537aa4
xor edx, edx
mov eax, esi
call fcn.005379f0
jmp 0x4ea505
cmp dword [ebp + 0xc], 3
jne 0x4ea505
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 8]
add edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
add edx, 0xc
call fcn.005379f0
mov edi, dword [ebx + 8]
mov eax, edi
call fcn.005379e0
mov edx, eax
mov eax, edi
add edx, 4
call fcn.005379f0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.00537aa4
xor edx, edx
mov eax, esi
call fcn.005379f0
mov ebx, dword [esi + 4]
mov eax, esi
call fcn.005379fc
mov ecx, eax
xor edx, edx
mov eax, ebx
cmp ecx, edx
jle 0x4ea522
xor byte [eax], 0x6f
inc edx
inc eax
cmp ecx, edx
jg 0x4ea519
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ea6c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
lea edx, [ebp - 0x400]
push edx
push 0x8005
push eax
call fcn.004ea728
add esp, 0xc
xor eax, eax
cmp edi, eax
jbe 0x4ea71c
movzx ecx, bx
sar ecx, 8
xor edx, edx
mov dl, byte [esi]
inc esi
xor ecx, edx
inc eax
shl ebx, 8
mov cx, word [ebp + ecx*4 - 0x400]
xor cx, bx
cmp edi, eax
mov ebx, ecx
ja 0x4ea6fa
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4eda60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
cmp byte [eax], 0xa0
jb 0x4eda7a
cmp byte [eax + 1], 0xa0
jae 0x4eda85
mov eax, dword [ebp + 0x10]
add dword [eax], 0xc
jmp 0x4edc12
mov dword [ebp - 0x1c], 1
mov edx, dword [ebx]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebx + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0xfffffff4
jle 0x4edc12
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
jge 0x4edc12
cmp dword [ebp + 0x14], 0xfffffff4
jle 0x4edc12
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x14]
jge 0x4edc12
push 2
push eax
lea eax, [ebp - 6]
push eax
call fcn.0054bcc8
add byte [ebp - 6], 0x60
add byte [ebp - 5], 0x60
xor ecx, ecx
xor edx, edx
mov cl, byte [ebp - 6]
mov dl, byte [ebp - 5]
add esp, 0xc
lea eax, [ecx + ecx*2]
shl eax, 4
sub eax, ecx
add eax, eax
add eax, edx
shl eax, 3
lea eax, [eax + eax*2]
add eax, 0xfffff718
test eax, eax
jb 0x4edb17
cmp eax, 0x2feb0
jb 0x4edb22
mov edx, dword [ebp + 0x10]
add dword [edx], 0xc
jmp 0x4edc12
push 0x18
mov ecx, dword [ebp + 0xc]
add ecx, eax
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.0054bcc8
add esp, 0xc
lea edx, [ebp - 0x40]
xor eax, eax
xor byte [edx], 0x58
inc eax
inc edx
cmp eax, 0x18
jl 0x4edb3b
mov eax, dword [ebx + 8]
mov ecx, 0x64
cdq
idiv ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
test ecx, ecx
jns 0x4edb5c
add ecx, 7
sar ecx, 3
add eax, ecx
and eax, 0x80000003
jns 0x4edb6d
dec eax
or eax, 0xfffffffc
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
add dword [ebp - 0x24], 4
xor edx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
add eax, edx
test eax, eax
jl 0x4edbfe
cmp eax, dword [ebp - 0x14]
jge 0x4edbfe
mov cx, 1
mov eax, dword [ebp - 0x28]
mov bx, word [eax]
mov eax, ebx
shl eax, 8
movzx ebx, bx
sar ebx, 8
or ax, bx
mov ebx, eax
cmp byte [ebp + 0x1c], 0
mov eax, edx
je 0x4edbb7
add eax, dword [ebp - 0x24]
cmp eax, 0xc
jl 0x4edbb7
sub eax, 0xc
add eax, dword [ebp + 0x14]
imul eax, dword [ebp - 0x20]
add eax, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
imul esi, dword [ebp - 0x1c]
add eax, esi
mov dword [ebp - 0xc], eax
xor eax, eax
mov esi, 0xf
sub esi, eax
add esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 0x18]
jge 0x4edbf6
cmp eax, 4
jl 0x4edbf6
test cx, bx
jbe 0x4edbf6
mov esi, 0xf
sub esi, eax
mov edi, dword [ebp - 0xc]
mov byte [edi + esi], 0
add ecx, ecx
inc eax
cmp eax, 0x10
jl 0x4edbcf
inc edx
add dword [ebp - 0x28], 2
cmp edx, 0xc
jl 0x4edb7c
mov eax, dword [ebp + 0x10]
add dword [eax], 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4edc1c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
cmp al, 0x20
jb 0x4edc33
cmp al, 0x7f
jb 0x4edc3e
mov eax, dword [ebp + 0x10]
add dword [eax], 6
jmp 0x4edd8f
mov dword [ebp - 0x18], 1
mov edx, dword [ebx]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xfffffff4
jle 0x4edd8f
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
jge 0x4edd8f
cmp dword [ebp + 0x14], 0xfffffff4
jle 0x4edd8f
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x4edd8f
and eax, 0xff
mov ecx, eax
shl ecx, 2
lea ecx, [ecx + ecx*2]
add ecx, 0xfffffe80
mov eax, ecx
test eax, eax
jb 0x4edcad
cmp eax, 0x474
jb 0x4edcb8
mov eax, dword [ebp + 0x10]
add dword [eax], 6
jmp 0x4edd8f
push 0xc
mov edx, dword [ebp + 0xc]
add edx, eax
push edx
lea ecx, [ebp - 0x30]
push ecx
call fcn.0054bcc8
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x30]
xor byte [edx], 0x58
inc eax
inc edx
cmp eax, 0xc
jl 0x4edcd1
mov eax, dword [ebx + 8]
mov ecx, 0xa
cdq
idiv ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
test ecx, ecx
jns 0x4edcf2
add ecx, 7
sar ecx, 3
add eax, ecx
and eax, 0x80000003
jns 0x4edd03
dec eax
or eax, 0xfffffffc
inc eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
add dword [ebp - 0x20], 4
xor edx, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
add eax, edx
test eax, eax
jl 0x4edd80
cmp eax, dword [ebp - 0x10]
jge 0x4edd80
mov cl, 1
cmp byte [ebp + 0x1c], 0
mov eax, edx
je 0x4edd35
add eax, dword [ebp - 0x20]
cmp eax, 0xc
jl 0x4edd35
sub eax, 0xc
add eax, dword [ebp + 0x14]
imul eax, dword [ebp - 0x1c]
add eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
imul ebx, dword [ebp - 0x18]
add eax, ebx
mov dword [ebp - 8], eax
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov esi, ebx
mov ebx, 8
sub ebx, eax
add ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp - 0x14]
jge 0x4edd78
cmp eax, 2
jl 0x4edd78
test byte [esi], cl
jbe 0x4edd78
mov ebx, 8
sub ebx, eax
mov edi, dword [ebp - 8]
mov byte [edi + ebx], 0
add ecx, ecx
inc eax
cmp eax, 8
jl 0x4edd52
inc edx
inc dword [ebp - 0x24]
cmp edx, 0xc
jl 0x4edd12
mov eax, dword [ebp + 0x10]
add dword [eax], 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fb3bc
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
mov al, byte [ebp + 8]
call fcn.004fafbc
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.00549140
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4fb41a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x59ed54]
mov dl, 1
mov eax, dword [0x4faeb4]
call fcn.00543cf0
call fcn.005487f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4fb424
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.00549140
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4fb47c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x59ed58]
mov dl, 1
mov eax, dword [0x4faeb4]
call fcn.00543cf0
call fcn.005487f8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004fafec
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 0x4fc464
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00548cfc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
out 0x2d, al
pop es
add cl, al
loopne 0x4fc49b
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5026d8
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 0x5026de
ret

Function at 0x504c04
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x504c55
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x504c3c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x504c2c
jmp 0x504c55
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x504c3d
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5078b4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68

Function at 0x50d708
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5a81d8
cmp dword [edi], 0
jne 0x50d784
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5a81d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x599960
mov ecx, 2
call fcn.00547ae0
mov edx, 0x50d6e0
lea eax, [esi + 5]
call fcn.0050d700
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0050d700
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 0x50d759
mov dword [0x5a81d4], 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 0x50d8a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x50d8f0]
test si, 4
je 0x50d8b4
or bl, 1
test si, 8
je 0x50d8be
or bl, 4
test si, 1
je 0x50d8c8
or bl, 8
test si, 2
je 0x50d8d2
or bl, 0x10
test si, 0x10
je 0x50d8dc
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x50d8eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x50d8f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x50d92c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x50d90d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x50d91c
or bl, 4
test esi, 0x20000000
je 0x50d927
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x513e7c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x513e8e
add esp, 0xfffffff0
call fcn.005483a0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0053adf0
mov eax, ebx
call fcn.005141c8
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x534564]
call fcn.00548070
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x534564]
call fcn.00548070
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x534564]
call fcn.00548070
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x534564]
call fcn.00548070
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x534564]
call fcn.00548070
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x51096c
push eax
push 0
push 0
mov eax, dword [0x59ee18]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x501c00]
call fcn.00503138
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x501c00]
call fcn.00503138
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x501c00]
call fcn.00503138
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.005145a8
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5144c4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5144c4
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5144c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x513f9d
call fcn.005483f8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5142a8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x514453
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x514434
mov dl, 1
mov eax, dword [0x5348a0]
call fcn.00548070
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00548cfc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x514423
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0052a854
test al, al
je 0x514416
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x514464
lea eax, [ebp - 0x254]
call fcn.00542f58
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x514416
xor eax, eax
push ebp
push 0x51440f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x51449c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x5143f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00548f2c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x5143f8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00548f2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514416
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x514319
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00537958
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51445a
lea eax, [ebp - 0x260]
call fcn.00548cfc
ret

Function at 0x514ca0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5a81c8]
cmp byte [eax + 0x95], 0
jne 0x514d11
cmp dword [0x5a81e4], 0
jne 0x514cd2
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x514c5c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x5a81e4], eax
cmp dword [0x5a81e0], 0
jne 0x514ced
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x5a81e0], eax
cmp dword [0x5a81e8], 0
jne 0x514d11
push esp
push 0
push 0
push 0x514c00
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x5a81e8], eax
pop edx
ret