joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c62b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c6510
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4c6313
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004c5d78
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ebac
cmp al, 1
jne 0x4c6313
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004c6090
test al, al
je 0x4c649f
cmp dword [ebp - 8], 0
jge 0x4c6331
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004c5d78
mov eax, dword [ebp - 0x210]
call fcn.00404f40
cmp ebx, eax
jge 0x4c637b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004c5d78
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x67da84]
and eax, 0xff
bt dword [edx], eax
jae 0x4c637b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4c638f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004c628c
cmp ebx, dword [ebp - 8]
je 0x4c6491
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4c63bb
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004040ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x677880]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4c647e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004040ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x677880]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00485df4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004040ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x677880]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00485df4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6485
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4c64f2
cmp dword [ebp - 8], 0
jge 0x4c64aa
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004c5d78
mov eax, dword [ebp - 0x218]
call fcn.00404f40
cmp eax, dword [ebp - 8]
jg 0x4c64e4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004c5d78
mov eax, dword [ebp - 0x21c]
call fcn.00404f40
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004c628c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6517
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404ca4
ret
Function at 0x4e6ed7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x6784a6
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4e6f2f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x6784c7
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4e6f25
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4e6f33
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4f6568
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f66d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f66b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404e68
lea eax, [ebp - 0x118]
mov edx, 0x4f66f0
call fcn.00404f48
mov eax, dword [ebp - 0x118]
call fcn.00405140
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4f6626
lea eax, [ebp - 0x111]
call fcn.0040a968
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404d70
jmp 0x4f662d
mov eax, esi
call fcn.00404c80
cmp bl, 0x61
jae 0x4f664e
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f038
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404cd4
jmp 0x4f6668
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040efac
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404cd4
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4f66fc
call fcn.0040b060
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f66bb
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4fb460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405130
xor eax, eax
push ebp
push 0x4fb550
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.004fd18c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a6bc
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004fbce4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a5a0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004fbd58
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb557
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ca4
ret
Function at 0x4fb560
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405130
xor eax, eax
push ebp
push 0x4fb660
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.004fd18c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x4fb626
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a6bc
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004fbce4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a5a0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004fbd58
jmp 0x4fb638
xor edx, edx
mov eax, ebx
call fcn.004fbce4
xor edx, edx
mov eax, ebx
call fcn.004fbd58
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fb667
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ca4
ret

Function at 0x4fd7a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405130
xor eax, eax
push ebp
push 0x4fd804
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004fd8dc
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040ab70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd80b
lea eax, [ebp - 4]
call fcn.00404c80
ret

Function at 0x4fd810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405130
xor eax, eax
push ebp
push 0x4fd874
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4fd880
lea eax, [ebp - 4]
call fcn.004fd8dc
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004fd674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd87b
lea eax, [ebp - 4]
call fcn.00404c80
ret
Function at 0x503340
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x16c]
mov edx, ebx
mov eax, edi
call fcn.00503564
mov esi, eax
mov dword [edi + 0x16c], esi
and esi, 0xff
add dword [edi + 0x170], esi
imul esi, dword [edi + 0x170], 0x8088405
inc esi
mov dword [edi + 0x170], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x174]
mov eax, edi
call fcn.00503564
mov dword [edi + 0x174], eax
pop edi
pop esi
pop ebx
ret

Function at 0x5033b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x5033d9
inc esi
mov eax, edi
call fcn.00503398
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00503340
inc ebx
dec esi
jne 0x5033c3
pop edi
pop esi
pop ebx
ret

Function at 0x503468
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405130
xor eax, eax
push ebp
push 0x5034dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.005033e0
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00503398
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00503340
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x5034a8
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5034e4
lea eax, [ebp - 4]
call fcn.00404c80
ret
Function at 0x503f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x504107
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x5040c3
mov eax, dword [ebp - 4]
call fcn.00505708
cmp ebx, eax
jge 0x5040c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
mov edx, ebx
call fcn.004faa38
mov edx, dword [0x4faf68]
call fcn.004040a0
mov esi, eax
mov eax, esi
call fcn.004fbc50
test al, al
je 0x5040b9
mov edi, dword [esi + 0x3c]
test edi, edi
jne 0x5040ad
xor eax, eax
push ebp
push 0x5040a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005045b0
mov edx, dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0x37]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx edx, word [ebp - 0x1b]
movzx eax, word [ebp - 0x19]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
mov cx, 1
mov esi, dword [eax]
call dword [esi + 0x14]
movzx esi, word [ebp - 0x17]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004052cc
mov eax, dword [ebp - 8]
call fcn.00405198
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x108]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15c]
mov al, byte [eax + 0x24]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00504274
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x15c]
mov dl, byte [ebp - 9]
mov byte [eax + 0x24], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5040f1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x5040a5
mov eax, dword [ebp - 4]
call fcn.00504634
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040ab70
jmp 0x5040f1
mov eax, dword [ebp - 8]
call fcn.00404c80
jmp 0x5040f1
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x40]
push eax
push 0
lea edx, [ebp - 0x44]
mov eax, 0xb3
call fcn.00409fc4
mov ecx, dword [ebp - 0x44]
mov dl, 1
mov eax, dword [0x41b8fc]
call fcn.0040e1e4
call fcn.004046bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50410e
lea eax, [ebp - 0x44]
call fcn.00404c80
ret
Function at 0x507f6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffbf4
mov eax, dword [ebp + 8]
mov word [eax - 0x1a5c], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0x1a58], 0
jne 0x507fac
mov eax, dword [ebp + 8]
mov word [eax - 0x1a5c], 1
mov eax, dword [ebp + 8]
mov dword [eax - 0x1a58], 0x10000
mov eax, 0x7fff
mov edx, dword [esi]
mov edx, dword [edx + 0xb7c]
mov word [edx + eax*2], 0
mov eax, edx
xor ecx, ecx
mov edx, 0xfffe
call fcn.00408124
mov eax, dword [esi]
mov eax, dword [eax + 0x1a8]
mov ax, word [eax*8 + 0x679086]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a62], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1a8]
mov ax, word [eax*8 + 0x679084]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a64], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1a8]
movzx eax, word [eax*8 + 0x679088]
mov edx, dword [ebp + 8]
mov dword [edx - 0x1a68], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1a8]
mov ax, word [eax*8 + 0x67908a]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a6a], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1a8]
cmp eax, 2
jg 0x508050
mov eax, dword [esi]
mov eax, dword [eax + 0x254]
or word [eax + 8], 4
jmp 0x508062
cmp eax, 8
jl 0x508062
mov eax, dword [esi]
mov eax, dword [eax + 0x254]
or word [eax + 8], 2
mov eax, dword [ebp + 8]
mov word [eax - 0x10fe], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 0x1104], edx
mov bx, 0x8000
mov eax, dword [ebp + 8]
lea edi, [eax - 0x420]
mov eax, dword [esi]
mov edx, dword [eax + 0xb74]
mov ecx, ebx
mov eax, dword [edi + 4]
call dword [edi]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a5a], ax
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a5a], 0
je 0x5080ba
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a5a], 0xffff
jne 0x5080d2
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a5f], 1
mov eax, dword [ebp + 8]
mov word [eax - 0x1a5a], 0
jmp 0x508136
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a5f], 0
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a5a], 0x106
jae 0x5080f4
mov eax, dword [ebp + 8]
push eax
call fcn.00507d94
pop ecx
mov eax, dword [ebp + 8]
mov word [eax - 0x1a6c], 0
xor ebx, ebx
movzx eax, bx
mov edx, dword [esi]
mov edx, dword [edx + 0xb74]
movzx eax, byte [edx + eax]
mov edx, dword [ebp + 8]
mov dx, word [edx - 0x1a6c]
shl edx, 5
xor ax, dx
and ax, 0x7fff
mov edx, dword [ebp + 8]
mov word [edx - 0x1a6c], ax
inc ebx
cmp bx, 2
jne 0x508102
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x50cdec
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffed0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1c0], 0
je 0x50ce10
mov eax, dword [ebx + 0x1c0]
call fcn.004fd370
test al, al
jne 0x50ce26
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, esp
call fcn.004fd674
jmp 0x50ce33
mov eax, esi
mov edx, dword [ebx + 0x1c0]
call fcn.00404cd4
add esp, 0x130
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x50cf5d
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x50cf48
and byte [ebp - 0x72], 0xfe
jmp 0x50cf4c
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x50cfe3
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x50cfe3
mov eax, ebx
and eax, 0xff
bt dword [0x67bb4c], eax
jae 0x50cfb3
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.0050cebc
pop ecx
cmp byte [ebp - 1], 0
je 0x50cfde
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.0050cebc
pop ecx
jmp 0x50cfde
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.0050cebc
pop ecx
cmp byte [ebp - 1], 0
je 0x50cfde
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.0050cebc
pop ecx
dec si
jne 0x50cf73
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50cfec
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x67bb4c], edx
jae 0x50d024
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.0050cebc
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.0050cebc
pop ecx
pop ebx
pop ebp
ret
Function at 0x510424
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x510452
mov eax, ebx
call fcn.00510ed8
cmp dword [ebx + 0x40], 0
je 0x51044b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5104c3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5104b5
cmp dword [ebx + 8], 0
je 0x510474
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x510486
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5104b5
cmp dword [ebx + 8], 0
je 0x510467
cmp eax, 3
je 0x510499
dec eax
jne 0x510467
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x510467
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x510467
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5104e1
cmp dword [ebx + 0x14], 0xcc
je 0x5104e1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005104ec
pop ebx
ret

Function at 0x522824
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405130
mov eax, dword [ebp - 8]
call fcn.00405130
xor eax, eax
push ebp
push 0x522967
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00529820
push dword [ebp - 0x10]
push 0x52297c
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00409be8
push dword [ebp - 0x14]
push 0x52298c
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00405000
mov eax, dword [0x67da58]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0049e248
mov eax, dword [ebp - 0xc]
call fcn.0040a15c
test al, al
je 0x5228ce
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.00405140
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
mov edx, ebx
lea eax, [ebp - 0x18]
call fcn.00404e78
mov eax, dword [ebp - 0x18]
call fcn.0040a450
mov dl, 1
mov eax, dword [0x41c478]
call fcn.00403ec0
mov ebx, eax
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00421554
push 0
push 0
mov eax, ebx
call fcn.00420d40
xor ecx, ecx
mov dl, 1
mov eax, dword [0x505ecc]
call fcn.00508c60
mov esi, eax
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ecx, 0x52299c
mov edx, ebx
mov eax, esi
call fcn.00509158
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, esi
call fcn.00403ef0
mov eax, dword [0x67da58]
mov eax, dword [eax]
xor edx, edx
call fcn.0049e248
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00522288
mov eax, dword [ebp - 0xc]
call fcn.0040a450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52296e
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404ca4
ret
Function at 0x5229a8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405130
mov eax, dword [ebp - 8]
call fcn.00405130
xor eax, eax
push ebp
push 0x522b1d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00529820
push dword [ebp - 0x10]
push 0x522b34
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00409be8
push dword [ebp - 0x14]
push 0x522b44
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00405000
mov eax, dword [ebp - 0xc]
call fcn.0040a15c
test al, al
je 0x522a4a
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.00405140
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.00405140
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404e78
mov eax, dword [ebp - 0x18]
call fcn.0040a450
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00522dd8
test eax, eax
je 0x522b02
mov eax, dword [ebp - 0xc]
call fcn.0040a15c
test al, al
je 0x522b02
mov dl, 1
mov eax, dword [0x41c478]
call fcn.00403ec0
mov esi, eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x505ecc]
call fcn.00508c60
mov ebx, eax
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
push ebp
push 0x522ac7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x522b54
mov edx, esi
mov eax, ebx
call fcn.00504490
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00421480
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x522ad8
mov dl, 1
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, ebx
call fcn.00403ef0
mov eax, dword [ebp - 0xc]
call fcn.00405140
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00404e78
mov eax, dword [ebp - 0x1c]
call fcn.0040a450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522b24
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404ca4
ret