joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420448
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42051b
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408094
cmp byte [ebp - 9], 0
je 0x4204d9
mov eax, ebx
call fcn.00408708
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x4204d9
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0041e95c
test al, al
je 0x4204d9
mov eax, dword [ebp - 8]
call fcn.00420aec
test al, al
je 0x4204ce
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.00420744
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00426d74
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.00408958
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00408094
push edi
mov eax, dword [ebp - 4]
call fcn.00408708
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x4204f3
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420522
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00407ccc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407ccc
ret

Function at 0x420658
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00408708
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4206ad
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4206a7
test ah, 4
je 0x4206a7
test al, 0x10
je 0x4206a7
mov eax, esi
call fcn.00408708
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4206ad
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x424838
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x424871
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407df4
jmp 0x42487a
mov eax, ebx
mov edx, esi
call fcn.0040804c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424884
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
test eax, eax
jle 0x4248a6
movzx eax, word [esp]
jmp 0x4248a8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4258f8
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 0x425a1d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00425700
mov esi, eax
mov eax, dword [0x5b2a24]
cmp byte [eax], 0
je 0x4259c5
mov eax, dword [0x5b2760]
call fcn.004059d0
call fcn.004055c8
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4258c8]
call fcn.00409eb0
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x425a38
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x425a01
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5b26f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5b6634]
call fcn.0040a2d0
push eax
call sub.user32.dll_LoadStringW
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 0x425a24
lea eax, [ebp - 4]
mov edx, dword [0x4258c8]
call fcn.00409fd4
ret

Function at 0x4267c0
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 0x426896
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408094
lea eax, [ebp - 4]
call fcn.004081b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408708
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x426880
mov eax, ebx
call fcn.00405454
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x426879
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.00408708
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x426863
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4268a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x426863
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 0x426880
mov eax, dword [ebp - 0x10]
call fcn.00405470
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42689d
lea eax, [ebp - 4]
call fcn.00407c6c
ret
Function at 0x4268ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4269ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408094
lea eax, [ebp - 4]
call fcn.004081b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408708
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x426996
mov eax, ebx
call fcn.00405454
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x42698f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00408708
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x426979
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4269c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x426979
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426996
mov eax, dword [ebp - 0x10]
call fcn.00405470
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4269b3
lea eax, [ebp - 4]
call fcn.00407c6c
ret

Function at 0x4279f4
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.0040813c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ce0c
mov edi, eax
cmp edi, 0x104
jbe 0x42799f
mov eax, edi
add eax, eax
call fcn.00405454
mov esi, eax
jmp 0x4279a1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ce0c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4279da
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 0x4279c4
mov eax, esp
cmp esi, eax
je 0x4279e7
mov eax, esi
call fcn.00405470
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 0x427a20
cmp bl, 0
je 0x427a1c
cmp bl, 0x41
jl 0x427a17
cmp bl, 0x5a
jg 0x427a17
or bl, 0x20
xor al, bl
inc esi
jmp 0x4279fb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x427960
Function at 0x46ae8c
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 0x46ae94
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4a83cc
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4a840f
cmp byte [ebx + 0x11], 0
jne 0x4a840f
cmp byte [ebx + 0x2c], 0
jne 0x4a840f
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 0x4a8426
mov ecx, dword [0x5b29b8]
mov dl, 1
mov eax, dword [0x47b9ac]
call fcn.00425b04
call fcn.00407368
pop ebx
ret
mov ecx, dword [0x5b29b8]
mov dl, 1
mov eax, dword [0x47b9ac]
call fcn.00425b04
call fcn.00407368
pop ebx
ret

Function at 0x4a886c
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 0x4a88ba
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.004a8318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a88d3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a88dc
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.004a8318
dec esi
jne 0x4a88fe
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4aafe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5b9480
cmp dword [edi], 0
jne 0x4ab05c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x5b947c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5b03cc
mov ecx, 2
call fcn.00405618
mov edx, 0x4aafb8
lea eax, [esi + 5]
call fcn.004aafd8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004aafd8
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 0x4ab031
mov dword [0x5b947c], 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 0x4c4edc
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 0x4c5097
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408094
mov eax, dword [ebp - 4]
call fcn.004c4a3c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4c4f2e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00408b10
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.004c56a4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4c500d
xor eax, eax
push ebp
push 0x4c5006
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004c4bbc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004c50cc
test al, al
je 0x4c4fe4
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407df4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4c4fe4
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.00408708
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.004c4b1c
test al, al
je 0x4c4fde
mov eax, dword [ebp - 8]
call fcn.00408708
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040876c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004c4edc
dec ebx
cmp ebx, 0xffffffff
jne 0x4c4f8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c500d
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004c4bbc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
cmp byte [0x5b94c0], 0
je 0x4c504d
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00408708
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004c4ba8
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004c4b1c
mov ebx, eax
jmp 0x4c5074
mov eax, dword [ebp - 4]
call fcn.00408708
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004c4ba8
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004c4b1c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c509e
lea eax, [ebp - 0x3c]
call fcn.00407c6c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407ccc
ret
Function at 0x4c513c
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 0x4c51f4
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.004c50cc
test al, al
je 0x4c51d6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407df4
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4c51d6
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.00408708
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00408708
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040876c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4c518f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c51fb
lea eax, [ebp - 0x2c]
call fcn.00407c6c
lea eax, [ebp - 4]
call fcn.00407c6c
ret

Function at 0x4c53b0
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 0x4c5468
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.004c50cc
test al, al
je 0x4c544a
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407df4
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4c544a
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.00408708
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.00408708
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040876c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4c5403
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c546f
lea eax, [ebp - 0x2c]
call fcn.00407c6c
lea eax, [ebp - 4]
call fcn.00407c6c
ret
Function at 0x4c55a4
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.004c4a54
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.00408708
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004c4b1c
test al, al
jne 0x4c560c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5b28dc]
mov dl, 1
mov eax, dword [0x4c3820]
call fcn.00425b40
call fcn.00407368
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c5618
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.00408708
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004c4b1c
test al, al
jne 0x4c5679
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5b2bc8]
mov dl, 1
mov eax, dword [0x4c3820]
call fcn.00425b40
call fcn.00407368
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c4a84
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 0x4ccb0c
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 0x4ccb12
ret
Function at 0x4f5e78
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 [0x5b96a8], 0
je 0x4f5fb9
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5b298c]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4f5fb9
mov eax, dword [0x5b96ac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5b96a8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4f5f88
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5b96a8]
call fcn.00497cb0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4f5f80
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x4f5f80
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x4f5f80
mov eax, dword [ebp - 0x14]
call fcn.00501b34
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f5f80
push ebp
call fcn.004f5e34
pop ecx
test al, al
jne 0x4f5f80
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00406204
test al, al
je 0x4f5f80
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, 0xffb9
call fcn.00406204
cmp byte [ebp - 1], 0
je 0x4f5f80
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040efb4
test al, al
je 0x4f5f80
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5b96ac]
call fcn.004f55a4
inc edi
dec ebx
jne 0x4f5edd
mov eax, dword [0x5b96ac]
cmp dword [eax + 8], 0
jle 0x4f5fa0
mov eax, dword [0x5b96ac]
call fcn.004f5658
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f5fb9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004f5c9c
pop ecx
test al, al
jne 0x4f5fb9
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 0x4fe4ec
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.0040f198
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.004f84dc
test ebx, ebx
jne 0x4fe53f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004fe364
mov ebx, eax
test ebx, ebx
je 0x4fe635
cmp esi, ebx
je 0x4fe568
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 0x4fe57d
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 0x4fe5b5
add eax, 0xffffff5f
sub eax, 2
jb 0x4fe5cd
dec eax
sub eax, 2
jb 0x4fe5e1
dec eax
sub eax, 2
jb 0x4fe5d7
jmp 0x4fe5eb
add eax, 0xfffffdff
sub eax, 2
jb 0x4fe5cd
dec eax
sub eax, 2
jb 0x4fe5e1
dec eax
sub eax, 2
jb 0x4fe5d7
jmp 0x4fe5eb
mov byte [esp + 0x120], 0
jmp 0x4fe5f3
mov byte [esp + 0x120], 2
jmp 0x4fe5f3
mov byte [esp + 0x120], 1
jmp 0x4fe5f3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00575bec
mov esi, eax
call fcn.004f4c20
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.004f9ea4
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4fe637
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x5173b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x5173f4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5173d0
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5173e0
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5173f0
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x537d14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
push 0
push 0
push 0xe
push edi
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.00407df4
test ebx, ebx
je 0x537d68
mov eax, dword [esi]
call fcn.00408708
push eax
lea eax, [ebx + 1]
push eax
push 0xd
push edi
call sub.user32.dll_SendMessageW
sub ebx, eax
test ebx, ebx
jle 0x537d68
mov eax, dword [esi]
test eax, eax
je 0x537d5d
sub eax, 4
mov eax, dword [eax]
mov edx, eax
sub edx, ebx
mov eax, esi
call fcn.00408880
pop edi
pop esi
pop ebx
ret