joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63c404
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x63c49f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x4c]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.005246c8
test al, al
je 0x63c487
mov edx, dword [ebp - 0x24]
inc edx
lea eax, [ebp - 4]
call fcn.0040b32c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x63c487
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.0040b078
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x63c452
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63c4a6
lea eax, [ebp - 4]
call fcn.0040a4d8
pop eax
jmp eax

Function at 0x63c4b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x63c55c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x4c]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.005246c8
test al, al
je 0x63c544
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x63c544
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040b32c
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b078
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040b32c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x63c4fa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63c563
lea eax, [ebp - 4]
call fcn.0040a4d8
pop eax
jmp eax
Function at 0x63d984
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x63db83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040a4d8
push 0x63db94
call sub.kernel32.dll_GetModuleHandleW
mov esi, eax
push 0x63dba8
push esi
call fcn.0041902c
mov edi, eax
mov ebx, edi
test edi, edi
je 0x63db50
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], 0
mov word [ebp - 0x12], 0x400
mov eax, 0x400
call fcn.0042ba70
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x63db49
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x58
call ebx
test eax, eax
jne 0x63db31
cmp word [ebp - 0x14], 0
jbe 0x63db31
mov bx, 0x41
lea eax, [ebp - 0x228]
mov edx, ebx
call fcn.0040afc0
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 4]
mov ecx, 0x63dbe0
call fcn.0040b100
push 0x104
lea eax, [ebp - 0x222]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b078
push eax
call sub.kernel32.dll_QueryDosDeviceW
test eax, eax
je 0x63db26
lea eax, [ebp - 0x222]
push eax
call sub.kernel32.dll_lstrlenW
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x222]
push eax
call sub.kernel32.dll_lstrlenW
push eax
lea eax, [ebp - 0x222]
push eax
push 1
push 0x800
call sub.kernel32.dll_CompareStringW
cmp eax, 2
jne 0x63db26
movzx eax, byte [0x63dbe4]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
mov edx, dword [ebp - 4]
call fcn.0040b468
mov eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x222]
mov ecx, 0x105
call fcn.0040b42c
mov eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x238]
mov edx, dword [ebp - 0x10]
call fcn.0040b3d8
mov eax, dword [ebp - 0x238]
pop edx
pop ecx
call fcn.004325e8
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0xc]
call fcn.0040b47c
jmp 0x63db31
inc ebx
cmp bx, 0x5b
jne 0x63da42
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63db50
mov eax, dword [ebp - 0x10]
call fcn.0042bac8
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63db8a
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.0040a4f0
lea eax, [ebp - 0x228]
call fcn.0040a4d8
lea eax, [ebp - 4]
call fcn.0040a4d8
pop eax
jmp eax

Function at 0x644818
Capabilities:
Encode data using xor

Disassembly:
and edx, edx
je 0x64483b
and ecx, ecx
jle 0x64483b
push ebx
push edi
xor ebx, ebx
lea edi, cs:[0x644841]
mov bl, al
shr eax, 8
xor bl, byte [edx]
xor eax, dword [edi + ebx*4]
inc edx
dec ecx
jne 0x64482b
pop edi
pop ebx
ret

Function at 0x649a68
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x649a78
call sub.user32.dll_FindWindowW
ret
Function at 0x64c998
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov byte [esi], 0
mov eax, dword [ebp + 8]
call fcn.0040a4d8
push ebx
call sub.user32.dll_IsWindow
test eax, eax
je 0x64ca96
xor eax, eax
push ebp
push 0x64ca84
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x400
call fcn.0064dfcc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x64ca73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0064c7c4
test al, al
je 0x64ca23
push 0x400
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
test eax, eax
jle 0x64ca23
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0064def8
call fcn.00409c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x64ca96
lea eax, [ebp - 8]
push eax
push edi
push 2
mov eax, dword [ebp - 4]
push eax
push 0x400
push 0xd
push ebx
call sub.user32.dll_SendMessageTimeoutW
test eax, eax
jle 0x64ca4e
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0064def8
jmp 0x64ca5b
call sub.kernel32.dll_GetLastError
cmp eax, 0x5b4
sete byte [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64ca7a
mov eax, dword [ebp - 4]
call fcn.004070f0
pop eax
jmp eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x64e310
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x64e376
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.0040b42c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0042ac58
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64e37d
lea eax, [ebp - 0x14]
call fcn.0040a490
pop eax
jmp eax
Function at 0x65ef80
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65f0f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
jne 0x65f0e2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
jmp 0x65f0d5
mov eax, dword [ebp - 4]
add eax, 0x80
xor edx, edx
call fcn.006609bc
mov eax, dword [ebp - 4]
add eax, 0x80
push eax
mov eax, dword [ebp - 4]
add eax, 0x54
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x65f045
xor eax, eax
push ebp
push 0x65f03e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
call fcn.0065f41c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65f0d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
push eax
call sub.kernel32.dll_ResetEvent
pop eax
jmp eax
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], ebx
cmp ebx, 0xea
jne 0x65f0c6
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
add eax, 0x6c
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x65f0b9
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
cmp esi, dword [eax + 0x68]
jbe 0x65f0d5
mov edx, esi
mov eax, dword [ebp - 4]
add eax, 0x64
call fcn.00407108
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], eax
jmp 0x65f0d5
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
jmp 0x65f0e2
cmp ebx, 0x3e5
jne 0x65f0e2
mov eax, dword [ebp - 4]
mov byte [eax + 0x58], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
je 0x65efb5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65f100
mov eax, dword [ebp - 4]
movzx ebx, byte [eax + 0x58]
pop eax
jmp eax
Function at 0x65f218
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
jne 0x65f336
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x65f332
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0065ff94
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x50], ebx
test ebx, ebx
je 0x65f336
mov eax, dword [ebp - 4]
add eax, 0x94
xor edx, edx
call fcn.006609bc
mov eax, dword [ebp - 4]
add eax, 0x94
push eax
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x50]
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_WriteFile
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
call sub.kernel32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x40], esi
test bl, bl
je 0x65f31b
xor eax, eax
push ebp
push 0x65f314
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov edx, 0x467
mov eax, dword [ebp - 4]
call fcn.0065ef1c
mov eax, dword [ebp - 4]
add eax, 0x50
call fcn.00660c58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65f336
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
push eax
call sub.kernel32.dll_ResetEvent
pop eax
jmp eax
cmp esi, 0x3e5
jne 0x65f32c
mov eax, dword [ebp - 4]
mov byte [eax + 0x59], 1
jmp 0x65f336
mov byte [ebp - 5], 0
jmp 0x65f336
mov byte [ebp - 5], 1
movzx eax, byte [ebp - 5]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x660af4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
xor eax, eax
push ebp
push 0x660b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040b504
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040aa44
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
jne 0x660b38
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x660b5a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040b504
pop eax
jmp eax
Function at 0x660e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x7b09ec
push 0x7c1fdc
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x660f48
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x660f0b
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x7b09e8]
mov dword [esi], eax
lea edx, [esi + 6]
mov eax, 0x7b0a44
mov ecx, 2
call fcn.00407308
mov edx, 0x660e20
lea eax, [esi + 7]
call fcn.00660e40
mov dword [esi + 8], eax
mov word [esi + 4], 0
lea ebx, [esi + 0xc]
mov byte [ebx], 0xe8
lea edx, [esi + 6]
mov eax, ebx
call fcn.00660e40
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, 0xffe
jl 0x660ee0
mov dword [0x7b09e8], esi
mov eax, dword [edi]
mov dword [ebp - 4], eax
mov ebx, dword [edi]
mov eax, dword [ebx + 5]
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 5], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 9], eax
mov eax, ebx
call fcn.00660e50
inc word [eax + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x660f4f
push 0x7c1fdc
call sub.kernel32.dll_LeaveCriticalSection
pop eax
jmp eax

Function at 0x670c1c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x7c2410], 0
jne 0x670c33
call fcn.00670bd8
mov eax, edi
dec eax
test eax, eax
jl 0x670c5b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x7c2010]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x670c3d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x673cb4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x673ce5
dec al
je 0x673d20
dec al
je 0x673d64
dec al
je 0x673dd6
jmp 0x673e71
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x673e71
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x673cf5
jmp 0x673e71
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x673e71
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x673d30
jmp 0x673e71
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x673e71
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x673d97
xor edx, edx
mov dword [esp + 4], edx
jmp 0x673dac
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x673dc4
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x673d74
jmp 0x673e71
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x673e71
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x673e3d
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 8], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.00670c64
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x673df2
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x68d5d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x68d645
mov dword [ebp - 4], edi
jmp 0x68d631
cmp dword [ebp - 0x10], 0x10000
jne 0x68d612
push 0x40
push 0x2000
push esi
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
jmp 0x68d645
cmp dword [ebp - 0x14], 0x10000
jae 0x68d624
mov dword [ebp - 0x14], 0x10000
jmp 0x68d62b
and dword [ebp - 0x14], 0xffff0000
mov eax, dword [ebp - 0x14]
add dword [ebp - 4], eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualQuery
cmp eax, 0x1c
je 0x68d5f4
push 0x40
push 0x1000
push esi
push ebx
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x68dbd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 0x24]
push eax
push 0x40
mov eax, dword [esi + 0x106]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x68dd3f
cmp byte [esi], 0
je 0x68dca5
mov byte [ebp - 0xd], 0xe9
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
sub eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xd]
mov ecx, dword [edx]
mov dword [eax], ecx
mov cl, byte [edx + 4]
mov byte [eax + 4], cl
lea eax, [ebp - 0x12]
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov dword [eax], ecx
mov cl, byte [edx + 4]
mov byte [eax + 4], cl
mov edx, dword [esi + 0x106]
sub edx, 5
mov eax, dword [ebp - 4]
add eax, 5
mov cl, 0x90
call fcn.00407d34
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [esi + 0x106]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x68dc80
movzx eax, byte [ebp - 0xd]
cmp al, byte [ebp - 0x12]
jne 0x68dc80
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x11]
je 0x68dc84
xor ebx, ebx
jmp 0x68dc86
mov bl, 1
test bl, bl
je 0x68dd3f
mov eax, dword [esi + 0x106]
push eax
mov eax, dword [ebp - 4]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_FlushInstructionCache
jmp 0x68dd3f
lea edx, [esi + 0x116]
lea eax, [ebp - 0x18]
call fcn.0068d9c0
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x18]
mov ecx, dword [edx]
mov dword [eax], ecx
mov cx, word [edx + 4]
mov word [eax + 4], cx
lea eax, [ebp - 0x1e]
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov dword [eax], ecx
mov cx, word [edx + 4]
mov word [eax + 4], cx
mov edx, dword [esi + 0x106]
sub edx, 6
mov eax, dword [ebp - 4]
add eax, 6
mov cl, 0x90
call fcn.00407d34
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [esi + 0x106]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x68dd23
movzx eax, byte [ebp - 0x18]
cmp al, byte [ebp - 0x1e]
jne 0x68dd23
movzx eax, byte [ebp - 0x17]
cmp al, byte [ebp - 0x1d]
jne 0x68dd23
mov eax, dword [ebp - 0x16]
cmp eax, dword [ebp - 0x1c]
je 0x68dd27
xor ebx, ebx
jmp 0x68dd29
mov bl, 1
test bl, bl
je 0x68dd3f
mov eax, dword [esi + 0x106]
push eax
mov eax, dword [ebp - 4]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_FlushInstructionCache
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x68dde8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x7c25a0
call sub.kernel32.dll_EnterCriticalSection
test ebx, ebx
je 0x68de0c
cmp dword [ebx], 0
jne 0x68de1b
push 0x7c25a0
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x68dea3
mov eax, dword [ebx]
sub eax, 0x11a
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push esi
mov esi, eax
lea edi, [ebp - 0x122]
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
lea eax, [ebp - 8]
push eax
push 0x40
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x68de99
xor eax, eax
mov dword [ebx], eax
lea edx, [ebp - 0x11c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0068d67c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
mov esi, eax
test esi, esi
je 0x68de91
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_FlushInstructionCache
mov eax, dword [ebp - 4]
call fcn.0068d66c
push 0x7c25a0
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6ce340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
test byte [eax + 0x1c], 8
jne 0x6ce411
cmp byte [ebx + 0x3c], 0
jne 0x6ce411
test dl, dl
jne 0x6ce36e
cmp dword [ebx + 0xc], 0
jne 0x6ce411
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
mov si, 0xffc5
call fcn.00408a6c
test al, al
je 0x6ce3cc
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
call fcn.0055e590
mov edi, eax
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x6ce39a
sub eax, 4
mov eax, dword [eax]
mov esi, eax
dec esi
cmp esi, 0
jl 0x6ce404
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + esi*4]
mov eax, ebx
call fcn.006cd354
mov dword [eax + 0x18], esi
mov dword [eax + 0x78], edi
test byte [eax + 0x38], 0x80
je 0x6ce3c4
mov edx, dword [eax + 0x14]
sub dword [eax + 0x78], edx
sub edi, dword [eax + 0x14]
dec esi
cmp esi, 0xffffffff
jne 0x6ce3a2
jmp 0x6ce404
xor edi, edi
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x6ce3da
sub eax, 4
mov eax, dword [eax]
mov ebp, eax
dec ebp
test ebp, ebp
jl 0x6ce404
inc ebp
xor esi, esi
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + esi*4]
mov eax, ebx
call fcn.006cd354
mov dword [eax + 0x18], esi
mov dword [eax + 0x78], edi
test byte [eax + 0x38], 0x80
je 0x6ce400
add edi, dword [eax + 0x14]
inc esi
dec ebp
jne 0x6ce3e4
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
xor edx, edx
call fcn.006f56b4
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6d14a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
mov bx, ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6d14b6
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6d14c6
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x6d14d6
or bx, 2
mov eax, ebx
pop ebx
ret