joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fa748
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 0x4fa8b9
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 0x4fa894
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.004051fc
lea eax, [ebp - 0x118]
mov edx, 0x4fa8d0
call fcn.004052dc
mov eax, dword [ebp - 0x118]
call fcn.004054d4
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4fa806
lea eax, [ebp - 0x111]
call fcn.0040aff4
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405104
jmp 0x4fa80d
mov eax, esi
call fcn.00405014
cmp bl, 0x61
jae 0x4fa82e
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f8b8
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405068
jmp 0x4fa848
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040f82c
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405068
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, 0x4fa8dc
call fcn.0040b734
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa89b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4fffe4
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.004054c4
xor eax, eax
push ebp
push 0x5000dd
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.00502df4
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
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ad30
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005011a8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ac14
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0050121c
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5000e4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405038
ret
Function at 0x5000ec
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.004054c4
xor eax, eax
push ebp
push 0x5001f5
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.00502df4
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
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x5001bb
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ad30
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005011a8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ac14
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0050121c
jmp 0x5001cd
xor edx, edx
mov eax, ebx
call fcn.005011a8
xor edx, edx
mov eax, ebx
call fcn.0050121c
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5001fc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405038
ret

Function at 0x5034c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054c4
xor eax, eax
push ebp
push 0x50351e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00503640
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x503506
lea eax, [ebp - 4]
call fcn.00503640
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x503508
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503525
lea eax, [ebp - 4]
call fcn.00405014
ret

Function at 0x50352c
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.004054c4
xor eax, eax
push ebp
push 0x503590
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.00503640
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040b21c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503597
lea eax, [ebp - 4]
call fcn.00405014
ret
Function at 0x50359c
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.004054c4
xor eax, eax
push ebp
push 0x503600
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x50360c
lea eax, [ebp - 4]
call fcn.00503640
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.0050338c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503607
lea eax, [ebp - 4]
call fcn.00405014
ret

Function at 0x509090
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 + 0x170]
mov edx, ebx
mov eax, edi
call fcn.005092c4
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.005092c4
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x509104
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 0x509129
inc esi
mov eax, edi
call fcn.005090e8
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00509090
inc ebx
dec esi
jne 0x509113
pop edi
pop esi
pop ebx
ret

Function at 0x5091b8
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.004054c4
xor eax, eax
push ebp
push 0x50922d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00509130
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.005090e8
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00509090
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x5091f8
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509234
lea eax, [ebp - 4]
call fcn.00405014
ret
Function at 0x509ec8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50a0ac
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x50a068
mov eax, dword [ebp - 4]
call fcn.0050b830
cmp ebx, eax
jge 0x50a068
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004ff4dc
mov edx, dword [0x4ffa84]
call fcn.004042a0
mov esi, eax
mov eax, esi
call fcn.00501114
test al, al
je 0x50a05e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x50a052
xor eax, eax
push ebp
push 0x50a04b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050a484
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.00422cd0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405660
mov eax, dword [ebp - 8]
call fcn.0040552c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0050a244
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a096
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x50a04a
mov eax, dword [ebp - 4]
call fcn.0050a508
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b21c
jmp 0x50a096
mov eax, dword [ebp - 8]
call fcn.00405014
jmp 0x50a096
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040a628
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x41d558]
call fcn.0040ea08
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a0b3
lea eax, [ebp - 0x54]
call fcn.00405014
ret
Function at 0x512a74
Capabilities:
Get disk size

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
call fcn.005128e4
test al, al
je 0x512aa1
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.005129dc
test al, al
jne 0x512a97
call fcn.00410248
mov eax, dword [esp + 0x14]
imul dword [esp + 0x18]
jmp 0x512ad2
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, ebx
call fcn.004054d4
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x512acb
call fcn.00410248
mov eax, dword [esp]
imul dword [esp + 4]
add esp, 0x3c
pop ebx
ret

Function at 0x5187b0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffed0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1e0], 0
je 0x5187d4
mov eax, dword [ebx + 0x1e0]
call fcn.00503068
test al, al
jne 0x5187ea
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, esp
call fcn.0050338c
jmp 0x5187f7
mov eax, esi
mov edx, dword [ebx + 0x1e0]
call fcn.00405068
add esp, 0x130
pop esi
pop ebx
ret
Function at 0x54ce14
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x54cecb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004054d4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x54ce56
call fcn.00404a34
jmp 0x54ced2
mov eax, ebx
call fcn.00402bd0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.004054d4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x54ce7f
call fcn.00404a34
jmp 0x54ced2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x54cedc
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x54cea0
call fcn.00404a34
jmp 0x54ced2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ced2
mov eax, dword [ebp - 8]
call fcn.00402c00
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x55616c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004054c4
xor eax, eax
push ebp
push 0x5561de
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040ad30
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040ac48
push 1
mov eax, dword [ebp - 0xc]
call fcn.004054d4
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004054d4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5561e5
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405038
ret
Function at 0x55aa34
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 0x55ac94
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x55aa97
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0055a4fc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040f3d8
cmp al, 1
jne 0x55aa97
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0055a814
test al, al
je 0x55ac23
cmp dword [ebp - 8], 0
jge 0x55aab5
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.0055a4fc
mov eax, dword [ebp - 0x210]
call fcn.004052d4
cmp ebx, eax
jge 0x55aaff
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0055a4fc
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x600304]
and eax, 0xff
bt dword [edx], eax
jae 0x55aaff
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x55ab13
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0055aa10
cmp ebx, dword [ebp - 8]
je 0x55ac15
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 0x55ab3f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004042ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x5fe884]
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 0x55ac02
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004042ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x5fe884]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00483e74
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004042ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x5fe884]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00483e74
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55ac09
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 0x55ac76
cmp dword [ebp - 8], 0
jge 0x55ac2e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0055a4fc
mov eax, dword [ebp - 0x218]
call fcn.004052d4
cmp eax, dword [ebp - 8]
jg 0x55ac68
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0055a4fc
mov eax, dword [ebp - 0x21c]
call fcn.004052d4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0055aa10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55ac9b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00405038
ret
Function at 0x584528
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x584556
mov eax, ebx
call fcn.00584fdc
cmp dword [ebx + 0x40], 0
je 0x58454f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5845c7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5845b9
cmp dword [ebx + 8], 0
je 0x584578
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 0x58458a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5845b9
cmp dword [ebx + 8], 0
je 0x58456b
cmp eax, 3
je 0x58459d
dec eax
jne 0x58456b
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 0x58456b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x58456b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5845e5
cmp dword [ebx + 0x14], 0xcc
je 0x5845e5
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.005845f0
pop ebx
ret
Function at 0x1003ded
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
cmp eax, 0xffffffea
mov esi, ecx
jbe 0x10060eb
cmp eax, 0xffffffec
je 0x10244eb
cmp eax, 0xfffffff1
je 0x102447a
cmp eax, 0xfffffff4
jne 0x100611e
push 0
push edi
mov ecx, esi
call fcn.01003e3a
pop edi
pop esi
pop ebx
leave
ret 4
je 0x10188db
cmp eax, 0xfffffd33
je 0x10188e7
cmp eax, 0xfffffd37
je 0x100a621
cmp eax, 0xfffffd3a
je 0x10243f5
cmp eax, 0xfffffdee
jne 0x100611e
jmp 0x102438f
xor eax, eax
jmp 0x1003e2e
cmp dword [esi + 0x64], 0
jne 0x102445a
test byte [edi + 0x14], 2
jne 0x1024462
jmp 0x100611e
mov ecx, esi
call fcn.01011c01
jmp 0x100611e
push edi
mov ecx, esi
call fcn.0102f8b2
jmp 0x100611e
push dword [edi + 4]
lea ecx, [esi + 0x3c]
call fcn.0102d88f
push 1
xor ebx, ebx
push ebx
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.01002380
test eax, eax
je 0x10243d9
cmp dword [eax], ebx
jne 0x10243d9
push dword [ebp + 8]
mov ecx, esi
lea ebx, [edi + 0x10]
call fcn.0100535d
push eax
push 0x1024524
push 0x50
push ebx
call fcn.0100ae15
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push 0
push 0x50
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*2 + 0x10]
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.0100435a
jmp 0x100611e
push dword [edi + 0xc]
lea ecx, [esi + 0x3c]
call fcn.0102d88f
mov ecx, esi
mov edi, eax
call fcn.010027da
cmp eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [esi + 0x48], eax
je 0x102442c
push eax
mov ecx, esi
call fcn.010029a7
cmp eax, edi
jne 0x102442c
push 0x11
call ebx
test ax, ax
jge 0x1024436
push 0
push edi
mov ecx, esi
call fcn.0100407f
push 0x11
call ebx
test ax, ax
jl 0x100611e
push 0
push edi
mov ecx, esi
call fcn.0100407f
push edi
mov ecx, esi
call fcn.0102ef4a
jmp 0x100611e
xor eax, eax
inc eax
jmp 0x1003e2e
push dword [edi + 0x10]
lea ecx, [esi + 0x3c]
call fcn.0102d88f
push eax
mov ecx, esi
call fcn.01003fc0
jmp 0x100611e
mov edi, dword [edi + 0xc]
cmp edi, 0xd
je 0x102448b
cmp edi, 0x20
jne 0x100611e
push 0
push 0
push 0x447
lea edi, [esi + 0x3c]
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
jl 0x102445a
lea eax, [ebp - 0x20]
push eax
push ebx
mov ecx, edi
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x80000004
call fcn.010023ef
xor byte [ebp - 0x10], 1
lea eax, [ebp - 0x20]
push eax
push ebx
mov ecx, edi
call fcn.01003bf7
push 1
push 0
push ebx
mov ecx, esi
call fcn.01002380
push 0
push eax
push ebx
mov ecx, esi
call fcn.0102f813
jmp 0x102445a
push dword [edi + 0xc]
lea ecx, [esi + 0x3c]
call fcn.0102d88f
push 1
push 0
push eax
mov ecx, esi
call fcn.01002380
test eax, eax
je 0x100611e
cmp dword [eax], 0
je 0x100611e
mov ecx, esi
call fcn.010027da
mov dword [esi + 0x48], eax
jmp 0x100611e
Function at 0x100a7ed
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
mov edi, ecx
cmp dword [edi + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x100a853
cmp dword [ebp + 8], ebx
push esi
push 5
pop eax
lea esi, [edi + 8]
jne 0x1026ced
inc dword [esi]
cmp dword [esi], eax
ja 0x100a852
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push 0x100a6f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a852
push 4
push esi
push 4
push ebx
push 0x100a76c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov dword [edi + 0xc], ebx
pop edi
pop ebx
leave
ret 4
mov dword [esi], eax
jmp 0x100a813

Function at 0x100ad26
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x100adb8
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push 0x100
push eax
call fcn.0100ae15
and word [ebp - 0x20c], 0
add esp, 0x10
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push 0x80000001
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x100ada7
cmp word [ebp - 0x20c], ax
je 0x100ada7
push 0x20013
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call fcn.0100afd3
mov ecx, dword [ebp - 4]
call fcn.01001b01
leave
ret 4